Searched refs:sem_lock (Results 1 - 3 of 3) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/functional/semaphores/
H A Dsem_lock.c29 sem_t *sem_lock; local
46 if ((sem_lock = malloc(sizeof(sem_t))) == NULL) {
50 if (sem_init(sem_lock, shared, value) == -1) {
70 if (sem_wait(sem_lock) == -1) {
83 if (sem_post(sem_lock) == -1) {
/external/ltp/testcases/kernel/containers/sysvipc/
H A Dsemtest_2ns.c71 * sem_lock() - Locks the semaphore for crit-sec updation, and unlocks it later
73 void sem_lock(int id) function
135 sem_lock(id2);
/external/ltp/testcases/kernel/sched/process_stress/
H A Dprocess.c138 int sem_lock; /* locks access to counter semaphore */ variable
312 extern int sem_lock;
315 /* remove sem_lock semaphore id */
317 if (semctl(sem_lock, 0, IPC_RMID, semarg.val) && errno != EINVAL) {
526 extern int sem_lock; /* used to lock access to sem_count semaphore */
565 semoper(tval, sem_lock, -1);
574 semctl(sem_lock, pslot, SETVAL,
589 pslot = semoper(pslot, sem_lock, -1);
596 semctl(sem_lock, pslot, SETVAL, semarg);
651 extern int sem_lock;
[all...]

Completed in 372 milliseconds