bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] hurd: add a new type for the exec_startup protocol


From: Justus Winter
Subject: [PATCH 1/3] hurd: add a new type for the exec_startup protocol
Date: Sat, 5 Apr 2014 00:07:14 +0200

* 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.
---
 hurd/exec_startup.defs |  6 +++++-
 hurd/hurd_types.defs   | 12 ++++++++++++
 hurd/hurd_types.h      |  1 +
 3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/hurd/exec_startup.defs b/hurd/exec_startup.defs
index 9dfb79a..697f6b2 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 4b32504..6060fa4 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 7d1bb73..d569454 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'.  */
-- 
1.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]