version 1.12, 2000/02/21 22:11:20 |
version 1.13, 2000/02/22 17:29:12 |
|
|
#endif |
#endif |
|
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
|
|
#include <machine/ansi.h> |
#include <machine/ansi.h> |
|
|
#ifdef _BSD_SIZE_T_ |
#ifdef _BSD_SIZE_T_ |
typedef _BSD_SIZE_T_ size_t; |
typedef _BSD_SIZE_T_ size_t; |
#undef _BSD_SIZE_T_ |
#undef _BSD_SIZE_T_ |
#endif |
#endif |
|
|
|
#ifdef _BSD_OFF_T_ |
|
typedef _BSD_OFF_T_ off_t; |
|
#undef _BSD_OFF_T_ |
|
#endif |
|
|
#ifndef NULL |
#ifndef NULL |
#ifdef __GNUG__ |
#ifdef __GNUG__ |
#define NULL __null |
#define NULL __null |
|
|
#endif |
#endif |
#endif |
#endif |
|
|
/* |
|
* This is fairly grotesque, but pure ANSI code must not inspect the |
|
* innards of an fpos_t anyway. The library internally uses off_t, |
|
* which we assume is exactly as big as eight chars. |
|
*/ |
|
#if !defined(_ANSI_SOURCE) && !defined(__STRICT_ANSI__) |
|
typedef off_t fpos_t; |
|
#else |
|
typedef struct __sfpos { |
|
/* LONGLONG */ |
|
long long _pos; /* XXX must be the same as off_t */ |
|
} fpos_t; |
|
#endif |
|
|
|
#define _FSTDIO /* Define for new stdio with functions. */ |
#define _FSTDIO /* Define for new stdio with functions. */ |
|
|
|
typedef off_t fpos_t; /* stdio file position type */ |
|
|
/* |
/* |
* NB: to fit things in six character monocase externals, the stdio |
* NB: to fit things in six character monocase externals, the stdio |