Searched defs:pid (Results 1 - 25 of 729) sorted by relevance

1234567891011>>

/freebsd-head/tools/regression/capsicum/syscalls/
H A Dcap_getmode.c50 pid_t pid; local
71 pid = fork();
72 switch (pid) {
84 if (waitpid(pid, NULL, 0) == -1)
89 pid = pdfork(&pfd, 0);
90 switch (pid) {
127 pid = fork();
128 switch (pid) {
148 pid = pdfork(&pfd, 0);
149 switch (pid) {
[all...]
/freebsd-head/lib/libc/compat-43/
H A Dsetpgrp.c42 setpgrp(pid_t pid, pid_t pgid) argument
44 return(setpgid(pid, pgid));
/freebsd-head/lib/libc/gen/
H A Dclock_getcpuclockid.c38 clock_getcpuclockid(pid_t pid, clockid_t *clock_id) argument
40 if (clock_getcpuclockid2(pid, CPUCLOCK_WHICH_PID, clock_id))
H A Dwaitpid.c48 __waitpid(pid_t pid, int *istat, int options) argument
52 __libc_interposing[INTERPOS_wait4])(pid, istat, options, NULL));
/freebsd-head/contrib/kyua/utils/process/
H A Ddeadline_killer.cpp41 /// \param pid PID of the process (and process group) to kill.
43 const int pid) :
44 signals::timer(delta), _pid(pid)
42 deadline_killer(const datetime::delta& delta, const int pid) argument
/freebsd-head/contrib/binutils/libiberty/
H A Dwaitpid.c3 @deftypefn Supplemental int waitpid (int @var{pid}, int *@var{status}, int)
6 values of @var{pid} depend on your implementation of @code{wait}, as
27 waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED) argument
32 if (wpid == pid || wpid == -1)
H A Dtmpnam.c32 int pid = getpid (); local
43 sprintf (s, "%s/%s%x.%x", P_tmpdir, "t", pid, tmpnam_counter);
/freebsd-head/lib/libc/sys/
H A Dwait4.c44 wait4(pid_t pid, int *status, int options, struct rusage *ru) argument
48 __libc_interposing[INTERPOS_wait4])(pid, status, options, ru));
H A Dptrace.c44 _ptrace(int request, pid_t pid, caddr_t addr, int data) argument
48 return (__sys_ptrace(request, pid, addr, data));
/freebsd-head/lib/libutil/
H A Dkinfo_getproc.c43 kinfo_getproc(pid_t pid) argument
53 mib[3] = pid;
67 if (kipp->ki_pid != pid)
/freebsd-head/contrib/apr/threadproc/unix/
H A Dprocsup.c91 int waitpid(pid_t pid, int *statusp, int options) argument
94 if (kill(pid, 0) == -1) {
98 while (((tmp_pid = wait3(statusp, options, 0)) != pid) &&
99 (tmp_pid != -1) && (tmp_pid != 0) && (pid != -1))
/freebsd-head/contrib/netbsd-tests/lib/libc/termios/
H A Dt_tcsetpgrp.c51 pid_t pid; local
56 pid = fork();
57 ATF_REQUIRE(pid >= 0);
59 if (pid == 0) {
/freebsd-head/tests/sys/kern/
H A Dwaitpid_nohang.c39 pid_t child, pid; local
50 pid = waitpid(child, &status, WNOHANG);
51 ATF_REQUIRE(pid == 0);
60 pid = waitpid(child, &status, WNOHANG);
61 ATF_REQUIRE(pid == child);
H A Dkill_zombie.c39 pid_t child, pid; local
55 pid = waitpid(child, &status, 0);
56 ATF_REQUIRE(pid == child);
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dbsd-waitpid.c33 waitpid(int pid, int *stat_loc, int options) argument
38 if (pid <= 0) {
39 if (pid != -1) {
43 /* wait4() wants pid=0 for indiscriminate wait. */
44 pid = 0;
46 wait_pid = wait4(pid, &statusp, options, NULL);
/freebsd-head/contrib/opie/libopie/
H A Dunlock.c47 int fh, rval = -1, pid, t, i; variable
75 if (!(pid = atoi(buffer)))
81 if ((pid != getpid()) && (time(0) <= OPIE_LOCK_TIMEOUT + t) && (!kill(pid, 0))) {
/freebsd-head/contrib/gdb/gdb/
H A Dser-pipe.c44 int pid; member in struct:pipe_state
64 int pid;
72 pid = vfork ();
75 if (pid == -1)
83 if (pid == 0)
109 state->pid = pid;
125 int pid = state->pid; local
130 kill (pid, SIGTER
[all...]
/freebsd-head/crypto/heimdal/appl/login/
H A Dshadow.c48 pid_t pid; local
50 switch (pid = fork()) {
58 waitpid(pid, &status, 0);
/freebsd-head/contrib/pf/pflogd/
H A Dpidfile.c62 pid_t pid; local
73 (void) asprintf(&pidfile_path, "%s%s.pid", _PATH_VARRUN, basename);
85 pid = getpid();
86 if (fprintf(f, "%ld\n", (long)pid) <= 0 || fclose(f) != 0) {
95 pidfile_pid = pid;
/freebsd-head/tools/regression/security/cap_test/
H A Dcap_test_pdfork.c64 pid_t pid; local
69 pid = pdfork(&pd, 0);
70 if (pid < 0)
73 else if (pid == 0) {
79 error = pdgetpid(pd, &pid);
101 error = pdgetpid(pd, &pid);
103 CHECK(pid > 0);
106 while (waitpid(pid, &status, 0) != pid) {}
H A Dcap_test_pdkill.c67 pid_t pid; local
82 error = pdgetpid(pd, &pid);
94 while (waitpid(pid, &status, 0) != pid) {}
/freebsd-head/contrib/netbsd-tests/lib/libc/gen/
H A Dt_pause.c79 pid_t pid; local
84 pid = fork();
85 ATF_REQUIRE(pid >= 0);
87 if (pid == 0) {
99 (void)kill(pid, SIGKILL);
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/
H A Dtst.gcc.c38 pid_t pid; local
40 (void) posix_spawn(&pid, "/bin/ls", NULL, NULL, NULL, NULL);
42 (void) waitpid(pid, NULL, 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/tools/regression/posixsem2/
H A Dsemtest.c24 pid_t pid; local
34 if ((pid = fork()) == 0) {
45 waitpid(pid, &status, 0);
58 pid_t pid; local
74 if ((pid = fork()) == 0) {
85 waitpid(pid, &status, 0);

Completed in 107 milliseconds

1234567891011>>