* 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.
This commit is contained in:
parent
878e4ecbe8
commit
837e070f31
@ -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>
|
2003-05-12 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
|
* libc/include/stdio.h: Change one __CYGWIN__ to __CYGWIN32__.
|
||||||
|
@ -98,7 +98,7 @@ __part_load_locale(const char *name,
|
|||||||
fd = open(filename, O_RDONLY);
|
fd = open(filename, O_RDONLY);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
goto no_locale;
|
goto no_locale;
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
if (fstat64(fd, &st) != 0)
|
if (fstat64(fd, &st) != 0)
|
||||||
#else
|
#else
|
||||||
if (fstat(fd, &st) != 0)
|
if (fstat(fd, &st) != 0)
|
||||||
|
@ -129,7 +129,7 @@ __hash_open(file, flags, mode, info, dflags)
|
|||||||
|
|
||||||
new_table = 0;
|
new_table = 0;
|
||||||
if (!file || (flags & O_TRUNC) ||
|
if (!file || (flags & O_TRUNC) ||
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
(stat64(file, &statbuf) && (errno == ENOENT))) {
|
(stat64(file, &statbuf) && (errno == ENOENT))) {
|
||||||
#else
|
#else
|
||||||
(stat(file, &statbuf) && (errno == ENOENT))) {
|
(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
|
/* if the .db file is empty, and we had permission to create
|
||||||
a new .db file, then reinitialize the database */
|
a new .db file, then reinitialize the database */
|
||||||
if ((flags & O_CREAT) &&
|
if ((flags & O_CREAT) &&
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
fstat64(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
|
fstat64(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
|
||||||
#else
|
#else
|
||||||
fstat(hashp->fp, &statbuf) == 0 && statbuf.st_size == 0)
|
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 */
|
/* Fix bucket size to be optimal for file system */
|
||||||
if (file != NULL) {
|
if (file != NULL) {
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
if (stat64(file, &statbuf))
|
if (stat64(file, &statbuf))
|
||||||
#else
|
#else
|
||||||
if (stat(file, &statbuf))
|
if (stat(file, &statbuf))
|
||||||
|
@ -198,7 +198,7 @@ fseek (fp, offset, whence)
|
|||||||
{
|
{
|
||||||
if (seekfn != __sseek
|
if (seekfn != __sseek
|
||||||
|| fp->_file < 0
|
|| fp->_file < 0
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
|| _fstat64_r (ptr, fp->_file, &st)
|
|| _fstat64_r (ptr, fp->_file, &st)
|
||||||
#else
|
#else
|
||||||
|| _fstat_r (ptr, fp->_file, &st)
|
|| _fstat_r (ptr, fp->_file, &st)
|
||||||
@ -225,7 +225,7 @@ fseek (fp, offset, whence)
|
|||||||
target = offset;
|
target = offset;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
if (_fstat64_r (ptr, fp->_file, &st))
|
if (_fstat64_r (ptr, fp->_file, &st))
|
||||||
#else
|
#else
|
||||||
if (_fstat_r (ptr, fp->_file, &st))
|
if (_fstat_r (ptr, fp->_file, &st))
|
||||||
|
@ -47,7 +47,7 @@ __smakebuf (fp)
|
|||||||
fp->_bf._size = 1;
|
fp->_bf._size = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
if (fp->_file < 0 || _fstat64_r (fp->_data, fp->_file, &st) < 0)
|
if (fp->_file < 0 || _fstat64_r (fp->_data, fp->_file, &st) < 0)
|
||||||
#else
|
#else
|
||||||
if (fp->_file < 0 || _fstat_r (fp->_data, fp->_file, &st) < 0)
|
if (fp->_file < 0 || _fstat_r (fp->_data, fp->_file, &st) < 0)
|
||||||
|
@ -132,7 +132,7 @@ _DEFUN (_gettemp, (ptr, path, doopen),
|
|||||||
if (*trv == '/')
|
if (*trv == '/')
|
||||||
{
|
{
|
||||||
*trv = '\0';
|
*trv = '\0';
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
if (_stat64_r (ptr, path, &sbuf))
|
if (_stat64_r (ptr, path, &sbuf))
|
||||||
#else
|
#else
|
||||||
if (_stat_r (ptr, path, &sbuf))
|
if (_stat_r (ptr, path, &sbuf))
|
||||||
@ -162,7 +162,7 @@ _DEFUN (_gettemp, (ptr, path, doopen),
|
|||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#ifdef __CYGWIN_USE_BIG_TYPES__
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
else if (_stat64_r (ptr, path, &sbuf))
|
else if (_stat64_r (ptr, path, &sbuf))
|
||||||
#else
|
#else
|
||||||
else if (_stat_r (ptr, path, &sbuf))
|
else if (_stat_r (ptr, path, &sbuf))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user