summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-04 17:11:21 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-05 13:40:08 +0200
commitb939d0b64ac0cfb90e672386a8586a5515ebcd16 (patch)
tree59c3afac1901a1a669908a2323bacb52ba216456 /hurd
parent7b31485553ed6a1cbc1ddde0ae3e678e404d1f97 (diff)
hurd: add a new type for the exec_startup protocol
* hurd/hurd_types.defs (exec_startup_t): New type. * hurd/hurd_types.h (exec_startup_t): Likewise. * hurd/exec_startup.defs: Honor EXEC_STARTUP_IMPORTS. (exec_startup_get_info): Use the new type as receiver.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/exec_startup.defs6
-rw-r--r--hurd/hurd_types.defs12
-rw-r--r--hurd/hurd_types.h1
3 files changed, 18 insertions, 1 deletions
diff --git a/hurd/exec_startup.defs b/hurd/exec_startup.defs
index 9dfb79aa4..697f6b228 100644
--- a/hurd/exec_startup.defs
+++ b/hurd/exec_startup.defs
@@ -23,11 +23,15 @@ subsystem exec_startup 30500;
#include <hurd/hurd_types.defs>
+#ifdef EXEC_STARTUP_IMPORTS
+EXEC_STARTUP_IMPORTS
+#endif
+
/* This call is made by a new task to its bootstrap port to get its
startup ports and information. */
routine exec_startup_get_info (
- bootstrap: mach_port_t;
+ bootstrap: exec_startup_t;
/* These describe the entry point and program header data
of the user program loaded into the task. */
out user_entry: vm_address_t;
diff --git a/hurd/hurd_types.defs b/hurd/hurd_types.defs
index 4b3250431..6060fa477 100644
--- a/hurd/hurd_types.defs
+++ b/hurd/hurd_types.defs
@@ -156,6 +156,18 @@ destructor: FS_NOTIFY_DESTRUCTOR
#endif
;
+type exec_startup_t = mach_port_copy_send_t
+#ifdef EXEC_STARTUP_INTRAN
+intran: EXEC_STARTUP_INTRAN
+#endif
+#ifdef EXEC_STARTUP_OUTTRAN
+outtran: EXEC_STARTUP_OUTTRAN
+#endif
+#ifdef EXEC_STARTUP_DESTRUCTOR
+destructor: EXEC_STARTUP_DESTRUCTOR
+#endif
+;
+
type proccoll_t = mach_port_copy_send_t;
diff --git a/hurd/hurd_types.h b/hurd/hurd_types.h
index 7d1bb7329..d569454a9 100644
--- a/hurd/hurd_types.h
+++ b/hurd/hurd_types.h
@@ -46,6 +46,7 @@ typedef mach_port_t pf_t; /* Protocol family */
typedef mach_port_t addr_port_t;
typedef mach_port_t startup_t;
typedef mach_port_t fs_notify_t;
+typedef mach_port_t exec_startup_t;
typedef mach_port_t proccoll_t;
#include <errno.h> /* Defines `error_t'. */