Searched refs:NCHILD (Results 1 - 3 of 3) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/mkdir/ |
H A D | mkdir09.c | 23 #define NCHILD 3 macro 40 for (j = 0; j < nfiles; j += NCHILD) { in test1() 60 for (j = 1; j < nfiles; j += NCHILD) { in test2() 80 for (j = 2; j < nfiles; j += NCHILD) { in test3() 81 sprintf(tmpdir, DIR_NAME_GROUP, j, child_num / NCHILD); in test3() 86 for (j = 2; j < nfiles; j += NCHILD) { in test3() 87 sprintf(tmpdir, DIR_NAME_GROUP, j, child_num / NCHILD); in test3() 98 void (*tests[NCHILD])(int) = { test1, test2, test3 }; in child_thread_func() 101 tests[child_num % NCHILD](child_num); in child_thread_func() 111 pthread_t child_thread[NCHILD * child_group in verify_mkdir() [all...] |
/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/ |
H A D | shmctl01.c | 27 #define NCHILD 20 macro 29 static pid_t children[NCHILD]; 67 for (i = 0; i < NCHILD; i++) { in fork_children() 81 for (i = 0; i < NCHILD; i++) in wait_for_children() 89 for (i = 0; i < NCHILD; i++) in signal_children() 97 for (i = 0; i < NCHILD; i++) in reap_children() 134 check_nattch(NCHILD, "after child shmat()"); in verify_shmstat_attach() 152 check_nattch(NCHILD+1, "inherited after fork()"); in verify_shmstat_inherit()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/ |
H A D | semctl01.c | 20 #define NCHILD 5 macro 29 static int pid_arr[NCHILD]; 35 for (j = 0; j < NCHILD; j++) in kill_all_children() 38 for (j = 0; j < NCHILD; j++) in kill_all_children() 108 for (i = 0; i < NCHILD; i++) { in cnt_setup() 121 if (rval == NCHILD) in func_cnt()
|
Completed in 1 milliseconds