summaryrefslogtreecommitdiff
path: root/debian/patches/0008-poc-servers-startup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0008-poc-servers-startup.patch')
-rw-r--r--debian/patches/0008-poc-servers-startup.patch188
1 files changed, 0 insertions, 188 deletions
diff --git a/debian/patches/0008-poc-servers-startup.patch b/debian/patches/0008-poc-servers-startup.patch
deleted file mode 100644
index 4ae5b8f8..00000000
--- a/debian/patches/0008-poc-servers-startup.patch
+++ /dev/null
@@ -1,188 +0,0 @@
-From d85410e3face63b09aa348aa9d15488fcdabf152 Mon Sep 17 00:00:00 2001
-From: Justus Winter <4winter@informatik.uni-hamburg.de>
-Date: Thu, 19 Sep 2013 09:15:02 +0200
-Subject: [PATCH 8/8] poc /servers/startup
-
----
- hurd/paths.h | 1 +
- startup/Makefile | 2 +-
- startup/startup.c | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
- 3 files changed, 126 insertions(+), 1 deletion(-)
-
-diff --git a/hurd/paths.h b/hurd/paths.h
-index 489da57..568e45f 100644
---- a/hurd/paths.h
-+++ b/hurd/paths.h
-@@ -26,6 +26,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
- #define _SERVERS "/servers/"
- #define _SERVERS_CRASH _SERVERS "crash"
- #define _SERVERS_EXEC _SERVERS "exec"
-+#define _SERVERS_STARTUP _SERVERS "startup"
- #define _SERVERS_PROC _SERVERS "proc"
- #define _SERVERS_PASSWORD _SERVERS "password"
- #define _SERVERS_DEFPAGER _SERVERS "default-pager"
-diff --git a/startup/Makefile b/startup/Makefile
-index 277fee4..23d35cb 100644
---- a/startup/Makefile
-+++ b/startup/Makefile
-@@ -21,7 +21,7 @@ makemode := server
- SRCS = startup.c
- OBJS = $(SRCS:.c=.o) \
- startupServer.o notifyServer.o startup_replyUser.o msgServer.o \
-- startup_notifyUser.o
-+ startup_notifyUser.o fsysServer.o
- target = startup
- HURDLIBS = shouldbeinlibc
-
-diff --git a/startup/startup.c b/startup/startup.c
-index fe8471d..9cff488 100644
---- a/startup/startup.c
-+++ b/startup/startup.c
-@@ -504,9 +504,11 @@ demuxer (mach_msg_header_t *inp,
- extern int notify_server (mach_msg_header_t *, mach_msg_header_t *);
- extern int startup_server (mach_msg_header_t *, mach_msg_header_t *);
- extern int msg_server (mach_msg_header_t *, mach_msg_header_t *);
-+ extern int fsys_server (mach_msg_header_t *, mach_msg_header_t *);
-
- return (notify_server (inp, outp) ||
- msg_server (inp, outp) ||
-+ fsys_server (inp, outp) ||
- startup_server (inp, outp));
- }
-
-@@ -583,6 +585,15 @@ main (int argc, char **argv, char **envp)
- /* Crash if the boot filesystem task dies. */
- request_dead_name (fstask);
-
-+ file_t node = file_name_lookup (_SERVERS_STARTUP, O_NOTRANS, 0);
-+ if (node != MACH_PORT_NULL)
-+ {
-+ file_set_translator (node,
-+ 0, FS_TRANS_SET, 0,
-+ NULL, 0,
-+ startup, MACH_MSG_TYPE_COPY_SEND);
-+ }
-+
- /* Set up the set of ports we will pass to the programs we exec. */
- for (i = 0; i < INIT_PORT_MAX; i++)
- switch (i)
-@@ -1544,3 +1555,116 @@ S_msg_report_wait (mach_port_t process, thread_t thread,
- *rpc = 0;
- return 0;
- }
-+
-+/* fsys */
-+error_t
-+S_fsys_getroot (mach_port_t fsys_t,
-+ mach_port_t dotdotnode,
-+ uid_t *uids, size_t nuids,
-+ uid_t *gids, size_t ngids,
-+ int flags,
-+ retry_type *do_retry,
-+ char *retry_name,
-+ mach_port_t *ret,
-+ mach_msg_type_name_t *rettype)
-+{
-+ error (0, 0, "S_fsys_getroot");
-+ /* XXX check permissions */
-+ *do_retry = FS_RETRY_NORMAL;
-+ *retry_name = '\0';
-+ *ret = startup;
-+ *rettype = MACH_MSG_TYPE_COPY_SEND;
-+ return 0;
-+}
-+
-+error_t
-+S_fsys_goaway (mach_port_t control, int flags)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_startup (mach_port_t bootstrap, int flags, mach_port_t control,
-+ mach_port_t *real, mach_msg_type_name_t *realtype)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_syncfs (mach_port_t control,
-+ int wait,
-+ int recurse)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_set_options (mach_port_t control,
-+ char *data, mach_msg_type_number_t len,
-+ int do_children)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_get_options (mach_port_t control,
-+ char **data, mach_msg_type_number_t *len)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_getfile (mach_port_t control,
-+ uid_t *uids, size_t nuids,
-+ uid_t *gids, size_t ngids,
-+ char *handle, size_t handllen,
-+ mach_port_t *pt,
-+ mach_msg_type_name_t *pttype)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_getpriv (mach_port_t control,
-+ mach_port_t *host_priv, mach_msg_type_name_t *host_priv_type,
-+ mach_port_t *dev_master, mach_msg_type_name_t *dev_master_type,
-+ task_t *fs_task, mach_msg_type_name_t *fs_task_type)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_init (mach_port_t control,
-+ mach_port_t reply,
-+ mach_msg_type_name_t replytype,
-+ mach_port_t proc,
-+ auth_t auth)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_forward (mach_port_t server, mach_port_t requestor,
-+ char *argz, size_t argz_len)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_get_children (mach_port_t server,
-+ mach_port_t reply,
-+ mach_msg_type_name_t replyPoly,
-+ char **children,
-+ mach_msg_type_number_t *children_len)
-+{
-+ return EOPNOTSUPP;
-+}
-+
-+error_t
-+S_fsys_get_source (mach_port_t server,
-+ mach_port_t reply,
-+ mach_msg_type_name_t replyPoly,
-+ char *source)
-+{
-+ return EOPNOTSUPP;
-+}
---
-2.1.0
-