Lines Matching defs:operation
34 int make_lock_file(const char *p, int operation, LockFile *ret) {
56 .l_type = (operation & ~LOCK_NB) == LOCK_EX ? F_WRLCK : F_RDLCK,
65 r = fcntl(fd, (operation & LOCK_NB) ? F_OFD_SETLK : F_OFD_SETLKW, &fl);
70 r = flock(fd, operation);
93 ret->operation = operation;
101 int make_lock_file_for(const char *p, int operation, LockFile *ret) {
115 return make_lock_file(t, operation, ret);
131 (f->operation & ~LOCK_NB) == LOCK_SH) {
142 f->operation = LOCK_EX|LOCK_NB;
145 if ((f->operation & ~LOCK_NB) == LOCK_EX)
152 f->operation = 0;