Lines Matching refs:pid
51 static pid_t pid; variable
67 pid = getpid(); in ATF_TC_BODY()
68 snprintf(pcregex, sizeof(pcregex), "fork.*%d.*return,success", pid); in ATF_TC_BODY()
72 ATF_REQUIRE((pid = fork()) != -1); in ATF_TC_BODY()
73 if (pid) in ATF_TC_BODY()
100 ATF_REQUIRE((pid = fork()) != -1); in ATF_TC_BODY()
101 if (pid) { in ATF_TC_BODY()
102 snprintf(pcregex, sizeof(pcregex), "exit.*%d.*success", pid); in ATF_TC_BODY()
128 pid = getpid(); in ATF_TC_BODY()
129 snprintf(pcregex, sizeof(pcregex), "rfork.*%d.*return,success", pid); in ATF_TC_BODY()
132 ATF_REQUIRE((pid = rfork(RFPROC)) != -1); in ATF_TC_BODY()
133 if (pid) in ATF_TC_BODY()
154 pid = getpid(); in ATF_TC_BODY()
155 snprintf(pcregex, sizeof(pcregex), "rfork.*%d.*return,failure", pid); in ATF_TC_BODY()
178 pid = getpid(); in ATF_TC_BODY()
179 snprintf(pcregex, sizeof(pcregex), "wait4.*%d.*return,success", pid); in ATF_TC_BODY()
181 ATF_REQUIRE((pid = fork()) != -1); in ATF_TC_BODY()
182 if (pid) { in ATF_TC_BODY()
207 pid = getpid(); in ATF_TC_BODY()
208 snprintf(pcregex, sizeof(pcregex), "wait4.*%d.*return,failure", pid); in ATF_TC_BODY()
231 pid = getpid(); in ATF_TC_BODY()
232 snprintf(pcregex, sizeof(pcregex), "wait6.*%d.*return,success", pid); in ATF_TC_BODY()
234 ATF_REQUIRE((pid = fork()) != -1); in ATF_TC_BODY()
235 if (pid) { in ATF_TC_BODY()
259 pid = getpid(); in ATF_TC_BODY()
260 snprintf(pcregex, sizeof(pcregex), "wait6.*%d.*return,failure", pid); in ATF_TC_BODY()
283 pid = getpid(); in ATF_TC_BODY()
284 snprintf(pcregex, sizeof(pcregex), "kill.*%d.*return,success", pid); in ATF_TC_BODY()
307 pid = getpid(); in ATF_TC_BODY()
308 snprintf(pcregex, sizeof(pcregex), "kill.*%d.*return,failure", pid); in ATF_TC_BODY()
335 pid = getpid(); in ATF_TC_BODY()
336 snprintf(pcregex, sizeof(pcregex), "chdir.*/.*%d.*return,success", pid); in ATF_TC_BODY()
358 pid = getpid(); in ATF_TC_BODY()
359 snprintf(pcregex, sizeof(pcregex), "chdir.*%d.*return,failure", pid); in ATF_TC_BODY()
388 pid = getpid(); in ATF_TC_BODY()
389 snprintf(pcregex, sizeof(pcregex), "fchdir.*%d.*return,success", pid); in ATF_TC_BODY()
412 pid = getpid(); in ATF_TC_BODY()
413 snprintf(pcregex, sizeof(pcregex), "fchdir.*%d.*return,failure", pid); in ATF_TC_BODY()
436 pid = getpid(); in ATF_TC_BODY()
437 snprintf(pcregex, sizeof(pcregex), "chroot.*%d.*return,success", pid); in ATF_TC_BODY()
460 pid = getpid(); in ATF_TC_BODY()
461 snprintf(pcregex, sizeof(pcregex), "chroot.*%d.*return,failure", pid); in ATF_TC_BODY()
483 pid = getpid(); in ATF_TC_BODY()
484 snprintf(pcregex, sizeof(pcregex), "umask.*%d.*return,success", pid); in ATF_TC_BODY()
510 pid = getpid(); in ATF_TC_BODY()
511 snprintf(pcregex, sizeof(pcregex), "setuid.*%d.*return,success", pid); in ATF_TC_BODY()
539 pid = getpid(); in ATF_TC_BODY()
540 snprintf(pcregex, sizeof(pcregex), "seteuid.*%d.*return,success", pid); in ATF_TC_BODY()
568 pid = getpid(); in ATF_TC_BODY()
569 snprintf(pcregex, sizeof(pcregex), "setgid.*%d.*return,success", pid); in ATF_TC_BODY()
596 pid = getpid(); in ATF_TC_BODY()
597 snprintf(pcregex, sizeof(pcregex), "setegid.*%d.*return,success", pid); in ATF_TC_BODY()
624 pid = getpid(); in ATF_TC_BODY()
625 snprintf(pcregex, sizeof(pcregex), "setregid.*%d.*return,success", pid); in ATF_TC_BODY()
653 pid = getpid(); in ATF_TC_BODY()
654 snprintf(pcregex, sizeof(pcregex), "setreuid.*%d.*return,success", pid); in ATF_TC_BODY()
682 pid = getpid(); in ATF_TC_BODY()
683 snprintf(pcregex, sizeof(pcregex), "setresuid.*%d.*return,success", pid); in ATF_TC_BODY()
711 pid = getpid(); in ATF_TC_BODY()
712 snprintf(pcregex, sizeof(pcregex), "setresgid.*%d.*ret.*success", pid); in ATF_TC_BODY()
740 pid = getpid(); in ATF_TC_BODY()
741 snprintf(pcregex, sizeof(pcregex), "getresuid.*%d.*ret.*success", pid); in ATF_TC_BODY()
763 pid = getpid(); in ATF_TC_BODY()
764 snprintf(pcregex, sizeof(pcregex), "getresuid.*%d.*ret.*failure", pid); in ATF_TC_BODY()
787 pid = getpid(); in ATF_TC_BODY()
788 snprintf(pcregex, sizeof(pcregex), "getresgid.*%d.*ret.*success", pid); in ATF_TC_BODY()
810 pid = getpid(); in ATF_TC_BODY()
811 snprintf(pcregex, sizeof(pcregex), "getresgid.*%d.*ret.*failure", pid); in ATF_TC_BODY()
834 pid = getpid(); in ATF_TC_BODY()
835 snprintf(pcregex, sizeof(pcregex), "setpriority.*%d.*success", pid); in ATF_TC_BODY()
857 pid = getpid(); in ATF_TC_BODY()
858 snprintf(pcregex, sizeof(pcregex), "setpriority.*%d.*failure", pid); in ATF_TC_BODY()
881 pid = getpid(); in ATF_TC_BODY()
882 snprintf(pcregex, sizeof(pcregex), "setgroups.*%d.*ret.*success", pid); in ATF_TC_BODY()
906 pid = getpid(); in ATF_TC_BODY()
907 snprintf(pcregex, sizeof(pcregex), "setgroups.*%d.*ret.*failure", pid); in ATF_TC_BODY()
930 ATF_REQUIRE((pid = fork()) != -1); in ATF_TC_BODY()
931 if (pid) { in ATF_TC_BODY()
934 pid = getpid(); in ATF_TC_BODY()
935 snprintf(pcregex, sizeof(pcregex), "setpgrp.*%d.*success", pid); in ATF_TC_BODY()
958 pid = getpid(); in ATF_TC_BODY()
959 snprintf(pcregex, sizeof(pcregex), "setpgrp.*%d.*return,failure", pid); in ATF_TC_BODY()
982 ATF_REQUIRE((pid = fork()) != -1); in ATF_TC_BODY()
983 if (pid) { in ATF_TC_BODY()
986 pid = getpid(); in ATF_TC_BODY()
987 snprintf(pcregex, sizeof(pcregex), "setsid.*%d.*success", pid); in ATF_TC_BODY()
1010 pid = getpid(); in ATF_TC_BODY()
1011 snprintf(pcregex, sizeof(pcregex), "setsid.*%d.*return,failure", pid); in ATF_TC_BODY()
1045 pid = getpid(); in ATF_TC_BODY()
1046 snprintf(pcregex, sizeof(pcregex), "setrlimit.*%d.*ret.*success", pid); in ATF_TC_BODY()
1070 pid = getpid(); in ATF_TC_BODY()
1071 snprintf(pcregex, sizeof(pcregex), "setrlimit.*%d.*ret.*failure", pid); in ATF_TC_BODY()
1093 pid = getpid(); in ATF_TC_BODY()
1094 snprintf(pcregex, sizeof(pcregex), "mlock.*%d.*return,success", pid); in ATF_TC_BODY()
1116 pid = getpid(); in ATF_TC_BODY()
1117 snprintf(pcregex, sizeof(pcregex), "mlock.*%d.*return,failure", pid); in ATF_TC_BODY()
1139 pid = getpid(); in ATF_TC_BODY()
1140 snprintf(pcregex, sizeof(pcregex), "munlock.*%d.*return,success", pid); in ATF_TC_BODY()
1162 pid = getpid(); in ATF_TC_BODY()
1163 snprintf(pcregex, sizeof(pcregex), "munlock.*%d.*return,failure", pid); in ATF_TC_BODY()
1185 pid = getpid(); in ATF_TC_BODY()
1186 snprintf(pcregex, sizeof(pcregex), "minherit.*%d.*return,success", pid); in ATF_TC_BODY()
1208 pid = getpid(); in ATF_TC_BODY()
1209 snprintf(pcregex, sizeof(pcregex), "minherit.*%d.*return,failure", pid); in ATF_TC_BODY()
1232 pid = getpid(); in ATF_TC_BODY()
1233 snprintf(pcregex, sizeof(pcregex), "setlogin.*%d.*return,success", pid); in ATF_TC_BODY()
1257 pid = getpid(); in ATF_TC_BODY()
1258 snprintf(pcregex, sizeof(pcregex), "setlogin.*%d.*return,failure", pid); in ATF_TC_BODY()
1281 pid = getpid(); in ATF_TC_BODY()
1282 snprintf(pcregex, sizeof(pcregex), "rtprio.*%d.*return,success", pid); in ATF_TC_BODY()
1304 pid = getpid(); in ATF_TC_BODY()
1305 snprintf(pcregex, sizeof(pcregex), "rtprio.*%d.*return,failure", pid); in ATF_TC_BODY()
1327 pid = getpid(); in ATF_TC_BODY()
1328 snprintf(pcregex, sizeof(pcregex), "profil.*%d.*return,success", pid); in ATF_TC_BODY()
1352 pid = getpid(); in ATF_TC_BODY()
1353 snprintf(pcregex, sizeof(pcregex), "profil.*%d.*return,failure", pid); in ATF_TC_BODY()
1375 pid = getpid(); in ATF_TC_BODY()
1376 snprintf(pcregex, sizeof(pcregex), "ptrace.*%d.*return,success", pid); in ATF_TC_BODY()
1398 pid = getpid(); in ATF_TC_BODY()
1399 snprintf(pcregex, sizeof(pcregex), "ptrace.*%d.*return,failure", pid); in ATF_TC_BODY()
1421 pid = getpid(); in ATF_TC_BODY()
1422 snprintf(pcregex, sizeof(pcregex), "ktrace.*%d.*return,success", pid); in ATF_TC_BODY()
1425 ATF_REQUIRE_EQ(0, ktrace(NULL, KTROP_CLEAR, KTRFAC_SYSCALL, pid)); in ATF_TC_BODY()
1444 pid = getpid(); in ATF_TC_BODY()
1445 snprintf(pcregex, sizeof(pcregex), "ktrace.*%d.*return,failure", pid); in ATF_TC_BODY()
1467 pid = getpid(); in ATF_TC_BODY()
1468 snprintf(pcregex, sizeof(pcregex), "procctl.*%d.*return,success", pid); in ATF_TC_BODY()
1473 ATF_REQUIRE_EQ(0, procctl(P_PID, pid, PROC_REAP_STATUS, &reapstat)); in ATF_TC_BODY()
1492 pid = getpid(); in ATF_TC_BODY()
1493 snprintf(pcregex, sizeof(pcregex), "procctl.*%d.*return,failure", pid); in ATF_TC_BODY()
1518 ATF_REQUIRE((pid = fork()) != -1); in ATF_TC_BODY()
1519 if (pid) { in ATF_TC_BODY()
1521 "cap_enter.*%d.*return,success", pid); in ATF_TC_BODY()
1550 pid = getpid(); in ATF_TC_BODY()
1551 snprintf(pcregex, sizeof(pcregex), "cap_getmode.*%d.*success", pid); in ATF_TC_BODY()
1573 pid = getpid(); in ATF_TC_BODY()
1574 snprintf(pcregex, sizeof(pcregex), "cap_getmode.*%d.*failure", pid); in ATF_TC_BODY()