Home
last modified time | relevance | path

Searched refs:ctty (Results 1 – 25 of 29) sorted by relevance

12

/glibc-2.36/hurd/
Ddtable.c70 _hurd_port_init (&new->ctty, MACH_PORT_NULL); in init_dtable()
160 d->port.users = d->ctty.users = NULL; in fork_child_dtable()
162 if (d->ctty.port != MACH_PORT_NULL) in fork_child_dtable()
166 __mach_port_deallocate (__mach_task_self (), d->ctty.port); in fork_child_dtable()
168 &d->ctty.port); in fork_child_dtable()
170 d->ctty.port = MACH_PORT_NULL; in fork_child_dtable()
212 io_t port, ctty; in ctty_new_pgrp() local
219 ctty = _hurd_port_get (&d->ctty, &ctty_ulink); in ctty_new_pgrp()
221 if (ctty != MACH_PORT_NULL) in ctty_new_pgrp()
238 _hurd_port_set (&d->ctty, new); in ctty_new_pgrp()
[all …]
Dport2fd.c32 io_t ctty = MACH_PORT_NULL; in _hurd_port2fd() local
45 __term_open_ctty (dport, _hurd_pid, _hurd_pgrp, &ctty); in _hurd_port2fd()
63 _hurd_port_set (&d->ctty, ctty); in _hurd_port2fd()
Dnew-fd.c26 _hurd_new_fd (io_t port, io_t ctty) in _hurd_new_fd() argument
34 _hurd_port_init (&d->ctty, ctty); in _hurd_new_fd()
Dfd-cleanup.c31 if (data->ctty != MACH_PORT_NULL) in _hurd_fd_port_use_cleanup()
32 _hurd_port_free (&data->d->ctty, &data->ctty_ulink, data->ctty); in _hurd_fd_port_use_cleanup()
Dctty-input.c26 _hurd_ctty_input (io_t port, io_t ctty, error_t (*rpc) (io_t)) in _hurd_ctty_input() argument
30 if (ctty == MACH_PORT_NULL) in _hurd_ctty_input()
35 err = (*rpc) (ctty); in _hurd_ctty_input()
Dctty-output.c26 _hurd_ctty_output (io_t port, io_t ctty, error_t (*rpc) (io_t)) in _hurd_ctty_output() argument
28 if (ctty == MACH_PORT_NULL) in _hurd_ctty_output()
54 err = (*rpc) (ctty); in _hurd_ctty_output()
Dhurdioctl.c197 _hurd_port_set (&d->ctty, newctty); in _hurd_locked_install_cttyid()
241 do_tiocsctty (io_t port, io_t ctty) in do_tiocsctty() argument
246 if (ctty != MACH_PORT_NULL) in do_tiocsctty()
273 return __hurd_fail (HURD_DPORT_USE (fd, do_tiocsctty (port, ctty))); in tiocsctty()
Dhurdexec.c194 if (d->ctty.port != MACH_PORT_NULL) in _hurd_exec_paths()
195 *pdp++ = d->ctty.port; in _hurd_exec_paths()
201 if (pdp && d->ctty.port != MACH_PORT_NULL) in _hurd_exec_paths()
206 *pdp++ = d->ctty.port; in _hurd_exec_paths()
DMakefile66 fd-close fd-read fd-write hurdioctl ctty-input ctty-output
Dfd-close.c37 _hurd_port_set (&fd->ctty, MACH_PORT_NULL); in _hurd_fd_close()
Dfd-write.c36 err = HURD_FD_PORT_USE_CANCEL (fd, _hurd_ctty_output (port, ctty, writefd)); in _hurd_fd_write()
Dfd-read.c38 if (err = HURD_FD_PORT_USE_CANCEL (fd, _hurd_ctty_input (port, ctty, readfd))) in _hurd_fd_read()
Dreport-wait.c100 else if (port == _hurd_dtable[i]->ctty.port) in describe_port()
/glibc-2.36/sysdeps/mach/hurd/
Ddup3.c63 io_t ctty = _hurd_port_get (&d->ctty, &ctty_ulink); in __dup3() local
113 if (ctty != MACH_PORT_NULL) in __dup3()
114 __mach_port_mod_refs (__mach_task_self (), ctty, in __dup3()
124 _hurd_port_set (&d2->ctty, ctty); in __dup3()
130 if (ctty != MACH_PORT_NULL) in __dup3()
131 _hurd_port_free (&d->ctty, &ctty_ulink, port); in __dup3()
Dfcntl.c61 io_t port, ctty; in __libc_fcntl() local
70 ctty = _hurd_port_get (&d->ctty, &ctty_ulink); in __libc_fcntl()
90 if (ctty != MACH_PORT_NULL) in __libc_fcntl()
91 __mach_port_mod_refs (__mach_task_self (), ctty, in __libc_fcntl()
95 if (ctty != MACH_PORT_NULL) in __libc_fcntl()
96 _hurd_port_set (&new->ctty, ctty); in __libc_fcntl()
104 if (ctty != MACH_PORT_NULL) in __libc_fcntl()
105 _hurd_port_free (&d->ctty, &ctty_ulink, port); in __libc_fcntl()
Dioctl.c281 err = HURD_DPORT_USE_CANCEL (fd, _hurd_ctty_output (port, ctty, send_rpc)); in __ioctl()
285 err = HURD_DPORT_USE (fd, _hurd_ctty_output (port, ctty, send_rpc)); in __ioctl()
Dclose_range.c52 _hurd_port_set (&fd->ctty, MACH_PORT_NULL); in __close_range()
/glibc-2.36/hurd/hurd/
Dfd.h42 struct hurd_port ctty; member
125 io_t port, ctty; \
136 ctty = _hurd_port_get (&__d->ctty, &__ctty_ulink); \
141 if (ctty != MACH_PORT_NULL) \
142 _hurd_port_free (&__d->ctty, &__ctty_ulink, ctty); \
249 extern struct hurd_fd *_hurd_new_fd (io_t port, io_t ctty);
268 extern error_t _hurd_ctty_input (io_t port, io_t ctty, error_t (*rpc) (io_t));
269 extern error_t _hurd_ctty_output (io_t port, io_t ctty, error_t (*rpc) (io_t));
/glibc-2.36/sysdeps/hurd/include/hurd/
Dfd.h11 io_t port, ctty; member
24 io_t port, ctty; \
37 __d.ctty = ctty = _hurd_port_get (&__d.d->ctty, &__d.ctty_ulink); \
/glibc-2.36/ChangeLog.old/
DChangeLog.4760 For ctty fds, use the `ctty' cell for the ctty-special port.
761 * hurd/dtable.c (get_dtable_port): Use port, never ctty.
762 (fork_child_dtable): Reset D->ctty instead of D->port.
764 * sysdeps/mach/hurd/__ioctl.c: Use ctty port for RPC if set and
767 cell, and ctty-special port in the D->ctty cell, not the reverse.
771 never its ctty port.
772 * hurd/fd-write.c (_hurd_fd_write): Use ctty port for RPC if set
774 * hurd/fd-read.c (_hurd_fd_read): Use ctty port for RPC if set.
2029 Do ctty magic and check for EBACKGROUND to generate SIGTTOU.
DChangeLog.55834 magic, return ENXIO if no ctty.
9429 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
9431 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
9432 * hurd/ctty-input.c: New file.
9433 * hurd/ctty-output.c: New file.
9434 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
DChangeLog.3290 * hurd/dtable.c (get_dtable_port): Return the ctty port if set.
DChangeLog.201268 * hurd/ctty-input.c: Modified.
1270 * hurd/ctty-output.c: Modified.
/glibc-2.36/benchtests/strcoll-inputs/
Dfilelist#C10416 ctty-input.c
10424 ctty-output.c
Dfilelist#en_US.UTF-810416 ctty-input.c
10424 ctty-output.c

12