aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-11-18 19:17:17 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-11-18 19:17:17 +0000
commita472290f3eedcf897c817d64f81eb235b7bf937c (patch)
treeae8234642b1f54b3058f5069851ddf5bca9d9b63
parent8f4dfcaa1fa1f21e16a4759693fe735568bb138f (diff)
downloadnewlib-a472290f3eedcf897c817d64f81eb235b7bf937c.zip
newlib-a472290f3eedcf897c817d64f81eb235b7bf937c.tar.gz
newlib-a472290f3eedcf897c817d64f81eb235b7bf937c.tar.bz2
2003-11-18 Corinna Vinschen <corinna@vinschen.de>
* libc/include/sys/fcntl.h: Declare _open64. * libc/include/sys/stat.h: Declare _fstat64. * libc/include/sys/unistd.h: Declare _lseek64.
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/include/sys/fcntl.h3
-rw-r--r--newlib/libc/include/sys/stat.h3
-rw-r--r--newlib/libc/include/sys/unistd.h3
4 files changed, 15 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 23eb253..40c318d 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-18 Corinna Vinschen <corinna@vinschen.de>
+
+ * 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 <corinna@vinschen.de>
* 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 5f3137e..f358a8f 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 de59031..e22f59a 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 93f1ccf..ee6bec0 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 ));