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

1234567

/osnet-11/usr/src/lib/libast/common/misc/
H A Dprocclose.c36 int pid; local
63 while ((pid = waitpid(p->pid, &status, flags)) == -1 && errno == EINTR);
64 if (pid != p->pid && (flags & WNOHANG))
/osnet-11/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);
H A Dpopenvp.c67 pid_t pid; local
74 if ((pid = fork()) == 0) {
93 if (pid == (pid_t)-1)
95 popen_pid[myside] = pid;
/osnet-11/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;
/osnet-11/usr/src/lib/libc/port/sys/
H A Dfcntl.c72 int pid; local
82 pid = (int)arg;
83 return (ioctl(fd, FIOSETOWN, &pid));
H A Dpgrpsys.c54 getsid(pid_t pid) argument
56 return ((pid_t)syscall(SYS_pgrpsys, 2, pid));
66 getpgid(pid_t pid) argument
68 return ((pid_t)syscall(SYS_pgrpsys, 4, pid));
72 setpgid(pid_t pid, pid_t pgid) argument
74 return (syscall(SYS_pgrpsys, 5, pid, pgid));
H A Dcorectl.c94 core_set_process_content(const core_content_t *content, pid_t pid) argument
96 return (syscall(SYS_corectl, CC_SET_PROCESS_CONTENT, content, pid));
100 core_get_process_content(core_content_t *content, pid_t pid) argument
102 return (syscall(SYS_corectl, CC_GET_PROCESS_CONTENT, content, pid));
106 core_set_process_path(const char *buf, size_t bufsize, pid_t pid) argument
108 return (syscall(SYS_corectl, CC_SET_PROCESS_PATH, buf, bufsize, pid));
112 core_get_process_path(char *buf, size_t bufsize, pid_t pid) argument
114 return (syscall(SYS_corectl, CC_GET_PROCESS_PATH, buf, bufsize, pid));
/osnet-11/usr/src/lib/libresolv2/common/bsd/
H A Dmktemp.c96 u_int pid; local
98 pid = getpid();
101 *trv = (pid % 10) + '0';
102 pid /= 10;
/osnet-11/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);
/osnet-11/usr/src/lib/libgen/common/
H A Dp2open.c44 extern int _insert(pid_t pid, int fd);
71 pid_t pid; local
84 if ((pid = fork()) == 0) {
96 if (pid == (pid_t)-1)
98 (void) _insert(pid, tocmd[1]);
99 (void) _insert(pid, fromcmd[0]);
113 pid_t pid, r; local
125 pid = _delete(fds[0]);
126 if (pid != _delete(fds[1]))
129 if (pid
[all...]
/osnet-11/usr/src/lib/fm/libfmd_msg/common/
H A Dfmd_msg_test.c45 pid_t pid; local
265 pid = fork(); /* fork into background to not bother make(1) */
267 switch (pid) {
276 if (waitpid(pid, &err, 0) == -1) {
278 (int)pid, strerror(errno));
/osnet-11/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...]
/osnet-11/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);
/osnet-11/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c48 * by another process, do not block but return the pid owner of
133 * lock the file, write caller's pid to the lock file
135 * pid of the current lock holder, else,
142 pid_t pid; local
146 pid = getpid();
147 (void) snprintf(line, sizeof (line), "%ld\n", pid);
/osnet-11/usr/src/lib/libpkg/common/
H A Dpkgexecv.c138 pid_t pid; local
173 pid = vfork();
175 if (pid < 0) {
192 if (pid > 0) {
205 (void) sigsend(P_PID, pid, SIGKILL);
255 waitstat = waitpid(pid, (int *)&status, 0);
267 } else if (waitstat == pid) {
295 if (waitstat != pid) {
296 progerr(pkg_gt(ERR_WAIT_FAILED), pid, waitstat, status, local
/osnet-11/usr/src/lib/libdscfg/common/
H A Dcfg_lockd.h46 pid_t pid; member in struct:lock_msg
51 #define CFG_PIDFILE "/var/tmp/.cfglockd.pid"
60 void cfg_writepid(int segment, pid_t pid);
H A Dcfg_lockdlck.c58 pid_t pid = 0; local
67 write(local_lockfda, &pid, sizeof (pid_t));
110 cfg_writepid(int segment, pid_t pid) argument
114 write(local_lockfd, &pid, sizeof (pid_t));
121 pid_t pid; local
125 cfg_readpid(i, &pid);
126 if (pid != (pid_t)0) {
130 pid = getpid();
131 cfg_writepid(i, pid);
/osnet-11/usr/src/lib/libidmap/common/
H A Didmap_api_nfsv4.c111 * Get winname given pid
114 idmap_nfsv4_getwinnamebypid(uid_t pid, int is_user, int flag, char **name) argument
126 &windomain, pid);
129 &windomain, pid);
137 rc = idmap_get_u2w_mapping(&pid, NULL, flag, is_user, NULL,
163 pid, direction);
166 pid, direction);
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dt-sem.c363 pid_t pid; local
369 if ((pid = fork()) < 0)
376 if (pid == 0)
/osnet-11/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_pci.c47 int vid, pid, svid, spid; local
67 vid = pid = svid = spid = 0;
72 pid = i[0];
81 hal_device_property_set_int (d, "pci.product_id", pid);
/osnet-11/usr/src/lib/storage/libg_fc/common/
H A Dcmd.c77 pid_t pid; local
96 pid = getpid();
100 seed ^= pid;
/osnet-11/usr/src/lib/libproc/common/
H A Dproc_get_info.c52 proc_get_cred(pid_t pid, prcred_t *credp, int ngroups) argument
61 procfs_path, (int)pid);
74 proc_get_priv(pid_t pid) argument
82 procfs_path, (int)pid);
103 proc_get_ldt(pid_t pid, struct ssd *pldt, int nldt) argument
112 procfs_path, (int)pid);
136 proc_get_psinfo(pid_t pid, psinfo_t *psp) argument
143 procfs_path, (int)pid);
153 proc_get_status(pid_t pid, pstatus_t *psp) argument
160 procfs_path, (int)pid);
176 proc_get_auxv(pid_t pid, auxv_t *pauxv, int naux) argument
[all...]
/osnet-11/usr/src/lib/libnsl/dial/
H A Dulockf.c55 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */ local
58 if (pid[0] == '\0') {
62 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long)getpid());
67 if (onelock(pid, tempfile, name) == -1) {
72 if (onelock(pid, tempfile, name)) {
85 * - use kill(pid, 0)
123 DEBUG(4, "kill pid (%ld), ", (long)lpid);
186 * makes a lock on behalf of pid.
188 * pid - process id
196 onelock(char *pid, cha argument
[all...]
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dclnt_simple.c62 pid_t pid; /* process-id at moment of creation */ member in struct:rpc_call_private
121 rcp->pid == getpid() &&
135 rcp->pid = getpid();
/osnet-11/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DUserStackRecord.java84 UserStackRecord(int pid, byte[] rawBytes) argument
87 processID = pid;
100 * @param pid non-negative user process ID
113 UserStackRecord(int pid, StackFrame[] frames, byte[] rawBytes) argument
116 processID = pid;
172 * @return non-negative pid
305 * pid} (where <i>pid</i> is a decimal integer) and is indented by

Completed in 116 milliseconds

1234567