Home
last modified time | relevance | path

Searched refs:l_type (Results 1 – 25 of 68) sorted by relevance

123

/external/python/cpython2/Lib/
Dposixfile.py156 if 'w' in how: l_type = fcntl.F_WRLCK
157 elif 'r' in how: l_type = fcntl.F_RDLCK
158 elif 'u' in how: l_type = fcntl.F_UNLCK
187 l_start, l_len, os.getpid(), l_type, l_whence)
190 l_type, l_whence, l_start, l_len, 0, 0, 0)
193 l_type, l_whence, l_start, l_len, 0, 0)
202 l_start, l_len, l_pid, l_type, l_whence = \
205 l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
208 l_type, l_whence, l_start, l_len, l_pid, l_sysid = \
211 l_type, l_whence, l_start, l_len, l_sysid, l_pid = \
[all …]
/external/ltp/testcases/kernel/fs/doio/
Dfile_lock.c78 flocks.l_type = F_UNLCK; in file_lock()
80 flocks.l_type = F_WRLCK; in file_lock()
82 flocks.l_type = F_RDLCK; in file_lock()
95 fd, cmd, flocks.l_type, flocks.l_whence, in file_lock()
150 flocks.l_type = F_UNLCK; in record_lock()
152 flocks.l_type = F_WRLCK; in record_lock()
154 flocks.l_type = F_RDLCK; in record_lock()
167 fd, cmd, flocks.l_type, flocks.l_whence, in record_lock()
/external/python/cpython2/Modules/_ctypes/libffi/testsuite/libffi.call/
Dva_struct3.c60 ffi_type l_type; in main() local
79 l_type.size = 0; in main()
80 l_type.alignment = 0; in main()
81 l_type.type = FFI_TYPE_STRUCT; in main()
82 l_type.elements = l_type_elements; in main()
93 arg_types[2] = &l_type; in main()
97 CHECK(ffi_prep_cif_var(&cif, FFI_DEFAULT_ABI, 1, 4, &l_type, arg_types) == FFI_OK); in main()
Dcls_struct_va1.c54 ffi_type l_type; in main() local
72 l_type.size = 0; in main()
73 l_type.alignment = 0; in main()
74 l_type.type = FFI_TYPE_STRUCT; in main()
75 l_type.elements = l_type_elements; in main()
86 arg_types[2] = &l_type; in main()
Dva_struct1.c56 ffi_type l_type; in main() local
75 l_type.size = 0; in main()
76 l_type.alignment = 0; in main()
77 l_type.type = FFI_TYPE_STRUCT; in main()
78 l_type.elements = l_type_elements; in main()
89 arg_types[2] = &l_type; in main()
Dva_struct2.c58 ffi_type l_type; in main() local
77 l_type.size = 0; in main()
78 l_type.alignment = 0; in main()
79 l_type.type = FFI_TYPE_STRUCT; in main()
80 l_type.elements = l_type_elements; in main()
91 arg_types[2] = &l_type; in main()
Dva_1.c89 ffi_type l_type; in main() local
119 l_type.size = 0; in main()
120 l_type.alignment = 0; in main()
121 l_type.type = FFI_TYPE_STRUCT; in main()
122 l_type.elements = l_type_elements; in main()
133 arg_types[2] = &l_type; in main()
/external/libffi/testsuite/libffi.call/
Dva_struct3.c60 ffi_type l_type; in main() local
79 l_type.size = 0; in main()
80 l_type.alignment = 0; in main()
81 l_type.type = FFI_TYPE_STRUCT; in main()
82 l_type.elements = l_type_elements; in main()
93 arg_types[2] = &l_type; in main()
97 CHECK(ffi_prep_cif_var(&cif, FFI_DEFAULT_ABI, 1, 4, &l_type, arg_types) == FFI_OK); in main()
Dva_struct2.c58 ffi_type l_type; in main() local
77 l_type.size = 0; in main()
78 l_type.alignment = 0; in main()
79 l_type.type = FFI_TYPE_STRUCT; in main()
80 l_type.elements = l_type_elements; in main()
91 arg_types[2] = &l_type; in main()
Dcls_struct_va1.c54 ffi_type l_type; in main() local
72 l_type.size = 0; in main()
73 l_type.alignment = 0; in main()
74 l_type.type = FFI_TYPE_STRUCT; in main()
75 l_type.elements = l_type_elements; in main()
86 arg_types[2] = &l_type; in main()
Dva_struct1.c56 ffi_type l_type; in main() local
75 l_type.size = 0; in main()
76 l_type.alignment = 0; in main()
77 l_type.type = FFI_TYPE_STRUCT; in main()
78 l_type.elements = l_type_elements; in main()
89 arg_types[2] = &l_type; in main()
Dva_1.c89 ffi_type l_type; in main() local
119 l_type.size = 0; in main()
120 l_type.alignment = 0; in main()
121 l_type.type = FFI_TYPE_STRUCT; in main()
122 l_type.elements = l_type_elements; in main()
133 arg_types[2] = &l_type; in main()
/external/strace/
Dfetch_struct_flock.c49 && FLOCK_MEMBERS_EQ(type, l_type) \
67 pfl->l_type = mfl.l_type; in MPERS_PRINTER_DECL()
87 pfl->l_type = mfl.l_type; in MPERS_PRINTER_DECL()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c102 lck.l_type = F_WRLCK; in fn_ofd_w()
108 lck.l_type = F_UNLCK; in fn_ofd_w()
141 lck.l_type = F_WRLCK; in fn_posix_w()
147 lck.l_type = F_UNLCK; in fn_posix_w()
181 lck.l_type = F_RDLCK; in fn_ofd_r()
212 lck.l_type = F_UNLCK; in fn_ofd_r()
241 lck.l_type = F_RDLCK; in fn_posix_r()
272 lck.l_type = F_UNLCK; in fn_posix_r()
Dfcntl15.c115 flock.l_type = F_WRLCK; in dochild1()
252 flock.l_type = F_WRLCK; in dochild2()
265 flock.l_type = F_WRLCK; in dochild2()
316 flock.l_type = F_WRLCK; in dochild2()
329 flock.l_type = F_WRLCK; in dochild2()
416 flock.l_type = F_WRLCK; in run_test()
430 flock.l_type = F_WRLCK; in run_test()
Dfcntl14.c614 flock.l_type = thiscase->c_type; in dochild()
634 if (flock.l_type != F_UNLCK) { in dochild()
638 flock.l_type, F_UNLCK); in dochild()
684 if (flock.l_type != thiscase->a_type) { in dochild()
688 test + 1, flock.l_type, in dochild()
700 flock.l_type = thiscase->c_type; in dochild()
792 flock.l_type = thiscase->a_type; in run_test()
806 flock.l_type = thiscase->b_type; in run_test()
867 flock.l_type = F_UNLCK; in run_test()
1024 flock.l_type = F_WRLCK; in main()
[all …]
Dfcntl20.c145 fl.l_type = type; in do_lock()
154 fl->l_type = type; in do_test()
168 if (fl->l_type != type) { in compare_lock()
170 str_type(type), str_type(fl->l_type)); in compare_lock()
258 } else if (l->l_type == (short)STOP) { in child_get()
268 fl.l_type = STOP; in stop_child()
Dfcntl19.c146 fl.l_type = type; in do_lock()
155 fl->l_type = type; in do_test()
169 if (fl->l_type != type) { in compare_lock()
171 str_type(type), str_type(fl->l_type)); in compare_lock()
259 } else if (l->l_type == (short)STOP) { in child_get()
269 fl.l_type = STOP; in stop_child()
Dfcntl11.c132 fl.l_type = type; in do_lock()
141 fl->l_type = type; in do_test()
155 if (fl->l_type != type) in compare_lock()
157 str_type(type), str_type(fl->l_type)); in compare_lock()
222 if (l->l_type == (short)STOP) in child_get()
231 fl.l_type = STOP; in stop_child()
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock_func.c10 lock.l_type = type; in lock_reg()
22 lock.l_type = type; in lock_test()
32 if (lock.l_type == F_UNLCK) in lock_test()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D11-1.c31 .l_type = F_WRLCK, in child()
43 if (fl.l_type == F_UNLCK) { in child()
69 .l_type = F_WRLCK, in main()
/external/python/cpython3/Modules/
Dfcntlmodule.c308 l.l_type = F_UNLCK; in fcntl_flock_impl()
310 l.l_type = F_RDLCK; in fcntl_flock_impl()
312 l.l_type = F_WRLCK; in fcntl_flock_impl()
384 l.l_type = F_UNLCK; in fcntl_lockf_impl()
386 l.l_type = F_RDLCK; in fcntl_lockf_impl()
388 l.l_type = F_WRLCK; in fcntl_lockf_impl()
/external/python/cpython2/Modules/
Dfcntlmodule.c276 l.l_type = F_UNLCK; in fcntl_flock()
278 l.l_type = F_RDLCK; in fcntl_flock()
280 l.l_type = F_WRLCK; in fcntl_flock()
334 l.l_type = F_UNLCK; in fcntl_lockf()
336 l.l_type = F_RDLCK; in fcntl_lockf()
338 l.l_type = F_WRLCK; in fcntl_lockf()
/external/ltp/testcases/network/nfsv4/locks/
Dlocktests.c162 request.l_type = F_WRLCK; in validationResults()
168 if (request.l_type != F_UNLCK) in validationResults()
392 request->l_type, request->l_whence, start, len, pid); in serializeFLock()
411 &(request->l_type), &(request->l_whence), &start, &len, &pid); in unSerializeFLock()
621 request.l_type = F_RDLCK; in master()
627 request.l_type = F_WRLCK; in master()
647 request.l_type = F_RDLCK; in master()
653 request.l_type = F_WRLCK; in master()
834 request.l_type = F_RDLCK; in slave()
860 request.l_type = F_WRLCK; in slave()
/external/ppp/pppd/plugins/radius/
Dlock.c23 fl.l_type = F_WRLCK; in do_lock_exclusive()
41 fl.l_type = F_UNLCK; in do_unlock()

123