Home
last modified time | relevance | path

Searched refs:pid_max (Results 1 – 6 of 6) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/getppid/
Dgetppid01.c17 pid_t ppid, pid_max; in verify_getppid() local
19 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); in verify_getppid()
22 if (ppid > pid_max) in verify_getppid()
/third_party/ltp/testcases/kernel/syscalls/getpid/
Dgetpid01.c17 pid_t pid_max, pid; in verify_getpid() local
20 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); in verify_getpid()
28 if (1 < pid && pid <= pid_max) in verify_getpid()
/third_party/ltp/testcases/kernel/syscalls/wait4/
Dwait402.c43 long pid_max; in get_pid_max() local
45 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/pid_max", "%ld", &pid_max); in get_pid_max()
47 return pid_max; in get_pid_max()
/third_party/ltp/testcases/kernel/syscalls/fork/
Dfork13.c62 static unsigned long pid_max; variable
138 SAFE_FILE_SCANF(NULL, PID_MAX_PATH, "%lu", &pid_max); in setup()
146 FILE_PRINTF(PID_MAX_PATH, "%lu", pid_max); in cleanup()
/third_party/ltp/testcases/kernel/containers/pidns/
Dpidns05.c85 int next = 0, pid_max, i; in find_cinit_pids() local
88 pid_max = max_pid(); in find_cinit_pids()
94 if (i > pid_max) in find_cinit_pids()
/third_party/ltp/doc/
Dc-test-api.txt430 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%lu", &pid_max);