diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-06-10 16:20:37 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-06-15 17:55:51 +0200 |
commit | 6f874305906b18a6bd7ba02f7dee949948e41262 (patch) | |
tree | cfa1119d8a9c92648eb91d2f1a43185998bbd792 /hurd | |
parent | d73b0ee5f32bdf769a5d9d19c4cc590df07c1bef (diff) |
hurd: fix receiver lookup in termctty_open_terminal
* hurd/hurd_types.h (ctty_t): New type definition.
* hurd/term.defs (ctty_t): New type definition.
* term/mig-decls.h: New file.
* term/mig-mutate.h: Add mutators, includes.
* term/term.h: Add include guards.
* term/users.c (S_termctty_open_terminal): Fix receiver lookup.
* boot/boot.c (S_termctty_open_terminal): Likewise.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurd_types.h | 1 | ||||
-rw-r--r-- | hurd/term.defs | 14 |
2 files changed, 14 insertions, 1 deletions
diff --git a/hurd/hurd_types.h b/hurd/hurd_types.h index 8eac2060..43411778 100644 --- a/hurd/hurd_types.h +++ b/hurd/hurd_types.h @@ -49,6 +49,7 @@ typedef mach_port_t fs_notify_t; typedef mach_port_t exec_startup_t; typedef mach_port_t interrupt_t; typedef mach_port_t proccoll_t; +typedef mach_port_t ctty_t; #include <errno.h> /* Defines `error_t'. */ diff --git a/hurd/term.defs b/hurd/term.defs index 17ba4f38..45d825de 100644 --- a/hurd/term.defs +++ b/hurd/term.defs @@ -29,6 +29,18 @@ TERM_IMPORTS INTR_INTERFACE +type ctty_t = mach_port_copy_send_t +#ifdef CTTY_INTRAN +intran: CTTY_INTRAN +#endif +#ifdef CTTY_OUTTRAN +outtran: CTTY_OUTTRAN +#endif +#ifdef CTTY_DESTRUCTOR +destructor: CTTY_DESTRUCTOR +#endif +; + /* Find out what the controlling terminal ID port is. */ routine term_getctty ( terminal: io_t; @@ -109,7 +121,7 @@ routine term_on_pty ( not be made to terminal I/O ports. Return an unauthenticated I/O port for the terminal opened as with flags FLAGS. */ routine termctty_open_terminal ( - ctty: mach_port_t; + ctty: ctty_t; flags: int; out terminal: mach_port_send_t); |