home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / pvfs2 / orangefs-2.8.3-20110323.tar.gz / orangefs-2.8.3-20110323.tar / orangefs / include / pvfs2-compat.h next >
C/C++ Source or Header  |  2009-02-06  |  3KB  |  86 lines

  1. /*
  2.  * (C) 2001 Clemson University and The University of Chicago
  3.  *
  4.  * See COPYING in top-level directory.
  5.  */
  6.  
  7. /* 
  8.  * This file provides macro definitions that can help ease the 
  9.  * transition to the new function prototypes introduced in 
  10.  * version 2.7.1
  11.  */
  12.  
  13. #ifndef PVFS2_COMPAT_H
  14. #define PVFS2_COMPAT_H
  15.  
  16. #include "pvfs2.h"
  17. #include "pvfs2-sysint.h"
  18.  
  19. #if PVFS2_VERSION_MAJOR == 2 && PVFS2_VERSION_MINOR > 7
  20.  
  21. #define PVFS_sys_create(entry_name,ref,attr,credentials,dist,resp)\
  22.    PVFS_sys_create(entry_name,ref,attr,credentials,dist,resp,\
  23.          PVFS_SYS_LAYOUT_DEFAULT,PVFS_HINT_NULL)
  24.  
  25. #define PVFS_sys_lookup(fs_id,name,credentials,resp,follow_link)\
  26.    PVFS_sys_lookup(fs_id,name,credentials,resp,follow_link,PVFS_HINT_NULL)
  27.  
  28.  
  29. #define PVFS_sys_getattr(ref,attrmask,credentials,resp) \
  30.    PVFS_sys_getattr(ref,attrmask,credentials,resp,PVFS_HINT_NULL)
  31.  
  32. #define PVFS_sys_setattr(ref,attr,credentials) \
  33.    PVFS_sys_setattr(ref,attr,credentials,PVFS_HINT_NULL)
  34.  
  35. #define PVFS_sys_ref_lookup(fs_id,pathname,parent_ref,\
  36.       credentials,resp, follow_link) \
  37.    PVFS_sys_ref_lookup(fs_id,pathname,parent_ref,credentials,resp,\
  38.          follow_link, PVFS_HINT_NULL)
  39.  
  40. #undef PVFS_sys_read
  41. #define PVFS_sys_read(ref,req,off,buf,mem_req,creds,resp) \
  42.    PVFS_sys_io(ref,req,off,buf,mem_req,creds,resp,PVFS_IO_READ,PVFS_HINT_NULL)
  43.  
  44. #undef PVFS_sys_write
  45. #define PVFS_sys_write(ref,req,off,buf,mem_req,creds,resp) \
  46.    PVFS_sys_io(ref,req,off,buf,mem_req,creds,resp,PVFS_IO_WRITE,PVFS_HINT_NULL)
  47.  
  48. #undef PVFS_isys_read
  49. #define PVFS_isys_read(ref,req,off,buf,mem_req,creds,resp,opid,ptr)\
  50.     PVFS_isys_io(ref,req,off,buf,mem_req,creds,resp,PVFS_IO_READ,opid,PVFS_HINT_NULL,ptr)
  51.  
  52. #undef PVFS_isys_write
  53. #define PVFS_isys_write(ref,req,off,buf,mem_req,creds,resp,opid,ptr)\
  54.     PVFS_isys_io(ref,req,off,buf,mem_req,creds,resp,PVFS_IO_WRITE,opid,PVFS_HINT_NULL,ptr)
  55.  
  56. #define PVFS_sys_remove(entry,ref,creds)\
  57.    PVFS_sys_remove(entry,ref,creds,PVFS_HINT_NULL)
  58.  
  59. #define PVFS_sys_mkdir(entry,ref,attr,creds,resp)\
  60.    PVFS_sys_mkdir(entry,ref,attr,creds,resp,PVFS_HINT_NULL)
  61.  
  62. #define PVFS_sys_readdir(ref,token,count,creds,resp)\
  63.    PVFS_sys_readdir(ref,token,count,creds,resp,PVFS_HINT_NULL)
  64.  
  65. #define PVFS_sys_truncate(ref,size,creds)\
  66.    PVFS_sys_truncate(ref,size,creds,PVFS_HINT_NULL)
  67.  
  68. #define PVFS_sys_getparent(ref,name,cred,resp) \
  69.     PVFS_sys_getparent(ref,name,cred,resp,PVFS_HINT_NULL)
  70.  
  71. #define PVFS_sys_flush(ref,cred)\
  72.     PVFS_sys_flush(ref,cred,PVFS_HINT_NULL)
  73.  
  74. #define PVFS_sys_symlink(tof,ref,from,attr,cred,resp) \
  75.         PVFS_sys_symlink(tof,ref,from,attr,cred,resp,PVFS_HINT_NULL)
  76.  
  77. #define PVFS_sys_rename(from,fref,to,tref,cred) \
  78.         PVFS_sys_rename(from,fref,to,tref,cred,PVFS_HINT_NULL)
  79.  
  80. #define PVFS_sys_statfs(fsid,creds,resp) \
  81.         PVFS_sys_statfs(fsid,creds,resp,PVFS_HINT_NULL)
  82. #endif
  83.  
  84.  
  85. #endif
  86.