lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | The library pays attention to some envariables: |
| 2 | |
| 3 | CORESERVER -- Name of core server naming point; falls back to /servers/core |
| 4 | COREFILE -- Name of file to write core dump in; falls back to core |
| 5 | GNUTARGET -- Passed to core server to specify flavor of core dump format |
| 6 | |
| 7 | New functions: |
| 8 | |
| 9 | int openport (io_t port); |
| 10 | FILE *fopenport (mach_port_t, const char *mode); |
| 11 | file_t getdport (int fd); |
| 12 | |
| 13 | task_t pid2task (pid_t); |
| 14 | pid_t task2pid (task_t); |
| 15 | |
| 16 | int fchroot (int fd); |
| 17 | mode_t getumask (void); |
| 18 | |
| 19 | int getuids (int n, uid_t *uidset); |
| 20 | |
| 21 | error_t hurd_path_lookup (file_t root, file_t cwd, |
| 22 | const char *path, int flags, mode_t mode, |
| 23 | file_t *port); |
| 24 | error_t hurd_path_split (file_t root, file_t cwd, |
| 25 | const char *path, |
| 26 | file_t *dir, char **name); |
| 27 | file_t path_lookup (const char *path, int flags, mode_t mode); |
| 28 | file_t path_split (const char *path, char **name); |
| 29 | |
| 30 | process_t getproc (void); |
| 31 | int setproc (process_t); |
| 32 | file_t getcrdir (void); |
| 33 | int setcrdir (file_t); |
| 34 | file_t getcwdir (void); |
| 35 | int setcwdir (file_t); |
| 36 | auth_t getauth (void); |
| 37 | int setauth (auth_t); /* Reauthenticates all library ports. */ |