Searched refs:pid (Results 226 - 250 of 1137) sorted by relevance

1234567891011>>

/freebsd-head/contrib/netbsd-tests/lib/libc/gen/
H A Dt_getgrent.c128 pid_t pid; local
139 pid = fork();
140 ATF_REQUIRE(pid >= 0);
142 if (pid == 0) {
/freebsd-head/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getsid.c82 pid_t csid, pid, ppid, sid; local
86 pid = fork();
88 ATF_REQUIRE(pid >= 0);
91 if (pid == 0) {
H A Dt_setuid.c84 pid_t pid; local
89 pid = fork();
90 ATF_REQUIRE(pid >= 0);
92 if (pid == 0) {
H A Dt_chroot.c57 pid_t pid; local
66 pid = fork();
67 ATF_REQUIRE(pid >= 0);
69 if (pid == 0) {
143 pid_t pid; local
149 pid = fork();
150 ATF_REQUIRE(pid >= 0);
152 if (pid == 0) {
183 pid_t pid; local
195 pid
269 pid_t pid; local
[all...]
H A Dt_mkfifo.c76 pid_t pid; local
82 pid = fork();
83 ATF_REQUIRE(pid >= 0);
85 if (pid == 0) {
99 ATF_REQUIRE(kill(pid, SIGKILL) == 0);
162 pid_t pid; local
169 pid = fork();
170 ATF_REQUIRE(pid >= 0);
172 if (pid == 0) {
192 (void)kill(pid, SIGKIL
[all...]
/freebsd-head/contrib/wpa/src/utils/
H A Dbrowser-system.c70 pid_t pid; local
88 pid = fork();
89 if (pid < 0) {
96 if (pid == 0) {
/freebsd-head/tools/regression/sockets/pr_atomic/
H A Dpr_atomic.c58 pid_t pid; local
72 pid = fork();
73 if (pid == -1)
75 if (pid == 0) {
/freebsd-head/lib/libc/tests/gen/
H A Darc4random_test.c58 pid_t pid; local
67 pid = fork();
68 ATF_REQUIRE(0 <= pid);
69 if (pid == 0) {
/freebsd-head/contrib/netbsd-tests/kernel/
H A Dt_lockf.c126 pid_t *pid; local
144 pid = malloc(nprocs * sizeof(pid_t));
148 pid[i] = fork();
149 switch (pid[i]) {
172 ATF_REQUIRE_MSG(ptrace(PT_ATTACH, pid[i], 0, 0) >= 0,
173 "ptrace attach %d", pid[i]); local
174 ATF_REQUIRE_MSG(waitpid(pid[i], &status, WUNTRACED) >= 0,
177 ATF_REQUIRE_MSG(ptrace(PT_DETACH, pid[i], (caddr_t)1,
179 "ptrace detach %d", pid[i]); local
186 kill(pid[
224 pid_t pid; local
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fexecve.c56 pid_t pid; local
60 ATF_REQUIRE((pid = fork()) != -1);
61 if (pid == 0) {
78 ATF_REQUIRE(waitpid(pid, &status, 0) != -1);
/freebsd-head/usr.sbin/ipfwpcap/
H A DMakefile17 -rm /var/run/ipfwpcap.2000.pid
/freebsd-head/sbin/hastd/
H A Dhooks.h45 void hook_check_one(pid_t pid, int status);
/freebsd-head/usr.sbin/getpmac/
H A Dgetpmac.c55 fprintf(stderr, "getpmac [-l list,of,labels] [-p pid]\n");
64 pid_t pid; local
68 pid = 0;
80 pid = atoi(argv[optind - 1]);
105 error = mac_get_pid(pid, label);
/freebsd-head/tests/sys/cddl/zfs/bin/
H A Ddir_rd_update.c57 pid_t pid; local
90 pid = fork();
91 if (pid > 0) {
105 } else if (pid == 0) {
/freebsd-head/usr.sbin/pw/
H A Dpw_utils.c80 pid_t pid; local
84 if ((pid = fork()) == -1) {
88 if (pid == 0) {
92 waitpid(pid, &i, 0);
/freebsd-head/cddl/usr.sbin/dtrace/tests/i386/
H A DMakefile6 pid \
/freebsd-head/sys/fs/fuse/
H A Dfuse_io.h69 struct ucred *cred, pid_t pid);
H A Dfuse_file.h118 * gid, pid, and access mode. When opening a file, we first check whether
159 pid_t pid; member in struct:fuse_filehandle
201 struct ucred *cred, pid_t pid);
204 pid_t pid);
207 pid_t pid);
210 pid_t pid);
/freebsd-head/tests/sys/kern/
H A Dreaper.c47 pid_t parent, child, grandchild, pid; local
52 pid = waitpid(-1, NULL, WNOHANG);
53 ATF_REQUIRE(pid == -1 && errno == ECHILD);
80 pid = waitpid(child, &status, 0);
81 ATF_REQUIRE_EQ(child, pid);
88 pid = waitpid(-1, &status, 0);
89 ATF_REQUIRE(pid > 0 && pid != child);
100 pid_t parent, child, grandchild, pid; local
104 pid
148 pid_t parent, child, grandchild, pid; local
235 pid_t parent, child, grandchild, pid; local
298 pid_t parent, child, pid; local
382 pid_t parent, child, grandchild, pid; local
589 pid_t parent, child, grandchild, pid; local
648 pid_t parent, child1, child2, grandchild1, grandchild2, pid; local
748 pid_t child, grandchild, parent, pid; local
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_spawn.c150 pid_t pid; local
155 err = posix_spawn(&pid, buf, NULL, NULL, args0, NULL);
157 ATF_REQUIRE(pid > 0);
158 waitpid(pid, &status, 0);
161 err = posix_spawn(&pid, buf, NULL, NULL, args1, NULL);
163 ATF_REQUIRE(pid > 0);
164 waitpid(pid, &status, 0);
167 err = posix_spawn(&pid, buf, NULL, NULL, args7, NULL);
169 ATF_REQUIRE(pid > 0);
170 waitpid(pid,
[all...]
H A Dt_spawnattr.c109 int pid, scheduler, child_scheduler, priority, status, err, pfd[2]; local
144 err = posix_spawn(&pid, helper, NULL, &attr, args, NULL);
147 child_scheduler = sched_getscheduler(pid);
149 "scheduler = %d, child_scheduler = %d, pid %d, errno %d",
150 scheduler, child_scheduler, pid, errno);
152 sched_getparam(pid, &child_sp);
157 ATF_REQUIRE_MSG(pid == getpgid(pid), "child pid: %d, child pgid: %d",
158 pid, getpgi
[all...]
/freebsd-head/contrib/netbsd-tests/kernel/kqueue/
H A Dt_proc1.c101 pid_t pid; local
108 RL(pid = fork());
109 if (pid == 0) {
116 event[0].ident = (uintptr_t)pid;
147 (void)waitpid(pid, &status, 0);
/freebsd-head/contrib/kyua/utils/process/
H A Doperations_test.cpp260 const pid_t pid = ::fork(); local
261 ATF_REQUIRE(pid != -1);
262 if (pid == 0) {
288 process::terminate_group(pid);
306 const pid_t pid = ::fork(); local
307 ATF_REQUIRE(pid != -1);
308 if (pid == 0) {
315 process::terminate_group(pid);
327 const pid_t pid = ::fork(); local
328 ATF_REQUIRE(pid !
344 const pid_t pid = ::fork(); local
365 const pid_t pid = ::fork(); local
386 const pid_t pid = child->pid(); local
[all...]
/freebsd-head/tests/sys/fs/fusefs/
H A Dlocks.cc67 void expect_setlk(uint64_t ino, pid_t pid, uint64_t start, uint64_t end, argument
75 in.body.setlkw.owner == (uint32_t)pid &&
79 in.body.setlkw.lk.pid == (uint64_t)pid);
233 pid_t pid = 1234; local
242 in.body.getlk.owner == (uint32_t)pid &&
246 in.body.getlk.lk.pid == (uint64_t)pid);
259 fl.l_pid = pid;
268 /* A different pid doe
276 pid_t pid = 1234; local
354 pid_t pid = 1234; local
380 pid_t pid = 1234; local
406 pid_t pid = 1234; local
464 pid_t pid = 1234; local
[all...]
/freebsd-head/crypto/heimdal/lib/roken/
H A Dsimple_exec.c82 wait_for_process_timed(pid_t pid, time_t (*func)(void *), argument
99 while(waitpid(pid, &status, 0) < 0) {
110 kill(pid, SIGTERM);
138 wait_for_process(pid_t pid) argument
140 return wait_for_process_timed(pid, NULL, NULL, 0);
148 pid_t pid; local
158 pid = fork();
159 switch(pid) {
229 return pid;
236 pid_t pid local
259 pid_t pid = fork(); local
[all...]

Completed in 225 milliseconds

1234567891011>>