/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | syslog.c | 178 pid_t pid; local 357 pid = forkx(nowait? 0 : (FORK_NOSIGCHLD | FORK_WAITPID)); 358 if (pid == -1) 361 if (pid == 0) { 380 while (waitpid(pid, NULL, 0) == -1 && errno == EINTR) 398 * see if our pid matches the pid of the door server.
|
/illumos-gate/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 69 pid_t pid; /* process-id */ member in struct:cstatus 70 int asfd; /* /proc/<pid>/as */ 71 int ctlfd; /* /proc/<pid>/ctl */ 72 int statusfd; /* /proc/<pid>/status */ 74 pstatus_t pstatus; /* from /proc/<pid>/status */ 139 ptrace(int request, pid_t pid, int addr, int data) argument 157 map(request), pid, addr, data); 168 char procname[64]; /* /proc/<pid>/ctl */ 215 /* find the cstatus structure corresponding to pid */ 216 if ((cp = GrabProc(pid)) 413 FindProc(pid_t pid) argument 476 MakeProcName(char *procname, pid_t pid) argument 542 GrabProc(pid_t pid) argument [all...] |
/illumos-gate/usr/src/lib/libkvm/common/ |
H A D | kvm.c | 230 char *template = "/tmp/.libkvm.kvm_nlist_core.pid%d.XXXXXX"; 474 kvm_getproc(kvm_t *kd, pid_t pid) argument 478 if (kd->kvm_pid == pid)
|
/illumos-gate/usr/src/cmd/power/ |
H A D | conf.c | 232 mesg(MDEBUG, "got powerd pid %ld\n", powerd_pid); 286 * Signal old powerd when there's a valid pid, or start a new one; 294 pid_t pid, wp; local 305 if ((pid = fork()) == NOPID) 307 else if (pid == P_MYPID) { 318 wp = waitpid(pid, &status, 0); 333 int pid; local 337 pid = fork(); 338 if (pid == NOPID) 340 else if (pid [all...] |
H A D | sys-suspend.c | 155 pid_t pid; local 162 if ((pid = fork()) == 0) { 167 } else if (pid == -1) { 180 if ((rc = waitpid(pid, NULL, WNOHANG)) == pid) {
|
/illumos-gate/usr/src/cmd/priocntl/ |
H A D | priocntl.c | 258 pid_t pid; local 287 if ((pid = fork()) == 0) { 292 } else if (pid == (pid_t)-1) { 790 * We read the /proc/<pid>/psinfo file to get the necessary process 991 * structure corresponding to clname and add pid to its 995 add_pid_tolist(clpids, nclass, clname, pid) 999 pid_t pid; 1008 (clp->clp_pidlist)[clp->clp_npids] = pid;
|
/illumos-gate/usr/src/cmd/ptools/ptree/ |
H A D | ptree.c | 52 #define FAKEDPID0(p) (p->pid == 0 && p->psargs[0] == '\0') 58 pid_t pid; /* pid == -1 indicates this is a contract */ member in struct:ps 143 "usage:\t%s [-ac] [-z zone] [ {pid|user} ... ]\n", 232 p->pid = info.pr_pid; 252 if (p->pid == p->ppid) 254 if (p->pid == 1) 295 pid_t pid; local 306 pid = strtoul(arg, &next, 10); 317 pid [all...] |
/illumos-gate/usr/src/cmd/rcap/rcapstat/ |
H A D | rcapstat.c | 149 uint64_t pid; local 173 pid = hdr.rs_pid; 174 (void) snprintf(procfile, 20, "/proc/%lld/psinfo", pid);
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_impl.h | 133 pid_t pid; /* pid of regis process */ member in struct:client
|
H A D | rcm_script_impl.h | 112 pid_t pid; /* process id of the script process */ member in struct:script_info 200 pid_t pid; member in struct:ps_state_element
|
/illumos-gate/usr/src/cmd/rexd/ |
H A D | rpc.rexd.c | 96 int child = 0; /* pid of the executed process */ 230 int pid = fork(); local 232 if (pid < 0) { /* fork error */ 237 if (pid) { /* parent terminates */ 422 int fd, pid, count; local 424 for (count = 0; (pid = fork()) < 0; count++) { 433 if (pid != 0) { 677 pid_t pid; local 683 while ((pid = waitpid((pid_t)-1, &status, WNOHANG|WUNTRACED)) > 0) { 686 if (pid [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rexecd.c | 171 pid_t pid; local 368 pid = fork(); 369 if (pid == (pid_t)-1) { 374 if (pid) { 397 (void) killpg(pid, sig);
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | crontab.c | 132 pid_t pid; local 262 if ((pid = fork()) == (pid_t)-1) 264 if (pid == 0) { /* child process */ 412 char pid[6], *tnam_end; local 416 sprintf(pid, "%-5d", getpid()); 418 strcat(strcat(strcat(strcpy(tnam, CRONDIR), "/"), TMPFILE), pid);
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.proc.c | 53 int pid; local 62 pid = csh_wait3(&w, (setintr ? WNOHANG|WUNTRACED:WNOHANG), &ru); 69 if (pid <= 0) { 74 pnoprocesses = pid == -1; 78 if (pid == pp->p_pid) 82 if (pid == atoi_(value(S_child /* "child" */))) 410 palloc(int pid, struct command *t) argument 419 pp->p_pid = pid; 445 pp->p_jobid = pid; 947 int omask, pid, er local 1183 int pid; local [all...] |
/illumos-gate/usr/src/cmd/ctrun/ |
H A D | ctrun.c | 356 dowait(int pid) argument 362 wpid = waitpid(pid, &wstatus, 0); 378 pid_t pid; local 619 if ((pid = fork()) == -1) { 621 } else if (pid == 0) { 716 chldstat = dowait(pid); 728 chldstat = dowait(pid); 731 chldstat = dowait(pid);
|
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starcat/ |
H A D | cvcd.c | 422 id_t pid, tsID; local 428 pid = getpid(); 433 if (priocntl(P_PID, pid, PC_GETPARMS, (caddr_t)&pcparms) == -1L) { 454 pid, tsparmsp->ts_upri, tsmaxpri); 462 if (priocntl(P_PID, pid, PC_SETPARMS, (caddr_t)&pcparms) == -1L) { 469 if (priocntl(P_PID, pid, PC_GETPARMS, (caddr_t)&pcparms) == 474 cvcd_err(LOG_DEBUG, "PID: %d, new priority: %d.", pid,
|
/illumos-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/ |
H A D | cvcd.c | 141 id_t pid, tsID; local 266 pid = getpid(); 271 if (priocntl(P_PID, pid, PC_GETPARMS, (caddr_t)&pcparms) == -1L) { 284 "cvcd:: PID:", pid, 296 if (priocntl(P_PID, pid, PC_SETPARMS, 303 if (priocntl(P_PID, pid, PC_GETPARMS, 309 "cvcd:: PID:", pid,
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | usb_link.c | 438 char *vid, *pid; local 450 /* get vid, pid and minor name strings */ 452 pid = strtok_r(NULL, ".", &lasts); 455 if ((vid == NULL) || (pid == NULL) || (minor_name == NULL)) { 459 /* create regular expression contain vid and pid */ 461 "^usb$/^%s\\.%s$/^([0-9]+)$", vid, pid); 482 vid, pid, buf, minor_name);
|
/illumos-gate/usr/src/cmd/lvm/util/ |
H A D | metainit.c | 727 pid_t pid; local 842 pid = fork1(); 843 if (pid == (pid_t)-1) { 852 } else if (pid == (pid_t)0) {
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | send.c | 404 pid_t p, pid; local 419 pid = (pid_t)-1; 527 pid = fork(); 528 if (pid == (pid_t)-1) { 544 if (pid == 0) { 579 while ((p = wait(&s)) != pid && p != (pid_t)-1) 583 pid = 0;
|
/illumos-gate/usr/src/cmd/du/ |
H A D | du.c | 107 pid_t pid, wpid; local 205 pid = fork(); 206 if (pid == (pid_t)-1) { 210 if (pid != 0) { 211 while ((wpid = wait(&status)) != pid && 214 if (pid != (pid_t)-1 && status != 0) 218 if (optind == argc - 1 || pid == 0) {
|
/illumos-gate/usr/src/cmd/eject/ |
H A D | eject.c | 194 pid_t pid; local 205 pid = fork(); 206 if (pid < 0) { 208 } else if (pid == 0) { 226 if (waitpid(pid, &status, 0) != pid) {
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | pmadm.c | 875 pid_t pid; /* returned pid from fork */ local 878 if ((pid = fork()) < 0) { 884 else if (pid) {
|
H A D | sac.c | 374 pid_t pid; /* pid of new port monitor */ local 413 if ((pid = fork()) < 0) { 418 } else if (!pid) { 433 account(sp, pid); 441 sp->sc_pid = pid; 465 int pid; local 480 pid = sp->sc_pid; 483 if (up->ut_pid == pid) { 530 * args: pid 535 account(struct sactab *sp, pid_t pid) argument 840 pid_t pid; /* returned pid from wait */ local [all...] |
/illumos-gate/usr/src/cmd/sgs/ldd/common/ |
H A D | ldd.c | 634 int pid, status; local 636 if ((pid = fork()) == -1) { 643 if (pid) { /* parent */ 644 while (wait(&status) != pid)
|