Home
last modified time | relevance | path

Searched refs:sem_post (Results 1 – 25 of 50) sorted by relevance

12

/freebsd/tools/test/stress2/misc/
H A Dsem_post.sh32 cat > /tmp/sem_post.c <<EOF
55 if (sem_post(&semaphore) == -1)
86 if (sem_post(&semaphore) == -1)
97 cc -o /tmp/sem_post -Wall -Wextra -O2 /tmp/sem_post.c -lpthread || exit 1
101 /tmp/sem_post > /dev/null &
103 while pgrep -q sem_post; do sleep .5; done
106 rm -f /tmp/sem_post /tmp/sem_post.c
H A Dsem_wait.sh62 if (sem_post(semaphore) == -1)
95 if (sem_post(semaphore) == -1)
H A Dsem_timedwait.sh116 sem_post(&sem);
/freebsd/contrib/netbsd-tests/lib/semaphore/
H A Dsem.c43 sem_post(&sem); in ATF_TC_BODY()
44 sem_post(&sem); in ATF_TC_BODY()
114 sem_post(&semmarit[2]); in hthread()
156 sem_post(&semmarit[0]); in ATF_TC_BODY()
157 sem_post(&semmarit[1]); in ATF_TC_BODY()
196 sem_post(&semmarit[0]); in ATF_TC_BODY()
197 sem_post(&semmarit[1]); in ATF_TC_BODY()
272 ATF_REQUIRE_EQ(sem_post(sem2), 0); in ATF_TC_BODY()
286 sem_post(sem1); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c124 ATF_REQUIRE_EQ(sem_post(sem_b), 0); in ATF_TC_BODY()
131 ATF_REQUIRE_EQ(sem_post(sem_b), 0); in ATF_TC_BODY()
133 ATF_REQUIRE_EQ(sem_post(sem_b), 0); in ATF_TC_BODY()
135 ATF_REQUIRE_EQ(sem_post(sem_b), 0); in ATF_TC_BODY()
188 ATF_REQUIRE_EQ(sem_post(sem_a), 0); in ATF_TC_BODY()
253 SEM_REQUIRE(sem_post(&sem)); in ATF_TC_BODY()
261 SEM_REQUIRE(sem_post(&sem)); in ATF_TC_BODY()
311 SEM_REQUIRE(sem_post(&sem)); in ATF_TC_BODY()
335 SEM_REQUIRE(sem_post(&sem)); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dt_sem.c171 SEM_REQUIRE(sem_post(&sem_b)); in ATF_TC_BODY()
178 SEM_REQUIRE(sem_post(&sem_b)); in ATF_TC_BODY()
180 SEM_REQUIRE(sem_post(&sem_b)); in ATF_TC_BODY()
182 SEM_REQUIRE(sem_post(&sem_b)); in ATF_TC_BODY()
197 SEM_REQUIRE(sem_post(&sem_a)); in ATF_TC_BODY()
216 SEM_REQUIRE(sem_post(&sem)); in sighandler()
/freebsd/tests/sys/fs/fusefs/
H A Dinterrupt.cc79 sem_post(signaled_semaphore); in killer()
108 sem_post(blocked_semaphore); in expect_mkdir()
126 sem_post(blocked_semaphore); in expect_read()
144 sem_post(blocked_semaphore); in expect_write()
333 sem_post(&sem0); in TEST_F()
357 sem_post(&sem1); in TEST_F()
429 sem_post(&sem1); in TEST_F()
456 ASSERT_EQ(0, sem_post(&sem0)) << strerror(errno); in TEST_F()
505 sem_post(&sem1); in TEST_F()
530 ASSERT_EQ(0, sem_post(&sem0)) << strerror(errno); in TEST_F()
[all …]
H A Ddev_fuse_poll.cc160 sem_post(&sem0); in TEST_F()
214 EXPECT_EQ(0, sem_post(&sem1)) << strerror(errno); in TEST_F()
H A Ddestroy.cc105 sem_post(&sem); in TEST_F()
H A Dlast_local_modify.cc267 sem_post(&sem); in TEST_P()
405 sem_post(&sem); in TEST_P()
H A Dstatfs.cc111 sem_post(&sem); in TEST_F()
/freebsd/contrib/ofed/librdmacm/examples/
H A Drping.c177 sem_post(&cb->sem); in rping_cma_event_handler()
183 sem_post(&cb->sem); in rping_cma_event_handler()
190 sem_post(&cb->sem); in rping_cma_event_handler()
202 sem_post(&cb->sem); in rping_cma_event_handler()
212 sem_post(&cb->sem); in rping_cma_event_handler()
220 sem_post(&cb->sem); in rping_cma_event_handler()
226 sem_post(&cb->sem); in rping_cma_event_handler()
306 sem_post(&cb->sem); in rping_cq_event_handler()
312 sem_post(&cb->sem); in rping_cq_event_handler()
329 sem_post(&cb->sem); in rping_cq_event_handler()
[all …]
/freebsd/tools/regression/posixsem2/
H A Dsemtest.c42 if (sem_post(s)) in test_unnamed()
82 if (sem_post(s)) in test_named()
/freebsd/include/
H A Dsemaphore.h64 int sem_post(sem_t *);
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dbarrier.c86 sem_post(&bar->bar_sem); in barrier_wait()
/freebsd/contrib/ofed/librdmacm/
H A Dcma.h74 sem_post(&lock->sem); in fastlock_release()
/freebsd/contrib/netbsd-tests/fs/ffs/
H A Dh_ffs_server.c47 sem_post(&sigsem); in sigreboot()
/freebsd/usr.sbin/pppctl/
H A Dpppctl.c231 sem_post(&sem_select); in InputHandler()
255 sem_post(&sem_select); in SmartGets()
634 sem_post(&sem_select); in main()
/freebsd/lib/libthr/thread/
H A Dthr_sem.c52 FB10_COMPAT(_sem_post_compat, sem_post);
/freebsd/tests/sys/aio/
H A Dlio_test.c49 ATF_REQUIRE_EQ(0, sem_post(&completions)); in handler()
55 ATF_REQUIRE_EQ(0, sem_post(&completions)); in thr_handler()
/freebsd/tests/sys/kern/
H A Dkcov.c183 sem_post(&sem1); in kcov_mmap_enable_thread()
206 sem_post(&sem2); in ATF_TC_BODY()
/freebsd/usr.bin/sort/
H A Dfile.c138 sem_post(&tmp_files_sem); in tmp_file_atexit()
155 sem_post(&tmp_files_sem); in clear_tmp_files()
176 sem_post(&tmp_files_sem); in file_is_tmp()
1202 sem_post(&mtsem); in mt_sort_thread()
/freebsd/lib/libc/include/
H A Dnamespace.h222 #define sem_post _sem_post macro
H A Dun-namespace.h203 #undef sem_post
/freebsd/tests/sys/cddl/zfs/tests/txg_integrity/
H A Dfsync_integrity.c403 if (sem_post(&chunk_sems[thread_num][chunk_idx]) == -1){ in worker()

12