From 5f8ee9037ebdec8cf241ee30f0b8375801a2fed2 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 8 Sep 1999 08:40:34 +0000 Subject: Conform to addition of io_map_segment. --- libtreefs/s-io.c | 10 +++++++++- libtreefs/treefs-s-hooks.h | 8 ++++---- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'libtreefs') diff --git a/libtreefs/s-io.c b/libtreefs/s-io.c index 6fdc504a..3702ee25 100644 --- a/libtreefs/s-io.c +++ b/libtreefs/s-io.c @@ -1,6 +1,6 @@ /* io_t rpc stubs; see for more info - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -84,6 +84,14 @@ error_t treefs_S_io_map (struct treefs_protid *cred, memory_object_t *rdobj, mach_msg_type_name_t *rd_type, memory_object_t *wrobj, mach_msg_type_name_t *wr_type) +{ + return treefs_S_io_map_segment (cred, 0, rdobj, rd_type, wrobj, wr_type); +} + +error_t +treefs_S_io_map_segment (struct treefs_protid *cred, ind index, + memory_object_t *rdobj, mach_msg_type_name_t *rd_type, + memory_object_t *wrobj, mach_msg_type_name_t *wr_type) { if (!cred) return EOPNOTSUPP; diff --git a/libtreefs/treefs-s-hooks.h b/libtreefs/treefs-s-hooks.h index 2ea9e7ab..4039e660 100644 --- a/libtreefs/treefs-s-hooks.h +++ b/libtreefs/treefs-s-hooks.h @@ -1,6 +1,6 @@ /* RPC server hooks in libtreefs (also see "treefs-hooks.h") - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -133,9 +133,9 @@ DHH(s_io_duplicate, error_t, mach_port_t *, mach_msg_type_name_t *) DHH(s_io_server_version, error_t, char *, int *, int *, int *) #define treefs_s_io_server_version(h, args...) \ _TREEFS_CHH(h, S_IO_SERVER_VERSION, s_io_server_version , ##args) -DHH(s_io_map, error_t, mach_port_t *, mach_msg_type_name_t *, mach_port_t *, mach_msg_type_name_t *) -#define treefs_s_io_map(h, args...) \ - _TREEFS_CHH(h, S_IO_MAP, s_io_map , ##args) +DHH(s_io_map_segment, error_t, int, mach_port_t *, mach_msg_type_name_t *, mach_port_t *, mach_msg_type_name_t *) +#define treefs_s_io_map_segment(h, args...) \ + _TREEFS_CHH(h, S_IO_MAP_SEGMENT, s_io_map_segment , ##args) DHH(s_io_map_cntl, error_t, mach_port_t *, mach_msg_type_name_t *) #define treefs_s_io_map_cntl(h, args...) \ _TREEFS_CHH(h, S_IO_MAP_CNTL, s_io_map_cntl , ##args) -- cgit v1.2.3