summaryrefslogtreecommitdiff
path: root/startup
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-26 19:12:17 +0200
committerJustus Winter <justus@gnupg.org>2016-04-28 19:01:31 +0200
commit6620d8b801c4683bf81fc419484d64530ba126ba (patch)
tree9f6b2ea9202e4b1b4442dd51cd935d4a945f6cc7 /startup
parent1c0dc88f5411451ba1acd7e41a5d362fdd947586 (diff)
startup: use the generated default server implementations
* startup/Makefile: Set appropriate flags. * startup/startup.c: Drop most stub functions.
Diffstat (limited to 'startup')
-rw-r--r--startup/Makefile3
-rw-r--r--startup/startup.c102
2 files changed, 4 insertions, 101 deletions
diff --git a/startup/Makefile b/startup/Makefile
index db062ada..bda3ffb3 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 f3e3534f..66f960cd 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;
}