diff options
Diffstat (limited to 'sftp-client.h')
-rw-r--r-- | sftp-client.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sftp-client.h b/sftp-client.h index bcdd407c8..ba92ad01a 100644 --- a/sftp-client.h +++ b/sftp-client.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp-client.h,v 1.23 2013/10/11 02:53:45 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> |
@@ -100,29 +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 | /* Call fsync() on open file 'handle' */ | ||
104 | int do_fsync(struct sftp_conn *conn, char *, u_int); | ||
105 | |||
103 | /* | 106 | /* |
104 | * Download 'remote_path' to 'local_path'. Preserve permissions and times | 107 | * Download 'remote_path' to 'local_path'. Preserve permissions and times |
105 | * if 'pflag' is set | 108 | * if 'pflag' is set |
106 | */ | 109 | */ |
107 | int do_download(struct sftp_conn *, char *, char *, Attrib *, int, int); | 110 | int do_download(struct sftp_conn *, char *, char *, Attrib *, int, int, int); |
108 | 111 | ||
109 | /* | 112 | /* |
110 | * Recursively download 'remote_directory' to 'local_directory'. Preserve | 113 | * Recursively download 'remote_directory' to 'local_directory'. Preserve |
111 | * times if 'pflag' is set | 114 | * times if 'pflag' is set |
112 | */ | 115 | */ |
113 | 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); | ||
114 | 118 | ||
115 | /* | 119 | /* |
116 | * Upload 'local_path' to 'remote_path'. Preserve permissions and times | 120 | * Upload 'local_path' to 'remote_path'. Preserve permissions and times |
117 | * if 'pflag' is set | 121 | * if 'pflag' is set |
118 | */ | 122 | */ |
119 | int do_upload(struct sftp_conn *, char *, char *, int); | 123 | int do_upload(struct sftp_conn *, char *, char *, int, int); |
120 | 124 | ||
121 | /* | 125 | /* |
122 | * Recursively upload 'local_directory' to 'remote_directory'. Preserve | 126 | * Recursively upload 'local_directory' to 'remote_directory'. Preserve |
123 | * times if 'pflag' is set | 127 | * times if 'pflag' is set |
124 | */ | 128 | */ |
125 | int upload_dir(struct sftp_conn *, char *, char *, int, int); | 129 | int upload_dir(struct sftp_conn *, char *, char *, int, int, int); |
126 | 130 | ||
127 | /* Concatenate paths, taking care of slashes. Caller must free result. */ | 131 | /* Concatenate paths, taking care of slashes. Caller must free result. */ |
128 | char *path_append(char *, char *); | 132 | char *path_append(char *, char *); |