Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 25 of 178) sorted by relevance

12345678

/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl15.c74 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 …]
Dfcntl14.c533 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 …]
Dfcntl13.c52 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()
Dfcntl19.c68 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 …]
Dfcntl20.c64 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 …]
Dfcntl11.c64 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 …]
Dfcntl21.c63 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 …]
Dfcntl17.c74 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()
Dfcntl16.c68 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;
Dfcntl18.c65 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/
Dflock05.c106 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()
Dflock06.c99 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()
Dflock04.c101 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()
Dflock03.c97 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()
Dflock02.c102 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/
Dfile_lock.c64 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/
Dflock.h34 typedef struct flock struct_kernel_flock;
38 # error struct flock definition not found in <linux/fcntl.h>
/external/ppp/pppd/plugins/radius/
Dlock.c18 struct flock fl; in do_lock_exclusive()
37 struct flock fl; in do_unlock()
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock_func.c8 struct flock lock; in lock_reg()
20 struct flock lock; in lock_test()
/external/ltp/testcases/network/nfsv4/locks/
Dlocktests.c161 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/
Dautotestd40 fcntl.flock(exit_file, fcntl.LOCK_EX)
49 fcntl.flock(exit_file, fcntl.LOCK_UN)
Dautotestd_monitor46 fcntl.flock(exit_code_file, fcntl.LOCK_EX)
55 fcntl.flock(exit_code_file, fcntl.LOCK_UN)
/external/clang/test/Sema/
Dwarn-type-safety.c125 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/
Dlock.py107 fcntl.flock(target_file.fileno(), flags)
117 fcntl.flock(target_file.fileno(), fcntl.LOCK_UN)
/external/libmojo/third_party/catapult/devil/devil/android/
Dports.py56 fcntl.flock(fp_lock, fcntl.LOCK_EX)
76 fcntl.flock(fp_lock, fcntl.LOCK_UN)

12345678