aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-25 17:55:58 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-25 17:55:58 +0200
commit104e6d39ab8aef18a5d94601ba68ca4ebd381904 (patch)
treece0b758c7c63a529f78c654aec937d02701df7bb /libssh
parent3f778d9a3172ae49ef2f1862c544e65dd3dc2b8d (diff)
downloadlibssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.tar.gz
libssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.tar.xz
libssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.zip
Add a sftp_tel64() function.
Diffstat (limited to 'libssh')
-rw-r--r--libssh/libssh.map1
-rw-r--r--libssh/sftp.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/libssh/libssh.map b/libssh/libssh.map
index 84a9b03e..f67353f3 100644
--- a/libssh/libssh.map
+++ b/libssh/libssh.map
@@ -38,6 +38,7 @@ SSH_0.3 {
sftp_new; sftp_free; sftp_init; sftp_opendir; sftp_readdir; sftp_dir_eof;
sftp_stat; sftp_lstat; sftp_fstat; sftp_attributes_free; sftp_dir_close;
sftp_file_close; sftp_open; sftp_read; sftp_write; sftp_seek; sftp_tell;
+ sftp_tell64;
sftp_rewind; sftp_rm; sftp_rmdir; sftp_mkdir; sftp_rename; sftp_setstat;
sftp_symlink; sftp_readlink;
sftp_canonicalize_path; sftp_server_new; sftp_server_init;
diff --git a/libssh/sftp.c b/libssh/sftp.c
index c9653baf..e888dc21 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -1777,7 +1777,11 @@ int sftp_seek64(SFTP_FILE *file, u64 new_offset) {
/* Report current byte position in file. */
unsigned long sftp_tell(SFTP_FILE *file) {
- return file->offset;
+ return (unsigned long)file->offset;
+}
+/* Report current byte position in file. */
+u64 sftp_tell64(SFTP_FILE *file) {
+ return (u64)file->offset;
}
/* Rewinds the position of the file pointer to the beginning of the file.*/