summaryrefslogtreecommitdiff
path: root/debian/patches/startup0004-startup-use-the-generated-default-server-implementat.patch
blob: 9fc087905e30692fa407a04e9d5afd0270100f15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
From 6620d8b801c4683bf81fc419484d64530ba126ba Mon Sep 17 00:00:00 2001
From: Justus Winter <justus@gnupg.org>
Date: Tue, 26 Apr 2016 19:12:17 +0200
Subject: [PATCH hurd 4/5] startup: use the generated default server
 implementations

* startup/Makefile: Set appropriate flags.
* startup/startup.c: Drop most stub functions.
---
 startup/Makefile  |   3 ++
 startup/startup.c | 102 +-----------------------------------------------------
 2 files changed, 4 insertions(+), 101 deletions(-)

diff --git a/startup/Makefile b/startup/Makefile
index db062ad..bda3ffb 100644
--- a/startup/Makefile
+++ b/startup/Makefile
@@ -28,6 +28,9 @@ HURDLIBS = shouldbeinlibc
 # startup does not use libports.  Disable the default payload to port
 # conversion.
 MIGSFLAGS="-DHURD_DEFAULT_PAYLOAD_TO_PORT=1"
+notify-MIGSFLAGS="-DNOTIFY_IMPORTS=import <hurd.h>;"
+notifyServer-CFLAGS="-DMIG_EOPNOTSUPP=EOPNOTSUPP"
+fsysServer-CFLAGS="-DMIG_EOPNOTSUPP=EOPNOTSUPP"
 fsServer-CFLAGS="-DMIG_EOPNOTSUPP=EOPNOTSUPP"
 ioServer-CFLAGS="-DMIG_EOPNOTSUPP=EOPNOTSUPP"
 
diff --git a/startup/startup.c b/startup/startup.c
index f3e3534..66f960c 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -1448,41 +1448,6 @@ S_startup_reboot (mach_port_t server,
   for (;;);
 }
 
-/* Stubs for unused notification RPCs.  */
-
-kern_return_t
-do_mach_notify_port_destroyed (mach_port_t notify,
-			       mach_port_t rights)
-{
-  return EOPNOTSUPP;
-}
-
-kern_return_t
-do_mach_notify_send_once (mach_port_t notify)
-{
-  return EOPNOTSUPP;
-}
-
-kern_return_t
-do_mach_notify_no_senders (mach_port_t port, mach_port_mscount_t mscount)
-{
-  return EOPNOTSUPP;
-}
-
-kern_return_t
-do_mach_notify_port_deleted (mach_port_t notify,
-			     mach_port_t name)
-{
-  return EOPNOTSUPP;
-}
-
-kern_return_t
-do_mach_notify_msg_accepted (mach_port_t notify,
-			     mach_port_t name)
-{
-  return EOPNOTSUPP;
-}
-
 /* msg server */
 
 kern_return_t
@@ -1731,75 +1696,10 @@ S_fsys_getroot (mach_port_t fsys_t,
 }
 
 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)
-{
+  /* XXX Implement me.  */
   return EOPNOTSUPP;
 }
 
-- 
2.1.4