From 5c10e50f5b3ae341e29bdefcb5cb67762043fdda Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 May 1996 21:34:15 +0000 Subject: (netfs_attempt_link): Add excl parm. (netfs_attempt_rename): Likewise. --- libnetfs/netfs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libnetfs/netfs.h') diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h index 91b23b8f..ed852251 100644 --- a/libnetfs/netfs.h +++ b/libnetfs/netfs.h @@ -175,7 +175,7 @@ error_t netfs_attempt_unlink (struct netcred *user, struct node *dir, /* Note that in this one call, neither of the specific nodes are locked. */ error_t netfs_attempt_rename (struct netcred *user, struct node *fromdir, char *fromname, struct node *todir, - char *toname); + char *toname, int excl); /* The user must define this function. Attempt to create a new directory named NAME in DIR for USER with mode MODE. */ @@ -190,9 +190,10 @@ error_t netfs_attempt_rmdir (struct netcred *user, /* The user must define this function. Create a link in DIR with name NAME to FILE for USER. Note that neither DIR nor FILE are - locked. */ + locked. If EXCL is set, do not delete the target, but return EEXIST + if NAME is already found in DIR. */ error_t netfs_attempt_link (struct netcred *user, struct node *dir, - struct node *file, char *name); + struct node *file, char *name, int excl); /* The user must define this function. Attempt to create an anonymous file related to DIR for USER with MODE. Set *NP to the returned -- cgit v1.2.3