/external/ltp/testcases/kernel/ipc/ipc_stress/ |
D | semaphore_test_03.c | 134 int nsems = DEFAULT_NUM_SEMAPHORES; variable 168 if (nsems < 8) in main() 169 nsems = 8; in main() 248 printf("\n\tCreating %d semaphores ...\n", nsems); in test_commands() 249 if ((semid = semget(IPC_PRIVATE, nsems, IPC_CREAT | mode)) < 0) in test_commands() 281 if (arg.buf->sem_nsems != nsems) in test_commands() 289 arg.array = malloc(sizeof(int) * nsems); in test_commands() 292 for (i = 0; i < nsems; i++) in test_commands() 317 for (i = 0; i < nsems; i++) { in test_commands() 322 if (semop(semid, semoparray, nsems) < 0) in test_commands() [all …]
|
D | semaphore_test_02.c | 118 int nsems = DEFAULT_NUM_SEMAPHORES; variable 225 if ((semid = semget(IPC_PRIVATE, nsems, IPC_CREAT | 0666)) < 0) in test_commands() 263 if (semunptr.buf->sem_nsems != nsems) in test_commands() 276 for (i = 0; i < nsems; i++) { in test_commands() 290 for (i = 0; i < nsems; i++) { in test_commands() 301 for (i = 0; i < nsems; i++) { in test_commands() 316 for (i = 0; i < nsems; i++) { in test_commands() 334 for (i = 0; i < nsems; i++) { in test_commands() 353 for (i = 0; i < nsems; i++) { in test_commands() 366 arg.array = malloc(sizeof(int) * nsems); in test_commands() [all …]
|
D | semaphore_test_01.c | 107 int nsems = NUM_SEMAPHORES; /* Number of semaphores to create */ in main() local 126 exp_semdata.sem_nsems = nsems; in main() 132 if ((semid = semget(IPC_PRIVATE, nsems, IPC_CREAT | 0666)) < 0) in main() 135 if (semctl(semid, nsems, IPC_SET, exp_semdatap) < 0) in main() 138 if (semctl(semid, nsems, IPC_STAT, act_semdatap) < 0) in main()
|
D | shmem_test_03.c | 360 int nsems = 2; /* Number of semaphores to create */ in create_semaphores() local 365 if ((semid = semget(IPC_PRIVATE, nsems, IPC_CREAT | 0666)) < 0) in create_semaphores() 384 int nsems = 2; in delete_semaphores() local 391 if (semctl(semid, nsems, IPC_RMID, arg) < 0) in delete_semaphores()
|
/external/ltp/testcases/kernel/syscalls/ipc/semctl/ |
D | semctl07.c | 58 int semid = -1, nsems; variable 80 if (arg.buf->sem_nsems != nsems) { in main() 164 nsems = 1; in setup() 166 if ((semid = semget(key, nsems, SEM_RA | IPC_CREAT)) == -1) { in setup()
|
/external/valgrind/coregrind/m_syswrap/ |
D | syswrap-generic.c | 1805 UInt nsems; in ML_() local 1861 nsems = get_sem_count( arg0 ); in ML_() 1863 (Addr)arg.array, sizeof(unsigned short) * nsems ); in ML_() 1870 nsems = get_sem_count( arg0 ); in ML_() 1872 (Addr)arg.array, sizeof(unsigned short) * nsems ); in ML_() 1884 UInt nsems; in ML_() local 1918 nsems = get_sem_count( arg0 ); in ML_() 1919 POST_MEM_WRITE( (Addr)arg.array, sizeof(unsigned short) * nsems ); in ML_()
|
D | syswrap-tilegx-linux.c | 921 PRE_REG_READ3(long, "semget", vki_key_t, key, int, nsems, int, semflg); in PRE()
|
D | syswrap-darwin.c | 1811 PRE_REG_READ3(long, "semget", vki_key_t, key, int, nsems, int, semflg); in PRE()
|
D | syswrap-solaris.c | 2941 vki_key_t, key, int, nsems, int, semflg); in PRE()
|
D | syswrap-linux.c | 3768 PRE_REG_READ3(long, "semget", vki_key_t, key, int, nsems, int, semflg); in PRE()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1306 #define __sanitizer_syscall_pre_semget(key, nsems, semflg) \ argument 1307 __sanitizer_syscall_pre_impl_semget((long)(key), (long)(nsems), \ 1309 #define __sanitizer_syscall_post_semget(res, key, nsems, semflg) \ argument 1310 __sanitizer_syscall_post_impl_semget(res, (long)(key), (long)(nsems), \ 2743 void __sanitizer_syscall_pre_impl_semget(long key, long nsems, long semflg); 2744 void __sanitizer_syscall_post_impl_semget(long res, long key, long nsems,
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 2098 PRE_SYSCALL(semget)(long key, long nsems, long semflg) {} 2100 POST_SYSCALL(semget)(long res, long key, long nsems, long semflg) {}
|
/external/valgrind/memcheck/tests/solaris/ |
D | scalar.stderr.exp | 877 Syscall param semsys_semget(nsems) contains uninitialised byte(s)
|
/external/strace/ |
D | ChangeLog | 6279 (SYS_FUNC(semget)): Likewise, for nsems argument.
|