- Timestamp:
- Aug 16, 2018, 8:00:56 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal.h
r854 r877 96 96 #endif 97 97 98 #ifdef WIN32 99 // fcntl flock definitions 100 #define F_SETLK 8 // Non-Blocking set or clear a lock 101 #define F_SETLKW 9 // Blocking set or clear a lock 102 #define F_GETLK 10 103 #define F_RDLCK 1 // read lock 104 #define F_WRLCK 2 // write lock 105 #define F_UNLCK 3 // remove lock 106 struct flock { 107 short l_type; // F_RDLCK, F_WRLCK, or F_UNLCK 108 short l_whence; // flag to choose starting offset, must be SEEK_SET 109 long l_start; // relative offset, in bytes, must be 0 110 long l_len; // length, in bytes; 0 means lock to EOF, must be 0 111 short l_pid; // unused (returned with the unsupported F_GETLK) 112 short l_xxx; // reserved for future use 113 }; 114 115 #endif 116 98 117 /** 99 118 * The lock structure used by the ZOO-Kernel to ensure atomicity of operations
Note: See TracChangeset
for help on using the changeset viewer.