1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-03 22:13:11 +03:00

- Based on bug #1815692, we introduce libssh2_sftp_seek2() that allows seeking

beyond the 2GB margin even on 32bit machines.
This commit is contained in:
Daniel Stenberg
2008-09-29 14:11:29 +00:00
parent 93ae080bbc
commit 61fda23340
4 changed files with 24 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
/* Copyright (c) 2004-2007, Sara Golemon <sarag@libssh2.org>
/* Copyright (c) 2004-2008, Sara Golemon <sarag@libssh2.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms,
@@ -1528,6 +1528,17 @@ libssh2_sftp_seek(LIBSSH2_SFTP_HANDLE * handle, size_t offset)
/* }}} */
/* {{{ libssh2_sftp_seek2
* Set the read/write pointer to an arbitrary position within the file
*/
LIBSSH2_API void
libssh2_sftp_seek2(LIBSSH2_SFTP_HANDLE * handle, libssh2_uint64_t offset)
{
handle->u.file.offset = offset;
}
/* }}} */
/* {{{ libssh2_sftp_tell
* Return the current read/write pointer's offset
*/