summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-08-24 19:54:49 +0200
committerJustus Winter <justus@gnupg.org>2017-08-25 11:01:50 +0200
commit7f49fa0b2dbd371c3b10d876eeed7a26812506b4 (patch)
tree7e99f7f4818e9b7bc6fbf7a0ced4563e9b014be9
parent5dc9e5261a67266b6b9f5cfdd95baeba0c808d80 (diff)
trans/symlink: Use default server stubs.
* trans/Makefile (fsysServer-CFLAGS): Use default server stubs. * trans/symlink.c: Remove all the fsys stubs.
-rw-r--r--trans/Makefile1
-rw-r--r--trans/symlink.c59
2 files changed, 1 insertions, 59 deletions
diff --git a/trans/Makefile b/trans/Makefile
index b2f63ca7..02718dfe 100644
--- a/trans/Makefile
+++ b/trans/Makefile
@@ -52,6 +52,7 @@ device_reply-MIGSFLAGS=\
# fsysServer is only used by the symlink translator which does not use
# libports. Disable the default payload to port conversion.
fsys-MIGSFLAGS = "-DHURD_DEFAULT_PAYLOAD_TO_PORT=1"
+fsysServer-CFLAGS = "-DMIG_EOPNOTSUPP=EOPNOTSUPP"
# If we have a configured tree, include the configuration so that we
# can conditionally build translators.
diff --git a/trans/symlink.c b/trans/symlink.c
index 845a1121..80d60f64 100644
--- a/trans/symlink.c
+++ b/trans/symlink.c
@@ -163,13 +163,6 @@ S_fsys_getroot (mach_port_t fsys_t,
}
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_goaway (mach_port_t control, int flags)
{
exit (0);
@@ -182,55 +175,3 @@ S_fsys_syncfs (mach_port_t control,
{
return 0;
}
-
-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;
-}