/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | runcmd.c | 100 pid_t pid; local 126 pid = vfork(); 127 if (pid == 0) { 161 } else if (pid < 0) { 173 pid = waitpid(pid, &status, 0); 176 if (pid < 0) { 310 pid_t pid; local 379 pid = vfork(); 381 if (pid [all...] |
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_ftpd.c | 137 pid_t pid; local 167 pid = getpid(); 178 ruid, rgid, pid, pid, &info.ai_termid)); 252 pid_t pid; local 278 pid = getpid(); 284 egid, uid, gid, pid, pid, &info.ai_termid));
|
H A D | audit_plugin.c | 103 pid_t pid; local 109 if ((pid = fork1()) == -1) { 114 if (pid != 0) { 115 (void) waitpid(pid, &st, 0); 169 pid_t pid; local 176 if ((pid = fork()) == -1) { 181 if (pid != 0) { 182 (void) waitpid(pid, &st, 0);
|
H A D | audit_rexd.c | 162 pid_t pid; local 192 pid = getpid(); 203 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid, 280 pid_t pid; local 318 pid = getpid(); 329 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid,
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | rctlops.c | 162 rctlblk_set_recipient_pid(rctlblk_t *rblk, id_t pid) argument 165 ropaque->rcq_local_recipient_pid = pid;
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | popen.c | 60 pid_t pid; member in struct:node 91 pid_t pid; local 180 error = posix_spawn_pipe_np(&pid, &fd, cmd, *mode != 'r', &fact, &attr); 190 _insert_nolock(pid, myfd, node); 212 pid_t pid; local 215 pid = _delete(fileno(ptr)); 220 if (pid <= 0) { 231 * w/o waiting, and if that fails just call cleanup(pid). 236 if (waitpid(pid, &status, WNOHANG) == pid) 257 _insert_nolock(pid_t pid, int fd, node_t *new) argument 293 _insert(pid_t pid, int fd) argument 313 pid_t pid; local [all...] |
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/ |
H A D | rpc.ypupdated.c | 288 int pid; local 317 pid = _openchild(updater, &childargs, &childrslt); 318 if (pid < 0) {
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypupdated.c | 102 pid_t pid; local 182 pid = fork(); 184 if (pid < 0) { 188 if (pid) 313 int pid; local 322 pid = _openchild(updater, &childargs, &childrslt); 323 if (pid < 0) {
|
H A D | ypxfrd_svc.c | 164 pid_t pid; local 229 pid = fork(); 230 if (pid < 0) { 234 if (pid)
|
/illumos-gate/usr/src/cmd/oplhpd/ |
H A D | oplhpd.c | 57 #define OPLHPD_PID_FILE "/var/run/oplhpd.pid" /* lock file path */ 89 syslog(LOG_DEBUG, "*** quit daemon [pid:%d, signal#:%d].\n", 136 pid_t pid; local 148 if ((pid = fork()) < 0) { 152 if (pid > 0) { 170 syslog(LOG_ERR, "could not create pid file: %s", 178 syslog(LOG_ERR, "could not lock pid file"); 190 syslog(LOG_ERR, "pid file write fail: %s",
|
/illumos-gate/usr/src/cmd/pools/poolbind/ |
H A D | poolbind.c | 65 { P_PID, "pid" }, 85 "[-i pid | -i taskid | -i projid | -i zoneid] id ...\n" 86 " poolbind -q pid ...\n" 87 " poolbind -Q pid ... \n")); 92 print_resource_binding(const char *type, pid_t pid) argument 96 if ((resource_name = pool_get_resource_binding(type, pid)) == NULL) 98 (int)pid, get_errstr()); 100 (void) printf("%d\t%s\t%s\n", (int)pid, type, resource_name); 111 char *idstr = "pid"; 271 "pid [all...] |
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prfile.c | 167 fds_get(pid_t pid) argument 170 int hash = pid % FDS_TABLE_SIZE; 173 if (fdsp->fds_pid == pid) /* searching for pid */ 176 fdsp = Zalloc(sizeof (fds_t)); /* adding new if pid was not found */ 177 fdsp->fds_pid = pid; 184 fds_rm(pid_t pid) argument 188 int hash = pid % FDS_TABLE_SIZE; 190 for (fds = fds_tbl[hash]; fds && fds->fds_pid != pid; 191 fds = fds->fds_next) /* finding pid */ [all...] |
/illumos-gate/usr/src/cmd/ptools/preap/ |
H A D | preap.c | 54 open_usage(pid_t pid, int *perr) argument 60 (void) snprintf(path, sizeof (path), "/proc/%d/usage", (int)pid); 79 proc_usage(pid_t pid, prusage_t *pup, int *perr) argument 85 if ((fd = open_usage(pid, perr)) != -1) { 101 * Force the parent process (ppid) to wait for its child process (pid). 110 pid_t pid, ppid; local 115 * get the specified pid and the psinfo struct 117 if ((pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret)) == -1) { 125 command, (int)pid); 136 (int)pid); 194 print_exit_status(pid_t pid, int wstat) argument 259 pid_t pid; local [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_main.c | 293 pid_t pid; local 397 if ((pid = enter_daemon_lock()) != getpid()) { 398 rcm_log_message(RCM_DEBUG, "%s pid %d already running\n", 399 prog, pid);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | multilink.c | 56 static int owns_unit __P((TDB_DATA pid, int unit)); 98 TDB_DATA key, pid, rec; local 158 pid = tdb_fetch(pppdb, key); 159 if (pid.dptr != NULL) { 161 rec = tdb_fetch(pppdb, pid); 165 /* check the pid value */ 168 || !owns_unit(pid, unit)) 172 free(pid.dptr);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | main.c | 103 pid_t pid; local 112 if ((pid = fork()) == (pid_t)-1) { 116 if (pid != 0) { 124 if ((pid = fork()) == (pid_t)-1) { 128 if (pid != 0)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | wait.c | 51 pid_t pid; member in struct:__anon179 183 register_method(instance_t *ins, pid_t pid, ctid_t cid, instance_method_t mthd, argument 191 (void) snprintf(path, sizeof (path), "/proc/%u/psinfo", pid); 218 me->pid = pid; 324 pid_t pid; local 343 pid = waitpid(me->pid, &status, WNOHANG); 345 switch (pid) { 373 "%d", pid, m [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | announce.c | 74 pid_t pid, val; local 81 if (pid = fork()) { 84 if (pid == (pid_t)-1) { 100 } while (val != pid);
|
H A D | ctl.h | 108 pid_t pid; member in struct:ctl_msg
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.sem.c | 59 int pid = 0; local 161 { forked++; pid = pfork(t, wanttty); } 189 pid = vfork(); 190 if (pid < 0) { 195 if (pid) { /* parent */ 207 ppid = pcurrjob ? pcurrjob->p_jobid : pid; 210 palloc(pid, t); 269 if (pid != 0) {
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | devalloc.c | 137 pid_t pid, wpid; local 139 pid = vfork(); 140 switch (pid) { 148 wpid = waitpid(pid, &status, 0);
|
/illumos-gate/usr/src/cmd/dispadmin/ |
H A D | dispadmin.c | 234 int pid; local 239 if ((pid = fork()) == 0) { 243 } else if (pid == (pid_t)-1) {
|
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/ |
H A D | mdmn_commd_service.c | 275 pid_t pid; local 339 pid = getpid(); 340 (void) metaioctl(MD_MN_SET_COMMD_RUNNING, (void *)pid, &ep, 352 pid = fork(); 353 if (pid < 0) { 357 if (pid)
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | cmd4.c | 68 register pid_t pid; local 111 if ((pid = vfork()) == 0) { 122 if (pid == (pid_t)-1) { /* error */ 165 while (wait(&s) != pid);
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_stubs.c | 122 kill(pid_t pid, int sig) argument
|