sf::Int64 SFTPInputStream::seek(sf::Int64 position) { int rc = sftp_seek(this->file, position); if (rc < 0) return -1; this->index = position; // maybe buffer a bit? return position; }
static off_t _sftp_lseek(csync_vio_method_handle_t *fhandle, off_t offset, int whence) { /* FIXME: really implement seek for lseek? */ (void) whence; sftp_seek(fhandle, offset); return 0; }