/third_party/boost/libs/contract/test/destructor/ |
D | smoke.cpp | 35 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/ |
D | file_lock.c | 78 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/ |
D | smoke.cpp | 42 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/ |
D | va_struct3.c | 60 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()
|
D | va_struct1.c | 56 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()
|
D | va_struct2.c | 58 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()
|
D | va_1.c | 89 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/ |
D | cls_struct_va1.c | 54 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/ |
D | lockf.c | 8 .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/ |
D | lockf.c | 9 .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/ |
D | nfs_flock_func.c | 10 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/ |
D | fcntl36.c | 87 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()
|
D | fcntl15.c | 115 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()
|
D | fcntl14.c | 614 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 …]
|
D | fcntl19.c | 146 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()
|
D | fcntl20.c | 145 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()
|
D | fcntl11.c | 132 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()
|
D | fcntl21.c | 153 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()
|
D | fcntl10.c | 154 flocks.l_type = type ? F_RDLCK : F_WRLCK; in main() 174 flocks.l_type = F_UNLCK; in main()
|
D | fcntl09.c | 154 flocks.l_type = type ? F_RDLCK : F_WRLCK; in main() 176 flocks.l_type = F_UNLCK; in main()
|
D | fcntl17.c | 289 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/ |
D | fcntl.c | 23 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/ |
D | 11-1.c | 31 .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/ |
D | locktests.c | 162 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/ |
D | fcntlmodule.c | 321 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()
|