Lines Matching defs:lock
8 * 1) flock() succeeded in acquiring shared lock on shared lock file.
9 * 2) flock() failed to acquire exclusive lock on shared lock file.
10 * 3) flock() failed to acquire shared lock on exclusive lock file.
11 * 4) flock() failed to acquire exclusive lock on exclusive lock file.
24 {LOCK_SH, "shared lock"},
25 {LOCK_EX, "exclusive lock"},
28 static void child(int opt, int should_pass, char *lock)
36 " Child acquiring %s got %d", lock, retval);
39 " Child acquiring %s got %d", lock, retval);
65 child(LOCK_SH | LOCK_NB, tc->operation & LOCK_SH, "shared lock");
71 child(LOCK_EX | LOCK_NB, 0, "exclusive lock");