Home
last modified time | relevance | path

Searched refs:nsems (Results 1 – 14 of 14) sorted by relevance

/external/ltp/testcases/kernel/ipc/ipc_stress/
Dsemaphore_test_03.c134 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 …]
Dsemaphore_test_02.c118 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 …]
Dsemaphore_test_01.c107 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()
Dshmem_test_03.c360 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/
Dsemctl07.c58 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/
Dsyswrap-generic.c1805 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_()
Dsyswrap-tilegx-linux.c921 PRE_REG_READ3(long, "semget", vki_key_t, key, int, nsems, int, semflg); in PRE()
Dsyswrap-darwin.c1811 PRE_REG_READ3(long, "semget", vki_key_t, key, int, nsems, int, semflg); in PRE()
Dsyswrap-solaris.c2941 vki_key_t, key, int, nsems, int, semflg); in PRE()
Dsyswrap-linux.c3768 PRE_REG_READ3(long, "semget", vki_key_t, key, int, nsems, int, semflg); in PRE()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1306 #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/
Dsanitizer_common_syscalls.inc2098 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/
Dscalar.stderr.exp877 Syscall param semsys_semget(nsems) contains uninitialised byte(s)
/external/strace/
DChangeLog6279 (SYS_FUNC(semget)): Likewise, for nsems argument.