diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-09-07 22:33:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-07 22:33:37 +0000 |
commit | f377d02227448a6f0d97eaf48ba60483c2f27e98 (patch) | |
tree | dc3fa6ae400c4a26e8757fc1bfadce3ab5f4d018 /io/sys/stat.h | |
parent | 36ccb375a7f4db3ef66a0115961cfef23befa0e6 (diff) | |
download | glibc-f377d02227448a6f0d97eaf48ba60483c2f27e98.tar.gz glibc-f377d02227448a6f0d97eaf48ba60483c2f27e98.tar.xz glibc-f377d02227448a6f0d97eaf48ba60483c2f27e98.zip |
Update.
* include/atomic.h: Define atomic_increment_val, atomic_decrement_val, and atomic_dealy is not already defined. * sysdeps/i386/i486/bits/atomic.h: Define atomic_delay. * sysdeps/x86_64/bits/atomic.h: Likewise. * miscd/sys/cdefs.h (__NTH): New macro. (__THROW): Define using nothrow attribute for C code and gcc >= 3.2. (__REDIRECT_NTH): New macro. * argp/argp.h: Use __NTH and __REDIRECT_NTH where necessary. * ctype/ctype.h: Likewise. * dirent/dirent.h: Likewise. * io/fcntl.h: Likewise. * io/sys/sendfile.h: Likewise. * io/sys/stat.h: Likewise. * io/sys/statfs.h: Likewise. * io/sys/statvfs.h: Likewise. * libio/bits/stdio.h: Likewise. * misc/sys/mman.h: Likewise. * posix/unistd.h: Likewise. * resource/sys/resource.h: Likewise. * rt/aio.h: Likewise. * signal/signal.h: Likewise. * stdlib/stdlib.h: Likewise. * string/argz.h: Likewise. * string/string.h: Likewise. * sysdeps/generic/inttypes.h: Likewise. * sysdeps/i386/fpu/bits/mathinline.h: Likewise. * sysdeps/powerpc/fpu/bits/mathinline.h: Likewise. * sysdeps/s390/fpu/bits/mathinline.h: Likewise. * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise. * sysdeps/unix/sysv/linux/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/bits/sys/sysmacros.h: Likewise. * wcsmbs/wchar.h: Likewise. * sysdeps/generic/glob.c: Use __PMT isntead of __P where appropriate. * resolv/gethnamaddr.c (getanswer): Remove __P use in variable definition. * io/sys/poll.h: Remove __THROW from poll prototype, it's a cancellation point.
Diffstat (limited to 'io/sys/stat.h')
-rw-r--r-- | io/sys/stat.h | 63 |
1 files changed, 30 insertions, 33 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h index e71006a43d..abe68860cb 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -211,12 +211,10 @@ extern int stat (__const char *__restrict __file, that file descriptor FD is open on and put them in BUF. */ extern int fstat (int __fd, struct stat *__buf) __THROW; #else -# ifdef __REDIRECT -extern int __REDIRECT (stat, - (__const char *__restrict __file, - struct stat *__restrict __buf) __THROW, - stat64); -extern int __REDIRECT (fstat, (int __fd, struct stat *__buf) __THROW, fstat64); +# ifdef __REDIRECT_NTH +extern int __REDIRECT_NTH (stat, (__const char *__restrict __file, + struct stat *__restrict __buf), stat64); +extern int __REDIRECT_NTH (fstat, (int __fd, struct stat *__buf), fstat64); # else # define stat stat64 # define fstat fstat64 @@ -235,11 +233,10 @@ extern int fstat64 (int __fd, struct stat64 *__buf) __THROW; extern int lstat (__const char *__restrict __file, struct stat *__restrict __buf) __THROW; # else -# ifdef __REDIRECT -extern int __REDIRECT (lstat, - (__const char *__restrict __file, - struct stat *__restrict __buf) __THROW, - lstat64); +# ifdef __REDIRECT_NTH +extern int __REDIRECT_NTH (lstat, + (__const char *__restrict __file, + struct stat *__restrict __buf), lstat64); # else # define lstat lstat64 # endif @@ -322,15 +319,13 @@ extern int __xstat (int __ver, __const char *__filename, extern int __lxstat (int __ver, __const char *__filename, struct stat *__stat_buf) __THROW; #else -# ifdef __REDIRECT -extern int __REDIRECT (__fxstat, (int __ver, int __fildes, - struct stat *__stat_buf) __THROW, - __fxstat64); -extern int __REDIRECT (__xstat, (int __ver, __const char *__filename, - struct stat *__stat_buf) __THROW, __xstat64); -extern int __REDIRECT (__lxstat, (int __ver, __const char *__filename, - struct stat *__stat_buf) __THROW, - __lxstat64); +# ifdef __REDIRECT_NTH +extern int __REDIRECT_NTH (__fxstat, (int __ver, int __fildes, + struct stat *__stat_buf), __fxstat64); +extern int __REDIRECT_NTH (__xstat, (int __ver, __const char *__filename, + struct stat *__stat_buf), __xstat64); +extern int __REDIRECT_NTH (__lxstat, (int __ver, __const char *__filename, + struct stat *__stat_buf), __lxstat64); # else # define __fxstat __fxstat64 @@ -353,28 +348,29 @@ extern int __xmknod (int __ver, __const char *__path, __mode_t __mode, #if defined __GNUC__ && __GNUC__ >= 2 /* Inlined versions of the real stat and mknod functions. */ -extern __inline__ int stat (__const char *__path, - struct stat *__statbuf) __THROW +extern __inline__ int +__NTH (stat (__const char *__path, struct stat *__statbuf)) { return __xstat (_STAT_VER, __path, __statbuf); } # if defined __USE_BSD || defined __USE_XOPEN_EXTENDED -extern __inline__ int lstat (__const char *__path, - struct stat *__statbuf) __THROW +extern __inline__ int +__NTH (lstat (__const char *__path, struct stat *__statbuf)) { return __lxstat (_STAT_VER, __path, __statbuf); } # endif -extern __inline__ int fstat (int __fd, struct stat *__statbuf) __THROW +extern __inline__ int +__NTH (fstat (int __fd, struct stat *__statbuf)) { return __fxstat (_STAT_VER, __fd, __statbuf); } # if defined __USE_MISC || defined __USE_BSD -extern __inline__ int mknod (__const char *__path, __mode_t __mode, - __dev_t __dev) __THROW +extern __inline__ int +__NTH (mknod (__const char *__path, __mode_t __mode, __dev_t __dev)) { return __xmknod (_MKNOD_VER, __path, __mode, &__dev); } @@ -382,22 +378,23 @@ extern __inline__ int mknod (__const char *__path, __mode_t __mode, # if defined __USE_LARGEFILE64 \ && (! defined __USE_FILE_OFFSET64 \ - || (defined __REDIRECT && defined __OPTIMIZE__)) -extern __inline__ int stat64 (__const char *__path, - struct stat64 *__statbuf) __THROW + || (defined __REDIRECT_NTH && defined __OPTIMIZE__)) +extern __inline__ int +__NTH (stat64 (__const char *__path, struct stat64 *__statbuf)) { return __xstat64 (_STAT_VER, __path, __statbuf); } # if defined __USE_BSD || defined __USE_XOPEN_EXTENDED -extern __inline__ int lstat64 (__const char *__path, - struct stat64 *__statbuf) __THROW +extern __inline__ int +__NTH (lstat64 (__const char *__path, struct stat64 *__statbuf)) { return __lxstat64 (_STAT_VER, __path, __statbuf); } # endif -extern __inline__ int fstat64 (int __fd, struct stat64 *__statbuf) __THROW +extern __inline__ int +__NTH (fstat64 (int __fd, struct stat64 *__statbuf)) { return __fxstat64 (_STAT_VER, __fd, __statbuf); } |