/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* * */ #ifndef ←←XR←sys←file←h #define ←←XR←sys←file←h #include <config/PCR←OS.h> #include <xr/XR←sys←types.h> #include <xr/XR←fcntl.h> #if defined(PCR←OS←SUNOS4) || defined(PCR←OS←SUNOS5) # define XR←file←FLockToHost(lock) (lock) # define XR←file←FLockFromHost(lock) (lock) # define XR←file←AccessToHost(acc) (acc) # define XR←file←LSeekToHost(whence) (whence) #else # error os ? #endif /* * User definitions. */ /* * Flock call. */ #define XR←LOCK←SH 1 /* shared lock */ #define XR←LOCK←EX 2 /* exclusive lock */ #define XR←LOCK←NB 4 /* don't block when locking */ #define XR←LOCK←UN 8 /* unlock */ /* * Access call. Also maintained in unistd.h */ #define XR←F←OK 0 /* does file exist */ #define XR←X←OK 1 /* is it executable by caller */ #define XR←W←OK 2 /* writable by caller */ #define XR←R←OK 4 /* readable by caller */ /* * Lseek call. Also maintained in 5include/stdio.h and sys/unistd.h as SEEK←* */ #define XR←L←SET 0 /* absolute offset */ #define XR←L←INCR 1 /* relative to current offset */ #define XR←L←XTND 2 /* relative to end of file */ #endif /* !←←XR←sys←file←h */