diff options
-rw-r--r-- | libtreefs/s-io.c | 10 | ||||
-rw-r--r-- | libtreefs/treefs-s-hooks.h | 8 |
2 files changed, 13 insertions, 5 deletions
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 <hurd/io.defs> for more info - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1999 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -85,6 +85,14 @@ 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; return treefs_s_io_map (cred, rdobj, rd_type, wrobj, wr_type); 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 <miles@gnu.ai.mit.edu> @@ -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) |