/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl_common.h | 41 int fd, int cmd, struct flock *lck) in fcntl_compat() argument 44 .l_type = lck->l_type, in fcntl_compat() 45 .l_whence = lck->l_whence, in fcntl_compat() 46 .l_start = lck->l_start, in fcntl_compat() 47 .l_len = lck->l_len, in fcntl_compat() 48 .l_pid = lck->l_pid, in fcntl_compat() 53 lck->l_type = l64.l_type; in fcntl_compat() 54 lck->l_whence = l64.l_whence; in fcntl_compat() 55 lck->l_start = l64.l_start; in fcntl_compat() 56 lck->l_len = l64.l_len; in fcntl_compat() [all …]
|
D | fcntl36.c | 75 struct flock lck = { in fn_ofd_w() local 86 lck.l_type = F_WRLCK; in fn_ofd_w() 87 FCNTL_COMPAT(fd, F_OFD_SETLKW, &lck); in fn_ofd_w() 92 lck.l_type = F_UNLCK; in fn_ofd_w() 93 FCNTL_COMPAT(fd, F_OFD_SETLKW, &lck); in fn_ofd_w() 115 struct flock lck = { in fn_posix_w() local 125 lck.l_type = F_WRLCK; in fn_posix_w() 126 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w() 131 lck.l_type = F_UNLCK; in fn_posix_w() 132 SAFE_FCNTL(fd, F_SETLKW, &lck); in fn_posix_w() [all …]
|
D | fcntl34.c | 55 struct flock lck = { in thread_fn_01() local 62 lck.l_type = F_WRLCK; in thread_fn_01() 63 FCNTL_COMPAT(fd, F_OFD_SETLKW, &lck); in thread_fn_01() 68 lck.l_type = F_UNLCK; in thread_fn_01() 69 FCNTL_COMPAT(fd, F_OFD_SETLKW, &lck); in thread_fn_01()
|
/third_party/alsa-utils/alsactl/ |
D | lock.c | 36 struct flock lck; in state_lock_() local 44 lck.l_type = lock ? F_WRLCK : F_UNLCK; in state_lock_() 45 lck.l_whence = SEEK_SET; in state_lock_() 46 lck.l_start = 0; in state_lock_() 47 lck.l_len = 11; in state_lock_() 48 lck.l_pid = 0; in state_lock_() 97 if (fcntl(fd, F_SETLK, &lck) < 0) { in state_lock_()
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
D | tasn_utl.c | 71 CRYPTO_REF_COUNT *lck; in ossl_asn1_do_lock() local 81 lck = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock() 86 *lck = ret = 1; in ossl_asn1_do_lock() 94 if (!CRYPTO_UP_REF(lck, &ret, *lock)) in ossl_asn1_do_lock() 98 if (!CRYPTO_DOWN_REF(lck, &ret, *lock)) in ossl_asn1_do_lock()
|
/third_party/openssl/crypto/asn1/ |
D | tasn_utl.c | 71 CRYPTO_REF_COUNT *lck; in ossl_asn1_do_lock() local 81 lck = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock() 86 *lck = ret = 1; in ossl_asn1_do_lock() 94 if (!CRYPTO_UP_REF(lck, &ret, *lock)) in ossl_asn1_do_lock() 98 if (!CRYPTO_DOWN_REF(lck, &ret, *lock)) in ossl_asn1_do_lock()
|
/third_party/astc-encoder/Source/ |
D | astcenc_internal.h | 267 std::lock_guard<std::mutex> lck(m_lock); in init() 285 std::lock_guard<std::mutex> lck(m_lock); in init() 328 std::unique_lock<std::mutex> lck(m_lock); in complete_task_assignment() 332 lck.unlock(); in complete_task_assignment() 342 std::unique_lock<std::mutex> lck(m_lock); in wait() 343 m_complete.wait(lck, [this]{ return m_done_count == m_task_count; }); in wait() 357 std::lock_guard<std::mutex> lck(m_lock); in term()
|
/third_party/openssl/ssl/ |
D | ssl_sess.c | 25 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck); 813 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck) in remove_session_lock() argument 819 if (lck) { in remove_session_lock() 830 if (lck) in remove_session_lock()
|
/third_party/node/deps/openssl/openssl/ssl/ |
D | ssl_sess.c | 25 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck); 794 static int remove_session_lock(SSL_CTX *ctx, SSL_SESSION *c, int lck) in remove_session_lock() argument 800 if (lck) { in remove_session_lock() 811 if (lck) in remove_session_lock()
|