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 _PDCLIB_errno = _PDCLIB_EINVAL;
34 _PDCLIB_int64_t rc = lseek64( stream->handle, offset, whence );
40 stream->pos.offset = rc;
47 _PDCLIB_errno = _PDCLIB_EIO;
50 _PDCLIB_errno = _PDCLIB_EUNKNOWN;
57 #include <_PDCLIB_test.h>
61 /* Testing covered by ftell.c */