/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_lockdlck.c | 58 pid_t pid = 0; local 67 write(local_lockfda, &pid, sizeof (pid_t)); 110 cfg_writepid(int segment, pid_t pid) argument 114 write(local_lockfd, &pid, sizeof (pid_t)); 121 pid_t pid; local 125 cfg_readpid(i, &pid); 126 if (pid != (pid_t)0) { 130 pid = getpid(); 131 cfg_writepid(i, pid);
|
H A D | cfg_lockd.h | 46 pid_t pid; member in struct:lock_msg 51 #define CFG_PIDFILE "/var/tmp/.cfglockd.pid" 60 void cfg_writepid(int segment, pid_t pid);
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | logger.c | 147 static pid_t pid = -1; local 179 if ((int) pid == -1) 180 pid = getpid (); 181 snprintf (logmsg, sizeof(logmsg), "[%d]: %s.%03d %s %s:%d: %s\n", pid, tbuf, (int)(tnow.tv_usec/1000), pri, file, line, buf); 218 static pid_t pid = -1; local 223 if ((int) pid == -1) 224 pid = getpid (); 234 syslog (LOG_INFO, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf); 236 fprintf (stderr, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf);
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | crashtest1.c | 40 /*printf("pid %d: journal exists. rollback will be required\n",getpid());*/ unlink("test.db-saved"); 66 printf("pid %d: cnt=%d\n", getpid(), cnt); 87 int pid = fork(); local 88 if( pid==0 ){ 93 printf("test %d, pid=%d\n", i, pid); 95 kill(pid, SIGKILL); 96 waitpid(pid, &status, 0);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | daemon.c | 59 pid_t pid; local 82 if ((pid = fork()) == -1) { 87 if (pid != 0) { 93 if (waitpid(pid, &status, 0) == pid && WIFEXITED(status))
|
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | procclose.c | 38 int pid; local 61 while ((pid = waitpid(p->pid, &status, flags)) == -1 && errno == EINTR); 62 if (pid != p->pid && (flags & WNOHANG))
|
/illumos-gate/usr/src/lib/libfakekernel/common/sys/ |
H A D | proc.h | 60 struct pid *p_pidp; /* process ID info */ 61 struct pid *p_pgidp; /* process group ID info */ 77 struct pid { struct 85 struct pid *pid_link; 111 extern struct pid pid0; /* p0's pid */
|
/illumos-gate/usr/src/test/os-tests/tests/secflags/ |
H A D | secflags_psecflags.sh | 91 typeset pid; 94 pid=$! 99 /usr/bin/psecflags $pid | grep '[IE]:' > output 100 kill $pid 107 typeset pid; 111 pid=$! 116 /usr/bin/psecflags $pid | grep '[IE]:' > output 117 kill $pid 125 typeset pid; 129 pid [all...] |
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | systemvp.c | 53 pid_t pid, w; local 56 if ((pid = fork()) == 0) { 68 } while (w != pid && w != (pid_t)-1);
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | pipletr.c | 71 pid_t pid; local 79 if ((pid = fork()) == CHILD) { 89 return (dowait(pid));
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | idmap.h | 94 #define IDMAP_ID_IS_EPHEMERAL(pid) \ 95 (((pid) > INT32_MAX) && ((pid) != IDMAP_SENTINEL_PID))
|
/illumos-gate/usr/src/cmd/mdb/demo/common/ |
H A D | example2.c | 87 struct pid pid; local 116 * the pid struct addressed by p_pidp, and then print out the pid 121 if (mdb_vread(&pid, sizeof (pid), 122 (uintptr_t)p.p_pidp) == sizeof (pid)) 123 mdb_printf("%5d %s\n", pid.pid_id, p.p_user.u_comm); 125 mdb_warn("failed to read struct pid at %p", p.p_pidp);
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/netcfgd/ |
H A D | netcfgd.c | 98 pid_t pid; local 107 if ((pid = fork()) == -1) { 111 if (pid != 0) { 113 nlog(LOG_DEBUG, "child %ld exited, daemonizing", pid); 120 if ((pid = fork()) == -1) { 124 if (pid != 0) {
|
/illumos-gate/usr/src/ucblib/libucb/port/sys/ |
H A D | wait4.c | 72 wait4(pid_t pid, int *status, int options, struct rusage *rp) argument 102 if (pid < 0) { 103 pid = -pid; 105 } else if (pid == 0) 110 error = waitid(idtype, pid, &info, noptions);
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pisprocdir.c | 46 procfs_path, (int)Pr->pid, dir); 49 procfs_path, (int)Pr->pid, dir);
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prtable.c | 244 lwpid_add(lwp_info_t *lwp, pid_t pid, id_t lwpid) argument 247 int hash = pid % PLWP_TBL_SZ; 249 elm->l_pid = pid; 257 lwpid_del(pid_t pid, id_t lwpid) argument 260 int hash = pid % PLWP_TBL_SZ; 266 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid)) { 281 lwpid_getptr(pid_t pid, id_t lwpid) argument 283 plwp_t *elm = plwp_tbl[pid % PLWP_TBL_SZ]; 285 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid)) 294 lwpid_get(pid_t pid, id_ argument 304 lwpid_pidcheck(pid_t pid) argument 318 lwpid_is_active(pid_t pid, id_t lwpid) argument 328 lwpid_set_active(pid_t pid, id_t lwpid) argument [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/dtrace/test/cmd/scripts/ |
H A D | dtest.pl | 142 if (-f "$opt_d/$pid.core") { 143 print README "; see $pid.core\n"; 151 if (-f "$opt_d/$pid.out") { 152 rename("$opt_d/$pid.out", "$opt_d/failure.$n/$pid.out"); 156 if (-f "$opt_d/$pid.err") { 157 rename("$opt_d/$pid.err", "$opt_d/failure.$n/$pid.err"); 161 if (-f "$opt_d/$pid.core") { 162 rename("$opt_d/$pid [all...] |
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.goodkey.d | 47 @counts[execname, pid, id, tid, arg0, vtimestamp ] = count();
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/drops/ |
H A D | drp.DTRACEDROP_STKSTROVERFLOW.d | 52 /progenyof($pid) && execname == "java"/
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.main.ksh | 48 pid\$target::main:entry
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/privs/ |
H A D | tst.providers.ksh | 57 /err == 0 && progenyof(\$pid) && !seen["provider"]/ \ 66 /progenyof(\$pid)/ \ 72 /progenyof(\$pid)/ \ 115 /progenyof(\$pid)/
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/raise/ |
H A D | tst.raise1.d | 47 /pid == $1/
|
H A D | tst.raise2.d | 47 /pid == $1/
|
H A D | tst.raise3.d | 47 /pid == $1/
|