/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_exit/ |
H A D | 2-2.c | 52 #include <semaphore.h>
|
H A D | 5-1.c | 51 #include <semaphore.h>
|
H A D | 3-2.c | 53 #include <semaphore.h>
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sem_init/ |
H A D | 3-2.c | 20 * 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 D | 3-3.c | 20 * 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 D | 3-1.c | 24 * -> 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 D | 5-1.c | 20 * 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 D | 2-2.c | 20 * 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 D | 23-1.c | 33 #include <semaphore.h>
|
/haiku-fatelf/src/bin/gdb/gdb/osf-share/ |
H A D | cma_mutex.h | 55 cma__t_semaphore semaphore; /* Semaphore for low-level wait */ member in struct:CMA__T_INT_MUTEX
|
H A D | cma_tcb_defs.h | 95 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 D | 1-4.c | 51 #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 D | 1-5.c | 57 #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 D | 2-2.c | 26 * -> 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 D | 4-1.c | 62 #include <semaphore.h> /* for synchronization */
152 /* Initialize the semaphore */
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/semaphores/ |
H A D | sem_conpro.c | 23 #include <semaphore.h>
|
H A D | sem_philosopher.c | 20 #include <semaphore.h>
|
H A D | sem_readerwriter.c | 8 * This test use semaphore to implement reader and writer problem. Some readers 23 #include <semaphore.h> 28 #define SEM_NAME "/tmp/semaphore"
|
H A D | sem_sleepingbarber.c | 20 #include <semaphore.h>
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/stress/threads/sem_getvalue/ |
H A D | stress.c | 19 * 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 D | Overlay.cpp | 31 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 D | Makefile | 17 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 D | 3-3.c | 42 #include <semaphore.h>
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cancel/ |
H A D | 5-2.c | 42 #include <semaphore.h>
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_broadcast/ |
H A D | 4-2.c | 43 #include <semaphore.h>
|