/hurd/ |
A D | getdport.c | 23 static file_t (*_default_hurd_getdport_fn) (int fd) = 0; 27 __getdport (int fd) in weak_alias() 32 return (*_hurd_getdport_fn) (fd); in weak_alias() 44 if (fd < 0 || (unsigned int) fd > _hurd_init_dtablesize in weak_alias() 45 || _hurd_init_dtable[fd] == MACH_PORT_NULL) in weak_alias() 52 __mach_port_mod_refs (__mach_task_self (), _hurd_init_dtable[fd], in weak_alias() 54 return _hurd_init_dtable[fd]; in weak_alias()
|
A D | fd-close.c | 21 _hurd_fd_close (struct hurd_fd *fd) in _hurd_fd_close() argument 27 __spin_lock (&fd->port.lock); in _hurd_fd_close() 28 if (fd->port.port == MACH_PORT_NULL) in _hurd_fd_close() 30 __spin_unlock (&fd->port.lock); in _hurd_fd_close() 37 _hurd_port_set (&fd->ctty, MACH_PORT_NULL); in _hurd_fd_close() 38 _hurd_port_locked_set (&fd->port, MACH_PORT_NULL); in _hurd_fd_close()
|
A D | lookup-at.c | 26 __file_name_lookup_at (int fd, int at_flags, in __file_name_lookup_at() argument 39 if (fd == AT_FDCWD || file_name[0] == '/') in __file_name_lookup_at() 66 err = HURD_DPORT_USE (fd, (startdir = port, in __file_name_lookup_at() 74 return err ? (__hurd_dfail (fd, err), MACH_PORT_NULL) : result; in __file_name_lookup_at() 78 __file_name_split_at (int fd, const char *file_name, char **name) in __file_name_split_at() argument 83 if (fd == AT_FDCWD || file_name[0] == '/') in __file_name_split_at() 96 err = HURD_DPORT_USE (fd, (startdir = port, in __file_name_split_at() 102 return err ? (__hurd_dfail (fd, err), MACH_PORT_NULL) : result; in __file_name_split_at() 111 if (fd == AT_FDCWD || directory_name[0] == '/') in __directory_name_split_at() 121 err = HURD_DPORT_USE (fd, (startdir = port, in __directory_name_split_at() [all …]
|
A D | hurdioctl.c | 57 fioctl (int fd, in fioctl() argument 74 err = HURD_DPORT_USE (fd, __io_readable (port, &navail)); in fioctl() 81 err = HURD_DPORT_USE (fd, (*arg in fioctl() 88 err = HURD_DPORT_USE (fd, (*arg in fioctl() 103 return err ? __hurd_dfail (fd, err) : 0; in fioctl() 110 fioclex (int fd, in fioclex() argument 127 return __fcntl (fd, F_SETFD, flag); in fioclex() 270 tiocsctty (int fd, in tiocsctty() argument 280 tiocnotty (int fd, in tiocnotty() argument 311 siocgifconf (int fd, int request, struct ifconf *ifc) in siocgifconf() argument [all …]
|
A D | intern-fd.c | 29 int fd; in _hurd_intern_fd() local 33 d = _hurd_alloc_fd (&fd, 0); in _hurd_intern_fd() 48 return fd; in _hurd_intern_fd()
|
A D | Makefile | 23 $(addprefix hurd/,fd.h id.h port.h signal.h sigpreempt.h ioctl.h\ 26 inline-headers = hurd.h $(addprefix hurd/,fd.h signal.h \ 60 fd-cleanup port-cleanup report-wait xattr 64 dtable = dtable port2fd new-fd alloc-fd intern-fd \ 66 fd-close fd-read fd-write hurdioctl ctty-input ctty-output
|
A D | fchroot.c | 26 fchroot (int fd) in fchroot() argument 31 err = HURD_DPORT_USE (fd, in fchroot()
|
A D | fd-write.c | 25 _hurd_fd_write (struct hurd_fd *fd, in _hurd_fd_write() argument 36 err = HURD_FD_PORT_USE_CANCEL (fd, _hurd_ctty_output (port, ctty, writefd)); in _hurd_fd_write()
|
A D | hurdfchdir.c | 27 _hurd_change_directory_port_from_fd (struct hurd_port *portcell, int fd) in _hurd_change_directory_port_from_fd() argument 30 struct hurd_fd *d = _hurd_fd_get (fd); in _hurd_change_directory_port_from_fd()
|
A D | fd-read.c | 25 _hurd_fd_read (struct hurd_fd *fd, void *buf, size_t *nbytes, loff_t offset) in _hurd_fd_read() argument 38 if (err = HURD_FD_PORT_USE_CANCEL (fd, _hurd_ctty_input (port, ctty, readfd))) in _hurd_fd_read()
|
A D | alloc-fd.c | 30 _hurd_alloc_fd (int *fd, int first_fd) in _hurd_alloc_fd() argument 70 if (fd != NULL) in _hurd_alloc_fd() 71 *fd = i; in _hurd_alloc_fd()
|
A D | Notes | 11 file_t getdport (int fd); 16 int fchroot (int fd);
|
A D | hurd.h | 174 int fd); 351 extern io_t __getdport (int fd), getdport (int fd);
|
A D | dtable.c | 105 get_dtable_port (int fd) in get_dtable_port() argument 107 struct hurd_fd *d = _hurd_fd_get (fd); in get_dtable_port() 138 file_t (*_hurd_getdport_fn) (int fd) = get_dtable_port;
|
A D | lookup-retry.c | 49 file_t (*get_dtable_port) (int fd), in __hurd_file_name_lookup_retry() 220 int fd; in __hurd_file_name_lookup_retry() local 224 fd = (int) __strtoul_internal (&retryname[3], &end, 10, 0); in __hurd_file_name_lookup_retry() 239 *result = (*get_dtable_port) (fd); in __hurd_file_name_lookup_retry()
|
A D | hurdlookup.c | 43 file_t (*get_dtable_port) (int fd), in __hurd_file_name_lookup() 106 file_t (*get_dtable_port) (int fd), in weak_alias() 159 file_t (*get_dtable_port) (int fd), in weak_alias()
|
A D | hurdselect.c | 154 if (pollfds[i].fd >= 0) in _hurd_select() 164 d[i].io_port = pollfds[i].fd; in _hurd_select() 176 const int fd = (int) d[i].io_port; in _hurd_select() local 178 if (fd < _hurd_dtablesize) in _hurd_select() 180 d[i].cell = _hurd_dtable[fd]; in _hurd_select()
|
A D | path-lookup.c | 91 file_t (*get_dtable_port) (int fd), in __hurd_file_name_path_lookup()
|
/hurd/hurd/ |
A D | fd.h | 65 extern struct hurd_fd *_hurd_fd_get (int fd); 70 _hurd_fd_get (int fd) in _hurd_fd_get() argument 76 if (fd < 0 || fd >= _hurd_dtablesize) in _hurd_fd_get() 80 struct hurd_fd *cell = _hurd_dtable[fd]; in _hurd_fd_get() 108 #define HURD_FD_USE(fd, expr) \ argument 115 #define HURD_DPORT_USE(fd, expr) \ argument 121 #define HURD_FD_PORT_USE(fd, expr) \ argument 181 _hurd_fd_error (int fd, error_t err) in _hurd_fd_error() argument 201 __hurd_dfail (int fd, error_t err) in __hurd_dfail() argument 203 errno = _hurd_fd_error (fd, err); in __hurd_dfail() [all …]
|
A D | lookup.h | 53 file_t (*get_dtable_port) (int fd), 64 file_t (*get_dtable_port) (int fd), 81 file_t (*get_dtable_port) (int fd), 91 file_t (*get_dtable_port) (int fd), 105 file_t (*get_dtable_port) (int fd), 115 file_t (*get_dtable_port) (int fd), 133 file_t (*get_dtable_port) (int fd), 147 file_t (*get_dtable_port) (int fd), 183 file_t (*get_dtable_port) (int fd),
|
A D | ioctl.h | 29 typedef int (*ioctl_handler_t) (int fd, int request, void *arg);
|