mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
Update.
1998-12-13 Ulrich Drepper <drepper@cygnus.com> * sysdeps/posix/tempname.c: Use __xstat instead of __stat. * sysdeps/unix/grantpt.c: Likewise. * sysdeps/unix/sysv/linux/ptsname.c: Likewise. * sysvipc/ftok.c: Likewise. Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
This commit is contained in:
parent
3bb266e010
commit
550be6cdb0
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-13 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* sysdeps/posix/tempname.c: Use __xstat instead of __stat.
|
||||||
|
* sysdeps/unix/grantpt.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/ptsname.c: Likewise.
|
||||||
|
* sysvipc/ftok.c: Likewise.
|
||||||
|
Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
|
||||||
|
|
||||||
1998-12-13 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
1998-12-13 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||||
|
|
||||||
* sysdeps/alpha/fpu/fsetexcptflg.c: Avoid -Wparentheses warning.
|
* sysdeps/alpha/fpu/fsetexcptflg.c: Avoid -Wparentheses warning.
|
||||||
|
@ -33,7 +33,7 @@ static int
|
|||||||
direxists (const char *dir)
|
direxists (const char *dir)
|
||||||
{
|
{
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
return __stat (dir, &buf) == 0 && S_ISDIR (buf.st_mode);
|
return __xstat (_STAT_VER, dir, &buf) == 0 && S_ISDIR (buf.st_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Path search algorithm, for tmpnam, tmpfile, etc. If DIR is
|
/* Path search algorithm, for tmpnam, tmpfile, etc. If DIR is
|
||||||
@ -161,7 +161,7 @@ __gen_tempname (char *tmpl, int openit, int largefile)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (__stat (tmpl, &st) < 0)
|
if (__xstat (_STAT_VER, tmpl, &st) < 0)
|
||||||
{
|
{
|
||||||
if (errno == ENOENT)
|
if (errno == ENOENT)
|
||||||
{
|
{
|
||||||
|
@ -109,7 +109,7 @@ grantpt (int fd)
|
|||||||
if (pts_name (fd, &buf, sizeof (_buf)))
|
if (pts_name (fd, &buf, sizeof (_buf)))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (__stat (buf, &st) < 0)
|
if (__xstat (_STAT_VER, buf, &st) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
/* Make sure that we own the device. */
|
/* Make sure that we own the device. */
|
||||||
|
@ -123,7 +123,7 @@ __ptsname_r (int fd, char *buf, size_t buflen)
|
|||||||
p[2] = '\0';
|
p[2] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (__stat (buf, &st) < 0)
|
if (__xstat (_STAT_VER, buf, &st) < 0)
|
||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
__set_errno (save_errno);
|
__set_errno (save_errno);
|
||||||
|
@ -28,7 +28,7 @@ ftok (pathname, proj_id)
|
|||||||
struct stat st;
|
struct stat st;
|
||||||
key_t key;
|
key_t key;
|
||||||
|
|
||||||
if (__stat (pathname, &st) < 0)
|
if (__xstat (_STAT_VER, pathname, &st) < 0)
|
||||||
return (key_t) -1;
|
return (key_t) -1;
|
||||||
|
|
||||||
key = ((st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16)
|
key = ((st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16)
|
||||||
|
Loading…
Reference in New Issue
Block a user