diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 21:34:15 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 21:34:15 +0000 |
commit | 5c10e50f5b3ae341e29bdefcb5cb67762043fdda (patch) | |
tree | 09d63f796109325a8be0984466ea89984f46ae50 /libnetfs | |
parent | 807bc7051e1edb65861b6392cd54b95f149476ac (diff) |
(netfs_attempt_link): Add excl parm.
(netfs_attempt_rename): Likewise.
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/netfs.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 |