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

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dkill.c35 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 Dtemp.c62 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 Dshio.c51 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 Dprocclose.c38 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 Dtempnam.c34 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 Dsystem.c46 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 Dmkstemp.c15 unsigned int pid; local
18 pid = getpid();
24 *s = (pid % 10) + '0';
25 pid /= 10;
H A Dmktemp.c54 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 Dsystem.c46 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 Dplock.c51 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 Dsystemvp.c53 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 Dpipletr.c71 pid_t pid; local
79 if ((pid = fork()) == CHILD) {
89 return (dowait(pid));
/illumos-gate/usr/src/cmd/lms/tools/
H A Ddaemonize.cpp68 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 Dkernel.c71 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 Dprb_proc_int.h71 int pid; member in struct:prb_proc_ctl
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dfcntl.c72 int pid; local
82 pid = (int)arg;
83 return (ioctl(fd, FIOSETOWN, &pid));
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/
H A Dopenchild.c65 * 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 Dtst.gcc.c35 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 Ddaemon.c59 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 Dpgrpsys.c44 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 Defdaemon.c59 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 Dfmd_msg_test.c46 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 Dprocess_dump.c50 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 Dp2open.c47 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 Dcrashtest1.c40 /*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);

Completed in 51 milliseconds

1234567891011>>