/illumos-gate/usr/src/lib/libshell/common/tests/ |
H A D | coprocess.sh | 183 pid=$! 190 kill $pid 203 trap 'sleep_pid=; kill $pid; err_exit "coprocess 1 hung"' TERM 208 pid=$! 213 wait $pid 217 trap 'sleep_pid=; kill $pid; err_exit "coprocess 2 hung"' TERM 221 pid=$! 224 kill $pid 225 wait $pid 2> /dev/null 229 trap 'sleep_pid=; kill $pid; err_exi [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | mktemp.c | 49 * ( pid | seq ) 51 * number occupies the low-order bits. The size of the pid field is 107 pid_t pid; local 122 pid = getpid(); 123 if (pid != previous_pid) { /* first time or first after fork() */ 133 previous_pid = pid; 137 /* for all possible values of pid, 0 <= pid < (1 << pidshift) */ 164 uint64_t xpid = 0; /* reconstructed pid */ 182 if (xpid == pid [all...] |
/illumos-gate/usr/src/cmd/ptools/ptime/ |
H A D | ptime.c | 68 pid_t pid; local 78 pid = Pstatus(Pr)->pr_pid; 79 (void) sprintf(procname, "%d", (int)pid); /* for perr() */ 80 (void) look(pid); 89 pid_t pid; local 162 pid = Pstatus(Pr)->pr_pid; 164 (void) sprintf(procname, "%d", (int)pid); /* for perr() */ 168 (void) waitid(P_PID, pid, &info, WEXITED | WNOWAIT); 170 (void) look(pid); 172 (void) waitpid(pid, 190 look(pid_t pid) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/ |
H A D | UserSymbolRecord.java | 85 UserSymbolRecord(int pid, long addressValue) argument 87 value = new Value(pid, addressValue); 98 * @param pid non-negative user process ID 107 UserSymbolRecord(int pid, String lookupValue, long addressValue) argument 109 value = new Value(pid, addressValue); 125 * @return non-negative pid 135 * by {@link Consumer#lookupUserFunction(int pid, long address)}. 252 int pid = s.readInt(); 256 value = new Value(pid, addressValue); 332 * @param pid no 338 Value(int pid, long addressValue) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | wait.c | 125 waitpid(int pid, int *status, int options) argument 146 ret = _waitpid(pid, &nstatus, noptions); 169 wait4(int pid, int *status, int options, struct rusage *rp) argument 203 if (pid < 0) { 204 pid = -pid; 206 } else if (pid == 0) 211 error = _waitid(idtype, pid, &info, noptions);
|
/illumos-gate/usr/src/lib/libbsm/common/ |
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);
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | system.c | 64 pid_t pid; /* if nonzero, the child's pid */ member in struct:__anon3039 74 pid_t pid = (pid_t)(uintptr_t)arg; local 78 while (waitpid(pid, NULL, 0) == -1) { 98 if (cup->pid != 0) { /* we were cancelled; abandoning our pid */ 101 reapchild, (void *)(uintptr_t)cup->pid, 157 * Only a specific wait for the specific pid will be able 158 * to reap the child. Since no other thread knows the pid 239 error = posix_spawn(&cu.pid, shpat [all...] |
/illumos-gate/usr/src/cmd/dtrace/demo/struct/ |
H A D | ksyms.d | 53 printf("uiomove %u bytes to %p in pid %d\n", 54 this->iov->iov_len, this->iov->iov_base, pid);
|
H A D | rwinfo.d | 37 /pid == $1/ 46 /i[probefunc].ts != 0 && pid == $1/
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/buffering/ |
H A D | tst.cputime.ksh | 45 /pid == \$pid/
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/docsExamples/ |
H A D | ksyms.d | 61 printf("uiomove %u bytes to %p in pid %d\n", this->iov->iov_len, 62 this->iov->iov_base, pid);
|
H A D | rwinfo.d | 51 /pid == 100551/ 61 /i[probefunc].ts != 0 && pid == 100551/
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.newprobes.ksh | 40 pid*:date:: 54 system("dtrace -c date -n 'pid\$target::main:entry' >/dev/null"); 60 system("dtrace -c date -n 'pid\$target::main:return' >/dev/null");
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/profile-n/ |
H A D | tst.ufuncsort.ksh | 54 pid\$target::fN:entry
|
/illumos-gate/usr/src/cmd/sendmail/db/mutex/ |
H A D | mutex.c | 203 if (mp->pid != 0) { 208 mp->pid = getpid(); 236 for (usecs = MS(1); mp->pid != 0;) { 248 if (mp->pid == 0) { 250 mp->pid = mypid; 289 if (mp->pid == 0) { 300 mp->pid = 0; 309 * a pid of 0, not a specific value. 311 mp->pid = 0;
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | uucplock.c | 34 #define SIZEOFPID 10 /* maximum number of digits in a pid */ 84 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */ local 87 if (pid[0] == '\0') { 88 (void) snprintf(pid, sizeof (pid), "%*d\n", SIZEOFPID, 93 if (onelock(pid, tempfile, file) == -1) { 99 if (onelock(pid, tempfile, file)) { 111 * - use kill(pid, 0) - (this only works on ATTSV and some hacked 199 onelock(char *pid, char *tempfile, char *name) argument 224 if (write(fd, pid, SIZEOFPI [all...] |
/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/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/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/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/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/lms/tools/ |
H A D | ATVersion.h | 77 @param pid PID of application of interest. 82 static std::string GetAppPathByPid(unsigned long pid);
|
/illumos-gate/usr/src/tools/codesign/ |
H A D | signit.pl | 59 my ($pid); # Process id for ssh client 93 $pid = open2(*SRV_OUT, *SRV_IN, "/usr/bin/ssh", @args) or 117 waitpid($pid, 0) if ($pid);
|
/illumos-gate/usr/src/test/os-tests/tests/sigqueue/ |
H A D | sigqueue_queue_size.c | 79 pid_t pid; local 101 pid = getpid(); 124 error = sigqueue(pid, SIGQUEUE_SIGNAL, value); 134 error = sigqueue(pid, SIGQUEUE_SIGNAL, value);
|
/illumos-gate/usr/src/lib/pysolaris/common/ |
H A D | misc.c | 63 uid_t pid; local 69 err = sid_to_id(sid, isuser, &pid); 75 stat = idmap_getwinnamebyuid(pid, flag, &name, NULL); 77 stat = idmap_getwinnamebygid(pid, flag, &name, NULL);
|