Searched refs:lk (Results 1 - 25 of 50) sorted by relevance

12

/netbsd-current/tests/kernel/
H A Dt_lock.c43 __cpu_simple_lock_t lk; variable
50 __cpu_simple_unlock(&lk);
64 __cpu_simple_lock_init(&lk);
74 __cpu_simple_lock(&lk);
75 __cpu_simple_lock(&lk);
79 __cpu_simple_unlock(&lk);
/netbsd-current/tests/lib/libpthread/
H A Dt_rwlock.c69 pthread_rwlock_t lk; variable
93 PTHREAD_REQUIRE(pthread_rwlock_init(&lk, NULL));
94 PTHREAD_REQUIRE(pthread_rwlock_rdlock(&lk));
95 PTHREAD_REQUIRE(pthread_rwlock_rdlock(&lk));
96 PTHREAD_REQUIRE(pthread_rwlock_unlock(&lk));
98 ATF_REQUIRE_EQ(pthread_rwlock_trywrlock(&lk), EBUSY);
103 error = pthread_rwlock_timedwrlock(&lk, &to);
107 PTHREAD_REQUIRE(pthread_rwlock_unlock(&lk));
112 PTHREAD_REQUIRE(pthread_rwlock_timedwrlock(&lk, &to));
117 error = pthread_rwlock_timedwrlock(&lk,
[all...]
/netbsd-current/external/apache2/llvm/dist/libcxx/src/
H A Dcondition_variable.cpp39 condition_variable::wait(unique_lock<mutex>& lk) noexcept
41 if (!lk.owns_lock())
44 int ec = __libcpp_condvar_wait(&__cv_, lk.mutex()->native_handle());
50 condition_variable::__do_timed_wait(unique_lock<mutex>& lk,
54 if (!lk.owns_lock())
74 int ec = __libcpp_condvar_timedwait(&__cv_, lk.mutex()->native_handle(), &ts);
80 notify_all_at_thread_exit(condition_variable& cond, unique_lock<mutex> lk) argument
88 __thread_local_data()->notify_all_at_thread_exit(&cond, lk.release());
H A Dshared_mutex.cpp30 unique_lock<mutex> lk(__mut_);
32 __gate1_.wait(lk);
35 __gate2_.wait(lk);
41 unique_lock<mutex> lk(__mut_);
63 unique_lock<mutex> lk(__mut_);
65 __gate1_.wait(lk);
74 unique_lock<mutex> lk(__mut_);
H A Dmutex.cpp105 unique_lock<mutex> lk(__m_);
107 __cv_.wait(lk);
114 unique_lock<mutex> lk(__m_, try_to_lock);
115 if (lk.owns_lock() && !__locked_)
148 unique_lock<mutex> lk(__m_);
157 __cv_.wait(lk);
166 unique_lock<mutex> lk(__m_, try_to_lock);
167 if (lk.owns_lock() && (__count_ == 0 || id == __id_))
181 unique_lock<mutex> lk(__m_);
185 lk
[all...]
/netbsd-current/external/cddl/osnet/dist/cmd/zlook/
H A Dzlook.c201 zut_lookup_t lk = {0}; local
219 lk.zl_reqflags |= ZUT_IGNORECASE;
223 lk.zl_reqflags |= ZUT_GETSTAT;
366 (void) strlcpy(lk.zl_dir, argv[optind], MAXPATHLEN);
367 (void) strlcpy(lk.zl_file, argv[optind + 1], MAXNAMELEN);
369 (void) strlcpy(lk.zl_xfile,
371 lk.zl_reqflags |= ZUT_XATTR;
374 if ((ierr = ioctl(fd, ZUT_IOC_LOOKUP, &lk)) != 0) {
383 if (lk.zl_reqflags & ZUT_XATTR) {
385 lk
[all...]
/netbsd-current/external/mit/xorg/lib/xkeyboard-config/geometry/digital_vndr/
H A DMakefile6 FILES= lk pc unix
/netbsd-current/external/mit/xorg/lib/xkeyboard-config/keycodes/digital_vndr/
H A DMakefile6 FILES= lk pc
/netbsd-current/external/mit/xorg/lib/xkeyboard-config/symbols/digital_vndr/
H A DMakefile6 FILES= lk pc us vt
/netbsd-current/external/gpl3/gdb/dist/libctf/testsuite/libctf-lookup/
H A Dlookup.exp36 set ctf_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.lk]]
/netbsd-current/external/gpl3/gdb/dist/libctf/testsuite/libctf-regression/
H A Dregression.exp36 set ctf_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.lk]]
/netbsd-current/external/gpl3/gdb/dist/libctf/testsuite/libctf-writable/
H A Dwritable.exp26 set ctf_test_list [lsort [glob -nocomplain $srcdir/$subdir/*.lk]]
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/tic54x/
H A Dopcodes.s18 add #-32768, a ; #lk [,SHFT], src [,dst] (-32768<=lk<=32767)
20 add #0,16,a,b ; #lk, 16, src, [,dst]
29 and #1,1,a,b ; #lk[,SHFT],src[,dst]
31 and #1,#16,a,b ; #lk,16,src[,dst]
107 ld #32767,1,a ; #lk,[,SHFT],dst
109 ld #32767,16,a ; #lk,16,dst
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/engine/
H A Dtb_asnmth.c167 ENGINE_FIND_STR *lk = arg; local
169 if (lk->ameth)
176 && ((int)strlen(ameth->pem_str) == lk->len)
177 && strncasecmp(ameth->pem_str, lk->str, lk->len) == 0) {
178 lk->e = e;
179 lk->ameth = ameth;
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/engine/
H A Dtb_asnmth.c170 ENGINE_FIND_STR *lk = arg; local
172 if (lk->ameth)
179 && ((int)strlen(ameth->pem_str) == lk->len)
180 && OPENSSL_strncasecmp(ameth->pem_str, lk->str, lk->len) == 0) {
181 lk->e = e;
182 lk->ameth = ameth;
/netbsd-current/external/bsd/am-utils/dist/conf/mtab/
H A Dmtab_isc3.c67 struct flock lk; local
69 lk.l_type = type;
70 lk.l_whence = 0;
71 lk.l_start = 0;
72 lk.l_len = 0;
74 return fcntl(fd, F_SETLKW, &lk);
H A Dmtab_svr4.c84 struct flock lk; local
87 lk.l_type = type;
88 lk.l_whence = 0;
89 lk.l_start = 0;
90 lk.l_len = 0;
96 ret = fcntl(fd, F_SETLKW, &lk);
H A Dmtab_file.c74 struct flock lk; local
76 lk.l_type = F_WRLCK;
77 lk.l_whence = 0;
78 lk.l_start = 0;
79 lk.l_len = 0;
82 rc = fcntl(fd, F_SETLKW, (caddr_t) & lk);
H A Dmtab_mach3.c70 struct flock lk; local
72 lk.l_type = F_WRLCK;
73 lk.l_whence = 0;
74 lk.l_start = 0;
75 lk.l_len = 0;
78 rc = fcntl(fd, F_SETLKW, (caddr_t) & lk);
/netbsd-current/external/lgpl3/gmp/dist/mpz/
H A Dbin_ui.c133 rek_raising_fac4 (mpz_ptr r, mpz_ptr p, mpz_ptr P, unsigned long int k, unsigned long int lk, mpz_ptr t) argument
135 if (k - lk < 5)
142 } while (--k > lk);
149 m = ((k + lk) >> 1) + 1;
165 rek_raising_fac4 (t, p, P, m - 1, lk, NULL);
249 rek_raising_fac (mpz_ptr r, mpz_ptr n, unsigned long int k, unsigned long int lk, mpz_ptr t1, mpz_ptr t2) argument
252 if (k - lk < 10)
258 } while (k > lk);
265 m = ((k + lk) >> 1) + 1;
279 rek_raising_fac (t1, n, m - 1, lk, t
[all...]
/netbsd-current/lib/librumpuser/
H A Drumpuser_pth_dummy.c164 enum rumprwlock lk = enum_rumprwlock; local
166 switch (lk) {
208 enum rumprwlock lk = enum_rumprwlock; local
210 switch (lk) {
H A Drumpuser_pth.c376 enum rumprwlock lk = enum_rumprwlock; local
378 switch (lk) {
398 enum rumprwlock lk = enum_rumprwlock; local
401 switch (lk) {
480 enum rumprwlock lk = enum_rumprwlock; local
482 switch (lk) {
/netbsd-current/external/lgpl3/mpfr/dist/src/
H A Dpow.c292 long lk; local
306 lk = mpfr_get_si (k, MPFR_RNDN);
309 * an overflow should not be possible in mpfr_get_si (and lk is exact).
312 MPFR_ASSERTD (lk > LONG_MIN && lk < LONG_MAX);
313 /* Note: even in case of overflow (lk inexact), the code is correct.
314 * Indeed, for the 3 occurrences of lk:
315 * - The test lk < 0 is correct as sign(lk) = sign(k).
316 * - In the test MPFR_GET_EXP (z) == __gmpfr_emin - 1 - lk,
[all...]
/netbsd-current/external/mit/xorg/lib/xkeyboard-config/symbols/
H A DMakefile18 la latam latin level3 level5 lk lt lv \
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector1.cc109 SpinMutexLock lk(&mtx);
164 SpinMutexLock lk(&mtx);
181 SpinMutexLock lk(&mtx);

Completed in 226 milliseconds

12