aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/tempname.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-01 02:26:05 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-01 02:26:05 +0000
commit8edf6e0d7e556fa80415ebd35da70ccf594b6373 (patch)
tree9d62f8c094e8fe32758f68a18845ef90850db924 /sysdeps/posix/tempname.c
parent3d784d830015dcb614bf2d154e726e67bd10ea32 (diff)
downloadglibc-8edf6e0d7e556fa80415ebd35da70ccf594b6373.tar
glibc-8edf6e0d7e556fa80415ebd35da70ccf594b6373.tar.gz
glibc-8edf6e0d7e556fa80415ebd35da70ccf594b6373.tar.bz2
glibc-8edf6e0d7e556fa80415ebd35da70ccf594b6373.zip
Update.
* inet/rcmd.c: Use *stat64 instead of *stat internally. * inet/ruserpass.c: Likewise. * intl/loadmsgcat.c: Likewise. * io/getdirname.c: Likewise. * locale/loadlocale.c: Likewise. * misc/getusershell.c: Likewise. * stdlib/canonicalize.c: Likewise. * sysdeps/posix/euidaccess.c: Likewise. * sysdeps/posix/isfdtype.c: Likewise. * sysdeps/posix/posix_fallocate.c: Likewise. * sysdeps/posix/tempname.c: Likewise. * sysdeps/unix/grantpt.c: Likewise. * sysdeps/unix/opendir.c: Likewise. * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise. * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise. * sysdeps/unix/sysv/linux/ptsname.c: Likewise. * sysdeps/unix/sysv/linux/statvfs.c: Likewise. * sysdeps/unix/sysv/linux/ttyname.c: Likewise. * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise. * sysvipc/ftok.c: Likewise. * time/getdate.c: Likewise. * time/getdate.c: Add extra access test. 2000-08-31 Ulrich Drepper <drepper@redhat.com>
Diffstat (limited to 'sysdeps/posix/tempname.c')
-rw-r--r--sysdeps/posix/tempname.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c
index 536225e957..fe386020a3 100644
--- a/sysdeps/posix/tempname.c
+++ b/sysdeps/posix/tempname.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -33,8 +33,8 @@
static int
direxists (const char *dir)
{
- struct stat buf;
- return __xstat (_STAT_VER, dir, &buf) == 0 && S_ISDIR (buf.st_mode);
+ struct stat64 buf;
+ return __xstat64 (_STAT_VER, dir, &buf) == 0 && S_ISDIR (buf.st_mode);
}
/* Path search algorithm, for tmpnam, tmpfile, etc. If DIR is
@@ -127,7 +127,7 @@ __gen_tempname (char *tmpl, int kind)
struct timeval tv;
int count, fd = -1;
int save_errno = errno;
- struct stat st;
+ struct stat64 st;
len = strlen (tmpl);
if (len < 6 || strcmp (&tmpl[len - 6], "XXXXXX"))
@@ -179,7 +179,7 @@ __gen_tempname (char *tmpl, int kind)
succeeds if __xstat fails because the name does not exist.
Note the continue to bypass the common logic at the bottom
of the loop. */
- if (__xstat (_STAT_VER, tmpl, &st) < 0)
+ if (__xstat64 (_STAT_VER, tmpl, &st) < 0)
{
if (errno == ENOENT)
{