Searched refs:semctl (Results 1 - 6 of 6) sorted by relevance

/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dsema_tests.c15 * Test semctl, semget, semop system calls.
34 my_err = semctl( my_sem_id, 0, SETVAL, my_sem_union );
59 my_err = semctl( my_sem_id, 0, GETVAL, 0 );
61 printf( "semctl failed with error %d - \"%s\" \n", errno, strerror( errno) );
65 printf( "semctl(getval) returned %d. it should be 0 (locked) here \n", my_err );
80 my_err = semctl( my_sem_id, 0, IPC_RMID, my_sem_union );
82 printf( "semctl (IPC_RMID) failed with error %d - \"%s\" \n", errno, strerror( errno) );
94 semctl( my_sem_id, 0, IPC_RMID, my_sem_union );
/darwin-on-arm/xnu/bsd/sys/
H A Dsem.h85 * the semun union member 'buf' as the fourth argment to semctl() when the
130 * Possible values for the third argument to semctl()
168 * Union used as the fourth argment to semctl() in all cases. Specific
211 int semctl(int, int, int, ...) __DARWIN_ALIAS(semctl); variable
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dsemop.c73 (void) semctl(ts->ts_semid, 0, IPC_RMID);
H A Dlibmicro.c779 (void) semctl(b->ba_semid, 0, IPC_RMID);
796 (void) semctl(b->ba_semid, 0, IPC_RMID);
/darwin-on-arm/xnu/bsd/man/man2/
H A DMakefile154 semctl.2 \
/darwin-on-arm/xnu/bsd/kern/
H A Dsysv_sem.c125 (sy_call_t *)semctl, (sy_call_t *)semget,
229 * Entry point for all SEM calls: semctl, semget, semop
244 * functions (semctl, semget, semop). The correct usage is
677 semctl(struct proc *p, struct semctl_args *uap, int32_t *retval) function
695 printf("call to semctl(%d, %d, %d, 0x%qx)\n", semid, semnum, cmd, user_arg);

Completed in 34 milliseconds