Searched refs:sem_lock (Results 1 – 4 of 4) sorted by relevance
/external/ltp/testcases/open_posix_testsuite/functional/semaphores/ |
D | sem_lock.c | 29 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/ |
D | process.c | 137 int sem_lock; /* locks access to counter semaphore */ variable 311 extern int sem_lock; in rm_semseg() 316 if (semctl(sem_lock, 0, IPC_RMID, semarg.val) && errno != EINVAL) { in rm_semseg() 525 extern int sem_lock; /* used to lock access to sem_count semaphore */ 564 semoper(tval, sem_lock, -1); 573 semctl(sem_lock, pslot, SETVAL, 588 pslot = semoper(pslot, sem_lock, -1); 595 semctl(sem_lock, pslot, SETVAL, semarg); 650 extern int sem_lock; 656 sem_lock = semget(IPC_PRIVATE, nodesum - 1, [all …]
|
/external/ltp/testcases/kernel/containers/sysvipc/ |
D | semtest_2ns.c | 73 void sem_lock(int id) in sem_lock() function 135 sem_lock(id2); in check_sem2()
|
/external/ltp/testcases/open_posix_testsuite/ |
D | ChangeLog | 10 - A patch from Randy.Dunlap for sem_lock to increase BUF_SIZE to prevent segment fault.
|