summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-13 20:56:18 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-13 20:56:18 +0000
commited48f29a35d617079ba54c373d238ac7eca1388e (patch)
tree617aaa86825308e8466e82aa81d9ed7c9b07afcc /libfshelp
parent38a7412de3426e5f9a1e2f4c6eecd322c2b714d0 (diff)
Reorder decls a bit.
Diffstat (limited to 'libfshelp')
-rw-r--r--libfshelp/fshelp.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h
index 1832ff01..504ed96b 100644
--- a/libfshelp/fshelp.h
+++ b/libfshelp/fshelp.h
@@ -78,6 +78,19 @@ struct transbox
fshelp_fetch_root should not need to create them on every call, since
usually there will be an existing active translator. */
+/* This routine is called by fshelp_fetch_root to fetch more
+ information. Return the owner and group of the underlying
+ translated file in *UID and *GID; return an unauthenticated
+ node for the file itself in *UNDERLYING, and point *ARGZ at
+ the entire passive translator spec for the file (setting
+ *ARGZ_LEN to the length.) If there is no passive
+ translator, then return ENOENT. */
+typedef void (*fshelp_callback_t) (void *cookie,
+ mach_port_t *underlying,
+ uid_t *uid, gid_t *gid,
+ char **argz, int *argz_len);
+
+
/* Fetch the root from TRANSBOX. DOTDOT is an unauthenticated port
for the directory in which we are looking; UIDS (length UIDS_LEN)
and GIDS (length GIDS_LEN) are the ids of the user responsible for
@@ -98,18 +111,6 @@ fshelp_transbox_init (struct transbox *transbox,
struct mutex *lock,
void *cookie);
-/* This routine is called by fshelp_fetch_root to fetch more
- information. Return the owner and group of the underlying
- translated file in *UID and *GID; return an unauthenticated
- node for the file itself in *UNDERLYING, and point *ARGZ at
- the entire passive translator spec for the file (setting
- *ARGZ_LEN to the length.) If there is no passive
- translator, then return ENOENT. */
-typedef void (*fshelp_callback_t) (void *cookie,
- mach_port_t *underlying,
- uid_t *uid, gid_t *gid,
- char **argz, int *argz_len);
-
/* Return true iff there is an active translator on this box */
extern inline int
fshelp_translated (struct transbox *box)