From bfad67a5d8e2ed25630c32cc3d2aeff7a1a25a47 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 6 Nov 1995 21:04:07 +0000 Subject: (S_fsys_get_options): New function. (main): Add flags argument to fsys_startup call. (S_fsys_startup): Add FLAGS arg. --- trans/magic.c | 15 +++++++++++---- trans/symlink.c | 17 +++++++++++------ 2 files changed, 22 insertions(+), 10 deletions(-) (limited to 'trans') diff --git a/trans/magic.c b/trans/magic.c index 40b1584b..952a5c28 100644 --- a/trans/magic.c +++ b/trans/magic.c @@ -51,7 +51,8 @@ main (int argc, char **argv) /* Reply to our parent */ mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, &control); - err = fsys_startup (bootstrap, control, MACH_MSG_TYPE_MAKE_SEND, &realnode); + err = + fsys_startup (bootstrap, 0, control, MACH_MSG_TYPE_MAKE_SEND, &realnode); if (err) error(1, err, "starting translator"); @@ -85,9 +86,8 @@ S_fsys_getroot (mach_port_t fsys_t, error_t S_fsys_startup (mach_port_t bootstrap, - mach_port_t control, - mach_port_t *real, - mach_msg_type_name_t *realtype) + int flags, mach_port_t control, + mach_port_t *real, mach_msg_type_name_t *real_type) { return EOPNOTSUPP; } @@ -115,6 +115,13 @@ S_fsys_set_options (mach_port_t control, return EOPNOTSUPP; } +error_t +S_fsys_get_options (mach_port_t control, + char **data, mach_msg_type_number_t *len) +{ + return EOPNOTSUPP; +} + error_t S_fsys_getfile (mach_port_t control, uid_t *uids, u_int nuids, uid_t *gids, u_int ngids, diff --git a/trans/symlink.c b/trans/symlink.c index bf527255..d8495f8b 100644 --- a/trans/symlink.c +++ b/trans/symlink.c @@ -55,8 +55,8 @@ main (int argc, char **argv) /* Reply to our parent */ mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, &control); - error = fsys_startup (bootstrap, control, - MACH_MSG_TYPE_MAKE_SEND, &realnode); + error = + fsys_startup (bootstrap, 0, control, MACH_MSG_TYPE_MAKE_SEND, &realnode); if (error) { perror ("Starting up translator"); @@ -119,10 +119,8 @@ S_fsys_getroot (mach_port_t fsys_t, } error_t -S_fsys_startup (mach_port_t bootstrap, - mach_port_t control, - mach_port_t *real, - mach_msg_type_name_t *realtype) +S_fsys_startup (mach_port_t bootstrap, int flags, mach_port_t control, + mach_port_t *real, mach_msg_type_name_t *realtype) { return EOPNOTSUPP; } @@ -150,6 +148,13 @@ S_fsys_set_options (mach_port_t control, return EOPNOTSUPP; } +error_t +S_fsys_get_options (mach_port_t control, + char **data, mach_msg_type_number_t *len) +{ + return EOPNOTSUPP; +} + error_t S_fsys_getfile (mach_port_t control, uid_t *uids, -- cgit v1.2.3