2003-11-26 Corinna Vinschen <corinna@vinschen.de>
* libc/include/fcntl.h: Declare syscalls only when building newlib. * libc/include/unistd.h: Ditto. * libc/include/stat.h: Ditto. Also declare struct stat64.
This commit is contained in:
parent
f25babdf07
commit
0a707c79e9
|
@ -1,3 +1,9 @@
|
||||||
|
2003-11-26 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* libc/include/fcntl.h: Declare syscalls only when building newlib.
|
||||||
|
* libc/include/unistd.h: Ditto.
|
||||||
|
* libc/include/stat.h: Ditto. Also declare struct stat64.
|
||||||
|
|
||||||
2003-11-24 Artem B. Bityuckiy <mail_lists@mail.ru>
|
2003-11-24 Artem B. Bityuckiy <mail_lists@mail.ru>
|
||||||
|
|
||||||
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
|
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
|
||||||
|
|
|
@ -169,11 +169,13 @@ extern int fcntl _PARAMS ((int, int, ...));
|
||||||
|
|
||||||
/* Provide _<systemcall> prototypes for functions provided by some versions
|
/* Provide _<systemcall> prototypes for functions provided by some versions
|
||||||
of newlib. */
|
of newlib. */
|
||||||
|
#ifdef _COMPILING_NEWLIB
|
||||||
extern int _open _PARAMS ((const char *, int, ...));
|
extern int _open _PARAMS ((const char *, int, ...));
|
||||||
extern int _fcntl _PARAMS ((int, int, ...));
|
extern int _fcntl _PARAMS ((int, int, ...));
|
||||||
#ifdef __LARGE64_FILES
|
#ifdef __LARGE64_FILES
|
||||||
extern int _open64 _PARAMS ((const char *, int, ...));
|
extern int _open64 _PARAMS ((const char *, int, ...));
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,10 +137,11 @@ int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
|
||||||
|
|
||||||
/* Provide prototypes for most of the _<systemcall> names that are
|
/* Provide prototypes for most of the _<systemcall> names that are
|
||||||
provided in newlib for some compilers. */
|
provided in newlib for some compilers. */
|
||||||
#ifndef __INSIDE_CYGWIN__
|
#ifdef _COMPILING_NEWLIB
|
||||||
int _EXFUN(_fstat,( int __fd, struct stat *__sbuf ));
|
int _EXFUN(_fstat,( int __fd, struct stat *__sbuf ));
|
||||||
int _EXFUN(_stat,( const char *__path, struct stat *__sbuf ));
|
int _EXFUN(_stat,( const char *__path, struct stat *__sbuf ));
|
||||||
#ifdef __LARGE64_FILES
|
#ifdef __LARGE64_FILES
|
||||||
|
struct stat64;
|
||||||
int _EXFUN(_fstat64,( int __fd, struct stat64 *__sbuf ));
|
int _EXFUN(_fstat64,( int __fd, struct stat64 *__sbuf ));
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -165,6 +165,7 @@ extern char *suboptarg; /* getsubopt(3) external variable */
|
||||||
int getsubopt(char **, char * const *, char **);
|
int getsubopt(char **, char * const *, char **);
|
||||||
#endif /* _POSIX_SOURCE */
|
#endif /* _POSIX_SOURCE */
|
||||||
|
|
||||||
|
#ifdef _COMPILING_NEWLIB
|
||||||
/* Provide prototypes for most of the _<systemcall> names that are
|
/* Provide prototypes for most of the _<systemcall> names that are
|
||||||
provided in newlib for some compilers. */
|
provided in newlib for some compilers. */
|
||||||
int _EXFUN(_close, (int __fildes ));
|
int _EXFUN(_close, (int __fildes ));
|
||||||
|
@ -180,6 +181,7 @@ void * _EXFUN(_sbrk, (ptrdiff_t __incr));
|
||||||
int _EXFUN(_unlink, (const char *__path ));
|
int _EXFUN(_unlink, (const char *__path ));
|
||||||
_READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nbyte ));
|
_READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nbyte ));
|
||||||
int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] ));
|
int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] ));
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__sh__)
|
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__sh__)
|
||||||
#if !defined(__INSIDE_CYGWIN__)
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
|
|
Loading…
Reference in New Issue