Searched refs:is_exclusive (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/test/os-tests/tests/file-locking/ |
H A D | acquire-lock.c | 109 acq_run(int fd, lock_style_t style, boolean_t is_exclusive) in acq_run() argument 113 acq_fcntl(fd, F_SETLKW, is_exclusive ? F_WRLCK : F_RDLCK); in acq_run() 116 acq_fcntl(fd, F_OFD_SETLKW, is_exclusive ? F_WRLCK : F_RDLCK); in acq_run() 119 acq_flock(fd, is_exclusive ? LOCK_EX : LOCK_SH); in acq_run() 132 boolean_t is_exclusive; in main() local 145 is_exclusive = B_FALSE; in main() 147 is_exclusive = B_TRUE; in main() 152 boolean_t rdonly = style == LSTYLE_FLOCK || !is_exclusive; in main() 158 acq_run(fd, style, is_exclusive); in main()
|
H A D | runtests.c | 280 flock_run(lock_style_t style, boolean_t is_exclusive, lockinfo_t *lf, in flock_run() argument 284 char *modestr = is_exclusive ? "exclusive" : "shared"; in flock_run()
|