aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-05-13 09:19:15 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-05-13 09:19:15 +0000
commit837e070f314f6b8b9e64ec9fb09dd0e0bf6226e9 (patch)
treeaaf6a56cd542a05fb2fbe88d381e91c951c74933
parent878e4ecbe8ae63355c83bed46976c9a7533622ec (diff)
downloadnewlib-837e070f314f6b8b9e64ec9fb09dd0e0bf6226e9.zip
newlib-837e070f314f6b8b9e64ec9fb09dd0e0bf6226e9.tar.gz
newlib-837e070f314f6b8b9e64ec9fb09dd0e0bf6226e9.tar.bz2
* libc/locale/ldpart.c (__part_load_locale): Substitute
__CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64. * libc/search/hash.c (__hash_open): Ditto. (init_hash): Ditto. * libc/stdio/fseek.c (fseek): Ditto. * libc/stdio/makebuf.c (__smakebuf): Ditto. * libc/stdio/mktemp.c (_gettemp): Ditto.
-rw-r--r--newlib/ChangeLog10
-rw-r--r--newlib/libc/locale/ldpart.c2
-rw-r--r--newlib/libc/search/hash.c6
-rw-r--r--newlib/libc/stdio/fseek.c4
-rw-r--r--newlib/libc/stdio/makebuf.c2
-rw-r--r--newlib/libc/stdio/mktemp.c4
6 files changed, 19 insertions, 9 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 3f9b362..6c8e746 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,13 @@
+2003-05-13 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/locale/ldpart.c (__part_load_locale): Substitute
+ __CYGWIN_USE_BIG_TYPES__ by __USE_INTERNAL_STAT64.
+ * libc/search/hash.c (__hash_open): Ditto.
+ (init_hash): Ditto.
+ * libc/stdio/fseek.c (fseek): Ditto.
+ * libc/stdio/makebuf.c (__smakebuf): Ditto.
+ * libc/stdio/mktemp.c (_gettemp): Ditto.
+
2003-05-12 Corinna Vinschen <corinna@vinschen.de>
* libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
diff --git a/newlib/libc/locale/ldpart.c b/newlib/libc/locale/ldpart.c
index bdeea87..a284b9d 100644
--- a/newlib/libc/locale/ldpart.c
+++ b/newlib/libc/locale/ldpart.c
@@ -98,7 +98,7 @@ __part_load_locale(const char *name,
fd = open(filename, O_RDONLY);
if (fd < 0)
goto no_locale;
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
if (fstat64(fd, &st) != 0)
#else
if (fstat(fd, &st) != 0)
diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c
index 5429252..1b045e8 100644
--- a/newlib/libc/search/hash.c
+++ b/newlib/libc/search/hash.c
@@ -129,7 +129,7 @@ __hash_open(file, flags, mode, info, dflags)
new_table = 0;
if (!file || (flags & O_TRUNC) ||
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
(stat64(file, &statbuf) && (errno == ENOENT))) {
#else
(stat(file, &statbuf) && (errno == ENOENT))) {
@@ -145,7 +145,7 @@ __hash_open(file, flags, mode, info, dflags)
/* if the .db file is empty, and we had permission to create
a new .db file, then reinitialize the database */
if ((flags & O_CREAT) &&
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
fstat64(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
#else
fstat(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
@@ -323,7 +323,7 @@ init_hash(hashp, file, info)
/* Fix bucket size to be optimal for file system */
if (file != NULL) {
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
if (stat64(file, &statbuf))
#else
if (stat(file, &statbuf))
diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c
index f37393c..4cd3e8c 100644
--- a/newlib/libc/stdio/fseek.c
+++ b/newlib/libc/stdio/fseek.c
@@ -198,7 +198,7 @@ fseek (fp, offset, whence)
{
if (seekfn != __sseek
|| fp->_file < 0
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
|| _fstat64_r (ptr, fp->_file, &st)
#else
|| _fstat_r (ptr, fp->_file, &st)
@@ -225,7 +225,7 @@ fseek (fp, offset, whence)
target = offset;
else
{
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
if (_fstat64_r (ptr, fp->_file, &st))
#else
if (_fstat_r (ptr, fp->_file, &st))
diff --git a/newlib/libc/stdio/makebuf.c b/newlib/libc/stdio/makebuf.c
index afb1e2d..b18fb1c 100644
--- a/newlib/libc/stdio/makebuf.c
+++ b/newlib/libc/stdio/makebuf.c
@@ -47,7 +47,7 @@ __smakebuf (fp)
fp->_bf._size = 1;
return;
}
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
if (fp->_file < 0 || _fstat64_r (fp->_data, fp->_file, &st) < 0)
#else
if (fp->_file < 0 || _fstat_r (fp->_data, fp->_file, &st) < 0)
diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c
index 24bbf67..66030a3 100644
--- a/newlib/libc/stdio/mktemp.c
+++ b/newlib/libc/stdio/mktemp.c
@@ -132,7 +132,7 @@ _DEFUN (_gettemp, (ptr, path, doopen),
if (*trv == '/')
{
*trv = '\0';
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
if (_stat64_r (ptr, path, &sbuf))
#else
if (_stat_r (ptr, path, &sbuf))
@@ -162,7 +162,7 @@ _DEFUN (_gettemp, (ptr, path, doopen),
#endif
return 0;
}
-#ifdef __CYGWIN_USE_BIG_TYPES__
+#ifdef __USE_INTERNAL_STAT64
else if (_stat64_r (ptr, path, &sbuf))
#else
else if (_stat_r (ptr, path, &sbuf))