Changeset 9152

Show
Ignore:
Timestamp:
12/12/11 12:24:51 (18 months ago)
Author:
walt
Message:

added defs of AT_FDCWD and related flags for older systems

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/pvfs2-usrint.h

    r9115 r9152  
    3737#define PVFS_FD_NOCACHE 0x10000 
    3838 
     39/* Define AT_FDCWD and related flags on older systems */ 
     40#ifndef AT_FDCWD 
     41# define AT_FDCWD               -100    /* Special value used to indicate 
     42                                           the *at functions should use the 
     43                                           current working directory. */ 
     44#endif 
     45#ifndef AT_SYMLINK_NOFOLLOW 
     46# define AT_SYMLINK_NOFOLLOW    0x100   /* Do not follow symbolic links.  */ 
     47#endif 
     48#ifndef AT_REMOVDIR 
     49# define AT_REMOVEDIR           0x200   /* Remove directory instead of 
     50                                           unlinking file.  */ 
     51#endif 
     52#ifndef AT_SYMLINK_FOLLOW 
     53# define AT_SYMLINK_FOLLOW      0x400   /* Follow symbolic links.  */ 
     54#endif 
     55#ifndef AT_EACCESS 
     56# define AT_EACCESS             0x200   /* Test access permitted for 
     57                                           effective IDs, not real IDs.  */ 
     58#endif 
     59 
    3960/* pvfs_open */ 
    4061extern int pvfs_open(const char *path, int flags, ...); 
  • trunk/src/client/usrint/usrint.h

    r9149 r9152  
    181181#define O_NOFOLLOW 0 
    182182#endif 
     183 
     184/* Define AT_FDCWD and related flags on older systems */ 
     185#ifndef AT_FDCWD 
     186# define AT_FDCWD               -100    /* Special value used to indicate 
     187                                           the *at functions should use the 
     188                                           current working directory. */ 
     189#endif 
     190#ifndef AT_SYMLINK_NOFOLLOW 
     191# define AT_SYMLINK_NOFOLLOW    0x100   /* Do not follow symbolic links.  */ 
     192#endif 
     193#ifndef AT_REMOVDIR 
     194# define AT_REMOVEDIR           0x200   /* Remove directory instead of 
     195                                           unlinking file.  */ 
     196#endif 
     197#ifndef AT_SYMLINK_FOLLOW 
     198# define AT_SYMLINK_FOLLOW      0x400   /* Follow symbolic links.  */ 
     199#endif 
     200#ifndef AT_EACCESS 
     201# define AT_EACCESS             0x200   /* Test access permitted for 
     202                                           effective IDs, not real IDs.  */ 
     203#endif 
     204 
    183205#define true   1  
    184206#define false  0