diff options
author | Colin Watson <cjwatson@debian.org> | 2010-03-31 00:48:57 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-03-31 00:48:57 +0100 |
commit | d1a87e462e1db89f19cd960588d0c6b287cb5ccc (patch) | |
tree | f0d13e1687800f36a3c4322b94ac5230ad17bdbf /sftp-client.h | |
parent | 964476f91b66c475d5b8fa1e8b28d39a97a1b56e (diff) | |
parent | 004a7fb9c6a00b13dc98f56599918a54a3506d10 (diff) |
merge 5.4p1
Diffstat (limited to 'sftp-client.h')
-rw-r--r-- | sftp-client.h | 21 |
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 **); | |||
68 | int do_rm(struct sftp_conn *, char *); | 68 | int do_rm(struct sftp_conn *, char *); |
69 | 69 | ||
70 | /* Create directory 'path' */ | 70 | /* Create directory 'path' */ |
71 | int do_mkdir(struct sftp_conn *, char *, Attrib *); | 71 | int do_mkdir(struct sftp_conn *, char *, Attrib *, int); |
72 | 72 | ||
73 | /* Remove directory 'path' */ | 73 | /* Remove directory 'path' */ |
74 | int do_rmdir(struct sftp_conn *, char *); | 74 | int 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 | */ |
106 | int do_download(struct sftp_conn *, char *, char *, int); | 106 | int 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 | */ | ||
112 | int 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 | */ |
112 | int do_upload(struct sftp_conn *, char *, char *, int); | 118 | int 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 | */ | ||
124 | int upload_dir(struct sftp_conn *, char *, char *, int, int); | ||
125 | |||
126 | /* Concatenate paths, taking care of slashes. Caller must free result. */ | ||
127 | char *path_append(char *, char *); | ||
128 | |||
114 | #endif | 129 | #endif |