1 |
/* Process management |
/* Process management |
2 |
Copyright (C) 1992,93,94,95,96,99,2000,01 Free Software Foundation, Inc. |
Copyright (C) 1992,93,94,95,96,99,2000,01,02 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
5 |
|
|
90 |
error_t err; |
error_t err; |
91 |
uid_t gubuf[50], aubuf[50], ggbuf[50], agbuf[50]; |
uid_t gubuf[50], aubuf[50], ggbuf[50], agbuf[50]; |
92 |
uid_t *gen_uids, *aux_uids, *gen_gids, *aux_gids; |
uid_t *gen_uids, *aux_uids, *gen_gids, *aux_gids; |
93 |
u_int ngen_uids, naux_uids, ngen_gids, naux_gids; |
size_t ngen_uids, naux_uids, ngen_gids, naux_gids; |
94 |
|
|
95 |
if (!p) |
if (!p) |
96 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |
332 |
thread_t contthread) |
thread_t contthread) |
333 |
{ |
{ |
334 |
thread_t threadbuf[2], *threads = threadbuf; |
thread_t threadbuf[2], *threads = threadbuf; |
335 |
int nthreads = sizeof (threadbuf) / sizeof (thread_t); |
size_t nthreads = sizeof (threadbuf) / sizeof (thread_t); |
336 |
int i; |
int i; |
337 |
error_t err; |
error_t err; |
338 |
|
|
409 |
mach_msg_type_name_t reply_type, |
mach_msg_type_name_t reply_type, |
410 |
mach_port_t thread, |
mach_port_t thread, |
411 |
mach_port_t task, |
mach_port_t task, |
412 |
int exception, |
integer_t exception, |
413 |
int code, |
integer_t code, |
414 |
int subcode) |
integer_t subcode) |
415 |
{ |
{ |
416 |
error_t err; |
error_t err; |
417 |
struct proc *p; |
struct proc *p; |
505 |
kern_return_t |
kern_return_t |
506 |
S_proc_getallpids (struct proc *p, |
S_proc_getallpids (struct proc *p, |
507 |
pid_t **pids, |
pid_t **pids, |
508 |
u_int *pidslen) |
size_t *pidslen) |
509 |
{ |
{ |
510 |
int nprocs; |
int nprocs; |
511 |
pid_t *loc; |
pid_t *loc; |
792 |
add_tasks (task_t task) |
add_tasks (task_t task) |
793 |
{ |
{ |
794 |
mach_port_t *psets; |
mach_port_t *psets; |
795 |
u_int npsets; |
size_t npsets; |
796 |
int i; |
int i; |
797 |
struct proc *foundp = 0; |
struct proc *foundp = 0; |
798 |
|
|
801 |
{ |
{ |
802 |
mach_port_t psetpriv; |
mach_port_t psetpriv; |
803 |
mach_port_t *tasks; |
mach_port_t *tasks; |
804 |
u_int ntasks; |
size_t ntasks; |
805 |
int j; |
int j; |
806 |
|
|
807 |
if (!foundp) |
if (!foundp) |