summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-24 15:43:01 +0000
committerMiles Bader <miles@gnu.org>1995-08-24 15:43:01 +0000
commitf621339bd5434aa4e9649169bc43ce20875c0070 (patch)
treefb5af7ab80303a0ecac2e5505aa562fab3198d72
parent28cbaf212eb5050da82a638c5a6734df266ed5ad (diff)
(struct trivfs_control): Add the hook field.
(trivfs_goaway): Pass the control structure directly instead of random fields from it. (trivfs_modify_stat): Pass in the node as well.
-rw-r--r--libtrivfs/trivfs.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h
index 830c4ac4..6d157444 100644
--- a/libtrivfs/trivfs.h
+++ b/libtrivfs/trivfs.h
@@ -52,6 +52,7 @@ struct trivfs_control
struct port_class *protid_class;
struct port_bucket *protid_bucket;
mach_port_t underlying;
+ void *hook; /* for user use */
};
/* The user must define these variables. */
@@ -79,7 +80,7 @@ extern int trivfs_cntl_nportclasses;
stat (as returned from the underlying node) for presentation to
callers of io_stat. It is permissable for this function to do
nothing. */
-void trivfs_modify_stat (struct stat *);
+void trivfs_modify_stat (struct trivfs_protid *cred, struct stat *);
/* If this variable is set, it is called every time an open happens.
UIDS, GIDS, and FLAGS are from the open; CNTL identifies the
@@ -157,12 +158,8 @@ error_t trivfs_protid_dup (struct trivfs_protid *cred,
struct trivfs_protid **dup);
/* The user must define this function. Someone wants the filesystem
- to go away. FLAGS are from the set FSYS_GOAWAY_*; REALNODE,
- CNTLTYPE, and PROTIDTYPE are as from the trivfs_handle_port
- call which creade this filesystem. */
-error_t trivfs_goaway (int flags, mach_port_t realnode,
- struct port_class *control_class,
- struct port_class *protid_class);
+ CNTL to go away. FLAGS are from the set FSYS_GOAWAY_*. */
+error_t trivfs_goaway (struct trivfs_control *cntl, int flags);
/* Call this to set atime for the node to the current time. */
error_t trivfs_set_atime (struct trivfs_control *cntl);