summaryrefslogtreecommitdiff
path: root/sftp-client.h
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-03-31 00:48:57 +0100
committerColin Watson <cjwatson@debian.org>2010-03-31 00:48:57 +0100
commitd1a87e462e1db89f19cd960588d0c6b287cb5ccc (patch)
treef0d13e1687800f36a3c4322b94ac5230ad17bdbf /sftp-client.h
parent964476f91b66c475d5b8fa1e8b28d39a97a1b56e (diff)
parent004a7fb9c6a00b13dc98f56599918a54a3506d10 (diff)
merge 5.4p1
Diffstat (limited to 'sftp-client.h')
-rw-r--r--sftp-client.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/sftp-client.h b/sftp-client.h
index edb46790f..1d08c4049 100644
--- a/sftp-client.h
+++ b/sftp-client.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-client.h,v 1.17 2008/06/08 20:15:29 dtucker Exp $ */ 1/* $OpenBSD: sftp-client.h,v 1.18 2009/08/18 18:36:20 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 4 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
@@ -68,7 +68,7 @@ void free_sftp_dirents(SFTP_DIRENT **);
68int do_rm(struct sftp_conn *, char *); 68int do_rm(struct sftp_conn *, char *);
69 69
70/* Create directory 'path' */ 70/* Create directory 'path' */
71int do_mkdir(struct sftp_conn *, char *, Attrib *); 71int do_mkdir(struct sftp_conn *, char *, Attrib *, int);
72 72
73/* Remove directory 'path' */ 73/* Remove directory 'path' */
74int do_rmdir(struct sftp_conn *, char *); 74int do_rmdir(struct sftp_conn *, char *);
@@ -103,7 +103,13 @@ int do_symlink(struct sftp_conn *, char *, char *);
103 * Download 'remote_path' to 'local_path'. Preserve permissions and times 103 * Download 'remote_path' to 'local_path'. Preserve permissions and times
104 * if 'pflag' is set 104 * if 'pflag' is set
105 */ 105 */
106int do_download(struct sftp_conn *, char *, char *, int); 106int do_download(struct sftp_conn *, char *, char *, Attrib *, int);
107
108/*
109 * Recursively download 'remote_directory' to 'local_directory'. Preserve
110 * times if 'pflag' is set
111 */
112int download_dir(struct sftp_conn *, char *, char *, Attrib *, int, int);
107 113
108/* 114/*
109 * Upload 'local_path' to 'remote_path'. Preserve permissions and times 115 * Upload 'local_path' to 'remote_path'. Preserve permissions and times
@@ -111,4 +117,13 @@ int do_download(struct sftp_conn *, char *, char *, int);
111 */ 117 */
112int do_upload(struct sftp_conn *, char *, char *, int); 118int do_upload(struct sftp_conn *, char *, char *, int);
113 119
120/*
121 * Recursively upload 'local_directory' to 'remote_directory'. Preserve
122 * times if 'pflag' is set
123 */
124int upload_dir(struct sftp_conn *, char *, char *, int, int);
125
126/* Concatenate paths, taking care of slashes. Caller must free result. */
127char *path_append(char *, char *);
128
114#endif 129#endif