newlib-2.1.0
git-svn-id: svn://kolibrios.org@4921 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -104,14 +104,6 @@ struct tms;
|
||||
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,16 +171,22 @@ extern int _gettimeofday_r _PARAMS ((struct _reent *, struct timeval *__tp, void
|
||||
|
||||
#ifdef __LARGE64_FILES
|
||||
|
||||
#if defined(__CYGWIN__) && defined(_COMPILING_NEWLIB)
|
||||
#define stat64 __stat64
|
||||
#endif
|
||||
|
||||
#if defined(__CYGWIN__)
|
||||
#define stat64 stat
|
||||
#endif
|
||||
struct stat64;
|
||||
|
||||
extern _off64_t _lseek64_r _PARAMS ((struct _reent *, int, _off64_t, int));
|
||||
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
|
||||
|
Reference in New Issue
Block a user