aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-08 12:01:28 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-08 12:02:25 +0200
commite0c969bb41008fc20871045b5d3e218ef5dda551 (patch)
tree068ebffab9c9bf8f8894a027710903f6c1241d35 /include/libssh
parentcecd5f0f78a82af40091a166359f673b2928b68a (diff)
downloadlibssh-e0c969bb41008fc20871045b5d3e218ef5dda551.tar.gz
libssh-e0c969bb41008fc20871045b5d3e218ef5dda551.tar.xz
libssh-e0c969bb41008fc20871045b5d3e218ef5dda551.zip
Add a sftp_tell64() function.
Diffstat (limited to 'include/libssh')
-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 83fb40c3..eace5372 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -470,6 +470,17 @@ int sftp_seek64(SFTP_FILE *file, u64 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.
*