* newlib/libc/search/hash.c: Revert patch from 2012-08-08.
This commit is contained in:
parent
7eb805f68d
commit
ffd672bec7
|
@ -1,3 +1,7 @@
|
||||||
|
2013-04-19 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
|
* newlib/libc/search/hash.c: Revert patch from 2012-08-08.
|
||||||
|
|
||||||
2013-04-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
2013-04-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
* libc/sys/rtems/sys/queue.h: Delete file.
|
* libc/sys/rtems/sys/queue.h: Delete file.
|
||||||
|
|
|
@ -143,7 +143,7 @@ _DEFUN(__hash_open, (file, flags, mode, info, dflags),
|
||||||
#ifdef __USE_INTERNAL_STAT64
|
#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))) {
|
||||||
#endif
|
#endif
|
||||||
if (errno == ENOENT)
|
if (errno == ENOENT)
|
||||||
errno = 0; /* Just in case someone looks at errno */
|
errno = 0; /* Just in case someone looks at errno */
|
||||||
|
@ -159,7 +159,7 @@ _DEFUN(__hash_open, (file, flags, mode, info, dflags),
|
||||||
#ifdef __USE_INTERNAL_STAT64
|
#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)
|
||||||
#endif
|
#endif
|
||||||
new_table = 1;
|
new_table = 1;
|
||||||
|
|
||||||
|
@ -341,7 +341,7 @@ init_hash(hashp, file, info)
|
||||||
#ifdef __USE_INTERNAL_STAT64
|
#ifdef __USE_INTERNAL_STAT64
|
||||||
if (_stat64(file, &statbuf))
|
if (_stat64(file, &statbuf))
|
||||||
#else
|
#else
|
||||||
if (_stat(file, &statbuf))
|
if (stat(file, &statbuf))
|
||||||
#endif
|
#endif
|
||||||
return (NULL);
|
return (NULL);
|
||||||
hashp->BSIZE = statbuf.st_blksize;
|
hashp->BSIZE = statbuf.st_blksize;
|
||||||
|
|
Loading…
Reference in New Issue