/hurd/hurd/ |
A D | port.h | 71 port->users = NULL; in _hurd_port_init() 72 port->port = init; in _hurd_port_init() 95 result = port->port; in _hurd_port_locked_get() 102 __spin_unlock (&port->lock); in _hurd_port_locked_get() 122 __spin_lock (&port->lock); in _hurd_port_get() 147 __spin_lock (&port->lock); in _hurd_port_move() 149 __spin_unlock (&port->lock); in _hurd_port_move() 177 __spin_lock (&port->lock); in _hurd_port_free() 199 old = _hurd_userlink_clear (&port->users) ? port->port : MACH_PORT_NULL; in _hurd_port_locked_set() 200 port->port = newport; in _hurd_port_locked_set() [all …]
|
A D | fd.h | 36 struct hurd_port port; /* io server port. */ member 86 __spin_lock (&cell->port.lock); in _hurd_fd_get() 87 if (cell->port.port == MACH_PORT_NULL) in _hurd_fd_get() 93 __spin_unlock (&cell->port.lock); in _hurd_fd_get() 125 io_t port, ctty; \ 127 __spin_lock (&__d->port.lock); \ 128 if (__d->port.port == MACH_PORT_NULL) \ 130 __spin_unlock (&__d->port.lock); \ 137 port = _hurd_port_locked_get (&__d->port, &__ulink); \ 140 _hurd_port_free (&__d->port, &__ulink, port); \ [all …]
|
A D | xattr.h | 25 extern error_t _hurd_xattr_get (io_t port, const char *name, 27 extern error_t _hurd_xattr_set (io_t port, const char *name, 29 extern error_t _hurd_xattr_remove (io_t port, const char *name); 30 extern error_t _hurd_xattr_list (io_t port, void *buffer, size_t *size);
|
/hurd/ |
A D | dtable.c | 120 port, in get_dtable_port() 129 outport = port; in get_dtable_port() 167 err = __term_open_ctty (d->port.port, _hurd_pid, _hurd_pgrp, in fork_child_dtable() 168 &d->ctty.port); in fork_child_dtable() 212 io_t port, ctty; in ctty_new_pgrp() local 218 port = _hurd_port_get (&d->port, &ulink); in ctty_new_pgrp() 241 _hurd_port_free (&d->port, &ulink, port); in ctty_new_pgrp() 278 if (d->port.port != MACH_PORT_NULL in reauth_dtable() 279 && ! __io_reauthenticate (d->port.port, in reauth_dtable() 282 (port, in reauth_dtable() [all …]
|
A D | port2fd.c | 37 if (port != MACH_PORT_NULL /* Do we have a ctty? */ in _hurd_port2fd() 44 if (cttyid == port) in _hurd_port2fd() 56 = _hurd_userlink_clear (&d->port.users) ? d->port.port : MACH_PORT_NULL; in _hurd_port2fd() 57 d->port.port = dport; in _hurd_port2fd()
|
A D | hurdioctl.c | 84 (port, O_NONBLOCK)); in fioctl() 91 (port, O_ASYNC)); in fioctl() 163 __spin_lock (&port->lock); in _hurd_locked_install_cttyid() 164 old = _hurd_userlink_clear (&port->users) ? port->port : MACH_PORT_NULL; in _hurd_locked_install_cttyid() 165 port->port = cttyid; in _hurd_locked_install_cttyid() 179 HURD_PORT_USE (&d->port, in _hurd_locked_install_cttyid() 182 if (! __term_getctty (port, &id)) in _hurd_locked_install_cttyid() 186 && __term_open_ctty (port, in _hurd_locked_install_cttyid() 204 _hurd_port_free (port, &ulink, cttyid); in _hurd_locked_install_cttyid() 241 do_tiocsctty (io_t port, io_t ctty) in do_tiocsctty() argument [all …]
|
A D | fd-close.c | 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() 38 _hurd_port_locked_set (&fd->port, MACH_PORT_NULL); in _hurd_fd_close()
|
A D | intern-fd.c | 27 _hurd_intern_fd (io_t port, int flags, int dealloc) in _hurd_intern_fd() argument 36 _hurd_port2fd (d, port, flags); in _hurd_intern_fd() 37 __spin_unlock (&d->port.lock); in _hurd_intern_fd() 44 __mach_port_deallocate (__mach_task_self (), port); in _hurd_intern_fd()
|
A D | xattr.c | 45 error_t err = __io_stat (port, &st); in _hurd_xattr_get() 64 error_t err = __file_get_translator (port, &buf, &bufsz); in _hurd_xattr_get() 102 error_t err = __io_stat (port, &st); in _hurd_xattr_set() 114 return __file_chauthor (port, st.st_uid); in _hurd_xattr_set() 123 error_t err = __io_stat (port, &st); in _hurd_xattr_set() 137 return __file_chauthor (port, id); in _hurd_xattr_set() 148 error_t err = __file_get_translator (port, &buf, &bufsz); in _hurd_xattr_set() 157 return __file_set_translator (port, in _hurd_xattr_set() 168 _hurd_xattr_remove (io_t port, const char *name) in _hurd_xattr_remove() argument 174 _hurd_xattr_list (io_t port, void *buffer, size_t *size) in _hurd_xattr_list() argument [all …]
|
A D | new-fd.c | 26 _hurd_new_fd (io_t port, io_t ctty) in _hurd_new_fd() argument 33 _hurd_port_init (&d->port, port); in _hurd_new_fd()
|
A D | report-wait.c | 71 describe_port (char *description, mach_port_t port, size_t size) in describe_port() argument 75 if (port == MACH_PORT_NULL) in describe_port() 77 if (port == MACH_PORT_DEAD) in describe_port() 80 if (port == __mach_task_self ()) in describe_port() 84 if (port == _hurd_ports[i].port) in describe_port() 90 if (port == _hurd_init_dtable[i]) in describe_port() 98 else if (port == _hurd_dtable[i]->port.port) in describe_port() 100 else if (port == _hurd_dtable[i]->ctty.port) in describe_port() 104 return describe_number (description, "port#", port, size); in describe_port() 242 if (__USEPORT (AUTH, msgport != port)) in _S_msg_describe_ports()
|
A D | fd-write.c | 31 error_t writefd (io_t port) in _hurd_fd_write() 33 return __io_write (port, buf, *nbytes, offset, &wrote); in _hurd_fd_write() 36 err = HURD_FD_PORT_USE_CANCEL (fd, _hurd_ctty_output (port, ctty, writefd)); in _hurd_fd_write()
|
A D | openport.c | 25 openport (io_t port, int flags) in openport() argument 27 return _hurd_intern_fd (port, flags, 0); in openport()
|
A D | ctty-output.c | 26 _hurd_ctty_output (io_t port, io_t ctty, error_t (*rpc) (io_t)) in _hurd_ctty_output() argument 29 return (*rpc) (port); in _hurd_ctty_output() 52 return (*rpc) (port); in _hurd_ctty_output() 69 __USEPORT (CTTYID, _hurd_sig_post (0, SIGTTOU, port)); in _hurd_ctty_output()
|
A D | fd-read.c | 31 error_t readfd (io_t port) in _hurd_fd_read() 33 return __io_read (port, &data, &nread, offset, *nbytes); in _hurd_fd_read() 38 if (err = HURD_FD_PORT_USE_CANCEL (fd, _hurd_ctty_input (port, ctty, readfd))) in _hurd_fd_read()
|
A D | fd-cleanup.c | 30 _hurd_port_free (&data->d->port, &data->ulink, data->port); in _hurd_fd_port_use_cleanup()
|
A D | ctty-input.c | 26 _hurd_ctty_input (io_t port, io_t ctty, error_t (*rpc) (io_t)) in _hurd_ctty_input() argument 31 return (*rpc) (port); in _hurd_ctty_input() 64 __USEPORT (CTTYID, _hurd_sig_post (0, SIGTTIN, port)); in _hurd_ctty_input()
|
A D | hurdexec.c | 180 __spin_lock (&d->port.lock); in _hurd_exec_paths() 186 if (pdp && d->port.port != MACH_PORT_NULL) in _hurd_exec_paths() 189 *pdp++ = d->port.port; in _hurd_exec_paths() 190 if (d->ctty.port != MACH_PORT_NULL) in _hurd_exec_paths() 191 *pdp++ = d->ctty.port; in _hurd_exec_paths() 193 __spin_unlock (&d->port.lock); in _hurd_exec_paths() 197 if (pdp && d->ctty.port != MACH_PORT_NULL) in _hurd_exec_paths() 202 *pdp++ = d->ctty.port; in _hurd_exec_paths() 204 dtable_cells[i] = &d->port; in _hurd_exec_paths() 265 inline error_t reauth_io (io_t port, io_t *newport) in _hurd_exec_paths() [all …]
|
A D | hurdfchdir.c | 38 ret = HURD_PORT_USE (&d->port, in _hurd_change_directory_port_from_fd() 44 file_t dir = __file_name_lookup_under (port, ".", in _hurd_change_directory_port_from_fd()
|
A D | ports-get.c | 40 (*result = port) == MACH_PORT_NULL ? 0 in _hurd_ports_get() 42 port, MACH_PORT_RIGHT_SEND, in _hurd_ports_get()
|
A D | alloc-fd.c | 65 __spin_lock (&d->port.lock); in _hurd_alloc_fd() 66 if (d->port.port == MACH_PORT_NULL) in _hurd_alloc_fd() 75 __spin_unlock (&d->port.lock); in _hurd_alloc_fd()
|
A D | vpprintf.c | 38 vpprintf (io_t port, const char *format, va_list arg) in vpprintf() argument 54 (void *) port, (cookie_io_functions_t) { write: do_write }); in vpprintf()
|
A D | hurdpid.c | 30 __proc_getpids (port, &_hurd_pid, &_hurd_ppid, &_hurd_orphaned); in init_pids() 31 __proc_getpgrp (port, _hurd_pid, &_hurd_pgrp); in init_pids()
|
A D | hurdprio.c | 46 err = __USEPORT (PROC, __proc_getpgrppids (port, who, &pids, &npids)); in _hurd_priority_which_map() 54 err = __USEPORT (PROC, __proc_getallpids (port, &pids, &npids)); in _hurd_priority_which_map() 62 err = __USEPORT (PROC, __proc_getprocinfo (port, pids[i], in _hurd_priority_which_map()
|
A D | setauth.c | 73 (port, in _hurd_setauth() 86 ! __io_reauthenticate (port, in _hurd_setauth() 96 ! __io_reauthenticate (port, in _hurd_setauth()
|