/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 252 pid_t pid; local 360 if (posix_spawn(&pid, PKGSERV_PATH, NULL, NULL, cmd, environ) == 0) { 362 while (wait4(pid, &stat, 0, NULL) != -1) {
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt_token.c | 474 getCharacteristics(struct auditpinfo_addr *info, pid_t *pid) argument 478 if (*pid == 0) { /* getpinfo for this pid */ 481 info->ap_pid = *pid; 510 pid_t pid; local 525 pid = ((union convert *)p_data)->tpid; 532 getCharacteristics(&info, &pid); 555 if (pid == 0) 556 pid = info.ap_pid; 559 au_to_process_ex(auid, euid, egid, ruid, rgid, pid, si [all...] |
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | idmap_cache.c | 108 uid_t pid; member in struct:pid2sid_winname 216 if (entry2->pid > entry1->pid) 218 if (entry2->pid < entry1->pid) 541 idmap_rid_t rid, uid_t *pid, int *is_user) 560 *pid = result->uid; 563 *pid = result->gid; 586 entry.pid = uid; 618 entry.pid 540 idmap_cache_lookup_pidbysid(const char *sid_prefix, idmap_rid_t rid, uid_t *pid, int *is_user) argument 1015 idmap_cache_add_sid2pid(const char *sid_prefix, idmap_rid_t rid, uid_t pid, int is_user, int direction) argument [all...] |
/illumos-gate/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 117 pid_t pd_pid; /* pid to add or remove */ 130 pid_t pl_pid; /* pid to watch for */ 167 static int proc_to_fd(); /* Takes a pid and returns an fd for its proc */ 177 static int proc_is_alive(pid_t pid); /* Check if a process is alive */ 371 pid_t pid; local 414 (void) pread(WTMPXfd, (void *)&pid, sizeof (pid), 0); 492 dprintf(("Poll Err = %d pid = %d i = %d\n", \ 495 pid = pidtable[i].pl_pid; /* Save pid fo 702 add_pid(pid_t pid) argument 797 rem_pid(pid_t pid, int i, int clean_it) argument 845 find_pid(pid_t pid, int *i) argument 880 proc_to_fd(pid_t pid) argument 1049 proc_is_alive(pid_t pid) argument [all...] |
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_main.c | 343 pid_t pid; local 372 if ((pid = fork()) == -1) { 384 if (pid != 0) { 390 if (waitpid(pid, &status, 0) == pid && WIFEXITED(status))
|
/illumos-gate/usr/src/cmd/w/ |
H A D | w.c | 93 #define INITPROCESS (pid_t)1 /* init process pid */ 602 * hash table (pr_htbl) for the given pid in case that 603 * pid exists on the hash chain. It returns back a pointer 604 * to that uproc structure. If this is a new pid, it allocates 609 findhash(pid_t pid) argument 613 tp = up = &pr_htbl[pid % HSIZE]; 615 up->p_upid = pid; 620 if (up->p_upid == pid) { /* found in hash table */ 624 if (tp->p_upid == pid) 634 tp->p_upid = pid; [all...] |
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | yp_b_subr.c | 139 * process has exited, and retrieves the exit status. The broadcaster pid 147 int pid, ret; local 169 pid = infop.si_pid; 174 pid, infop.si_status); 183 if (pdom->dom_broadcaster_pid == pid) { 357 fprintf(stderr, "ypbindproc_domain_3: %s starting pid = %d try = %d\n", 1408 sprintf(filename, "%s/ypbind.pid", BINDING); 1463 sprintf(filename, "%s/ypbind.pid", BINDING);
|
H A D | ypserv_proc.c | 393 pid_t pid = -1; local 469 pid = vfork(); 470 if (pid == -1) { 472 } else if (pid == 0) { 514 pid_t pid; local 529 pid = fork1(); 531 if (pid) { 533 if (pid == -1) { 1299 pid_t pid = -1; local 1317 pid 1350 pid_t pid = -1; local 1398 pid_t pid = -1; local [all...] |
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_signal.c | 687 s10_sigqueue(sysret_t *rval, pid_t pid, int signo, void *value, int si_code) argument 693 pid, signo, value, si_code); 697 if (pid == 1) 698 pid = zone_init_pid; 707 pid, nativesig, value, si_code, 0)); 745 s10_kill(sysret_t *rval, pid_t pid, int sig) argument 750 (void) B_TRUSS_POINT_2(rval, SYS_kill, EINVAL, pid, sig); 754 if (pid == 1) 755 pid = zone_init_pid; 757 return (__systemcall(rval, SYS_kill + 1024, pid, nativesi [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_switch.h | 146 pid_t pid; /* door client's pid */ member in struct:nscd_getent_context 417 nss_psetent(void *buffer, size_t length, pid_t pid);
|
/illumos-gate/usr/src/cmd/plockstat/ |
H A D | plockstat.c | 370 "\t -p pid\n", g_pname, g_pname); 545 pid_t pid; local 589 pid = stack[0]; 590 P = dtrace_proc_grab(g_dtp, pid, PGRAB_RDONLY); 659 int pid = Pstatus(P)->pr_pid; local 663 notice("pid %d: %s\n", pid, msg); 678 notice("pid %d terminated by %s\n", pid, 682 notice("pid 925 ulong_t pid; local [all...] |
/illumos-gate/usr/src/cmd/psrset/ |
H A D | psrset.c | 113 grab_proc(id_t pid) argument 118 if ((Pr = Pgrab(pid, 0, &ret)) == NULL) { 120 (int)pid, Pgrab_error(ret)); 137 bind_err(psetid_t pset, const char *zname, id_t pid, id_t lwpid, int err) argument 157 warn(gettext("cannot %s pid %d"), msg, pid); 159 warn(gettext("cannot %s lwpid %d/%d"), msg, pid, lwpid); 198 query_out(id_t pid, id_t lwpid, psetid_t pset) argument 204 (void) snprintf(pidstr, 20, "%d", pid); 207 (void) snprintf(pidstr, 20, "%d/%d", pid, lwpi 256 bind_out(id_t pid, id_t lwpid, psetid_t old, psetid_t new) argument 287 bind_lwp(id_t pid, id_t lwpid, psetid_t pset) argument 492 id_t pid = psinfo->pr_pid; local 514 id_t pid = psinfo->pr_pid; local 567 do_lwps(id_t pid, const char *range, psetid_t pset) argument 644 id_t pid; local [all...] |
/illumos-gate/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_scanner.c | 545 pageout(pid_t pid, struct ps_prochandle *Pr, caddr_t start, caddr_t end) argument 566 debug("%d: can't pageout %p+%llx (errno %d)", (int)pid,
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_lock.c | 54 pid_t pid; /* pid of initiator */ member in struct:__anon1311 404 add_busy_rsrc_to_list(dr_dev, dr_req_list->req[i].pid, 421 add_busy_rsrc_to_list(dr_dev, dr_req_list->req[i].pid, 478 dr_req_update_entry(char *device, pid_t pid, uint_t flag, int state, argument 512 * Don't allow update with mismatched initiator pid. This could happen 515 if (pid != req->pid) { 517 gettext("mismatched dr initiator pid: %ld %ld\n"), 518 req->pid, pi 671 dr_req_add(char *rsrcname, pid_t pid, uint_t flag, int state, int seq_num, timespec_t *interval, rcm_info_t **info) argument 755 dr_req_update(char *rsrcname, pid_t pid, uint_t flag, int state, int seq_num, rcm_info_t **info) argument 960 pid_t pid; member in struct:clean_list 1344 find_pid_index(pid_t pid) argument 1395 add_to_polling_list(pid_t pid) argument 1461 remove_from_polling_list(pid_t pid) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 1457 int fd[2], status, pid, i; local 1465 if ((pid = fork()) == 0) { 1507 while ((i = wait(&status)) != pid && i != -1)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/ |
H A D | ncaconfd.c | 1303 pid_t pid; local 1305 if ((pid = fork()) == -1) { 1311 if (pid != 0) 1315 if ((pid = fork()) == -1) { 1321 if (pid != 0)
|
/illumos-gate/usr/src/cmd/consadm/ |
H A D | consadm.c | 52 #define SETCONSOLEPID "/etc/consadm.pid" 570 pid_t pid; local 579 * remove /etc/consadm.pid 584 if ((pid = fork()) == (pid_t)0) { 598 } else if (pid == -1) 603 /* write daemon pid to file */ 604 (void) fprintf(fp, "%d\n", (int)pid); 618 int pid; local 624 if (fscanf(fp, "%d\n", &pid) <= 0) { 634 if (pid [all...] |
/illumos-gate/usr/src/cmd/coreadm/ |
H A D | coreadm.c | 111 " %s [ -p pattern ] [ -P content ] [ pid ... ]\n"), command); 321 pid_t pid; local 328 pid = strtol(*pidlist, &next, 10); 335 sizeof (process_path), pid) != 0 || 336 core_get_process_content(&content, pid) != 0) { 349 pid = strtol(*pidlist, &next, 10); 358 proc_size, pid) != 0) { 365 &proc_content, pid) != 0) {
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | cputrack.c | 57 pid_t pid; member in struct:options 185 case 'p': /* grab given pid */ 186 if ((opts->pid = atoi(optarg)) <= 0) 203 (argc == optind && opts->pid == 0) || 204 (argc > optind && opts->pid != 0) || 208 "\t\t-c events [command [args] | -p pid]\n\n" 220 "\t-p pid\t pid of existing process to capture\n\n" 256 (void) fprintf(opts->log, "%6s ", "pid"); 265 print_exec(float now, pid_t pid, cha argument 294 print_sample(pid_t pid, id_t lwpid, char *pevent, cpc_buf_t *buf, int nreq, const char *evname) argument 325 pinit_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument 391 pfini_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument 448 plwp_create(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument 467 plwp_exit(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument 492 pexec(pctx_t *pctx, pid_t pid, id_t lwpid, char *name, void *arg) argument 537 pexit(pctx_t *pctx, pid_t pid, id_t lwpid, int status, void *arg) argument 571 ptick(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg) argument 657 pfork(pctx_t *pctx, pid_t oldpid, pid_t pid, id_t lwpid, void *arg) argument [all...] |
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | port_link.c | 1023 pid_t pid; local 1031 if ((pid = fork1()) == 0) { 1050 if (w == pid) {
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | collect.c | 837 pid_t pid; local 880 pid = vfork(); 881 if (pid == (pid_t)-1) { 886 if (pid == 0) { 908 while (wait((int *)0) != pid) 999 pid_t pid; local 1022 if ((pid = vfork()) == (pid_t)-1) { 1026 if (pid == 0) { 1044 while (wait(&s) != pid) 1047 if (s != 0 || pid [all...] |
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_main.c | 114 pid_t pid; local 186 pid = fork(); 187 if (pid < 0) { 191 if (pid) 224 pid = fork1(); 225 if (pid < 0) { 237 } else if (pid > 0) { 239 automountd_wait_for_cleanup(pid); 266 * establish our lock on the lock file and write our pid to it. 270 pid 1033 automountd_wait_for_cleanup(pid_t pid) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | fsck.c | 98 pid_t pid; member in struct:devlist 630 pid_t pid; local 633 if ((pid = fork()) == -1) { 636 } else if (pid == 0) { 640 dp->pid = pid; 658 if (bdp->pid == curpid) {
|
/illumos-gate/usr/src/cmd/rmvolmgr/ |
H A D | vold.c | 486 pid_t pid; local 512 switch (pid = fork1()) { 529 if (waitpid(pid, &status, 0) < 0) {
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | sacadm.c | 1111 pid_t pid; /* my pid */ local 1119 pid = getpid(); 1131 } while (pid != ak->ak_pid);
|