diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 23eb25350..40c318dc4 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2003-11-18 Corinna Vinschen + + * libc/include/sys/fcntl.h: Declare _open64. + * libc/include/sys/stat.h: Declare _fstat64. + * libc/include/sys/unistd.h: Declare _lseek64. + 2003-11-17 Corinna Vinschen * libc/include/stdlib.h (getprogname): Declare for Cygwin. diff --git a/newlib/libc/include/sys/fcntl.h b/newlib/libc/include/sys/fcntl.h index 5f3137e7d..f358a8fab 100644 --- a/newlib/libc/include/sys/fcntl.h +++ b/newlib/libc/include/sys/fcntl.h @@ -171,6 +171,9 @@ extern int fcntl _PARAMS ((int, int, ...)); of newlib. */ extern int _open _PARAMS ((const char *, int, ...)); extern int _fcntl _PARAMS ((int, int, ...)); +#ifdef __LARGE64_FILES +extern int _open64 _PARAMS ((const char *, int, ...)); +#endif #ifdef __cplusplus } diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index de590315b..e22f59a5d 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -140,6 +140,9 @@ int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev )); #ifndef __INSIDE_CYGWIN__ int _EXFUN(_fstat,( int __fd, struct stat *__sbuf )); int _EXFUN(_stat,( const char *__path, struct stat *__sbuf )); +#ifdef __LARGE64_FILES +int _EXFUN(_fstat64,( int __fd, struct stat64 *__sbuf )); +#endif #endif #endif /* !_STAT_H_ */ diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 93f1ccf0c..ee6bec0b3 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -172,6 +172,9 @@ pid_t _EXFUN(_fork, (void )); pid_t _EXFUN(_getpid, (void )); int _EXFUN(_link, (const char *__path1, const char *__path2 )); _off_t _EXFUN(_lseek, (int __fildes, _off_t __offset, int __whence )); +#ifdef __LARGE64_FILES +_off64_t _EXFUN(_lseek64, (int __filedes, _off64_t __offset, int __whence )); +#endif _READ_WRITE_RETURN_TYPE _EXFUN(_read, (int __fd, void *__buf, size_t __nbyte )); void * _EXFUN(_sbrk, (ptrdiff_t __incr)); int _EXFUN(_unlink, (const char *__path ));