/freebsd/tools/test/stress2/misc/ |
H A D | sem_post.sh | 32 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 D | sem_wait.sh | 62 if (sem_post(semaphore) == -1) 95 if (sem_post(semaphore) == -1)
|
H A D | sem_timedwait.sh | 116 sem_post(&sem);
|
/freebsd/contrib/netbsd-tests/lib/semaphore/ |
H A D | sem.c | 43 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 D | t_sem.c | 124 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 D | t_sem.c | 171 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 D | interrupt.cc | 79 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 D | dev_fuse_poll.cc | 160 sem_post(&sem0); in TEST_F() 214 EXPECT_EQ(0, sem_post(&sem1)) << strerror(errno); in TEST_F()
|
H A D | destroy.cc | 105 sem_post(&sem); in TEST_F()
|
H A D | last_local_modify.cc | 267 sem_post(&sem); in TEST_P() 405 sem_post(&sem); in TEST_P()
|
H A D | statfs.cc | 111 sem_post(&sem); in TEST_F()
|
/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | rping.c | 177 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 D | semtest.c | 42 if (sem_post(s)) in test_unnamed() 82 if (sem_post(s)) in test_named()
|
/freebsd/include/ |
H A D | semaphore.h | 64 int sem_post(sem_t *);
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | barrier.c | 86 sem_post(&bar->bar_sem); in barrier_wait()
|
/freebsd/contrib/ofed/librdmacm/ |
H A D | cma.h | 74 sem_post(&lock->sem); in fastlock_release()
|
/freebsd/contrib/netbsd-tests/fs/ffs/ |
H A D | h_ffs_server.c | 47 sem_post(&sigsem); in sigreboot()
|
/freebsd/usr.sbin/pppctl/ |
H A D | pppctl.c | 231 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 D | thr_sem.c | 52 FB10_COMPAT(_sem_post_compat, sem_post);
|
/freebsd/tests/sys/aio/ |
H A D | lio_test.c | 49 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 D | kcov.c | 183 sem_post(&sem1); in kcov_mmap_enable_thread() 206 sem_post(&sem2); in ATF_TC_BODY()
|
/freebsd/usr.bin/sort/ |
H A D | file.c | 138 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 D | namespace.h | 222 #define sem_post _sem_post macro
|
H A D | un-namespace.h | 203 #undef sem_post
|
/freebsd/tests/sys/cddl/zfs/tests/txg_integrity/ |
H A D | fsync_integrity.c | 403 if (sem_post(&chunk_sems[thread_num][chunk_idx]) == -1){ in worker()
|