diff options
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/euidaccess.c | 6 | ||||
-rw-r--r-- | sysdeps/posix/isfdtype.c | 6 | ||||
-rw-r--r-- | sysdeps/posix/posix_fallocate.c | 4 | ||||
-rw-r--r-- | sysdeps/posix/tempname.c | 10 |
4 files changed, 13 insertions, 13 deletions
diff --git a/sysdeps/posix/euidaccess.c b/sysdeps/posix/euidaccess.c index e220586..7f228b5 100644 --- a/sysdeps/posix/euidaccess.c +++ b/sysdeps/posix/euidaccess.c @@ -1,5 +1,5 @@ /* Check if effective user id can access file - Copyright (C) 1990, 91, 95, 96, 97, 98, 99 Free Software Foundation, Inc. + Copyright (C) 1990,91,95,96,97,98,99,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 @@ -133,7 +133,7 @@ euidaccess (path, mode) const char *path; int mode; { - struct stat stats; + struct stat64 stats; int granted; #ifdef _LIBC @@ -155,7 +155,7 @@ euidaccess (path, mode) return access (path, mode); #endif - if (stat (path, &stats)) + if (stat64 (path, &stats)) return -1; mode &= (X_OK | W_OK | R_OK); /* Clear any bogus bits. */ diff --git a/sysdeps/posix/isfdtype.c b/sysdeps/posix/isfdtype.c index ec4568e..dc19d99 100644 --- a/sysdeps/posix/isfdtype.c +++ b/sysdeps/posix/isfdtype.c @@ -1,5 +1,5 @@ /* Determine whether descriptor has given property. - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 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 @@ -25,12 +25,12 @@ int isfdtype (int fildes, int fdtype) { - struct stat st; + struct stat64 st; int result; { int save_error = errno; - result = fstat (fildes, &st); + result = fstat64 (fildes, &st); __set_errno (save_error); } diff --git a/sysdeps/posix/posix_fallocate.c b/sysdeps/posix/posix_fallocate.c index 46ce06f..add1b3b 100644 --- a/sysdeps/posix/posix_fallocate.c +++ b/sysdeps/posix/posix_fallocate.c @@ -27,7 +27,7 @@ int posix_fallocate (int fd, __off_t offset, size_t len) { - struct stat st; + struct stat64 st; struct statfs f; size_t step; @@ -40,7 +40,7 @@ posix_fallocate (int fd, __off_t offset, size_t len) /* First thing we have to make sure is that this is really a regular file. */ - if (__fxstat (_STAT_VER, fd, &st) != 0) + if (__fxstat64 (_STAT_VER, fd, &st) != 0) return EBADF; if (S_ISFIFO (st.st_mode)) return ESPIPE; diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c index 536225e..fe38602 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) { |