src/server/plugins/postgresql/vfs.c

changeset 564
f19fd264c69c
parent 464
0a29110b94ec
equal deleted inserted replaced
563:6ca97c99173e 564:f19fd264c69c
844 } 844 }
845 845
846 off_t pg_vfs_io_seek(SYS_FILE fd, off_t offset, int whence) { 846 off_t pg_vfs_io_seek(SYS_FILE fd, off_t offset, int whence) {
847 PgVFS *pgvfs = fd->ctx->vfs->instance; 847 PgVFS *pgvfs = fd->ctx->vfs->instance;
848 PgFile *pg = fd->data; 848 PgFile *pg = fd->data;
849 if(pg->fd < 0) return-1; 849 if(pg->fd < 0) return-1;
850 return lo_lseek64(pgvfs->connection, pg->fd, offset, whence); 850 return lo_lseek64(pgvfs->connection, pg->fd, offset, whence);
851 } 851 }
852 852
853 off_t pg_vfs_io_tell(SYS_FILE fd) { 853 off_t pg_vfs_io_tell(SYS_FILE fd) {
854 PgVFS *pgvfs = fd->ctx->vfs->instance; 854 PgVFS *pgvfs = fd->ctx->vfs->instance;

mercurial