summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-09 19:51:57 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-09 19:51:57 +0000
commitdee5f8b332433cd4e9fd46ab6309a2388650daa5 (patch)
tree1a9be7a57323e3c44437ac3082dc4f1e15b0c3a5 /libdiskfs
parent67110be7c7c7d58cf95bca8696c555a68baa1f31 (diff)
(begin_using_protid_port): Use ports_lookup_port.
(end_using_protid_port): Use ports_port_deref. (enum porttype): Delete.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/priv.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h
index 8cf16017..aaba5dd2 100644
--- a/libdiskfs/priv.h
+++ b/libdiskfs/priv.h
@@ -29,17 +29,6 @@
extern mach_port_t fs_control_port; /* receive right */
-enum porttype
-{
- PT_NONE,
- PT_PROTID,
- PT_PAGER,
- PT_CTL,
- PT_EXECBOOT,
- PT_INITBOOT,
- PT_TRANSBOOT,
-};
-
volatile struct mapped_time_value *_diskfs_mtime;
/* Needed for MiG. */
@@ -51,7 +40,7 @@ typedef struct protid *protid_t;
extern inline struct protid *
begin_using_protid_port (file_t port)
{
- return ports_check_port_type (port, PT_PROTID);
+ return ports_lookup_port (diskfs_port_bucket, port, diskfs_protid_class);
}
/* Called by MiG after server routines have been run; this
@@ -60,7 +49,7 @@ begin_using_protid_port (file_t port)
extern inline void
end_using_protid_port (struct protid *cred)
{
- ports_done_with_port (cred);
+ ports_port_deref (cred);
}
/* Actually read or write a file. The file size must already permit