From 11a0f3f107cc1911ffe69123323b39b060b8b686 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 30 Mar 1995 17:48:13 +0000 Subject: (trivfs_check_open_hook): Doc fix. (trivfs_complete_open): Delete declaration. --- libtrivfs/trivfs.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'libtrivfs/trivfs.h') diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h index c0525af9..a3895526 100644 --- a/libtrivfs/trivfs.h +++ b/libtrivfs/trivfs.h @@ -74,24 +74,14 @@ void trivfs_modify_stat (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 node being opened. This call need not check permissions on the underlying - node. If the open call should block, then return EWOULDBLOCK. Other - errors are immediately reflected to the user. If O_NONBLOCK - is not set in FLAGS and EWOULDBLOCK is returned, then call - trivfs_complete_open when all pending open requests for this - file can complete. */ + node. This call can block as necessary, unless O_NONBLOCK is set + in FLAGS. Any desired error can be returned, which will be reflected + to the user and prevent the open from succeeding. */ error_t (*trivfs_check_open_hook) (struct trivfs_control *cntl, uid_t *uids, u_int nuids, gid_t *gids, u_int ngids, int flags); -/* Call this after *trivfs_check_open_hook returns EWOULDBLOCK when - FLAGS did not include O_NONBLOCK. CNTL identifies the node now - openable. If MULTI is nonzero, then return all pending opens, - otherwise, return only one. ERR is whether this open should - return an error, and what error to return. */ -void trivfs_complete_open (struct trivfs_control *cntl, - int multi, error_t err); - /* If this variable is set, it is called every time a new protid structure is created and initialized. */ void (*trivfs_protid_create_hook) (struct trivfs_protid *); -- cgit v1.2.3