summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd_types.h1
-rw-r--r--hurd/term.defs14
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);