/openbsd/regress/lib/libc/sys/ |
H A D | t_kill.c | 136 pid_t cpid, ppid; in ATF_TC_BODY() local 158 ppid = fork(); in ATF_TC_BODY() 160 if (ppid < 0) in ATF_TC_BODY() 163 if (ppid == 0) { in ATF_TC_BODY() 219 pid_t cpid, ppid; in ATF_TC_BODY() local 222 ppid = fork(); in ATF_TC_BODY() 223 ATF_REQUIRE(ppid >= 0); in ATF_TC_BODY() 225 if (ppid == 0) { in ATF_TC_BODY() 266 pid_t cpid, ppid; in ATF_TC_BODY() local 269 ppid = fork(); in ATF_TC_BODY() [all …]
|
H A D | t_getpid.c | 62 pid_t ppid, fpid, cpid, tpid, wpid; in ATF_TC_BODY() local 75 ppid = getppid(); in ATF_TC_BODY() 77 if (tpid != ppid) in ATF_TC_BODY() 80 if (cpid == ppid) in ATF_TC_BODY()
|
H A D | t_getsid.c | 83 pid_t csid, pid, ppid, sid; in ATF_TC_BODY() local 95 ppid = getppid(); in ATF_TC_BODY() 100 if (getsid(ppid) != csid) in ATF_TC_BODY()
|
/openbsd/sbin/ldattach/ |
H A D | ldattach.c | 117 pid_t ppid; in main() local 125 if ((ppid = getppid()) == 1) in main() 157 if (ppid != 1) in main() 174 if (ppid != 1) in main() 182 if (ppid != -1) in main() 189 if (ppid != 1 && argc != 2) in main() 224 if (ppid != 1) in main() 288 if (ppid != 1) in main() 328 if (ppid == 1) in main()
|
/openbsd/sys/dev/fdt/ |
H A D | qcspmi.c | 119 uint16_t ppid; member 192 uint32_t val, ppid, irq_own; in qcspmi_attach() local 243 ppid = (val >> SPMI_ARB_APID_MAP_PPID_SHIFT) & in qcspmi_attach() 252 last_apid = &sc->sc_apid[sc->sc_ppid_to_apid[ppid] & in qcspmi_attach() 257 } else if ((sc->sc_ppid_to_apid[ppid] & in qcspmi_attach() 316 uint16_t apid, ppid; in qcspmi_cmd_read() local 327 ppid = (sid << 8) | (addr >> 8); in qcspmi_cmd_read() 376 uint16_t apid, ppid; in qcspmi_cmd_write() local 387 ppid = (sid << 8) | (addr >> 8); in qcspmi_cmd_write() 437 uint16_t ppid; in qcspmi_intr_establish() local [all …]
|
/openbsd/gnu/usr.bin/perl/dist/Time-HiRes/t/ |
H A D | Watchdog.pm | 17 my $ppid = getppid(); 21 if (kill(0, $ppid)) { # Check if parent still exists 23 print("Terminating main process $ppid...\n"); 24 kill('KILL', $ppid);
|
/openbsd/regress/sys/kern/signal/sigio/ |
H A D | sigio_common.c | 62 pid_t pid, ppid; in test_common_badsession() local 67 ppid = getpid(); in test_common_badsession() 73 assert(fcntl(fd, F_SETOWN, ppid) == -1); in test_common_badsession() 76 assert(fcntl(fd, F_SETOWN, -ppid) == -1); in test_common_badsession() 78 arg = ppid; in test_common_badsession() 82 arg = -ppid; in test_common_badsession() 99 pid_t pid, ppid; in test_common_cansigio() local 107 ppid = getpid(); in test_common_cansigio() 127 assert(fcntl(fds[0], F_SETOWN, ppid) == 0); in test_common_cansigio()
|
H A D | util.c | 104 test_fork(pid_t *ppid, int *psfd) in test_fork() argument 113 *ppid = pid; in test_fork()
|
/openbsd/usr.sbin/amd/amd/ |
H A D | amd.c | 190 pid_t ppid = 0; in main() local 314 ppid = daemon_mode(); in main() 323 error = mount_automounter(ppid); in main() 324 if (error && ppid) in main() 325 kill(ppid, SIGALRM); in main()
|
H A D | nfs_start.c | 338 mount_automounter(pid_t ppid) in mount_automounter() argument 428 if (ppid) in mount_automounter() 429 kill(ppid, SIGQUIT); in mount_automounter()
|
/openbsd/gnu/usr.bin/perl/t/op/ |
H A D | getpid.t | 29 my ($pid, $ppid) = ($$, getppid()); 48 …isnt($ppid, $ppid2, "getppid() in a thread is different from the parent on this non-POSIX system"); 51 is($ppid, $ppid2, 'getppid() in a thread is the same as in the parent');
|
/openbsd/regress/sys/kern/signal/sigsuspend/ |
H A D | sigsuspend.c | 34 pid_t pid, ppid; in main() local 37 ppid = getpid(); in main() 64 kill(ppid, SIGUSR1); /* Tell the parent we're ready. */ in main()
|
/openbsd/gnu/usr.bin/perl/os2/OS2/OS2-REXX/t/ |
H A D | rx_dllld.t | 33 ($pid, $ppid, $ssid) = split(/\s+/, $result); 36 print "# pid=$pid, ppid=$ppid, ssid=$ssid\n";
|
/openbsd/gnu/usr.bin/perl/ext/POSIX/t/ |
H A D | wrappers.t | 237 my $ppid = <STDIN>; 238 chomp $ppid; 239 is($ppid, $$, 'getppid');
|
/openbsd/usr.sbin/sasyncd/ |
H A D | sasyncd.c | 57 sasyncd_run(pid_t ppid) in sasyncd_run() argument 124 if (getppid() != ppid) { in sasyncd_run()
|
/openbsd/regress/usr.sbin/relayd/ |
H A D | Proc.pm | 73 $self->{ppid} = $$; 133 return 0 unless $self->{ppid} == $$;
|
/openbsd/regress/usr.sbin/syslogd/ |
H A D | Syslogd.pm | 304 my $ppid = shift // $self->{pid}; 307 my @cmd = ("ps", "-ww", "-p", $ppid, "-U", "_syslogd", 323 grep { $_->{PPID} == $ppid && $_->{COMMAND} eq "syslogd" } @pslist;
|
H A D | Proc.pm | 79 $self->{ppid} = $$; 155 return 0 unless $self->{ppid} == $$;
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_stoptheworld_netbsd_libcdep.cpp | 340 pid_t ppid = internal_getppid(); in GetRegistersAndSP() local 344 internal_iserror(internal_ptrace(PT_GETREGS, ppid, ®s, tid), &pterrno); in GetRegistersAndSP() 348 ppid, tid, pterrno); in GetRegistersAndSP()
|
/openbsd/bin/ksh/ |
H A D | jobs.c | 83 pid_t ppid; /* pid of process that forked job */ member 252 if (j->ppid == procpid && in j_exit() 431 j->ppid = procpid; in exchild() 625 if (j->ppid == procpid && j->state == PRUNNING) in waitfor() 634 if (j->ppid != procpid) { in waitfor() 800 if (j->ppid == procpid && j->state == PSTOPPED) in j_stopped_running() 803 j->ppid == procpid && j->state == PRUNNING) in j_stopped_running() 1147 if (j->ppid == procpid && !(j->flags & JF_STARTED)) { in j_sigchld() 1585 if ((j->flags & JF_ZOMBIE) && j->ppid == procpid) in remove_job()
|
H A D | main.c | 153 pid_t ppid; in main() local 307 ppid = getppid(); in main() 308 setint(global("PPID"), (int64_t) ppid); in main()
|
/openbsd/usr.bin/tmux/ |
H A D | client.c | 240 pid_t ppid; in client_main() local 413 ppid = getppid(); in client_main() 414 if (client_exittype == MSG_DETACHKILL && ppid > 1) in client_main() 415 kill(ppid, SIGHUP); in client_main()
|
/openbsd/gnu/usr.bin/perl/t/io/ |
H A D | eintr_print.t | 45 my $ppid = $$;
|
/openbsd/usr.sbin/lpd/ |
H A D | lp.c | 606 lp_getcurrtask(struct lp_printer *lp, pid_t *ppid, char *dst, size_t dstsz) in lp_getcurrtask() argument 616 pid = *ppid = 0; in lp_getcurrtask() 660 *ppid = pid; in lp_getcurrtask()
|
/openbsd/gnu/usr.bin/perl/os2/OS2/OS2-Process/ |
H A D | Process.xs | 261 (HWND hwnd, PPID ppid, PTID ptid), (hwnd, ppid, ptid)) 1331 int ppid; in ppidOf() local 1338 ppid = psi->procdata->ppid; in ppidOf() 1340 return ppid; in ppidOf()
|