diff options
Diffstat (limited to 'sftp-client.h')
-rw-r--r-- | sftp-client.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sftp-client.h b/sftp-client.h index 111a998c8..ba92ad01a 100644 --- a/sftp-client.h +++ b/sftp-client.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp-client.h,v 1.21 2013/07/25 00:56:51 djm Exp $ */ | 1 | /* $OpenBSD: sftp-client.h,v 1.24 2013/10/17 00:30:13 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> |
@@ -92,7 +92,7 @@ char *do_realpath(struct sftp_conn *, char *); | |||
92 | int do_statvfs(struct sftp_conn *, const char *, struct sftp_statvfs *, int); | 92 | int do_statvfs(struct sftp_conn *, const char *, struct sftp_statvfs *, int); |
93 | 93 | ||
94 | /* Rename 'oldpath' to 'newpath' */ | 94 | /* Rename 'oldpath' to 'newpath' */ |
95 | int do_rename(struct sftp_conn *, char *, char *); | 95 | int do_rename(struct sftp_conn *, char *, char *m, int force_legacy); |
96 | 96 | ||
97 | /* Link 'oldpath' to 'newpath' */ | 97 | /* Link 'oldpath' to 'newpath' */ |
98 | int do_hardlink(struct sftp_conn *, char *, char *); | 98 | int do_hardlink(struct sftp_conn *, char *, char *); |
@@ -100,31 +100,33 @@ int do_hardlink(struct sftp_conn *, char *, char *); | |||
100 | /* Rename 'oldpath' to 'newpath' */ | 100 | /* Rename 'oldpath' to 'newpath' */ |
101 | int do_symlink(struct sftp_conn *, char *, char *); | 101 | int do_symlink(struct sftp_conn *, char *, char *); |
102 | 102 | ||
103 | /* XXX: add callbacks to do_download/do_upload so we can do progress meter */ | 103 | /* Call fsync() on open file 'handle' */ |
104 | int do_fsync(struct sftp_conn *conn, char *, u_int); | ||
104 | 105 | ||
105 | /* | 106 | /* |
106 | * Download 'remote_path' to 'local_path'. Preserve permissions and times | 107 | * Download 'remote_path' to 'local_path'. Preserve permissions and times |
107 | * if 'pflag' is set | 108 | * if 'pflag' is set |
108 | */ | 109 | */ |
109 | int do_download(struct sftp_conn *, char *, char *, Attrib *, int, int); | 110 | int do_download(struct sftp_conn *, char *, char *, Attrib *, int, int, int); |
110 | 111 | ||
111 | /* | 112 | /* |
112 | * Recursively download 'remote_directory' to 'local_directory'. Preserve | 113 | * Recursively download 'remote_directory' to 'local_directory'. Preserve |
113 | * times if 'pflag' is set | 114 | * times if 'pflag' is set |
114 | */ | 115 | */ |
115 | int download_dir(struct sftp_conn *, char *, char *, Attrib *, int, int, int); | 116 | int download_dir(struct sftp_conn *, char *, char *, Attrib *, int, |
117 | int, int, int); | ||
116 | 118 | ||
117 | /* | 119 | /* |
118 | * Upload 'local_path' to 'remote_path'. Preserve permissions and times | 120 | * Upload 'local_path' to 'remote_path'. Preserve permissions and times |
119 | * if 'pflag' is set | 121 | * if 'pflag' is set |
120 | */ | 122 | */ |
121 | int do_upload(struct sftp_conn *, char *, char *, int); | 123 | int do_upload(struct sftp_conn *, char *, char *, int, int); |
122 | 124 | ||
123 | /* | 125 | /* |
124 | * Recursively upload 'local_directory' to 'remote_directory'. Preserve | 126 | * Recursively upload 'local_directory' to 'remote_directory'. Preserve |
125 | * times if 'pflag' is set | 127 | * times if 'pflag' is set |
126 | */ | 128 | */ |
127 | int upload_dir(struct sftp_conn *, char *, char *, int, int); | 129 | int upload_dir(struct sftp_conn *, char *, char *, int, int, int); |
128 | 130 | ||
129 | /* Concatenate paths, taking care of slashes. Caller must free result. */ | 131 | /* Concatenate paths, taking care of slashes. Caller must free result. */ |
130 | char *path_append(char *, char *); | 132 | char *path_append(char *, char *); |