/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl21.c | 68 int do_lock(int, short, short, int, int); 149 int do_lock(int cmd, short type, short whence, int start, int len) in do_lock() function 212 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file() 332 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 0, 0) < 0) { in main() 363 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 0, 0) < 0) { in main() 396 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 402 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 1, 5) < 0) { in main() 446 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 452 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 5, 5) < 0) { in main() 496 if (do_lock(F_SETL in main() [all...] |
H A D | fcntl11.c | 69 int do_lock(int, short, short, int, int); 128 int do_lock(int cmd, short type, short whence, int start, int len) in do_lock() function 181 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) in unlock_file() 283 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main() 286 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 1, 5) < 0) in main() 321 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main() 324 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 5) < 0) in main() 359 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) in main() 362 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 5, 6) < 0) in main() 397 if (do_lock(F_SETL in main() [all...] |
H A D | fcntl20.c | 69 int do_lock(int, short, short, int, int); 141 int do_lock(int cmd, short type, short whence, int start, int len) in do_lock() function 204 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file() 325 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 331 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 5) < 0) { in main() 368 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 374 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 6) < 0) { in main() 411 if (do_lock(F_SETLK, (short)F_RDLCK, (short)0, 10, 5) < 0) { in main() 417 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 8) < 0) { in main() 454 if (do_lock(F_SETL in main() [all...] |
H A D | fcntl19.c | 73 int do_lock(int, short, short, int, int); 142 int do_lock(int cmd, short type, short whence, int start, int len) in do_lock() function 205 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 0, 0) < 0) { in unlock_file() 326 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main() 332 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 5) < 0) { in main() 369 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main() 375 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 6) < 0) { in main() 413 if (do_lock(F_SETLK, (short)F_WRLCK, (short)0, 10, 5) < 0) { in main() 419 if (do_lock(F_SETLK, (short)F_UNLCK, (short)0, 5, 8) < 0) { in main() 457 if (do_lock(F_SETL in main() [all...] |
H A D | fcntl06.c | 70 int do_lock(int, short, short, int, int); 101 if (do_lock(F_RSETLK, F_WRLCK, 0, 10, 5) == -1) in main() 104 if (do_lock(F_RSETLK, F_UNLCK, 0, 5, 5) == -1) in main() 138 int do_lock(int cmd, short type, short whence, int start, int len) in do_lock() function 151 if (do_lock(F_RSETLK, (short)F_UNLCK, (short)0, 0, 0) == -1) { in unlock_file()
|
/third_party/gn/src/base/files/ |
H A D | file_posix.cc | 51 File::Error CallFcntlFlock(PlatformFile file, bool do_lock) { in CallFcntlFlock() argument 53 lock.l_type = do_lock ? F_WRLCK : F_UNLCK; in CallFcntlFlock() 77 File::Error CallFcntlFlock(PlatformFile file, bool do_lock) { in CallFcntlFlock() argument
|
/third_party/alsa-utils/alsactl/ |
H A D | alsactl.c | 51 int do_lock = 0; variable 308 do_lock = 1; in main() 311 do_lock = -1; in main() 422 if (strcmp(cfgfile, SYS_ASOUNDRC) == 0 && do_lock >= 0) in main() 423 do_lock = 1; in main()
|
H A D | alsactl.h | 9 extern int do_lock;
|
H A D | lock.c | 54 if (do_lock <= 0) in state_lock_()
|