-/* $Id$ */
-
/* int64_t _PDCLIB_seek( FILE *, int64_t, int )
This file is part of the Public Domain C Library (PDCLib).
#include <stdio.h>
-#ifndef _PDCLIB_GLUE_H
-#define _PDCLIB_GLUE_H
-#include <_PDCLIB_glue.h>
-#endif
+#ifndef REGTEST
+
+#include "_PDCLIB_glue.h"
#include "/usr/include/errno.h"
/* EMPTY - OK */
break;
default:
- _PDCLIB_errno = _PDCLIB_EINVAL;
+ /* See comments on implementation-defined errno values in
+ <_PDCLIB_config.h>.
+ */
+ _PDCLIB_errno = _PDCLIB_ERROR;
return EOF;
break;
}
{
case EBADF:
case EFAULT:
- _PDCLIB_errno = _PDCLIB_EIO;
+ /* See comments on implementation-defined errno values in
+ <_PDCLIB_config.h>.
+ */
+ _PDCLIB_errno = _PDCLIB_ERROR;
break;
default:
- _PDCLIB_errno = _PDCLIB_EUNKNOWN;
+ /* This should be something like EUNKNOWN. */
+ _PDCLIB_errno = _PDCLIB_ERROR;
break;
}
return EOF;
}
+#endif
+
#ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
-int main()
+int main( void )
{
/* Testing covered by ftell.c */
return TEST_RESULTS;