diff options
Diffstat (limited to 'sftp-client.h')
-rw-r--r-- | sftp-client.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sftp-client.h b/sftp-client.h index 838b46b0b..e836c0d66 100644 --- a/sftp-client.h +++ b/sftp-client.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp-client.h,v 1.1 2001/02/04 11:11:54 djm Exp $ */ | 1 | /* $OpenBSD: sftp-client.h,v 1.2 2001/03/07 10:11:23 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2001 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2001 Damien Miller. All rights reserved. |
@@ -26,7 +26,10 @@ | |||
26 | 26 | ||
27 | /* Client side of SSH2 filexfer protocol */ | 27 | /* Client side of SSH2 filexfer protocol */ |
28 | 28 | ||
29 | /* Initialiase a SSH filexfer connection */ | 29 | /* |
30 | * Initialiase a SSH filexfer connection. Returns -1 on error or | ||
31 | * protocol version on success. | ||
32 | */ | ||
30 | int do_init(int fd_in, int fd_out); | 33 | int do_init(int fd_in, int fd_out); |
31 | 34 | ||
32 | /* Close file referred to by 'handle' */ | 35 | /* Close file referred to by 'handle' */ |
@@ -67,6 +70,12 @@ char *do_realpath(int fd_in, int fd_out, char *path); | |||
67 | /* Rename 'oldpath' to 'newpath' */ | 70 | /* Rename 'oldpath' to 'newpath' */ |
68 | int do_rename(int fd_in, int fd_out, char *oldpath, char *newpath); | 71 | int do_rename(int fd_in, int fd_out, char *oldpath, char *newpath); |
69 | 72 | ||
73 | /* Rename 'oldpath' to 'newpath' */ | ||
74 | int do_symlink(int fd_in, int fd_out, char *oldpath, char *newpath); | ||
75 | |||
76 | /* Return target of symlink 'path' - caller must free result */ | ||
77 | char *do_readlink(int fd_in, int fd_out, char *path); | ||
78 | |||
70 | /* XXX: add callbacks to do_download/do_upload so we can do progress meter */ | 79 | /* XXX: add callbacks to do_download/do_upload so we can do progress meter */ |
71 | 80 | ||
72 | /* | 81 | /* |