Home
last modified time | relevance | path

Searched refs:sem_lock (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dsem_lock.c29 sem_t *sem_lock; in main() local
46 if ((sem_lock = malloc(sizeof(sem_t))) == NULL) { in main()
50 if (sem_init(sem_lock, shared, value) == -1) { in main()
70 if (sem_wait(sem_lock) == -1) { in main()
83 if (sem_post(sem_lock) == -1) { in main()
/external/ltp/testcases/kernel/sched/process_stress/
Dprocess.c138 int sem_lock; /* locks access to counter semaphore */ variable
312 extern int sem_lock; in rm_semseg()
317 if (semctl(sem_lock, 0, IPC_RMID, semarg.val) && errno != EINVAL) { in rm_semseg()
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;
657 sem_lock = semget(IPC_PRIVATE, nodesum - 1,
[all …]
/external/ltp/testcases/kernel/containers/sysvipc/
Dsemtest_2ns.c73 void sem_lock(int id) in sem_lock() function
135 sem_lock(id2); in check_sem2()
/external/ltp/testcases/open_posix_testsuite/
DChangeLog10 - A patch from Randy.Dunlap for sem_lock to increase BUF_SIZE to prevent segment fault.