/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | kill.c | 35 kill(int pid, int sig) argument 37 return(bc_kill(pid, sig)); 41 bc_kill(int pid, int sig) argument 43 return(_kill(pid, maptonewsig(sig)));
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | temp.c | 62 register pid_t pid = mypid; local 66 snprintf(tempMail, TMPSIZ, "/tmp/Rs%-ld", pid); 67 snprintf(tempQuit, TMPSIZ, "/tmp/Rm%-ld", pid); 68 snprintf(tempEdit, TMPSIZ, "/tmp/Re%-ld", pid); 69 snprintf(tempMesg, TMPSIZ, "/tmp/Rx%-ld", pid); 70 snprintf(tempZedit, TMPSIZ, "/tmp/Rz%-ld", pid);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | shio.c | 51 register pid_t pid, ret; local 62 if ((pid = fork()) == 0) { 88 if (pid == -1) 91 while ((ret = wait(&status)) != pid)
|
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | procclose.c | 38 int pid; local 61 while ((pid = waitpid(p->pid, &status, flags)) == -1 && errno == EINTR); 62 if (pid != p->pid && (flags & WNOHANG))
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/common/ |
H A D | tempnam.c | 34 int pid; local 39 pid = getpid(); 46 sprintf(tnm, "%s/%s%d%d", dir, pfx, pid, seq++);
|
/illumos-gate/usr/src/lib/libbc/libc/gen/4.2/ |
H A D | system.c | 46 pid_t pid, w; local 86 if ((pid = vfork()) == 0) { 90 if (pid == -1) { 95 w = waitpid(pid, &status, 0);
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | mkstemp.c | 15 unsigned int pid; local 18 pid = getpid(); 24 *s = (pid % 10) + '0'; 25 pid /= 10;
|
H A D | mktemp.c | 54 register unsigned pid; local 58 pid = getpid(); 61 *s = (pid%10) + '0'; 62 pid /= 10;
|
/illumos-gate/usr/src/lib/libbc/libc/gen/sys5/ |
H A D | system.c | 46 pid_t pid, w; local 84 if ((pid = vfork()) == 0) { 88 if (pid == -1) { 93 w = waitpid(pid, &status, 0);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | plock.c | 51 static pid_t state_pid = -1; /* pid to which state belongs */ 61 pid_t pid; /* current pid */ local 70 if ((pid = getpid()) != state_pid) { 72 state_pid = pid;
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | systemvp.c | 53 pid_t pid, w; local 56 if ((pid = fork()) == 0) { 68 } while (w != pid && w != (pid_t)-1);
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | pipletr.c | 71 pid_t pid; local 79 if ((pid = fork()) == CHILD) { 89 return (dowait(pid));
|
/illumos-gate/usr/src/cmd/lms/tools/ |
H A D | daemonize.cpp | 68 pid_t pid, sid, parent; local 85 pid = fork(); 86 if (pid < 0) { 92 if (pid > 0) {
|
/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | kernel.c | 71 tnfctl_filter_list_add(tnfctl_handle_t *hdl, pid_t pid) argument 77 return (_tnfctl_prbk_pfilter_add(hdl, pid)); 81 tnfctl_filter_list_delete(tnfctl_handle_t *hdl, pid_t pid) argument 87 return (_tnfctl_prbk_pfilter_delete(hdl, pid));
|
H A D | prb_proc_int.h | 71 int pid; member in struct:prb_proc_ctl
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | fcntl.c | 72 int pid; local 82 pid = (int)arg; 83 return (ioctl(fd, FIOSETOWN, &pid));
|
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/ |
H A D | openchild.c | 65 * returns pid, or -1 for failure 74 int pid; local 86 switch (pid = fork()) { 123 return (pid);
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.gcc.c | 35 pid_t pid; local 37 (void) posix_spawn(&pid, "/usr/bin/ls", NULL, NULL, NULL, NULL); 39 (void) waitpid(pid, NULL, 0);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | daemon.c | 59 pid_t pid; local 82 if ((pid = fork()) == -1) { 87 if (pid != 0) { 93 if (waitpid(pid, &status, 0) == pid && WIFEXITED(status))
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | pgrpsys.c | 44 setpgrp(int flag, int pid, int pgid) argument 80 if (pid == 0) 81 pid = p->p_pid; 82 else if (pid < 0 || pid >= maxpid) { 85 } else if (pid != p->p_pid) { 91 if (p->p_pid == pid) 104 if (p->p_sessp->s_sid == pid) { 156 if (pid < 0 || pid > [all...] |
/illumos-gate/usr/src/lib/efcode/efdaemon/ |
H A D | efdaemon.c | 59 pid_t pid, tpid; local 105 if ((pid = fork()) < 0) { 109 if (pid) 146 while ((pid = fork()) < 0) { 153 if ((nerr > 1) && pid) { 157 if (pid) { 162 else if (pid != tpid) 163 syslog(LOG_ERR, "Wait error, expect pid: %d" 164 " got %d, status: %x\n", pid, tpid, status); 166 syslog(LOG_ERR, "Wait pid [all...] |
/illumos-gate/usr/src/lib/fm/libfmd_msg/common/ |
H A D | fmd_msg_test.c | 46 pid_t pid; local 251 pid = fork(); /* fork into background to not bother make(1) */ 253 switch (pid) { 262 if (waitpid(pid, &err, 0) == -1) { 264 (int)pid, strerror(errno));
|
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | process_dump.c | 50 pid_t pid; local 54 if (ct_pr_event_get_pid(ev, &pid) != 0) { 86 (void) fprintf(file, s, pid); 96 if (ct_pr_event_get_ppid(ev, &pid) == 0) 98 "\tparent pid: %d\n"), pid); 148 if (ct_pr_event_get_sender(ev, &pid) == 0) 150 "\tsender pid: %d\n"), pid);
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | p2open.c | 47 extern int _insert(pid_t pid, int fd); 74 pid_t pid; local 87 if ((pid = fork()) == 0) { 99 if (pid == (pid_t)-1) 101 (void) _insert(pid, tocmd[1]); 102 (void) _insert(pid, fromcmd[0]); 116 pid_t pid, r; local 128 pid = _delete(fds[0]); 129 if (pid != _delete(fds[1])) 132 if (pid [all...] |
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | crashtest1.c | 40 /*printf("pid %d: journal exists. rollback will be required\n",getpid());*/ unlink("test.db-saved"); 66 printf("pid %d: cnt=%d\n", getpid(), cnt); 87 int pid = fork(); local 88 if( pid==0 ){ 93 printf("test %d, pid=%d\n", i, pid); 95 kill(pid, SIGKILL); 96 waitpid(pid, &status, 0);
|