/external/ltp/testcases/kernel/syscalls/wait4/ |
wait402.c | 43 long pid_max; local 45 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/pid_max", "%ld", &pid_max); 47 return pid_max;
|
/external/ltp/testcases/kernel/syscalls/fork/ |
fork13.c | 62 static unsigned long pid_max; variable 64 #define PID_MAX_PATH "/proc/sys/kernel/pid_max" 65 #define PID_MAX 32768 137 /* Backup pid_max value. */ 138 SAFE_FILE_SCANF(NULL, PID_MAX_PATH, "%lu", &pid_max); 140 SAFE_FILE_PRINTF(NULL, PID_MAX_PATH, "%d", PID_MAX); 145 /* Restore pid_max value. */ 146 FILE_PRINTF(PID_MAX_PATH, "%lu", pid_max); 153 return (second + PID_MAX - first) % PID_MAX; [all...] |
/external/ltp/testcases/kernel/containers/pidns/ |
pidns05.c | 68 fp = fopen("/proc/sys/kernel/pid_max", "r"); 73 tst_resm(TBROK, "Cannot open /proc/sys/kernel/pid_max"); 85 int next = 0, pid_max, i; local 88 pid_max = max_pid(); 94 if (i > pid_max)
|
/bionic/tests/ |
time_test.cpp | 713 std::unique_ptr<FILE, decltype(&fclose)> fp{fopen("/proc/sys/kernel/pid_max", "r"), fclose}; 714 long pid_max; local 715 fscanf(fp.get(), "%ld", &pid_max); 716 return static_cast<pid_t>(pid_max + 1);
|
pthread_test.cpp | 2085 long pid_max; local [all...] |