Searched defs:pid (Results 101 - 125 of 617) sorted by relevance

1234567891011>>

/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/lib/libbsm/common/
H A Daudit_ftpd.c137 pid_t pid; local
167 pid = getpid();
178 ruid, rgid, pid, pid, &info.ai_termid));
252 pid_t pid; local
278 pid = getpid();
284 egid, uid, gid, pid, pid, &info.ai_termid));
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);
H A Daudit_rexd.c162 pid_t pid; local
192 pid = getpid();
203 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid,
280 pid_t pid; local
318 pid = getpid();
329 au_to_subject_ex(uid, uid, gid, uid, gid, pid, pid,
/illumos-gate/usr/src/lib/libc/port/gen/
H A Drctlops.c162 rctlblk_set_recipient_pid(rctlblk_t *rblk, id_t pid) argument
165 ropaque->rcq_local_recipient_pid = pid;
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dpopen.c60 pid_t pid; member in struct:node
91 pid_t pid; local
180 error = posix_spawn_pipe_np(&pid, &fd, cmd, *mode != 'r', &fact, &attr);
190 _insert_nolock(pid, myfd, node);
212 pid_t pid; local
215 pid = _delete(fileno(ptr));
220 if (pid <= 0) {
231 * w/o waiting, and if that fails just call cleanup(pid).
236 if (waitpid(pid, &status, WNOHANG) == pid)
257 _insert_nolock(pid_t pid, int fd, node_t *new) argument
293 _insert(pid_t pid, int fd) argument
313 pid_t pid; local
[all...]
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/
H A Drpc.ypupdated.c288 int pid; local
317 pid = _openchild(updater, &childargs, &childrslt);
318 if (pid < 0) {
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypupdated.c102 pid_t pid; local
182 pid = fork();
184 if (pid < 0) {
188 if (pid)
313 int pid; local
322 pid = _openchild(updater, &childargs, &childrslt);
323 if (pid < 0) {
H A Dypxfrd_svc.c164 pid_t pid; local
229 pid = fork();
230 if (pid < 0) {
234 if (pid)
/illumos-gate/usr/src/cmd/oplhpd/
H A Doplhpd.c57 #define OPLHPD_PID_FILE "/var/run/oplhpd.pid" /* lock file path */
89 syslog(LOG_DEBUG, "*** quit daemon [pid:%d, signal#:%d].\n",
136 pid_t pid; local
148 if ((pid = fork()) < 0) {
152 if (pid > 0) {
170 syslog(LOG_ERR, "could not create pid file: %s",
178 syslog(LOG_ERR, "could not lock pid file");
190 syslog(LOG_ERR, "pid file write fail: %s",
/illumos-gate/usr/src/cmd/pools/poolbind/
H A Dpoolbind.c65 { P_PID, "pid" },
85 "[-i pid | -i taskid | -i projid | -i zoneid] id ...\n"
86 " poolbind -q pid ...\n"
87 " poolbind -Q pid ... \n"));
92 print_resource_binding(const char *type, pid_t pid) argument
96 if ((resource_name = pool_get_resource_binding(type, pid)) == NULL)
98 (int)pid, get_errstr());
100 (void) printf("%d\t%s\t%s\n", (int)pid, type, resource_name);
111 char *idstr = "pid";
271 "pid
[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/cmd/ptools/preap/
H A Dpreap.c54 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/rcm_daemon/common/
H A Drcm_main.c293 pid_t pid; local
397 if ((pid = enter_daemon_lock()) != getpid()) {
398 rcm_log_message(RCM_DEBUG, "%s pid %d already running\n",
399 prog, pid);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmultilink.c56 static int owns_unit __P((TDB_DATA pid, int unit));
98 TDB_DATA key, pid, rec; local
158 pid = tdb_fetch(pppdb, key);
159 if (pid.dptr != NULL) {
161 rec = tdb_fetch(pppdb, pid);
165 /* check the pid value */
168 || !owns_unit(pid, unit))
172 free(pid.dptr);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Dmain.c103 pid_t pid; local
112 if ((pid = fork()) == (pid_t)-1) {
116 if (pid != 0) {
124 if ((pid = fork()) == (pid_t)-1) {
128 if (pid != 0)
/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/cmd-inet/usr.sbin/in.talkd/
H A Dannounce.c74 pid_t pid, val; local
81 if (pid = fork()) {
84 if (pid == (pid_t)-1) {
100 } while (val != pid);
H A Dctl.h108 pid_t pid; member in struct:ctl_msg
/illumos-gate/usr/src/cmd/csh/
H A Dsh.sem.c59 int pid = 0; local
161 { forked++; pid = pfork(t, wanttty); }
189 pid = vfork();
190 if (pid < 0) {
195 if (pid) { /* parent */
207 ppid = pcurrjob ? pcurrjob->p_jobid : pid;
210 palloc(pid, t);
269 if (pid != 0) {
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevalloc.c137 pid_t pid, wpid; local
139 pid = vfork();
140 switch (pid) {
148 wpid = waitpid(pid, &status, 0);
/illumos-gate/usr/src/cmd/dispadmin/
H A Ddispadmin.c234 int pid; local
239 if ((pid = fork()) == 0) {
243 } else if (pid == (pid_t)-1) {
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/
H A Dmdmn_commd_service.c275 pid_t pid; local
339 pid = getpid();
340 (void) metaioctl(MD_MN_SET_COMMD_RUNNING, (void *)pid, &ep,
352 pid = fork();
353 if (pid < 0) {
357 if (pid)
/illumos-gate/usr/src/cmd/mailx/
H A Dcmd4.c68 register pid_t pid; local
111 if ((pid = vfork()) == 0) {
122 if (pid == (pid_t)-1) { /* error */
165 while (wait(&s) != pid);
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_stubs.c122 kill(pid_t pid, int sig) argument

Completed in 73 milliseconds

1234567891011>>