/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* * */ #ifndef __XR_sys_file_h #define __XR_sys_file_h #include #include #include #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 */