Changeset 3649 for trunk/Ohana/src/libohana/include/ohana.h
- Timestamp:
- Apr 3, 2005, 9:11:15 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/ohana.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/ohana.h
r3522 r3649 36 36 # define DTIME(A,B) ((A.tv_sec - B.tv_sec) + 1e-6*(A.tv_usec - B.tv_usec)) 37 37 38 # define LCK_UNLOCK 0 /* file is unlocked */ 39 # define LCK_ACCESS 1 /* can't get access to file */ 40 # define LCK_TIMEOUT 2 /* timeout setting lock */ 41 # define LCK_HARDLCK 3 /* error setting hard lockfile */ 42 # define LCK_HUNLOCK 4 /* error clearing hard lockfile */ 38 enum { 39 LCK_UNLOCK, /* file is unlocked */ 40 LCK_INVALID, /* invalid locktype requested */ 41 LCK_MISSING, /* soft requested and file missing (error) */ 42 LCK_ACCESS, /* can't get access to file */ 43 LCK_TIMEOUT, /* timeout setting lock */ 44 LCK_HARDOPEN, /* cannot open hard lockfile */ 45 LCK_HARDLOCK, /* cannot lock hard lockfile */ 46 LCK_HARDLOCKHARD, /* hard lockfile is locked */ 47 LCK_HARDCLOSE, /* cannot write to hardlock */ 43 48 44 # define LCK_EMPTY 5 /* locked file isempty */45 # define LCK_FULL 6 /* locked file isnot empty */46 # define LCK_UNKNOWN 7 /* can't stat file toget size */49 LCK_EMPTY, /* file is locked and empty */ 50 LCK_FULL, /* file is locked and not empty */ 51 LCK_UNKNOWN, /* file is locked, but can't get size */ 47 52 48 # define LCK_SOFT 10 /* soft lock */ 49 # define LCK_HARD 11 /* hard lock */ 50 # define LCK_XCLD 12 /* exclusive soft lock */ 53 LCK_SOFT, /* soft lock */ 54 LCK_HARD, /* hard lock */ 55 LCK_XCLD, /* exclusive soft lock */ 56 }; 51 57 52 58 # ifndef M_PI … … 126 132 FILE *fsetlockfile (char *filename, double timeout, int type, int *state); 127 133 int fclearlockfile (char *filename, FILE *f, int type, int *state); 128 int setlockfile2 (char *filename, double timeout, int type, int *state);129 int clearlockfile2 (char *filename, int fd, int type, int *state);130 134 131 135 /* in config.c */
Note:
See TracChangeset
for help on using the changeset viewer.
