aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
parent3f778d9a3172ae49ef2f1862c544e65dd3dc2b8d (diff)
downloadlibssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.tar.gz
libssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.tar.xz
libssh-104e6d39ab8aef18a5d94601ba68ca4ebd381904.zip
Add a sftp_tel64() function.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/sftp.h11
1 files changed, 11 insertions, 0 deletions
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
@@ -470,6 +470,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.
*