Searched refs:semaphore (Results 126 - 150 of 197) sorted by relevance

12345678

/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_exit/
H A D2-2.c52 #include <semaphore.h>
H A D5-1.c51 #include <semaphore.h>
H A D3-2.c53 #include <semaphore.h>
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sem_init/
H A D3-2.c20 * If pshared is non-zero, any process that can access the semaphore can use it.
25 * -> sem_init a semaphore placed in this segment, with pshared != 0 and val=0
27 * -> child process post the semaphore then exit
28 * -> parent process waits for the semaphore.
48 #include <semaphore.h>
130 /* Initialize the semaphore */
135 UNRESOLVED( errno, "Failed to init the semaphore" );
154 UNRESOLVED( errno, "Failed to post the semaphore" );
170 UNRESOLVED( errno, "Failed to wait for the semaphore" );
191 UNRESOLVED( errno, "Failed to destroy the semaphore" );
[all...]
H A D3-3.c20 * If pshared is non-zero, any process that can access the semaphore can use it.
25 * -> sem_init a semaphore placed in this segment, with pshared != 0 and val=0
27 * -> child process post the semaphore then exit
28 * -> parent process waits for the child then check the semaphore has been increased
30 * The test fails if the semaphore count did not change.
47 #include <semaphore.h>
129 /* Initialize the semaphore */
134 UNRESOLVED( errno, "Failed to init the semaphore" );
153 UNRESOLVED( errno, "Failed to post the semaphore" );
173 /* Check semaphore coun
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sem_unlink/
H A D3-1.c24 * -> open a semaphore with 0744 mask
27 * -> child attempts to unlink the semaphore. It should fail.
31 * The test fails if the child process is able to unlink the semaphore.
52 #include <semaphore.h>
145 /* Create the semaphore */
156 UNRESOLVED( errno, "Failed to create the semaphore" );
169 /* connect to the semaphore */
174 output( "Failed to connect to the semaphore, error %d: %s\n", errno, strerror( errno ) );
239 UNRESOLVED( errno, "Failed to unlink the semaphore" );
H A D5-1.c20 * sem_unlink will return -1 and set errno to ENAMETOOLONG when the semaphore
26 * -> create a semaphore with a name bigger than PATH_MAX.
31 * It also FAILS if this error is returned, as it means we can create a semaphore
50 #include <semaphore.h>
113 /* create a semaphore with a name longer than PATH_MAX */
118 UNRESOLVED( errno, "Failed to allocate space for the semaphore name" );
128 /* Create the semaphore */
144 FAILED( "Unable to unlink a semaphore which we just created" );
151 output( "Creation of the semaphore failed with error %d: %s\n", errno, strerror( errno ) );
168 /* create a semaphore wit
[all...]
H A D2-2.c20 * Destruction of the semaphore is postponed until all processes which were using
21 * the semaphore have called sem_close, _exit or exec.
26 * -> Create a named semaphore with value = 0.
28 * -> the main process unlinks the semaphore, the posts it and close it.
31 * The test fails if a semaphore operation returns an error in one of the children.
48 #include <semaphore.h>
90 /* Operations common to all processes on the semaphore*/
96 /* Reconnect to the semaphore */
101 UNRESOLVED( errno, "Failed to reconnect the semaphore" );
105 /* block until the semaphore i
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_open/
H A D23-1.c33 #include <semaphore.h>
/haiku-fatelf/src/bin/gdb/gdb/osf-share/
H A Dcma_mutex.h55 cma__t_semaphore semaphore; /* Semaphore for low-level wait */ member in struct:CMA__T_INT_MUTEX
H A Dcma_tcb_defs.h95 struct CMA__T_SEMAPHORE *semaphore; /* used for timed semaphores */ member in struct:CMA__T_TCB_TIME
239 cma_t_integer event_status; /* Status of semaphore operation */
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_create/
H A D1-4.c51 #include <semaphore.h>
143 /* Post the semaphore to unlock the main thread in case of a detached thread */
146 if (ret == -1) { UNRESOLVED(errno, "Failed to post the semaphore"); }
214 if (ret == -1) { UNRESOLVED(errno, "Failed to post the semaphore"); }
H A D1-5.c57 #include <semaphore.h>
124 /* Post the semaphore to unlock the main thread in case of a detached thread */
127 if (ret == -1) { UNRESOLVED(errno, "Failed to post the semaphore"); }
247 if (ret == -1) { UNRESOLVED(errno, "Failed to wait for the semaphore"); }
256 /* Post the semaphore to unlock the main thread in case of a detached thread */
259 if (ret == -1) { UNRESOLVED(errno, "Failed to post the semaphore"); }
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_detach/
H A D2-2.c26 * -> wait for the thread to post a semaphore.
28 * The test fails if the semaphore is not posted within a certain duration.
51 #include <semaphore.h>
115 /* Wait for this semaphore which indicates that pthread_detach has been called */
118 if (ret == -1) { UNRESOLVED(errno, "Failed to wait for the semaphore"); }
120 /* Post the semaphore to indicate the main thread we're alive */
123 if (ret == -1) { UNRESOLVED(errno, "Failed to post the semaphore"); }
139 if (ret != 0) { UNRESOLVED(ret, "Failed to initialize a semaphore"); }
189 if (ret == -1) { UNRESOLVED(errno, "Failed to post the semaphore"); }
203 UNRESOLVED(errno, "Failed to wait for the semaphore");
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_mutex_lock/
H A D4-1.c62 #include <semaphore.h> /* for synchronization */
152 /* Initialize the semaphore */
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/semaphores/
H A Dsem_conpro.c23 #include <semaphore.h>
H A Dsem_philosopher.c20 #include <semaphore.h>
H A Dsem_readerwriter.c8 * This test use semaphore to implement reader and writer problem. Some readers
23 #include <semaphore.h>
28 #define SEM_NAME "/tmp/semaphore"
H A Dsem_sleepingbarber.c20 #include <semaphore.h>
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/sem_getvalue/
H A Dstress.c19 * sem_getvalue always returns the value of the semaphore at a given time
23 * -> Create a named semaphore and an unnamed semaphore, initialized to 0.
45 #include <semaphore.h>
115 UNRESOLVED( errno, "Failed to post the semaphore" );
127 UNRESOLVED( errno, "Failed to wait for the semaphore" );
224 FAILED( "sem_getvalue returned an invalid value for the named semaphore" );
238 FAILED( "sem_getvalue returned an invalid value for the unnamed semaphore" );
265 UNRESOLVED( errno, "Failed to close the semaphore" );
272 UNRESOLVED( errno, "Failed to destroy the semaphore" );
[all...]
/haiku-fatelf/src/servers/app/drawing/
H A DOverlay.cpp31 SemaphoreLocker(sem_id semaphore, bigtime_t timeout = B_INFINITE_TIMEOUT) argument
33 fSemaphore(semaphore)
/haiku-fatelf/src/tests/system/libroot/posix/bonnie++-1.03d/
H A DMakefile17 BONSRC=bon_io.cpp bon_file.cpp bon_time.cpp semaphore.cpp forkit.cpp \
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_atfork/
H A D3-3.c42 #include <semaphore.h>
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cancel/
H A D5-2.c42 #include <semaphore.h>
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_broadcast/
H A D4-2.c43 #include <semaphore.h>

Completed in 112 milliseconds

12345678