Searched refs:pid (Results 201 - 225 of 920) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libshell/common/tests/
H A Dcoprocess.sh183 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 Dmktemp.c49 * ( 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 Dptime.c68 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 DUserSymbolRecord.java85 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 Dwait.c125 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 Daudit_plugin.c103 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 Dsystem.c64 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 Dksyms.d53 printf("uiomove %u bytes to %p in pid %d\n",
54 this->iov->iov_len, this->iov->iov_base, pid);
H A Drwinfo.d37 /pid == $1/
46 /i[probefunc].ts != 0 && pid == $1/
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/buffering/
H A Dtst.cputime.ksh45 /pid == \$pid/
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/docsExamples/
H A Dksyms.d61 printf("uiomove %u bytes to %p in pid %d\n", this->iov->iov_len,
62 this->iov->iov_base, pid);
H A Drwinfo.d51 /pid == 100551/
61 /i[probefunc].ts != 0 && pid == 100551/
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pid/
H A Dtst.newprobes.ksh40 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 Dtst.ufuncsort.ksh54 pid\$target::fN:entry
/illumos-gate/usr/src/cmd/sendmail/db/mutex/
H A Dmutex.c203 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 Duucplock.c34 #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 Dpopenvp.c67 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 Din.fingerd.c58 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 Dpopen.c77 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 Drstat_main.c63 pid_t pid; local
117 pid = fork();
118 if (pid < 0) {
122 if (pid)
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_pci.c47 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 DATVersion.h77 @param pid PID of application of interest.
82 static std::string GetAppPathByPid(unsigned long pid);
/illumos-gate/usr/src/tools/codesign/
H A Dsignit.pl59 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 Dsigqueue_queue_size.c79 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 Dmisc.c63 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);

Completed in 189 milliseconds

1234567891011>>