From 99e46354d96d9dc70c7b5ae7ed1a3d7ff0dbb77f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 13 Oct 1998 15:12:27 +0000 Subject: Update. 1998-10-13 Ulrich Drepper * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include string.h to get memcpy prototype and NULL definition. 1998-10-12 Andreas Schwab * misc/sys/cdefs.h (__THROW): New macro. * argp/argp.h: Use it to replace the kludgey __P in inline function definitions. * sysdeps/unix/sysv/linux/bits/socket.h: Likewise. * stdlib/stdlib.h: Likewise. * wcsmbs/wchar.h: Likewise. * libio/stdio.h: Likewise. * stdio/stdio.h: Likewise. * sysdeps/wordsize-64/inttypes.h: Likewise. * sysdeps/wordsize-32/inttypes.h: Likewise. * string/argz.h: Likewise. * io/sys/stat.h: Likewise. 1998-10-12 Andreas Schwab * Rules (stdio_lim): New variable. ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend on Rules and config.make, use $(move-if-change) to avoid unnessary recompilations, and cleanup command. (common-generated): Add bits/stdio_lim.st. --- io/sys/stat.h | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'io/sys/stat.h') diff --git a/io/sys/stat.h b/io/sys/stat.h index 54d5fc7..8269c4b 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -310,53 +310,51 @@ extern int __xmknod __P ((int __ver, __const char *__path, __mode_t __mode, __dev_t *__dev)); #if defined __GNUC__ && __GNUC__ >= 2 -/* Inlined versions of the real stat and mknod functions. +/* Inlined versions of the real stat and mknod functions. */ - We have to use __P here since we need definitions matching the - declarations above. */ - -extern __inline__ int stat __P ((__const char *__path, struct stat *__statbuf)) +extern __inline__ int stat (__const char *__path, + struct stat *__statbuf) __THROW { return __xstat (_STAT_VER, __path, __statbuf); } # if defined __USE_BSD || defined __USE_XOPEN_EXTENDED -extern __inline__ int lstat __P ((__const char *__path, - struct stat *__statbuf)) +extern __inline__ int lstat (__const char *__path, + struct stat *__statbuf) __THROW { return __lxstat (_STAT_VER, __path, __statbuf); } # endif -extern __inline__ int fstat __P ((int __fd, struct stat *__statbuf)) +extern __inline__ int fstat (int __fd, struct stat *__statbuf) __THROW { return __fxstat (_STAT_VER, __fd, __statbuf); } # if defined __USE_MISC || defined __USE_BSD -extern __inline__ int mknod __P ((__const char *__path, __mode_t __mode, - __dev_t __dev)) +extern __inline__ int mknod (__const char *__path, __mode_t __mode, + __dev_t __dev) __THROW { return __xmknod (_MKNOD_VER, __path, __mode, &__dev); } # endif # ifdef __USE_LARGEFILE64 -extern __inline__ int stat64 __P ((__const char *__path, - struct stat64 *__statbuf)) +extern __inline__ int stat64 (__const char *__path, + struct stat64 *__statbuf) __THROW { return __xstat64 (_STAT_VER, __path, __statbuf); } # if defined __USE_BSD || defined __USE_XOPEN_EXTENDED -extern __inline__ int lstat64 __P ((__const char *__path, - struct stat64 *__statbuf)) +extern __inline__ int lstat64 (__const char *__path, + struct stat64 *__statbuf) __THROW { return __lxstat64 (_STAT_VER, __path, __statbuf); } # endif -extern __inline__ int fstat64 __P ((int __fd, struct stat64 *__statbuf)) +extern __inline__ int fstat64 (int __fd, struct stat64 *__statbuf) __THROW { return __fxstat64 (_STAT_VER, __fd, __statbuf); } -- cgit v1.1