/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl15.c | 74 struct flock flock; variable 115 flock.l_type = F_WRLCK; in dochild1() 116 flock.l_whence = 0; in dochild1() 117 flock.l_start = 5L; in dochild1() 118 flock.l_len = 5L; in dochild1() 121 if ((fcntl(fd_B, F_SETLK, &flock)) < 0) { in dochild1() 252 flock.l_type = F_WRLCK; in dochild2() 253 flock.l_whence = 0; in dochild2() 254 flock.l_start = 0L; in dochild2() 255 flock.l_len = 5L; in dochild2() [all …]
|
D | fcntl14.c | 533 static struct flock flock; variable 613 flock.l_type = thiscase->c_type; in dochild() 614 flock.l_whence = thiscase->c_whence; in dochild() 615 flock.l_start = thiscase->c_start; in dochild() 616 flock.l_len = thiscase->c_len; in dochild() 617 flock.l_pid = 0; in dochild() 626 if ((rc = fcntl(fd, F_GETLK, &flock)) < 0) { in dochild() 633 if (flock.l_type != F_UNLCK) { in dochild() 637 flock.l_type, F_UNLCK); in dochild() 641 if (flock.l_whence != thiscase->c_whence) { in dochild() [all …]
|
D | fcntl13.c | 52 struct flock flock; in main() local 99 flock.l_whence = -1; in main() 100 flock.l_type = F_WRLCK; in main() 101 flock.l_start = 0L; in main() 102 flock.l_len = 0L; in main() 104 if (fcntl(1, F_SETLK, &flock) != -1) in main() 111 if (fcntl(-1, F_GETLK, &flock) != -1) in main()
|
D | 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; in do_child() 144 struct flock fl; in do_lock() 153 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() 166 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() 203 struct flock fl; in unlock_file() 230 void parent_put(struct flock *l) in parent_put() 238 void parent_get(struct flock *l) in parent_get() 246 void child_put(struct flock *l) in child_put() [all …]
|
D | 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; in do_child() 143 struct flock fl; in do_lock() 152 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() 165 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() 202 struct flock fl; in unlock_file() 229 void parent_put(struct flock *l) in parent_put() 237 void parent_get(struct flock *l) in parent_get() 245 void child_put(struct flock *l) in child_put() [all …]
|
D | 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; in do_child() 130 struct flock fl; in do_lock() 139 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() 152 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() 179 struct flock fl; in unlock_file() 204 void parent_put(struct flock *l) in parent_put() 209 void parent_get(struct flock *l) in parent_get() 214 void child_put(struct flock *l) in child_put() [all …]
|
D | 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; in do_child() 151 struct flock fl; in do_lock() 160 void do_test(struct flock *fl, short type, short whence, int start, int len) in do_test() 173 compare_lock(struct flock *fl, short type, short whence, int start, int len, in compare_lock() 210 struct flock fl; in unlock_file() 237 void parent_put(struct flock *l) in parent_put() 245 void parent_get(struct flock *l) in parent_get() 253 void child_put(struct flock *l) in child_put() [all …]
|
D | 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) in do_test() 287 struct flock fl; in do_test()
|
D | fcntl16.c | 68 struct flock parent_a; 69 struct flock parent_b; 70 struct flock child_a; 71 struct flock child_b; 72 struct flock parent_c; 73 struct flock parent_d; 263 static struct flock *thislock;
|
D | fcntl18.c | 65 struct flock fl; in main() 83 retval = fcntl(fd, F_GETLK, (struct flock *)INVAL_FLAG); in main() 106 retval = fcntl(fd, F_GETLK64, (struct flock *)INVAL_FLAG); in main()
|
/external/ltp/testcases/kernel/syscalls/flock/ |
D | flock05.c | 106 TEST(flock(fd, LOCK_EX)); in main() 112 retval = flock(fd1, LOCK_SH | LOCK_NB); in main() 133 retval = flock(fd1, LOCK_EX | LOCK_NB); in main() 148 TEST(flock(fd, LOCK_UN)); in main()
|
D | flock06.c | 99 TEST(flock(fd1, LOCK_EX | LOCK_NB)); in main() 111 TEST(flock(fd2, LOCK_EX | LOCK_NB)); in main() 117 TEST(flock(fd1, LOCK_UN)); in main() 123 TEST(flock(fd2, LOCK_EX | LOCK_NB)); in main()
|
D | flock04.c | 101 TEST(flock(fd, LOCK_SH)); in main() 110 retval = flock(fd1, LOCK_SH | LOCK_NB); in main() 131 retval = flock(fd1, LOCK_EX | LOCK_NB); in main() 144 TEST(flock(fd, LOCK_UN)); in main()
|
D | flock03.c | 97 TEST(flock(fd, LOCK_EX | LOCK_NB)); in main() 139 if (flock(fd2, LOCK_EX | LOCK_NB) != -1) { in childfunc() 144 TEST(flock(fd, LOCK_UN)); in childfunc() 156 TEST(flock(fd2, LOCK_EX | LOCK_NB)); in childfunc()
|
D | flock02.c | 102 TEST(flock(-1, LOCK_SH)); in main() 112 TEST(flock(fd, LOCK_NB)); in main() 122 TEST(flock(fd, LOCK_SH | LOCK_EX)); in main()
|
/external/ltp/lib/ |
D | file_lock.c | 64 struct flock flocks; in file_lock() 66 memset(&flocks, 0, sizeof(struct flock)); in file_lock() 136 struct flock flocks; in record_lock() 138 memset(&flocks, 0, sizeof(struct flock)); in record_lock()
|
/external/strace/ |
D | flock.h | 34 typedef struct flock struct_kernel_flock; 38 # error struct flock definition not found in <linux/fcntl.h>
|
/external/ppp/pppd/plugins/radius/ |
D | lock.c | 18 struct flock fl; in do_lock_exclusive() 37 struct flock fl; in do_unlock()
|
/external/ltp/testcases/network/nfs/nfslock01/ |
D | nfs_flock_func.c | 8 struct flock lock; in lock_reg() 20 struct flock lock; in lock_test()
|
/external/ltp/testcases/network/nfsv4/locks/ |
D | locktests.c | 161 struct flock request; in validationResultats() 284 void lockWholeFile(struct flock *request) in lockWholeFile() 403 void serialiseFLock(struct flock *request) in serialiseFLock() 427 void unSerialiseFLock(struct flock *request) in unSerialiseFLock() 437 int serverSendLockClient(struct flock *request, int client) in serverSendLockClient() 443 int serverSendLockLocal(struct flock *request, int esclave) in serverSendLockLocal() 449 int getLockSection(struct flock *request) in getLockSection() 523 struct flock lock; in maitreClient() 625 struct flock request; in maitre() 820 struct flock request; in esclave()
|
/external/autotest/client/bin/ |
D | autotestd | 40 fcntl.flock(exit_file, fcntl.LOCK_EX) 49 fcntl.flock(exit_file, fcntl.LOCK_UN)
|
D | autotestd_monitor | 46 fcntl.flock(exit_code_file, fcntl.LOCK_EX) 55 fcntl.flock(exit_code_file, fcntl.LOCK_UN)
|
/external/clang/test/Sema/ |
D | warn-type-safety.c | 125 struct flock { }; struct 128 static const int F_SETLK_tag __attribute__(( type_tag_for_datatype(fcntl,struct flock *) )) = F_SET… 132 void test_argument_with_type_tag(struct flock *f) in test_argument_with_type_tag()
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | lock.py | 107 fcntl.flock(target_file.fileno(), flags) 117 fcntl.flock(target_file.fileno(), fcntl.LOCK_UN)
|
/external/libmojo/third_party/catapult/devil/devil/android/ |
D | ports.py | 56 fcntl.flock(fp_lock, fcntl.LOCK_EX) 76 fcntl.flock(fp_lock, fcntl.LOCK_UN)
|