summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-05-24 21:54:41 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-05-24 21:54:41 +0000
commite591ac4f3e8dbee039a6a8eb61ca36b3852e6097 (patch)
treec076692157b9ea54a52b40d4bd90202f21cc0038 /libtrivfs
parent8765e5eff0314bb536dfc77cf8bd7220f6c00509 (diff)
Formerly fsys-getroot.c.~4~
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/fsys-getroot.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c
index 9812ba96..565d75e5 100644
--- a/libtrivfs/fsys-getroot.c
+++ b/libtrivfs/fsys-getroot.c
@@ -20,8 +20,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Written by Michael I. Bushnell. */
#include "priv.h"
+#include "fsys_S.h"
+#include <assert.h>
+#include <fcntl.h>
-error_t
+kern_return_t
trivfs_S_fsys_getroot (mach_port_t fsys,
int flags,
uid_t *uids, u_int nuids,
@@ -29,7 +32,7 @@ trivfs_S_fsys_getroot (mach_port_t fsys,
mach_port_t *newpt,
mach_msg_type_name_t *newpttype)
{
- struct protid *cred;
+ struct trivfs_protid *cred;
int i;
struct control *cntl;
@@ -46,7 +49,8 @@ trivfs_S_fsys_getroot (mach_port_t fsys,
return EACCES;
}
- cred = ports_allocate_port (sizeof (struct protid), trivfs_protid_porttype);
+ cred = ports_allocate_port (sizeof (struct trivfs_protid),
+ trivfs_protid_porttype);
cred->isroot = 0;
for (i = 0; i < nuids; i++)
if (uids[i] == 0)