diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-09-08 12:01:28 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-09-08 12:02:25 +0200 |
commit | e0c969bb41008fc20871045b5d3e218ef5dda551 (patch) | |
tree | 068ebffab9c9bf8f8894a027710903f6c1241d35 /libssh | |
parent | cecd5f0f78a82af40091a166359f673b2928b68a (diff) | |
download | libssh-e0c969bb41008fc20871045b5d3e218ef5dda551.tar.gz libssh-e0c969bb41008fc20871045b5d3e218ef5dda551.tar.xz libssh-e0c969bb41008fc20871045b5d3e218ef5dda551.zip |
Add a sftp_tell64() function.
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/sftp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c index f720aa58..f94c5ff3 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.*/ |