summaryrefslogtreecommitdiff
path: root/sftp-client.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-10-17 11:48:52 +1100
committerDamien Miller <djm@mindrot.org>2013-10-17 11:48:52 +1100
commitf29238e67471a7f1088a99c3c3dbafce76b790cf (patch)
tree39ea232a72df52b4adbc3affea0108d8b0f45b42 /sftp-client.h
parent51682faa599550a69d8120e5e2bdbdc0625ef4be (diff)
- djm@cvs.openbsd.org 2013/10/17 00:30:13
[PROTOCOL sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c] fsync@openssh.com protocol extension for sftp-server client support to allow calling fsync() faster successful transfer patch mostly by imorgan AT nas.nasa.gov; bz#1798 "fine" markus@ "grumble OK" deraadt@ "doesn't sound bad to me" millert@
Diffstat (limited to 'sftp-client.h')
-rw-r--r--sftp-client.h14
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' */
101int do_symlink(struct sftp_conn *, char *, char *); 101int do_symlink(struct sftp_conn *, char *, char *);
102 102
103/* Call fsync() on open file 'handle' */
104int 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 */
107int do_download(struct sftp_conn *, char *, char *, Attrib *, int, int); 110int 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 */
113int 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);
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 */
119int do_upload(struct sftp_conn *, char *, char *, int); 123int 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 */
125int upload_dir(struct sftp_conn *, char *, char *, int, int); 129int 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. */
128char *path_append(char *, char *); 132char *path_append(char *, char *);