Home
last modified time | relevance | path

Searched refs:sem_wait (Results 1 – 25 of 60) sorted by relevance

123

/freebsd/tools/test/stress2/misc/
H A Dsem_wait.sh36 cat > /tmp/sem_wait.c <<EOF
60 if (sem_wait(semaphore) == -1)
93 if (sem_wait(semaphore) == -1)
105 mycc -o /tmp/sem_wait -Wall -Wextra -O2 /tmp/sem_wait.c || exit 1
106 timeout 6m /tmp/sem_wait; s=$?
108 rm -f /tmp/sem_wait /tmp/sem_wait.c
H A Dsem_post.sh50 if (sem_wait(&semaphore) == -1)
81 if (sem_wait(&semaphore) == -1)
/freebsd/contrib/netbsd-tests/lib/semaphore/
H A Dsem.c46 sem_wait(&sem); in ATF_TC_BODY()
47 sem_wait(&sem); in ATF_TC_BODY()
115 sem_wait(&semmarit[1]); in hthread()
116 sem_wait(&semmarit[0]); in hthread()
145 sem_wait(&semmarit[2]); in ATF_TC_BODY()
194 sem_wait(&semmarit[2]); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dt_sem.c150 sem_wait(semp); in entry()
175 SEM_REQUIRE(sem_wait(&sem_b)); in ATF_TC_BODY()
181 SEM_REQUIRE(sem_wait(&sem_b)); in ATF_TC_BODY()
239 ret = sem_wait(&sem); in threadfunc()
/freebsd/tests/sys/fs/fusefs/
H A Dinterrupt.cc74 sem_wait(blocked_semaphore); in killer()
334 sem_wait(&sem1); in TEST_F()
350 sem_wait(&sem0); in TEST_F()
431 sem_wait(&sem0); in TEST_F()
446 sem_wait(&sem1); /* Sequence the two operations */ in TEST_F()
507 sem_wait(&sem0); in TEST_F()
521 sem_wait(&sem1); /* Sequence the two operations */ in TEST_F()
646 sem_wait(signaled_semaphore); in TEST_F()
697 sem_wait(&sem0); in TEST_F()
734 sem_wait(&sem1); /* Sequence the two mkdirs */ in TEST_F()
H A Drmdir.cc111 sem_wait(&sem); in TEST_F()
142 sem_wait(&sem); in TEST_F()
160 sem_wait(&sem); in TEST_F()
H A Dlast_local_modify.cc113 sem_wait(sem); in allocate_th()
136 sem_wait(sem); in copy_file_range_th()
155 sem_wait(sem); in setattr_th()
176 sem_wait(sem); in write_th()
333 sem_wait(&sem); in TEST_P()
H A Ddev_fuse_poll.cc162 sem_wait(&sem1); in TEST_F()
207 EXPECT_EQ(0, sem_wait(&sem0)) << strerror(errno); in TEST_F()
H A Ddestroy.cc119 sem_wait(&sem); in TEST_F()
H A Dopendir.cc98 sem_wait(&sem); in TEST_F()
H A Dforget.cc90 sem_wait(&sem); in TEST_F()
/freebsd/contrib/ofed/librdmacm/examples/
H A Drping.c362 sem_wait(&cb->sem); in rping_accept()
638 sem_wait(&cb->sem); in rping_test_server()
662 sem_wait(&cb->sem); in rping_test_server()
684 sem_wait(&cb->sem); in rping_test_server()
710 ret = sem_wait(&cb->sem); in rping_test_server()
855 sem_wait(&listening_cb->sem); in rping_run_persistent_server()
884 sem_wait(&cb->sem); in rping_run_server()
971 sem_wait(&cb->sem); in rping_test_client()
987 sem_wait(&cb->sem); in rping_test_client()
1025 sem_wait(&cb->sem); in rping_connect_client()
[all …]
/freebsd/contrib/netbsd-tests/fs/nfs/nfsservice/
H A Drumpnfsd.c148 sem_wait(&gensem); in main()
152 sem_wait(&gensem); in main()
/freebsd/tools/regression/posixsem2/
H A Dsemtest.c35 if (sem_wait(s)) in test_unnamed()
75 if (sem_wait(s)) in test_named()
/freebsd/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c128 ATF_REQUIRE_EQ(sem_wait(sem_b), 0); in ATF_TC_BODY()
134 ATF_REQUIRE_EQ(sem_wait(sem_b), 0); in ATF_TC_BODY()
175 ATF_REQUIRE_MSG(sem_wait(sem_a) == 0, in ATF_TC_BODY()
/freebsd/tools/regression/pthread/unwind/
H A Dsem_wait_cancel.cpp17 sem_wait(&sem); in thr()
/freebsd/include/
H A Dsemaphore.h68 int sem_wait(sem_t *);
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dbarrier.c72 sem_wait(&bar->bar_sem); in barrier_wait()
/freebsd/contrib/ofed/librdmacm/
H A Dcma.h69 sem_wait(&lock->sem); in fastlock_acquire()
/freebsd/contrib/netbsd-tests/fs/ffs/
H A Dh_ffs_server.c108 sem_wait(&sigsem); in main()
/freebsd/lib/libthr/thread/
H A Dthr_sem.c50 FB10_COMPAT(_sem_wait_compat, sem_wait);
/freebsd/tests/sys/aio/
H A Dlio_test.c186 ATF_REQUIRE_EQ(0, sem_wait(&completions)); in ATF_TC_BODY()
207 ATF_REQUIRE_EQ(0, sem_wait(&completions)); in ATF_TC_BODY()
/freebsd/tests/sys/kern/
H A Dkcov.c184 sem_wait(&sem2); in kcov_mmap_enable_thread()
204 sem_wait(&sem1); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/fs/common/
H A Dfstest_lfs.c173 sem_wait(&args->ta_cleanerloop); in lfs_fstest_mount()
/freebsd/usr.bin/sort/
H A Dfile.c133 sem_wait(&tmp_files_sem); in tmp_file_atexit()
150 sem_wait(&tmp_files_sem); in clear_tmp_files()
168 sem_wait(&tmp_files_sem); in file_is_tmp()
1472 sem_wait(&mtsem); in mt_sort()

123