From 6f874305906b18a6bd7ba02f7dee949948e41262 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 10 Jun 2014 16:20:37 +0200 Subject: 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. --- hurd/hurd_types.h | 1 + hurd/term.defs | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'hurd') 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 /* 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); -- cgit v1.2.3