Searched refs:pid (Results 226 - 250 of 920) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libc/port/sys/
H A Dfcntl.c72 int pid; local
82 pid = (int)arg;
83 return (ioctl(fd, FIOSETOWN, &pid));
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/
H A Dopenchild.c65 * returns pid, or -1 for failure
74 int pid; local
86 switch (pid = fork()) {
123 return (pid);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dwait.c51 pid_t pid; member in struct:__anon179
183 register_method(instance_t *ins, pid_t pid, ctid_t cid, instance_method_t mthd, argument
191 (void) snprintf(path, sizeof (path), "/proc/%u/psinfo", pid);
218 me->pid = pid;
324 pid_t pid; local
343 pid = waitpid(me->pid, &status, WNOHANG);
345 switch (pid) {
373 "%d", pid, m
[all...]
/illumos-gate/usr/src/cmd/avs/dscfglockd/
H A Ddscfglockd.c86 pid_t pid; /* pid of read locker or local writer */ member in struct:lock_req
93 pid_t pid; /* pid of locker */ member in struct:unlock_s
293 send_lockmsg(int cmd, pid_t pid, daemonaddr_t *dp, uint8_t seq) argument
306 message_buf.pid = pid;
434 the_lock.holding_pid[0] = lock_wanted.pid;
483 the_lock.holding_pid[i] = lock_wanted.pid;
498 the_lock.holding_pid[0] = lock_wanted.pid;
678 is_duplicate(cfglockd_t type, pid_t pid, uint8_t seq) argument
737 unqueue_lock(daemonaddr_t *d, pid_t pid) argument
772 local_unlock(pid_t pid, uint8_t seq, int method) argument
1013 purge_pid(pid_t pid) argument
1031 pid_t pid; local
1161 pid_t pid; local
[all...]
/illumos-gate/usr/src/cmd/avs/sdbc/etc/
H A Ddscfg_reconfigure.cluster.sh104 # The pid of the process is kept in file /var/run/scnws/$dg.pid.
111 if [ -f /var/run/scnws/$dg.pid ]
113 for i in `cat /var/run/scnws/$dg.pid`
115 pid=$i
116 kill -9 $pid
118 rm -f /var/run/scnws/$dg.pid
136 # become Online, cleanup pid file. If it is Pending, the resource group
154 rm -f /var/run/scnws/$dg.pid
181 rm -f /var/run/scnws/$dg.pid
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dscript_handler.c126 pid_t pid; local
129 if ((pid = fork()) == -1)
132 if (pid == 0) {
157 * pass script's pid to dhcpagent.
159 (void) write(fd, &pid, sizeof (pid));
162 if (waitpid(pid, NULL, 0) >= 0) {
173 (void) kill(pid, script_signal);
287 pid_t pid; local
313 if ((pid
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Djobs.c59 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...]
/illumos-gate/usr/src/lib/libkvm/common/
H A Dtest.c96 printf("pid %d:: %d args; %d envs; %d chars (%p - %p)\n",
142 struct pid pid; local
143 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pid,
144 sizeof (pid)) != sizeof (pid)) {
145 printf("ERROR: couldn't get pid\n");
148 tst_getproc(pid.pid_id);
300 tst_getproc(pid_t pid) argument
303 struct pid pidbu
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Din.talkd.c129 pid_t val, pid; local
138 if ((pid = fork()) == 0) {
157 } while (val != pid);
176 swapreq.pid = swaplong(req.pid);
/illumos-gate/usr/src/lib/libpkg/common/
H A Druncmd.c100 pid_t pid; local
126 pid = vfork();
127 if (pid == 0) {
161 } else if (pid < 0) {
173 pid = waitpid(pid, &status, 0);
176 if (pid < 0) {
310 pid_t pid; local
379 pid = vfork();
381 if (pid
[all...]
/illumos-gate/usr/src/cmd/truss/
H A Dipc.c106 * every time a pid is added or removed from the table Ecritical(1)/Xcritical(1)
261 int pid; local
321 pid = Psp->pr_pid;
322 } else if ((pid = strtol(dirname, &next, 10)) < 0 ||
336 pid == getpid() || /* process opened truss's /proc file */
337 pid == 0) { /* process opened process 0 */
352 if (pid == Psp->pr_pid) { /* process opened its own /proc file */
360 * Search for a matching pid in our set of controlled processes.
363 if (gps->spid[i] == pid) {
364 pid
[all...]
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dulockf.c55 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */ local
58 if (pid[0] == '\0') {
62 (void) sprintf(pid, "%*ld\n", SIZEOFPID, (long)getpid());
67 if (onelock(pid, tempfile, name) == -1) {
72 if (onelock(pid, tempfile, name)) {
85 * - use kill(pid, 0)
123 DEBUG(4, "kill pid (%ld), ", (long)lpid);
186 * makes a lock on behalf of pid.
188 * pid - process id
196 onelock(char *pid, cha argument
[all...]
/illumos-gate/usr/src/cmd/prstat/
H A Dprfile.c167 fds_get(pid_t pid) argument
170 int hash = pid % FDS_TABLE_SIZE;
173 if (fdsp->fds_pid == pid) /* searching for pid */
176 fdsp = Zalloc(sizeof (fds_t)); /* adding new if pid was not found */
177 fdsp->fds_pid = pid;
184 fds_rm(pid_t pid) argument
188 int hash = pid % FDS_TABLE_SIZE;
190 for (fds = fds_tbl[hash]; fds && fds->fds_pid != pid;
191 fds = fds->fds_next) /* finding pid */
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Ducredsys.c128 ucred_get(pid_t pid, void *ubuf) argument
136 if (pid == P_MYID || pid == curproc->p_pid) {
139 pid = curproc->p_pid;
143 if (pid < 0)
150 p = prfind(pid);
173 uc = cred2ucred(pcr, pid, NULL, CRED());
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Drunner.c58 GPid pid; member in struct:__anon633
76 g_spawn_close_pid(rd->pid);
149 run_exited(GPid pid, gint status, gpointer data) argument
154 printf("pid %d: rc=%d signaled=%d: %s\n",
155 pid, WEXITSTATUS(status), WIFSIGNALED(status), rd->r->argv[0]);
185 gint64 ppid = rd->pid;
204 kill(rd->pid, SIGTERM);
244 GPid pid; local
274 NULL, NULL, &pid,
298 rd->pid
[all...]
/illumos-gate/usr/src/cmd/ptools/ptree/
H A Dptree.c52 #define FAKEDPID0(p) (p->pid == 0 && p->psargs[0] == '\0')
58 pid_t pid; /* pid == -1 indicates this is a contract */ member in struct:ps
143 "usage:\t%s [-ac] [-z zone] [ {pid|user} ... ]\n",
232 p->pid = info.pr_pid;
252 if (p->pid == p->ppid)
254 if (p->pid == 1)
295 pid_t pid; local
306 pid = strtoul(arg, &next, 10);
317 pid
[all...]
/illumos-gate/usr/src/cmd/amt/
H A Damt.c198 pid_t pid; local
203 if ((pid = fork()) == -1) {
206 } else if (pid == 0) { /* Am I my child? */
292 pid_t pid; local
302 if ((pid = fork()) == -1) {
305 } else if (pid == 0) { /* Am I my child? */
349 pid_t pid; local
359 if ((pid = fork()) == -1) {
362 } else if (pid == 0) { /* I am the child. */
392 pid_t pid; local
503 pid_t pid; local
[all...]
/illumos-gate/usr/src/cmd/utmpd/
H A Dutmpd.c117 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/rcm_daemon/common/
H A Drcm_event.c121 pid_t pid; local
147 pid = (pid_t)pid64;
179 error = add_resource_client(modname, rsrcnames[0], pid, flag,
187 error = remove_resource_client(modname, rsrcnames[0], pid,
208 error = process_resource_suspend(rsrcnames, pid, flag, seq_num,
215 error = notify_resource_resume(rsrcnames, pid, flag, seq_num,
222 error = process_resource_offline(rsrcnames, pid, flag, seq_num,
229 error = notify_resource_online(rsrcnames, pid, flag, seq_num,
236 error = notify_resource_remove(rsrcnames, pid, flag, seq_num,
244 error = notify_resource_event(rsrcnames[0], pid, fla
[all...]
/illumos-gate/usr/src/cmd/latencytop/common/
H A Dklog.c39 static GHashTable *proc_table = NULL; /* pid -> char * */
182 lt_klog_log(int level, pid_t pid, char *stack, argument
196 LT_INT_TO_POINTER(pid));
199 psargs = lt_get_proc_field(pid, LT_FIELD_PSARGS);
202 psargs = lt_get_proc_field(pid, LT_FIELD_FNAME);
210 LT_INT_TO_POINTER(pid), psargs);
215 (void) snprintf(str, str_len, "%ld, \"%s\"", pid, stack);
/illumos-gate/usr/src/lib/libbc/csu/common/
H A Dmon.c33 * If PROFDIR = string, "string/pid.progname" is produced,
126 int pid, n; local
129 "PROFDIR/pid.progname" */
132 if ((pid = getpid()) <= 0) /* extra test just in case */
133 pid = 1; /* getpid returns something inappropriate */
134 for (n = 10000; n > pid; n /= 10)
137 *name++ = pid/n + '0';
140 pid %= n;
164 "PROFDIR/pid.progname" when done profiling */
/illumos-gate/usr/src/lib/libpctx/common/
H A Dlibpctx.c166 pctx_capture(pid_t pid, void *arg, int verbose, pctx_errfn_t *errfn) argument
177 if ((pctx->Pr = Pgrab(pid, 0, &err)) == NULL) {
181 gettext("pid %d doesn't exist\n"), (int)pid);
185 gettext("pid %d is a zombie\n"), (int)pid);
189 gettext("pid %d: permission denied\n"), (int)pid);
193 gettext("pid %d is already being traced\n"),
194 (int)pid);
533 pid_t pid = Pstatus(pctx->Pr)->pr_pid; local
[all...]
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DConsumer.java401 * createProcess()} and {@link #grabProcess(int pid)
584 * @return ID of the created process (pid)
592 * @see #grabProcess(int pid)
609 * @param pid process ID of the process to be grabbed
616 public void grabProcess(int pid) throws DTraceException; argument
747 * @param pid ID of the user process containing the addressed
765 * @see #lookupUserFunction(int pid, long address)
767 public String lookupUserFunction(int pid, int address); argument
773 * @param pid ID of the user process containing the addressed
779 * @see #lookupUserFunction(int pid, in
781 lookupUserFunction(int pid, long address) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dplock.c51 static pid_t state_pid = -1; /* pid to which state belongs */
61 pid_t pid; /* current pid */ local
70 if ((pid = getpid()) != state_pid) {
72 state_pid = pid;
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dadutils.h114 posix_id_t *pid, idmap_retcode *rc);
133 posix_id_t *pid, idmap_retcode *rc);
148 posix_id_t pid, int is_user,

Completed in 140 milliseconds

1234567891011>>