From 7a4eaafbf18f97848bae86223d24dd3a96724046 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 27 Jan 1996 16:35:40 +0000 Subject: (diskfs_start_protid): Update declaration. (diskfs_create_protid): New declaration. --- libdiskfs/diskfs.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index 08dc2a8d..f086b5a8 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -838,15 +838,19 @@ diskfs_create_node (struct node *dir, char *name, mode_t mode, struct node **newnode, struct protid *cred, struct dirstat *ds); -/* Create and return a protid for an existing peropen. The uid set is - UID (length NUIDS); the gid set is GID (length NGIDS). The node +/* Create and return a protid for an existing peropen PO in CRED. The uid + set is UID (length NUIDS); the gid set is GID (length NGIDS). The node PO->np must be locked. */ +error_t diskfs_create_protid (struct peropen *po, uid_t *uids, int nuids, + uid_t *gids, int ngids, struct protid **cred); + +/* Backward compatibility. Use diskfs_create_protid. */ struct protid *diskfs_make_protid (struct peropen *cred, uid_t *uids, int nuids, uid_t *gids, int ngids); -/* Build and return a protid which has no user identification for +/* Build and return in CRED a protid which has no user identification, for peropen PO. The node PO->np must be locked. */ -struct protid *diskfs_start_protid (struct peropen *po); +error_t diskfs_start_protid (struct peropen *po, struct protid **cred); /* Finish building protid CRED started with diskfs_start_protid; the uid set is UID (length NUIDS); the gid set is GID (length NGIDS). */ -- cgit v1.2.3