From 2d021f515fef47545b4a73dfd10ff1208df752d8 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 16 Aug 2002 01:10:09 +0000 Subject: 2002-08-16 Marcus Brinkmann * proxy-defpager.c (S_default_pager_object_pages): New function. (proxy_defpager_demuxer): Use S_default_pager_server (ie add the prefix). --- trans/ChangeLog | 6 ++++++ trans/proxy-defpager.c | 16 ++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/trans/ChangeLog b/trans/ChangeLog index b4c08583..33a97cfa 100644 --- a/trans/ChangeLog +++ b/trans/ChangeLog @@ -1,3 +1,9 @@ +2002-08-16 Marcus Brinkmann + + * proxy-defpager.c (S_default_pager_object_pages): New function. + (proxy_defpager_demuxer): Use S_default_pager_server (ie add the + prefix). + 2002-08-14 Marcus Brinkmann * Makefile: Revert undocumented changes related to devpts that diff --git a/trans/proxy-defpager.c b/trans/proxy-defpager.c index 73214763..1b4985c4 100644 --- a/trans/proxy-defpager.c +++ b/trans/proxy-defpager.c @@ -69,6 +69,18 @@ S_default_pager_objects (mach_port_t default_pager, objects, objectsCnt, ports, portsCnt); } +kern_return_t +S_default_pager_object_pages (mach_port_t default_pager, + mach_port_t memory_object, + default_pager_page_array_t *pages, + mach_msg_type_number_t *pagesCnt) +{ + return allowed (default_pager, O_WRITE) + ?: default_pager_object_pages (real_defpager, memory_object, + pages, pagesCnt); +} + + kern_return_t S_default_pager_paging_file (mach_port_t default_pager, mach_port_t master_device_port, @@ -219,9 +231,9 @@ int proxy_defpager_demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) { - extern int default_pager_server (mach_msg_header_t *, mach_msg_header_t *); + extern int S_default_pager_server (mach_msg_header_t *, mach_msg_header_t *); - return default_pager_server (inp, outp) + return S_default_pager_server (inp, outp) || trivfs_demuxer (inp, outp); } -- cgit v1.2.3