HomeSort by relevance Sort by last modified time
    Searched full:flock (Results 1 - 25 of 840) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /bionic/libc/arch-arm64/syscalls/
flock.S 5 ENTRY(flock) function
14 END(flock)
  /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");
  /bionic/libc/arch-arm/syscalls/
flock.S 5 ENTRY(flock) function
16 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/strace/tests/
flock.gen.test 2 # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (flock -a19 ); do not edit.
flock.c 16 printf("flock(%d, LOCK_SH) = %ld %s (%m)\n",
  /external/strace/tests-m32/
flock.gen.test 2 # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (flock -a19 ); do not edit.
flock.c 16 printf("flock(%d, LOCK_SH) = %ld %s (%m)\n",
  /external/strace/tests-mx32/
flock.gen.test 2 # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (flock -a19 ); do not edit.
flock.c 16 printf("flock(%d, LOCK_SH) = %ld %s (%m)\n",
  /bionic/libc/arch-mips64/syscalls/
flock.S 5 ENTRY(flock) function
25 END(flock)
  /external/syslinux/gnu-efi/gnu-efi-3.0/lib/
lock.c 11 Implements FLOCK
25 IN OUT FLOCK *Lock,
43 Lock - The FLOCK structure to initialize
62 IN FLOCK *Lock
87 IN FLOCK *Lock
  /bionic/libc/arch-x86/syscalls/
flock.S 5 ENTRY(flock) function
34 END(flock)
  /external/ltp/testcases/kernel/syscalls/flock/
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...]
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...]
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...]
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...]
  /external/ltp/testcases/kernel/syscalls/fcntl/
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...]
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)
  /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);
  /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/network/nfs/nfslock01/
nfs_flock_func.c 8 struct flock lock;
20 struct flock lock;
  /external/syslinux/gnu-efi/gnu-efi-3.0/lib/runtime/
rtlock.c 11 Implements FLOCK
29 IN FLOCK *Lock
68 IN FLOCK *Lock
  /external/kernel-headers/original/uapi/asm-mips/asm/
fcntl.h 54 * The flavours of struct flock. "struct flock" is the ABI compliant
55 * variant. Finally struct flock64 is the LFS variant of struct flock. As
57 * contain all the same fields as struct flock.
64 struct flock { struct

Completed in 352 milliseconds

1 2 3 4 5 6 7 8 91011>>