/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | omitted.c | 359 pid_t pid; local 384 * spawn*() returns 0 instead of the spawned pid 526 pid = _spawnve(mode, path, argv, envv); 528 if (pid > 0 && pgrp) 529 setpgid(pid, 0); 539 pid = _execve(path, argv, envv); 545 return pid;
|
/illumos-gate/usr/src/lib/libast/common/vmalloc/ |
H A D | malloc.c | 807 { int pid; local 810 if((pid = getpid()) < 0) 817 *--s = '0' + pid%10; 818 } while((pid /= 10) > 0);
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | main.c | 1004 int pid; local 1045 if ((pid = fork()) < 0) 1047 else if (pid) { 1053 if (waitpid(pid, &wstat, 0) < 0)
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | exec.c | 397 if (!ep || (ep->pid > 0)) { 406 switch ((ep->pid = Fork1(ep))) { 1229 int pid; local 1240 switch (pid = fork()) { 1255 return (pid);
|
H A D | nodes.h | 57 int pid; /* process-id of exec */ member in struct:exec_node
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/ |
H A D | postio.c | 596 int pid; local 600 pid = getpid(); 607 otherpid = pid;
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | lux_util.c | 86 pid_t pid; local 104 pid = getpid(); 108 seed ^= pid;
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | startd.c | 965 pid_t pid; local 968 if ((pid = fork1()) < 0) 971 if (pid != 0)
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_session.c | 1069 uint32_t pid) 1080 smb_tree_close_pid(tree, pid); 1067 smb_session_close_pid( smb_session_t *session, uint32_t pid) argument
|
H A D | smb_tree.c | 412 * Close ofiles and odirs that match pid. 417 uint32_t pid) 422 smb_ofile_close_all_by_pid(tree, pid); 423 smb_tree_close_odirs(tree, pid); 1402 * the process identified by pid. 1403 * If pid is zero, close all open odirs in the tree's list. 1406 smb_tree_close_odirs(smb_tree_t *tree, uint16_t pid) argument 1419 if ((pid == 0) || (od->d_opened_by_pid == pid)) 415 smb_tree_close_pid( smb_tree_t *tree, uint32_t pid) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_hc.c | 1273 pid_t pid; local 1354 if (posix_spawn(&pid, probe_name, &fd_actions, &attr, child_argv, 1363 srv->shc_child_pid = pid; 1369 probe_ev->ihp_pid = pid;
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | umount.c | 90 pid_t pid; /* the pid of this mount process */ member in struct:mountent 625 * Now link them up so that a given pid is easier to find when 782 pid_t pid; local 811 if ((pid = fork()) == -1) { 817 if (dflg && pid > 0) { 819 getpid(), pid, mp->ment.mnt_mountp); 822 if (pid == 0) { /* child */ 835 mp->pid = pid; [all...] |
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 109 (void) fprintf(stderr, "usage:\t%s [-F] { pid | core } ...\n", 134 pid_t pid; local 141 /* get the specified pid and the psinfo struct */ 142 if ((pid = proc_arg_psinfo(arg, PR_ARG_PIDS, 168 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { 172 (int)pid, psinfo.pr_psargs); 178 command, (int)pid); 187 (void) printf("%d:\t%.70s\n", (int)pid, 193 command, Pgrab_error(gret), (int)pid); 482 (void) printf(" pid [all...] |
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | main.c | 140 pid_t pager_pid, tc_pgid, man_pgid, pid; local 577 while ((pid = waitpid(pager_pid, &status, 581 if (pid == -1) {
|
/illumos-gate/usr/src/uts/common/klm/ |
H A D | nlm_client.c | 1569 * Send SIGLOST to the process identified by pid. 1575 nlm_send_siglost(pid_t pid) argument 1580 p = prfind(pid);
|
/illumos-gate/usr/src/uts/common/io/upf/ |
H A D | upf_usbgem.c | 114 uint16_t pid; /* product id */ member in struct:upf_dev 1033 lp->pid = ddi_prop_get_int(DDI_DEV_T_ANY, dip,
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | klpd.c | 438 * MY_PID (pid 0) can be used to create or change the context for 455 pid_t pid = -1; local 470 pid = (pid_t)id; 471 if (pid == P_MYPID) 472 pid = curproc->p_pid; 473 if (pid == curproc->p_pid) 500 if (type == P_PID && pid == di.di_target) { 521 } else if ((int)pid < 0) { 526 } else if (pid == curproc->p_pid) { 550 p = prfind(pid); 607 pid_t pid; local [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_mn_handlers.c | 66 pid_t pid; /* process id */ local 136 pid = fork1(); 137 if (pid == (pid_t)-1) { 146 } else if (pid == (pid_t)0) { 245 while (waitpid(pid, &stat_loc, 0) < 0) {
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | jobs.c | 59 pid_t pid; member in struct:jobsave 217 static struct jobsave *jobsave_create(pid_t pid) argument 220 job_chksave(pid); 232 jp->pid = pid; 246 register pid_t pid; local 261 if(sfprintf(sfstderr,"ksh: job line %4d: reap pid=%d critical=%d signal=%d\n",__LINE__,getpid(),job.in_critical,sig) <=0) 280 pid = waitpid((pid_t)-1,&wstat,flags); 288 if (pid<0 && errno==EINVAL && (flags&WCONTINUED)) 289 pid 735 register pid_t pid; local 803 int pid = (int)strtol(jobid, (char**)0, 10); local 953 register pid_t pid; local 1127 job_post(pid_t pid, pid_t join) argument 1242 job_bypid(pid_t pid) argument 1298 job_wait(register pid_t pid) argument 1744 job_chksave(register pid_t pid) argument [all...] |
H A D | path.c | 79 pid_t pid; local 83 while((pid = vfork()) < 0) 84 _sh_fork(pid, 0, (int*)0); 85 if(pid) 86 return(pid); 129 pid_t pid; local 134 pid = spawnveg(path,argv,envp,pgid); 135 if(pid>=0 || errno!=EAGAIN) 137 _sh_fork(pid, 0, (int*)0); 140 if(pid> 158 pid_t pid; local 1019 pid_t pid= -1; local [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_module.c | 424 long pid; local 453 * instant in time. Any dt_module_t that begins with 'pid' is a module 455 * begins with 'pid' is special. pid123 refers to process 123. A module 456 * that is just 'pid' refers specifically to pid$target. This is 460 if (strncmp(dmp->dm_name, "pid", 3) == 0) { 467 pid = strtol(dmp->dm_name + 3, &eptr, 10); 469 dmp->dm_pid = (pid_t)pid; 471 dt_dprintf("encountered malformed pid " 580 * Like the pid provide [all...] |
/illumos-gate/usr/src/lib/libdtrace_jni/common/ |
H A D | dtj_consume.c | 351 int pid = Pstatus(P)->pr_pid; local 423 pid, status, signal, signalName, NULL, message); 1418 pid_t pid = -1; local 1450 /* Get pid of user process */ 1452 pid = (pid_t)*pc; 1454 g_ustackinit_jm, pid, raw); 1476 pid_t pid = -1; local 1492 /* Get pid of user process */ 1494 pid = (pid_t)*pc; 1497 g_usymbolinit_jm, pid, *p [all...] |
H A D | dtrace_jni.c | 1392 jobject caller, jint pid, jobject address) 1423 rc = dtrace_uaddr2str(dtp, pid, addr, &dummy, 1); 1430 (void) dtrace_uaddr2str(dtp, pid, addr, s, rc + 1); 1476 * Returns the pid of the created process, or -1 in case of an error (java 1532 jobject caller, jint pid) 1552 P = dtrace_proc_grab(dtp, (pid_t)pid, 0); 1391 Java_org_opensolaris_os_dtrace_LocalConsumer__1lookupUserFunction(JNIEnv *jenv, jobject caller, jint pid, jobject address) argument 1531 Java_org_opensolaris_os_dtrace_LocalConsumer__1grabProcess(JNIEnv *jenv, jobject caller, jint pid) argument
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | os.c | 215 pid_t pid; /* Process ID */ member in struct:lockKey 311 key1.pid = getpid(); 1653 int pid; local 1655 pid = getpid(); 1656 memcpy(&zBuf[sizeof(time_t)], &pid, sizeof(pid)); 1664 int pid; local 1666 pid = getpid(); 1667 memcpy(&zBuf[sizeof(UnsignedWide)], &pid, sizeof(pid)); [all...] |
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | au_to.c | 432 pid_t pid, au_asid_t sid, au_tid_t *tid) 456 adr_int32(&adr, (int32_t *)&pid, 1); 475 pid_t pid, au_asid_t sid, au_tid_addr_t *tid) 509 adr_int32(&adr, (int32_t *)&pid, 1); 584 pid_t pid, au_asid_t sid, au_tid_t *tid) 608 adr_int32(&adr, (int32_t *)&pid, 1); 628 pid_t pid, au_asid_t sid, au_tid_addr_t *tid) 665 adr_int32(&adr, (int32_t *)&pid, 1); 431 au_to_process(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) argument 474 au_to_process_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) argument 583 au_to_subject(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid) argument 627 au_to_subject_ex(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) argument
|