summaryrefslogtreecommitdiff
path: root/libdiskfs/protid-make.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-17 19:24:03 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-17 19:24:03 +0000
commitfc0250c3217b25bf69bba6c146067292f763d322 (patch)
tree0329faf00268860a74320db6f85028cd33abaf6b /libdiskfs/protid-make.c
parentf2fea91b1b4328c4c2c6cab9baf9f5e95d376ad5 (diff)
Formerly protid-make.c.~4~
Diffstat (limited to 'libdiskfs/protid-make.c')
-rw-r--r--libdiskfs/protid-make.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libdiskfs/protid-make.c b/libdiskfs/protid-make.c
index 38a615ae..000affdf 100644
--- a/libdiskfs/protid-make.c
+++ b/libdiskfs/protid-make.c
@@ -15,17 +15,16 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#include "priv.h"
-#include <string.h>
+#include "protid.h"
/* Build and return a protid which has no user identification for
peropen PO. The node PO->np must be locked. */
struct protid *
-diskfs_start_protid (struct peropen *po)
+fshelp_start_protid (struct peropen *po)
{
struct protid *cred;
- cred = ports_allocate_port (sizeof (struct protid), PT_PROTID);
+ cred = ports_allocate_port (sizeof (struct protid), fshelp_protid_port_type);
po->refcnt++;
cred->po = po;
cred->shared_object = MACH_PORT_NULL;
@@ -36,7 +35,7 @@ diskfs_start_protid (struct peropen *po)
/* Finish building protid CRED started with diskfs_start_protid;
the uid set is UID (length NUIDS); the gid set is GID (length NGIDS). */
void
-diskfs_finish_protid (struct protid *cred, uid_t *uids, int nuids,
+fshelp_finish_protid (struct protid *cred, uid_t *uids, int nuids,
gid_t *gids, int ngids)
{
if (!uids)
@@ -64,7 +63,7 @@ diskfs_finish_protid (struct protid *cred, uid_t *uids, int nuids,
UID (length NUIDS); the gid set is GID (length NGIDS). The node
PO->np must be locked. */
struct protid *
-diskfs_make_protid (struct peropen *po, uid_t *uids, int nuids,
+fshelp_make_protid (struct peropen *po, uid_t *uids, int nuids,
uid_t *gids, int ngids)
{
struct protid *cred = diskfs_start_protid (po);