Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 25 of 837) sorted by relevance

12345678910>>...34

/illumos-gate/usr/src/lib/libc/port/sys/
H A Dpgrpsys.c41 pid_t
44 return ((pid_t)syscall(SYS_pgrpsys, 0)); in getpgrp()
47 pid_t
50 return ((pid_t)syscall(SYS_pgrpsys, 1)); in setpgrp()
53 pid_t
54 getsid(pid_t pid) in getsid()
59 pid_t
62 return ((pid_t)syscall(SYS_pgrpsys, 3)); in setsid()
65 pid_t
66 getpgid(pid_t pid) in getpgid()
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_impl.h133 pid_t pid; /* pid of regis process */
236 int remove_resource_client(char *, char *, pid_t, uint_t);
238 int notify_resource_event(char *, pid_t, uint_t, int, nvlist_t *,
240 int request_capacity_change(char *, pid_t, uint_t, int, nvlist_t *,
242 int notify_capacity_change(char *, pid_t, uint_t, int, nvlist_t *,
244 int get_resource_state(char *, pid_t, rcm_info_t **);
252 int dr_req_update(char *, pid_t, uint_t, int, int, rcm_info_t **);
263 int rsrc_node_add_user(rsrc_node_t *, char *, char *, pid_t, uint_t);
264 int rsrc_node_remove_user(rsrc_node_t *, char *, pid_t, uint_t);
265 client_t *rsrc_client_find(char *, pid_t, client_t **);
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Djobs.h49 extern pid_t sh_copid(struct cosh*);
50 extern char *sh_pid2str(Shell_t*,pid_t);
83 pid_t p_pid; /* process id */
84 pid_t p_pgrp; /* process group */
101 pid_t curpgid; /* current process gid id */
102 pid_t parent; /* set by fork() */
103 pid_t mypid; /* process id of shell */
104 pid_t mypgid; /* process group id of shell */
194 extern int job_wait(pid_t);
195 extern int job_post(Shell_t*,pid_t,pid_t);
[all …]
/illumos-gate/usr/src/lib/libpctx/common/
H A Dlibpctx.h56 extern pctx_t *pctx_capture(pid_t pid,
59 typedef int pctx_sysc_execfn_t(pctx_t *, pid_t, id_t, char *, void *);
60 typedef void pctx_sysc_forkfn_t(pctx_t *, pid_t, id_t, pid_t, void *);
61 typedef void pctx_sysc_exitfn_t(pctx_t *, pid_t, id_t, int, void *);
62 typedef int pctx_sysc_lwp_createfn_t(pctx_t *, pid_t, id_t, void *);
63 typedef int pctx_init_lwpfn_t(pctx_t *, pid_t, id_t, void *);
64 typedef int pctx_fini_lwpfn_t(pctx_t *, pid_t, id_t, void *);
65 typedef int pctx_sysc_lwp_exitfn_t(pctx_t *, pid_t, id_t, void *);
83 int (*tick)(pctx_t *, pid_t, id_t, void *));
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Druntests.c57 pid_t *, int[]);
58 static int flock_wait(pid_t pid);
91 flock_kill(pid_t pid) in flock_kill()
281 pid_t *pid, int fds[]) in flock_run()
292 if (*pid == (pid_t)-1) { in flock_run()
294 } else if (*pid == (pid_t)0) { in flock_run()
313 flock_wait(pid_t pid) in flock_wait()
347 pid_t pid; in flock_test_upgrade_downgrade()
441 pid_t pidA, pidB; in flock_test_exclusive()
493 pid_t pidA, pidB; in flock_test_shared()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dpclose.c84 static pid_t *popen_pid;
91 pid_t pid; in mypopen()
102 popen_pid = (pid_t *)malloc((unsigned)nfiles * in mypopen()
107 popen_pid[i] = (pid_t)-1; in mypopen()
123 if (pid == (pid_t)-1) { in mypopen()
145 pid_t child, pid; in mypclose()
151 popen_pid[fileno(ptr)] = (pid_t)-1; in mypclose()
153 if (child == (pid_t)-1) in mypclose()
157 while ((pid = wait(&status)) != child && pid != (pid_t)-1) in mypclose()
161 return (pid == (pid_t)-1 ? -1 : 0); in mypclose()
/illumos-gate/usr/src/cmd/latencytop/common/
H A Dlatencytop.h199 extern void lt_stat_update(pid_t, id_t, char *, char *, unsigned int,
201 extern void lt_stat_update_cause(pid_t, id_t, int, lt_stat_type_t, uint64_t);
202 extern void lt_stat_update_sobj(pid_t, id_t, int, unsigned long long,
212 pid_t, id_t, int, lt_sort_t);
224 extern int lt_stat_proc_list_create(pid_t **, id_t **);
225 extern void lt_stat_proc_list_free(pid_t *, id_t *);
226 extern const char *lt_stat_proc_get_name(pid_t);
227 extern int lt_stat_proc_get_nthreads(pid_t);
245 extern void lt_klog_log(int, pid_t, char *, lt_stat_type_t,
257 extern char *lt_get_proc_field(pid_t, lt_field_t);
/illumos-gate/usr/src/tools/cscope-fast/
H A Dexec.c52 pid_t childpid; /* child's process ID */
57 static pid_t myfork(void);
58 static int join(pid_t p);
74 pid_t p; in execute()
111 static pid_t
114 pid_t p; /* process number */ in myfork()
138 join(pid_t p) in join()
141 pid_t w; in join()
/illumos-gate/usr/src/boot/include/
H A Dunistd.h53 typedef __pid_t pid_t; typedef
336 pid_t fork(void);
344 pid_t getpgrp(void);
345 pid_t getpid(void);
346 pid_t getppid(void);
360 int setpgid(pid_t, pid_t);
361 pid_t setsid(void);
365 pid_t tcgetpgrp(int);
415 int getsid(pid_t _pid);
547 pid_t rfork(int);
[all …]
/illumos-gate/usr/src/ucbhead/sys/
H A Dwait.h152 extern pid_t wait(int *);
153 extern pid_t waitpid(pid_t, int *, int);
155 extern pid_t wait4(pid_t, int *, int, struct rusage *);
156 extern pid_t wait3(int *, int, struct rusage *);
160 extern pid_t wait();
161 extern pid_t waitpid();
/illumos-gate/usr/src/cmd/prstat/
H A Dprtable.h68 pid_t l_pid;
85 extern void lwpid_add(lwp_info_t *, pid_t, id_t);
86 extern lwp_info_t *lwpid_get(pid_t, id_t);
87 extern int lwpid_pidcheck(pid_t);
88 extern void lwpid_del(pid_t, id_t);
89 extern void lwpid_set_active(pid_t, id_t);
90 extern int lwpid_is_active(pid_t, id_t);
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dspawnveg.c47 pid_t
48 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid)
51 pid_t pid;
98 pid_t
99 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid)
114 pid_t
115 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid)
155 pid_t
156 spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid)
161 pid_t pid;
[all …]
/illumos-gate/usr/src/lib/libgen/common/
H A Dp2open.c45 extern int _insert(pid_t pid, int fd);
46 extern pid_t _delete(int fd);
72 pid_t pid; in __p2open()
97 if (pid == (pid_t)-1) in __p2open()
114 pid_t pid, r; in __p2close()
130 if (pid == (pid_t)-1) in __p2close()
148 while ((r = waitpid(pid, &status, 0)) == (pid_t)-1 && errno == EINTR) in __p2close()
150 if (r == (pid_t)-1) in __p2close()
/illumos-gate/usr/src/ucbhead/
H A Dunistd.h142 extern pid_t getpid(void);
143 extern pid_t getppid(void);
144 extern pid_t getpgrp(void);
146 extern int setpgid(pid_t, pid_t);
147 extern int setpgrp(pid_t, pid_t); /* BSD */
/illumos-gate/usr/src/head/
H A Dunistd.h316 extern pid_t fork(void);
318 extern pid_t fork1(void);
319 extern pid_t forkall(void);
376 extern pid_t getpgid(pid_t);
378 extern pid_t getpid(void);
379 extern pid_t getppid(void);
380 extern pid_t getpgrp(void);
386 extern pid_t getsid(pid_t);
504 extern int setpgid(pid_t, pid_t);
506 extern pid_t setpgrp(void);
[all …]
H A Dsched.h59 int sched_getparam(pid_t, struct sched_param *);
60 int sched_setparam(pid_t, const struct sched_param *);
61 int sched_getscheduler(pid_t);
62 int sched_setscheduler(pid_t, int, const struct sched_param *);
66 int sched_rr_get_interval(pid_t, struct timespec *);
/illumos-gate/usr/src/cmd/mailx/
H A Dpopen.c65 typedef int pid_t; typedef
71 static pid_t popen_pid[20];
77 register pid_t pid; in npopen()
104 if(pid == (pid_t)-1) in npopen()
115 register pid_t r; in npclose()
123 while((r = wait(&status)) != popen_pid[f] && r != (pid_t)-1) in npclose()
125 if(r == (pid_t)-1) in npclose()
/illumos-gate/usr/src/uts/common/sys/
H A Dwait.h98 extern pid_t wait(int *);
99 extern pid_t waitpid(pid_t, int *, int);
105 extern pid_t wait3(int *, int, struct rusage *);
110 extern pid_t wait4(pid_t, int *, int, struct rusage *);
H A Dport_kernel.h57 pid_t portkev_pid; /* pid of process using this struct */
60 int (*portkev_callback)(void *, int *, pid_t, int, void *);
99 void (*portsrc_close)(void *, int, pid_t, int);
145 void (*pks_close)(void *, int, pid_t, int);
152 void (*)(void *, int, pid_t, int), void *arg,
163 int (*)(void *, int *, pid_t, int, void *), void *);
/illumos-gate/usr/src/lib/libmail/common/
H A Dsystemvp.c49 pid_t
53 pid_t pid, w; in systemvp()
68 } while (w != pid && w != (pid_t)-1); in systemvp()
71 return ((w == (pid_t)-1)? w: (pid_t)status); in systemvp()
H A Dpopenvp.c58 static pid_t popen_pid[20];
67 pid_t pid; in popenvp()
93 if (pid == (pid_t)-1) in popenvp()
104 pid_t r; in pclosevp()
115 } while (r != popen_pid[f] && r != (pid_t)-1); in pclosevp()
117 if (r == (pid_t)-1) in pclosevp()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/obsolete/
H A Dspawn.c69 extern pid_t
83 extern pid_t
87 pid_t pid;
126 extern pid_t
140 extern pid_t
144 pid_t pid;
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_get_info.c55 proc_get_cred(pid_t pid, prcred_t *credp, int ngroups) in proc_get_cred()
74 proc_get_secflags(pid_t pid, prsecflags_t **psf) in proc_get_secflags()
104 proc_get_priv(pid_t pid) in proc_get_priv()
133 proc_get_ldt(pid_t pid, struct ssd *pldt, int nldt) in proc_get_ldt()
166 proc_get_psinfo(pid_t pid, psinfo_t *psp) in proc_get_psinfo()
183 proc_get_status(pid_t pid, pstatus_t *psp) in proc_get_status()
206 proc_get_auxv(pid_t pid, auxv_t *pauxv, int naux) in proc_get_auxv()
223 proc_get_lwpsinfo(pid_t pid, uint_t thr, lwpsinfo_t *lwpip) in proc_get_lwpsinfo()
/illumos-gate/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c138 pid_t
142 pid_t pid; in _enter_daemon_lock()
150 return ((pid_t)-1); in _enter_daemon_lock()
160 return ((pid_t)-1); in _enter_daemon_lock()
168 return ((pid_t)-1); in _enter_daemon_lock()
171 return ((pid_t)0); in _enter_daemon_lock()
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr_change.c51 pid_t pid;
56 pid_t pid; /* main nscd pid */
79 static void cleanup_thread_by_pid(pid_t pid);
119 waiting_list_add(chg_info_t *info, pid_t pid, thread_t tid, in waiting_list_add()
205 waiting_list_set_cleanup(chg_info_t *info, pid_t pid) in waiting_list_set_cleanup()
538 pid_t pid; in chg_cleanup_waiting_threads()
572 cleanup_thread_by_pid(pid_t pid) in cleanup_thread_by_pid()
601 get_nscd_psinfo(pid_t pid, psinfo_t *info) in get_nscd_psinfo()
626 is_peruser_nscd(pid_t pid) in is_peruser_nscd()
628 pid_t ppid; in is_peruser_nscd()
[all …]

12345678910>>...34