home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/sys/h/RCS/file,v $
- * $Date: 1996/10/30 21:58:59 $
- * $Revision: 1.2 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * $Log: file,v $
- * Revision 1.2 1996/10/30 21:58:59 unixlib
- * Massive changes made by Nick Burret and Peter Burwood.
- *
- * Revision 1.1 1996/04/19 21:23:56 simon
- * Initial revision
- *
- ***************************************************************************/
-
- #ifndef __SYS_FILE_H
- #define __SYS_FILE_H 1
-
- #ifndef __FCNTL_H
- #include <fcntl.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- /* Alternate names for values for the whence argument to lseek.
- These are the same as SEEK_SET, SEEK_CUR and SEEK_END respectively. */
- #define L_SET 0
- #define L_INCR 1
- #define L_XTND 2
-
- /* Operations for the flock call. */
-
- /* Shared lock. */
- #define LOCK_SH 1
- /* Exclusive lock. */
- #define LOCK_EX 2
- /* Unlock. */
- #define LOCK_UN 8
-
- /* Don't block when locking. */
- #define LOCK_NB 4
-
- /* Apply or remove an advisory lock, according to operation on the
- file fd refers to. */
- extern int flock (int fd, int operation);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-