3 /* int64_t _PDCLIB_seek( FILE *, int64_t, int )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
11 #ifndef _PDCLIB_GLUE_H
12 #define _PDCLIB_GLUE_H
13 #include <_PDCLIB_glue.h>
16 #include "/usr/include/errno.h"
18 extern _PDCLIB_int64_t lseek64( int fd, _PDCLIB_int64_t offset, int whence );
20 _PDCLIB_int64_t _PDCLIB_seek( struct _PDCLIB_file_t * stream, _PDCLIB_int64_t offset, int whence )
30 /* See comments on implementation-defined errno values in
33 _PDCLIB_errno = _PDCLIB_ERROR;
37 _PDCLIB_int64_t rc = lseek64( stream->handle, offset, whence );
43 stream->pos.offset = rc;
50 /* See comments on implementation-defined errno values in
53 _PDCLIB_errno = _PDCLIB_ERROR;
56 /* This should be something like EUNKNOWN. */
57 _PDCLIB_errno = _PDCLIB_ERROR;
64 #include <_PDCLIB_test.h>
68 /* Testing covered by ftell.c */