/bionic/libc/arch-arm/syscalls/ |
flock.S | 5 ENTRY(flock) function 16 END(flock)
|
/bionic/libc/arch-arm64/syscalls/ |
flock.S | 5 ENTRY(flock) function 14 END(flock)
|
/bionic/libc/arch-mips/syscalls/ |
flock.S | 5 ENTRY(flock) function 19 END(flock)
|
/bionic/libc/arch-x86_64/syscalls/ |
flock.S | 5 ENTRY(flock) function 15 END(flock)
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl13.c | 52 struct flock flock; local 99 flock.l_whence = -1; 100 flock.l_type = F_WRLCK; 101 flock.l_start = 0L; 102 flock.l_len = 0L; 104 if (fcntl(1, F_SETLK, &flock) != -1) 111 if (fcntl(-1, F_GETLK, &flock) != -1)
|
fcntl15.c | 74 struct flock flock; variable in typeref:struct:flock 115 flock.l_type = F_WRLCK; 116 flock.l_whence = 0; 117 flock.l_start = 5L; 118 flock.l_len = 5L; 121 if ((fcntl(fd_B, F_SETLK, &flock)) < 0) { 252 flock.l_type = F_WRLCK; 253 flock.l_whence = 0; 254 flock.l_start = 0L [all...] |
fcntl14.c | 534 static struct flock flock; variable in typeref:struct:flock 614 flock.l_type = thiscase->c_type; 615 flock.l_whence = thiscase->c_whence; 616 flock.l_start = thiscase->c_start; 617 flock.l_len = thiscase->c_len; 618 flock.l_pid = 0; 622 * Check to see if child lock will succeed. If it will, FLOCK 627 if ((rc = fcntl(fd, F_GETLK, &flock)) < 0) { 634 if (flock.l_type != F_UNLCK) [all...] |
fcntl19.c | 68 void compare_lock(struct flock *, short, short, int, int, pid_t); 70 void do_test(struct flock *, short, short, int, int); 130 struct flock fl; 144 struct flock fl; 153 void do_test(struct flock *fl, short type, short whence, int start, int len) 166 compare_lock(struct flock *fl, short type, short whence, int start, int len, 203 struct flock fl; 230 void parent_put(struct flock *l) 238 void parent_get(struct flock *l) 246 void child_put(struct flock *l [all...] |
/bionic/libc/include/sys/ |
file.h | 39 int flock(int __fd, int __op);
|
/external/strace/ |
flock.c | 37 SYS_FUNC(flock)
|
flock.h | 35 typedef struct flock struct_kernel_flock; 39 # error struct flock definition not found in <linux/fcntl.h>
|
/external/tensorflow/tensorflow/tools/ci_build/gpu_build/ |
parallel_gpu_execute.sh | 42 if flock -n "$lock_fd"; 52 flock -u "$lock_fd"
|
/bionic/tests/headers/posix/ |
fcntl_h.c | 103 TYPE(struct flock); 104 STRUCT_MEMBER(struct flock, short, l_type); 105 STRUCT_MEMBER(struct flock, short, l_whence); 106 STRUCT_MEMBER(struct flock, off_t, l_start); 107 STRUCT_MEMBER(struct flock, off_t, l_len); 108 STRUCT_MEMBER(struct flock, pid_t, l_pid);
|
/bionic/libc/arch-mips64/syscalls/ |
flock.S | 5 ENTRY(flock) function 25 END(flock)
|
/bionic/libc/arch-x86/syscalls/ |
flock.S | 5 ENTRY(flock) function 34 END(flock)
|
/external/ppp/pppd/plugins/radius/ |
lock.c | 18 struct flock fl; 37 struct flock fl;
|
/external/libchrome/base/ |
os_compat_android.h | 21 // The lockf() function is not available on Android; we translate to flock(). 25 return flock(fd, cmd);
|
/external/ltp/testcases/kernel/syscalls/flock/ |
flock05.c | 23 * TEST TITLE : Testing different locks on flock(2) 34 * Tests to verify flock(2) behavior with different locking combinations along 47 * Child tries to flock() the already flocked file with different types of locks 106 TEST(flock(fd, LOCK_EX)); 112 retval = flock(fd1, LOCK_SH | LOCK_NB); 115 "flock() failed to acquire shared lock on an already" 119 "flock() unexpectedly PASSED in acquiring shared lock on " 133 retval = flock(fd1, LOCK_EX | LOCK_NB); 136 "flock() failed to acquire exclusive lock on existing " 140 "flock() unexpectedly passed in acquiring exclusive lock on [all...] |
flock04.c | 23 * TEST TITLE : Testing different locks on flock(2) 34 * Tests to verify flock(2) behavior with different locking combinations along 47 * Child tries to flock() the already flocked file with different types of locks 102 TEST(flock(fd, LOCK_SH)); 111 retval = flock(fd1, LOCK_SH | LOCK_NB); 114 "flock() FAILED to acquire shared lock on existing " 118 "flock() PASSED in acquiring shared lock on " 132 retval = flock(fd1, LOCK_EX | LOCK_NB); 135 "flock() failed to acquire exclusive lock on existing " 139 "flock() unexpectedly passed in acquiring exclusive lock on [all...] |
flock06.c | 26 * TEST TITLE : Error condition test for flock(2) 37 * This test verifies that flock locks held on one fd conflict with 38 * flock locks held on a different fd. 42 * It acquires an exclusive flock on the first descriptor, 43 * checks that attempting to acquire an flock on the second 100 TEST(flock(fd1, LOCK_EX | LOCK_NB)); 103 "First attempt to flock() failed"); 105 tst_resm(TPASS, "First attempt to flock() passed"); 112 TEST(flock(fd2, LOCK_EX | LOCK_NB)); 114 tst_resm(TPASS, "Second attempt to flock() denied") [all...] |
flock02.c | 23 * TEST TITLE : Error condition test for flock(2) 35 * 1) flock(2) returns -1 and sets error number to EBADF 37 * 2) flock(2) returns -1 and sets error number to EINVAL 39 * 3) flock(2) returns -1 and sets error number to EINVAL 103 TEST(flock(-1, LOCK_SH)); 106 tst_resm(TPASS, "flock failed as expected with EBADF"); 108 tst_resm(TFAIL, "flock succeeded unexpectedly"); 110 tst_resm(TFAIL | TTERRNO, "flock failed unexpectedly"); 113 TEST(flock(fd, LOCK_NB)); 116 tst_resm(TPASS, "flock failed as expected with EINVAL") [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/i386-linux-gnu/sys/ |
file.h | 40 /* Operations for the `flock' call. */ 51 extern int flock (int __fd, int __operation) __THROW;
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/x86_64-linux-gnu/sys/ |
file.h | 40 /* Operations for the `flock' call. */ 51 extern int flock (int __fd, int __operation) __THROW;
|
/external/ltp/testcases/network/nfs/nfslock01/ |
nfs_flock_func.c | 8 struct flock lock; 20 struct flock lock;
|
/external/toybox/toys/other/ |
flock.c | 0 /* flock.c - manage advisory file locks 5 USE_FLOCK(NEWTOY(flock, "<1>1nsux[-sux]", TOYFLAG_USR|TOYFLAG_BIN)) 7 config FLOCK 8 bool "flock" 11 usage: flock [-sxun] fd 35 if (flock(fd, op)) { 37 else perror_exit("flock");
|