summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-05-27 17:28:23 -0700
committerJeremy Allison <jra@samba.org>2009-05-27 17:28:23 -0700
commitf55c7614bd7360b484f15c2290ab88195bb78094 (patch)
tree151f2bcfc121a8b3315107a7a7db1aa12e7875ef /source3/include
parente381c13b023f2b512b3f6aec133db9f323bc8132 (diff)
downloadsamba-f55c7614bd7360b484f15c2290ab88195bb78094.tar.gz
samba-f55c7614bd7360b484f15c2290ab88195bb78094.tar.bz2
samba-f55c7614bd7360b484f15c2290ab88195bb78094.zip
Add aync POSIX hardlink and symlink and torture test for them.
Missing call cli_readlink() is next. Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 717a972505..a918c29aaa 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2332,12 +2332,28 @@ void cli_reset_error(struct cli_state *cli);
/* The following definitions come from libsmb/clifile.c */
+struct tevent_req *cli_posix_symlink_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli,
+ const char *oldname,
+ const char *newname);
+NTSTATUS cli_posix_symlink_recv(struct tevent_req *req);
+NTSTATUS cli_posix_symlink(struct cli_state *cli,
+ const char *oldname,
+ const char *newname);
+struct tevent_req *cli_posix_hardlink_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ struct cli_state *cli,
+ const char *oldname,
+ const char *newname);
+NTSTATUS cli_posix_hardlink_recv(struct tevent_req *req);
+NTSTATUS cli_posix_hardlink(struct cli_state *cli,
+ const char *oldname,
+ const char *newname);
uint32_t unix_perms_to_wire(mode_t perms);
mode_t wire_perms_to_unix(uint32_t perms);
bool cli_unix_getfacl(struct cli_state *cli, const char *name, size_t *prb_size, char **retbuf);
bool cli_unix_stat(struct cli_state *cli, const char *name, SMB_STRUCT_STAT *sbuf);
-bool cli_unix_symlink(struct cli_state *cli, const char *oldname, const char *newname);
-bool cli_unix_hardlink(struct cli_state *cli, const char *oldname, const char *newname);
bool cli_unix_chmod(struct cli_state *cli, const char *fname, mode_t mode);
bool cli_unix_chown(struct cli_state *cli, const char *fname, uid_t uid, gid_t gid);
struct tevent_req *cli_rename_send(TALLOC_CTX *mem_ctx,