From 104e6d39ab8aef18a5d94601ba68ca4ebd381904 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 25 Jul 2009 17:55:58 +0200 Subject: Add a sftp_tel64() function. --- include/libssh/sftp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index de6e5675..8b283185 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -469,6 +469,17 @@ int sftp_seek64(SFTP_FILE *file, uint64_t new_offset); */ unsigned long sftp_tell(SFTP_FILE *file); +/** + * @brief Report current byte position in file. + * + * @param file Open sftp file handle. + * + * @return The offset of the current byte relative to the beginning + * of the file associated with the file descriptor. < 0 on + * error. + */ +u64 sftp_tell64(SFTP_FILE *file); + /** * @brief Rewinds the position of the file pointer to the beginning of the * file. -- cgit