summaryrefslogtreecommitdiff
path: root/libdiskfs/io-map-cntl.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-05-05 14:09:50 +0000
committerRoland McGrath <roland@gnu.org>1994-05-05 14:09:50 +0000
commitbd14ef64c9e7e5fc047983650676b50e9130e85c (patch)
treec5a24c1989a435276b1f3f635ac869d0ce580e98 /libdiskfs/io-map-cntl.c
parentbc3a95fcdaf52e654c4c4853f7a8ad8490c304ab (diff)
entered into RCS
Diffstat (limited to 'libdiskfs/io-map-cntl.c')
-rw-r--r--libdiskfs/io-map-cntl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/io-map-cntl.c b/libdiskfs/io-map-cntl.c
index ac30e718..455da0e6 100644
--- a/libdiskfs/io-map-cntl.c
+++ b/libdiskfs/io-map-cntl.c
@@ -20,9 +20,10 @@
#include <mach/default_pager.h>
/* Implement io_map_cntl as described in <hurd/io.defs>. */
-error_t
+kern_return_t
diskfs_S_io_map_cntl (struct protid *cred,
- memory_object_t *ctlobj)
+ memory_object_t *ctlobj,
+ mach_msg_type_name_t *ctlobj_type)
{
if (!cred)
return EOPNOTSUPP;
@@ -39,6 +40,7 @@ diskfs_S_io_map_cntl (struct protid *cred,
cred->mapped->conch_status = USER_HAS_NOT_CONCH;
spin_lock_init (&cred->mapped->lock);
*ctlobj = cred->shared_object;
+ *ctlobj_type = MACH_MSG_TYPE_COPY_SEND;
mutex_unlock (&cred->po->np->lock);
return 0;
}