Home
last modified time | relevance | path

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

123

/third_party/boost/libs/contract/test/destructor/
Dsmoke.cpp35 typedef boost::contract::test::detail::counter<l_tag, int> l_type; typedef
36 static l_type l;
41 boost::contract::old_ptr<l_type> old_l; in ~t()
45 old_l = BOOST_CONTRACT_OLDOF(l_type::eval(l)); in ~t()
59 template<char Id> typename t<Id>::l_type t<Id>::l;
287 BOOST_TEST_EQ(t<'d'>::l_type::copies(), BOOST_CONTRACT_TEST_old); in main()
288 BOOST_TEST_EQ(t<'d'>::l_type::evals(), BOOST_CONTRACT_TEST_old); in main()
289 BOOST_TEST_EQ(t<'d'>::l_type::copies(), t<'d'>::l_type::dtors()); // No leak in main()
291 BOOST_TEST_EQ(t<'p'>::l_type::copies(), BOOST_CONTRACT_TEST_old); in main()
292 BOOST_TEST_EQ(t<'p'>::l_type::evals(), BOOST_CONTRACT_TEST_old); in main()
[all …]
/third_party/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()
/third_party/boost/libs/contract/test/constructor/
Dsmoke.cpp42 typedef boost::contract::test::detail::counter<l_tag, int> l_type; typedef
43 static l_type l;
55 boost::contract::old_ptr<l_type> old_l =
56 BOOST_CONTRACT_OLDOF(l_type::eval(l));
79 template<char Id> typename t<Id>::l_type t<Id>::l;
391 BOOST_TEST_EQ(t<'d'>::l_type::copies(), BOOST_CONTRACT_TEST_old); in main()
392 BOOST_TEST_EQ(t<'d'>::l_type::evals(), BOOST_CONTRACT_TEST_old); in main()
393 BOOST_TEST_EQ(t<'e'>::l_type::copies(), t<'e'>::l_type::dtors()); // No leak in main()
395 BOOST_TEST_EQ(t<'p'>::l_type::copies(), BOOST_CONTRACT_TEST_old); in main()
396 BOOST_TEST_EQ(t<'p'>::l_type::evals(), BOOST_CONTRACT_TEST_old); in main()
[all …]
/third_party/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_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()
/third_party/libffi/testsuite/libffi.closures/
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()
/third_party/musl/src/misc/
Dlockf.c8 .l_type = F_WRLCK, in lockf()
14 l.l_type = F_RDLCK; in lockf()
17 if (l.l_type == F_UNLCK || l.l_pid == getpid()) in lockf()
22 l.l_type = F_UNLCK; in lockf()
/third_party/musl/porting/liteos_a/user/src/misc/
Dlockf.c9 .l_type = F_WRLCK, in lockf()
16 l.l_type = F_RDLCK; in lockf()
19 if (l.l_type == F_UNLCK || l.l_pid == getpid()) in lockf()
24 l.l_type = F_UNLCK; in lockf()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c87 lck.l_type = F_WRLCK; in fn_ofd_w()
93 lck.l_type = F_UNLCK; in fn_ofd_w()
126 lck.l_type = F_WRLCK; in fn_posix_w()
132 lck.l_type = F_UNLCK; in fn_posix_w()
166 lck.l_type = F_RDLCK; in fn_ofd_r()
197 lck.l_type = F_UNLCK; in fn_ofd_r()
226 lck.l_type = F_RDLCK; in fn_posix_r()
257 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 …]
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()
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()
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()
Dfcntl21.c153 fl.l_type = type; in do_lock()
162 fl->l_type = type; in do_test()
176 if (fl->l_type != type) { in compare_lock()
178 str_type(type), str_type(fl->l_type)); in compare_lock()
266 } else if (l->l_type == (short)STOP) { in child_get()
276 fl.l_type = STOP; in stop_child()
Dfcntl10.c154 flocks.l_type = type ? F_RDLCK : F_WRLCK; in main()
174 flocks.l_type = F_UNLCK; in main()
Dfcntl09.c154 flocks.l_type = type ? F_RDLCK : F_WRLCK; in main()
176 flocks.l_type = F_UNLCK; in main()
Dfcntl17.c289 fl.l_type = /* lock->l_type */ F_RDLCK; in do_test()
299 if (fl.l_type != lock->l_type) { in do_test()
301 str_type(lock->l_type), str_type(fl.l_type)); in do_test()
/third_party/musl/libc-test/src/functional/
Dfcntl.c23 fl.l_type = F_WRLCK; in main()
31 fl.l_type = F_RDLCK; in main()
40 fl.l_type = F_WRLCK; in main()
/third_party/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()
/third_party/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()
/third_party/python/Modules/
Dfcntlmodule.c321 l.l_type = F_UNLCK; in fcntl_flock_impl()
323 l.l_type = F_RDLCK; in fcntl_flock_impl()
325 l.l_type = F_WRLCK; in fcntl_flock_impl()
402 l.l_type = F_UNLCK; in fcntl_lockf_impl()
404 l.l_type = F_RDLCK; in fcntl_lockf_impl()
406 l.l_type = F_WRLCK; in fcntl_lockf_impl()

123