70 |
int proc_uname (proc_t proc, void *buf, |
int proc_uname (proc_t proc, void *buf, |
71 |
inout int *len (length-of buf, force-encode)); |
inout int *len (length-of buf, force-encode)); |
72 |
|
|
73 |
|
/* Return ID's of PROC. */ |
74 |
|
int proc_getids (proc_t proc, |
75 |
|
uid_t *uids, int *nuids (length-of uids, force-encode), |
76 |
|
uid_t *gids, int *ngids (length-of gids, force-encode)); |
77 |
|
|
78 |
|
/* Set session id of PROC. */ |
79 |
|
int proc_setsid (proc_t proc); |
80 |
|
|
81 |
|
/* Get session id of process PID. Return SID in *SID. */ |
82 |
|
int proc_getsid (proc_t proc, pid_t pid, pid_t *sid); |
83 |
|
|
84 |
|
/* Set process group ID of process PID to PGID. */ |
85 |
|
int proc_setpgrp (proc_t proc, pid_t pid, pid_t pgid); |
86 |
|
|
87 |
|
/* Get process group ID of process PID in *PGID. */ |
88 |
|
int proc_getpgrp (proc_t proc, pid_t pid, pid_t *pgid); |
89 |
|
|
90 |
|
/* Set login name of process PROC to NAME. */ |
91 |
|
int proc_setlogin (proc_t proc, char *name, |
92 |
|
size_t name_len (length-of name)); |
93 |
|
|
94 |
|
/* Get login name of process PROC in NAME. */ |
95 |
|
int proc_getlogin (proc_t proc, char *name, |
96 |
|
size_t *name_len (length-of name, force-encode)); |
97 |
|
|
98 |
/* Open file FILENAME. MODE is used for creating file. |
/* Open file FILENAME. MODE is used for creating file. |
99 |
File descriptor number is returned in *FDP. */ |
File descriptor number is returned in *FDP. */ |
100 |
int io_open (proc_t proc, char *filename, |
int io_open (proc_t proc, char *filename, |