summaryrefslogtreecommitdiff
path: root/sftp-client.h
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-client.h')
-rw-r--r--sftp-client.h16
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 *);
92int do_statvfs(struct sftp_conn *, const char *, struct sftp_statvfs *, int); 92int do_statvfs(struct sftp_conn *, const char *, struct sftp_statvfs *, int);
93 93
94/* Rename 'oldpath' to 'newpath' */ 94/* Rename 'oldpath' to 'newpath' */
95int do_rename(struct sftp_conn *, char *, char *); 95int do_rename(struct sftp_conn *, char *, char *m, int force_legacy);
96 96
97/* Link 'oldpath' to 'newpath' */ 97/* Link 'oldpath' to 'newpath' */
98int do_hardlink(struct sftp_conn *, char *, char *); 98int 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' */
101int do_symlink(struct sftp_conn *, char *, char *); 101int 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' */
104int 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 */
109int do_download(struct sftp_conn *, char *, char *, Attrib *, int, int); 110int 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 */
115int download_dir(struct sftp_conn *, char *, char *, Attrib *, int, int, int); 116int 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 */
121int do_upload(struct sftp_conn *, char *, char *, int); 123int 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 */
127int upload_dir(struct sftp_conn *, char *, char *, int, int); 129int 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. */
130char *path_append(char *, char *); 132char *path_append(char *, char *);