/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl20.c | 64 void compare_lock(struct flock *, short, short, int, int, pid_t); 66 void do_test(struct flock *, short, short, int, int); 127 struct flock fl; 143 struct flock fl; 152 void do_test(struct flock *fl, short type, short whence, int start, int len) 165 compare_lock(struct flock *fl, short type, short whence, int start, int len, 202 struct flock fl; 229 void parent_put(struct flock *l) 237 void parent_get(struct flock *l) 245 void child_put(struct flock *l [all...] |
fcntl11.c | 64 void compare_lock(struct flock *, short, short, int, int, pid_t); 66 void do_test(struct flock *, short, short, int, int); 116 struct flock fl; 130 struct flock fl; 139 void do_test(struct flock *fl, short type, short whence, int start, int len) 152 compare_lock(struct flock *fl, short type, short whence, int start, int len, 179 struct flock fl; 204 void parent_put(struct flock *l) 209 void parent_get(struct flock *l) 214 void child_put(struct flock *l [all...] |
fcntl21.c | 63 void compare_lock(struct flock *, short, short, int, int, pid_t); 65 void do_test(struct flock *, short, short, int, int); 134 struct flock fl; 151 struct flock fl; 160 void do_test(struct flock *fl, short type, short whence, int start, int len) 173 compare_lock(struct flock *fl, short type, short whence, int start, int len, 210 struct flock fl; 237 void parent_put(struct flock *l) 245 void parent_get(struct flock *l) 253 void child_put(struct flock *l [all...] |
fcntl18.c | 65 struct flock fl; 83 retval = fcntl(fd, F_GETLK, (struct flock *)INVAL_FLAG); 106 retval = fcntl(fd, F_GETLK64, (struct flock *)INVAL_FLAG);
|
fcntl17.c | 74 struct flock lock1 = { (short)F_WRLCK, (short)0, 2, 5, (short)0 }; 75 struct flock lock2 = { (short)F_WRLCK, (short)0, 9, 5, (short)0 }; 76 struct flock lock3 = { (short)F_WRLCK, (short)0, 17, 5, (short)0 }; 77 struct flock lock4 = { (short)F_WRLCK, (short)0, 17, 5, (short)0 }; 78 struct flock lock5 = { (short)F_WRLCK, (short)0, 2, 14, (short)0 }; 79 struct flock unlock = { (short)F_UNLCK, (short)0, 0, 0, (short)0 }; 91 int do_test(struct flock *, pid_t); 285 int do_test(struct flock *lock, pid_t pid) 287 struct flock fl;
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
Boid.h | 24 void flock(const Boid* boids[], int numBoids, int index, float limitX, float limitY);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
posixfile.py | 186 flock = struct.pack('lxxxxlxxxxlhh', \
189 flock = struct.pack('hhlllii', \
192 flock = struct.pack('hhllhh', \
195 flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
203 struct.unpack('lxxxxlxxxxlhh', flock)
206 struct.unpack('hhlllii', flock)
209 struct.unpack('hhllhh', flock)
212 struct.unpack('hhllhh', flock)
|
/external/ltp/testcases/kernel/fs/doio/ |
file_lock.c | 64 struct flock flocks; 66 memset(&flocks, 0, sizeof(struct flock)); 136 struct flock flocks; 138 memset(&flocks, 0, sizeof(struct flock));
|
/external/ltp/testcases/kernel/syscalls/flock/ |
flock03.c | 21 * This test verifies that flock cannot unlock a file locked 97 TEST(flock(fd, LOCK_EX | LOCK_NB)); 101 "Parent: Initial attempt to flock() failed"); 104 "Parent: Initial attempt to flock() passed"); 139 if (flock(fd2, LOCK_EX | LOCK_NB) != -1) { 144 TEST(flock(fd, LOCK_UN)); 156 TEST(flock(fd2, LOCK_EX | LOCK_NB));
|
/external/python/cpython2/Lib/ |
posixfile.py | 186 flock = struct.pack('lxxxxlxxxxlhh', \ 189 flock = struct.pack('hhlllii', \ 192 flock = struct.pack('hhllhh', \ 195 flock = fcntl.fcntl(self._file_.fileno(), cmd, flock) 203 struct.unpack('lxxxxlxxxxlhh', flock) 206 struct.unpack('hhlllii', flock) 209 struct.unpack('hhllhh', flock) 212 struct.unpack('hhllhh', flock)
|
/external/python/cpython3/Lib/test/ |
test_fcntl.py | 15 # TODO - Write tests for flock() and lockf(). 131 fcntl.flock(fileno, fcntl.LOCK_SH) 132 fcntl.flock(fileno, fcntl.LOCK_UN) 133 fcntl.flock(self.f, fcntl.LOCK_SH | fcntl.LOCK_NB) 134 fcntl.flock(self.f, fcntl.LOCK_UN) 135 fcntl.flock(fileno, fcntl.LOCK_EX) 136 fcntl.flock(fileno, fcntl.LOCK_UN) 138 self.assertRaises(ValueError, fcntl.flock, -1, fcntl.LOCK_SH) 139 self.assertRaises(TypeError, fcntl.flock, 'spam', fcntl.LOCK_SH) 144 self.assertRaises(OverflowError, fcntl.flock, _testcapi.INT_MAX+1 [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
posixfile.py | 186 flock = struct.pack('lxxxxlxxxxlhh', \ 189 flock = struct.pack('hhlllii', \ 192 flock = struct.pack('hhllhh', \ 195 flock = fcntl.fcntl(self._file_.fileno(), cmd, flock) 203 struct.unpack('lxxxxlxxxxlhh', flock) 206 struct.unpack('hhlllii', flock) 209 struct.unpack('hhllhh', flock) 212 struct.unpack('hhllhh', flock)
|
/prebuilts/gdb/linux-x86/lib/python2.7/ |
posixfile.py | 186 flock = struct.pack('lxxxxlxxxxlhh', \ 189 flock = struct.pack('hhlllii', \ 192 flock = struct.pack('hhllhh', \ 195 flock = fcntl.fcntl(self._file_.fileno(), cmd, flock) 203 struct.unpack('lxxxxlxxxxlhh', flock) 206 struct.unpack('hhlllii', flock) 209 struct.unpack('hhllhh', flock) 212 struct.unpack('hhllhh', flock)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
posixfile.py | 186 flock = struct.pack('lxxxxlxxxxlhh', \ 189 flock = struct.pack('hhlllii', \ 192 flock = struct.pack('hhllhh', \ 195 flock = fcntl.fcntl(self._file_.fileno(), cmd, flock) 203 struct.unpack('lxxxxlxxxxlhh', flock) 206 struct.unpack('hhlllii', flock) 209 struct.unpack('hhllhh', flock) 212 struct.unpack('hhllhh', flock)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
posixfile.py | 186 flock = struct.pack('lxxxxlxxxxlhh', \ 189 flock = struct.pack('hhlllii', \ 192 flock = struct.pack('hhllhh', \ 195 flock = fcntl.fcntl(self._file_.fileno(), cmd, flock) 203 struct.unpack('lxxxxlxxxxlhh', flock) 206 struct.unpack('hhlllii', flock) 209 struct.unpack('hhllhh', flock) 212 struct.unpack('hhllhh', flock)
|
/external/autotest/client/bin/ |
autotestd | 40 fcntl.flock(exit_file, fcntl.LOCK_EX) 49 fcntl.flock(exit_file, fcntl.LOCK_UN)
|
autotestd_monitor | 46 fcntl.flock(exit_code_file, fcntl.LOCK_EX) 55 fcntl.flock(exit_code_file, fcntl.LOCK_UN)
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
11-1.c | 30 struct flock fl = { 68 struct flock fl = {
|
/art/libartbase/base/ |
scoped_flock.cc | 50 int flock_result = TEMP_FAILURE_RETRY(flock(file->Fd(), operation)); 107 if (0 != TEMP_FAILURE_RETRY(flock(locked_file->Fd(), LOCK_EX))) { 118 int flock_result = TEMP_FAILURE_RETRY(flock(this->Fd(), LOCK_UN));
|
/frameworks/compile/libbcc/lib/ |
FileBase.cpp | 31 // TODO: Fix flock usage under windows 37 int flock(int fd, int operation) { function 148 // Determine the lock operation (2nd argument) to the flock(). 163 if (::flock(mFD, lock_operation) == 0) { 184 // flock() was not performed successfully. Check the errno to see whether 187 // flock() was interrupted by delivery of a signal. Restart without 196 // There's a fatal error occurs when perform flock(). Return immediately 212 if (::flock(mFD, LOCK_UN) == 0) {
|
/bionic/libc/kernel/uapi/asm-mips/asm/ |
fcntl.h | 46 struct flock { struct
|
/external/compiler-rt/lib/profile/ |
WindowsMMap.h | 41 * flock() operations 55 int flock(int fd, int operation);
|
/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
|
/toolchain/binutils/binutils-2.27/gold/ |
ftruncate.c | 52 struct flock fl;
|
/external/clang/test/Sema/ |
warn-type-safety.c | 125 struct flock { }; struct 128 static const int F_SETLK_tag __attribute__(( type_tag_for_datatype(fcntl,struct flock *) )) = F_SETLK; 132 void test_argument_with_type_tag(struct flock *f) 137 fcntl(0, F_SETLK, 10); // expected-warning {{argument type 'int' doesn't match specified 'fcntl' type tag that requires 'struct flock *'}} 138 fcntl(0, F_DUPFD, f); // expected-warning {{argument type 'struct flock *' doesn't match specified 'fcntl' type tag that requires 'int'}}
|