/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | mktemp.c | 96 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 D | plock.c | 61 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 D | popen.c | 36 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 D | pgrpsys.c | 54 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 D | corectl.c | 94 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 D | in.fingerd.c | 58 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 D | example2.c | 87 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 D | rstat_main.c | 63 pid_t pid; local 117 pid = fork(); 118 if (pid < 0) { 122 if (pid)
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | dump.c | 56 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 D | wait4.c | 72 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 D | drm_fops.c | 51 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 D | mii_other.c | 128 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 D | fksmbd_ksock.c | 43 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 D | cfg_lockd.h | 46 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 D | cfg_lockdlck.c | 58 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 D | daemon_utils.c | 48 * 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 D | pkgexecv.c | 140 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 D | popenvp.c | 67 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 D | popen.c | 77 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 D | mdb_shell.c | 86 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 D | t-sem.c | 363 pid_t pid; local 369 if ((pid = fork()) < 0) 376 if (pid == 0)
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/netcfgd/ |
H A D | netcfgd.c | 98 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 D | devinfo_pci.c | 47 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 D | wksids.c | 343 * 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 D | mypopen.c | 55 pid_t pid; local 61 if ((pid = fork()) > 0) { 63 } else if (pid == 0) { 80 if (pid == -1) 82 popen_pid[myside] = pid;
|