Searched defs:pid (Results 26 - 50 of 617) sorted by relevance

1234567891011>>

/illumos-gate/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;
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dplock.c61 static int state_pid = -1; /* pid to which state belongs */
159 int pid; /* current pid */ local
174 if ((pid = getpid()) != state_pid) {
176 state_pid = pid;
H A Dpopen.c36 register int myside, hisside, pid; local
44 for (pid = 0; pid < nfiles; pid++)
45 popen_pid[pid] = -1;
51 if ((pid = vfork()) == 0) {
69 if (pid == -1) {
74 popen_pid[myside] = pid;
84 int pid, status, omask; local
94 while ((pid
[all...]
/illumos-gate/usr/src/lib/libc/port/sys/
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));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.fingerd.c58 pid_t pid, w; local
117 if ((pid = fork()) == 0) {
128 if (pid == (pid_t)-1)
139 while ((w = wait(&status)) != pid && w != (pid_t)-1)
/illumos-gate/usr/src/cmd/mdb/demo/common/
H A Dexample2.c87 struct pid pid; local
116 * the pid struct addressed by p_pidp, and then print out the pid
121 if (mdb_vread(&pid, sizeof (pid),
122 (uintptr_t)p.p_pidp) == sizeof (pid))
123 mdb_printf("%5d %s\n", pid.pid_id, p.p_user.u_comm);
125 mdb_warn("failed to read struct pid at %p", p.p_pidp);
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drstat_main.c63 pid_t pid; local
117 pid = fork();
118 if (pid < 0) {
122 if (pid)
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Ddump.c56 int fildes[2], pid; local
75 if ((pid = fork()) == -1) {
82 if (pid) {
129 while (wait(&status) != pid)
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dwait4.c72 wait4(pid_t pid, int *status, int options, struct rusage *rp) argument
102 if (pid < 0) {
103 pid = -pid;
105 } else if (pid == 0)
110 error = waitid(idtype, pid, &info, noptions);
/illumos-gate/usr/src/uts/common/io/drm/
H A Ddrm_fops.c51 pid_t pid = ddi_get_pid(); local
55 if (priv->pid == pid)
80 pid_t pid; local
87 pid = ddi_get_pid();
88 DRM_DEBUG("drm_open_helper :pid = %d", pid);
103 priv->pid = pid;
/illumos-gate/usr/src/uts/common/io/mii/
H A Dmii_other.c128 uint32_t pid = MII_PHY_MODEL(ph->phy_id); local
144 pid == other_phys[j].model) {
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_ksock.c43 int pid, err, stat; local
82 pid = vfork();
83 if (pid == -1) {
88 if (pid == 0) {
95 err = waitpid(pid, &stat, 0);
/illumos-gate/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);
/illumos-gate/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);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgexecv.c140 pid_t pid; local
175 pid = vfork();
177 if (pid < 0) {
194 if (pid > 0) {
207 (void) sigsend(P_PID, pid, SIGKILL);
257 waitstat = waitpid(pid, &status, 0);
269 } else if (waitstat == pid) {
297 if (waitstat != pid) {
298 progerr(pkg_gt(ERR_WAIT_FAILED), pid, status, local
/illumos-gate/usr/src/lib/libmail/common/
H A Dpopenvp.c67 pid_t pid; local
74 if ((pid = fork()) == 0) {
93 if (pid == (pid_t)-1)
95 popen_pid[myside] = pid;
/illumos-gate/usr/src/cmd/mailx/
H A Dpopen.c77 register pid_t pid; local
91 if((pid = fork()) == 0) {
104 if(pid == (pid_t)-1)
106 popen_pid[myside] = pid;
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_shell.c86 pid_t pid; local
91 if ((pid = vfork()) == -1)
94 if (pid == 0) {
104 mdb_dprintf(MDB_DBG_SHELL, "waiting for PID %d\n", (int)pid);
105 } while (waitpid(pid, &status, 0) == -1 && errno == EINTR);
107 mdb_dprintf(MDB_DBG_SHELL, "waitpid %d -> 0x%x\n", (int)pid, status);
138 pid_t pid = (pid_t)(intptr_t)io->io_data; local
142 mdb_dprintf(MDB_DBG_SHELL, "waiting for PID %d\n", (int)pid);
143 } while (waitpid(pid, &status, 0) == -1 && errno == EINTR);
145 mdb_dprintf(MDB_DBG_SHELL, "waitpid %d -> 0x%x\n", (int)pid, statu
169 pid_t pid; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-sem.c363 pid_t pid; local
369 if ((pid = fork()) < 0)
376 if (pid == 0)
/illumos-gate/usr/src/cmd/cmd-inet/lib/netcfgd/
H A Dnetcfgd.c98 pid_t pid; local
107 if ((pid = fork()) == -1) {
111 if (pid != 0) {
113 nlog(LOG_DEBUG, "child %ld exited, daemonizing", pid);
120 if ((pid = fork()) == -1) {
124 if (pid != 0) {
/illumos-gate/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);
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dwksids.c343 * Find a wksid entry for the specified pid, of the specified type.
348 find_wksid_by_pid(uid_t pid, int is_user) argument
352 if (pid == IDMAP_SENTINEL_PID)
356 if (wksids[i].pid == pid &&
/illumos-gate/usr/src/tools/cscope-fast/
H A Dmypopen.c55 pid_t pid; local
61 if ((pid = fork()) > 0) {
63 } else if (pid == 0) {
80 if (pid == -1)
82 popen_pid[myside] = pid;

Completed in 92 milliseconds

1234567891011>>