104,14 → 104,6 |
struct timeval; |
struct timezone; |
|
typedef struct |
{ |
char *name; |
unsigned int offset; |
int (*write)(const char*, const void *, size_t, size_t, size_t*); |
}__file_handle; |
|
|
#if defined(REENTRANT_SYSCALLS_PROVIDED) && defined(MISSING_SYSCALL_NAMES) |
|
#define _close_r(__reent, __fd) close(__fd) |
179,10 → 171,10 |
|
#ifdef __LARGE64_FILES |
|
#if defined(__CYGWIN__) && defined(_COMPILING_NEWLIB) |
#define stat64 __stat64 |
|
#if defined(__CYGWIN__) |
#define stat64 stat |
#endif |
|
struct stat64; |
|
extern _off64_t _lseek64_r _PARAMS ((struct _reent *, int, _off64_t, int)); |
189,10 → 181,16 |
extern int _fstat64_r _PARAMS ((struct _reent *, int, struct stat64 *)); |
extern int _open64_r _PARAMS ((struct _reent *, const char *, int, int)); |
extern int _stat64_r _PARAMS ((struct _reent *, const char *, struct stat64 *)); |
|
/* Don't pollute namespace if not building newlib. */ |
#if defined (__CYGWIN__) && !defined (_COMPILING_NEWLIB) |
#undef stat64 |
#endif |
|
#endif |
|
#endif |
|
#ifdef __cplusplus |
} |
#endif |