diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-12-04 20:58:15 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-12-04 20:58:15 +0000 |
commit | a6ff34d7b0b59a1ad501dca25558ba21f6e539bb (patch) | |
tree | eabe576c69bb878112d903d1e08836bab8c8aed1 /misc | |
parent | fcb7e0a5f7722609d78739d8ef590fcfd2ed2109 (diff) | |
download | glibc-a6ff34d7b0b59a1ad501dca25558ba21f6e539bb.zip glibc-a6ff34d7b0b59a1ad501dca25558ba21f6e539bb.tar.gz glibc-a6ff34d7b0b59a1ad501dca25558ba21f6e539bb.tar.bz2 |
Update.
1998-12-04 Ulrich Drepper <drepper@cygnus.com>
* argp/argp.h: Add __retrict.
* dirent/dirent.h: Likewise.
* elf/dlfcn.h: Likewise.
* grp/grp.h: Likewise.
* iconv/iconv.h: Likewise.
* inet/aliases.h: Likewise.
* libio/libio.h: Likewise.
* libio/stdio.h: Likewise.
* locale/locale.h: Likewise.
* misc/mntent.h: Likewise.
* posix/wordexp.h: Likewise.
* pwd/pwd.h: Likewise.
* resolv/netdb.h: Likewise.
* rt/aio.h: Likewise.
* stdio-common/printf.h: Likewise.
* stdlib/monetary.h: Likewise.
* stdlib/stdlib.h: Likewise.
* string/argz.h: Likewise.
* string/envz.h: Likewise.
* string/string.h: Likewise.
* time/time.h: Likewise.
1998-12-04 Zack Weinberg <zack@rabi.phys.columbia.edu>
* misc/sys/cdefs.h: Only include features.h if _FEATURES_H isn't
defined. gcc's redundant include optimizer isn't clever enough to
prevent a reinclusion here.
Define __restrict to the empty string only if not GCC or
GCC version less than 2.92.
1998-12-03 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* sysdeps/unix/sysv/linux/configure.in: Fix last change.
1998-12-03 Mark Kettenis <kettenis@phys.uva.nl>
* time/strptime.c (strptime_internal): Make use of `%C' format
specifier if it is seen together with the `%y' specifier.
1998-12-04 Ulrich Drepper <drepper@cygnus.com>
* po/sk.po: New file.
1998-12-03 Scott Bambrough <scottb@corelcomputer.com>
* sysdeps/arm/dl-machine.h (dl_start_user): Incorrect address
for _dl_main_searchlist passed to _dl_init_next.
1998-12-02 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* math/libm-test.c: Expand literal tabs in strings. Normalize
whitespace.
1998-12-02 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* sysdeps/unix/sysv/linux/sys/fsuid.h: Fix spelling.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/mntent.h | 10 | ||||
-rw-r--r-- | misc/sys/cdefs.h | 12 |
2 files changed, 15 insertions, 7 deletions
diff --git a/misc/mntent.h b/misc/mntent.h index f7101c1..6acd532 100644 --- a/misc/mntent.h +++ b/misc/mntent.h @@ -73,14 +73,16 @@ extern struct mntent *getmntent __P ((FILE *__stream)); #ifdef __USE_MISC /* Reentrant version of the above function. */ -extern struct mntent *getmntent_r __P ((FILE *__stream, - struct mntent *__result, - char *__buffer, int __bufsize)); +extern struct mntent *getmntent_r __P ((FILE *__restrict __stream, + struct mntent *__restrict __result, + char *__restrict __buffer, + int __bufsize)); #endif /* Write the mount table entry described by MNT to STREAM. Return zero on success, nonzero on failure. */ -extern int addmntent __P ((FILE *__stream, __const struct mntent *__mnt)); +extern int addmntent __P ((FILE *__restrict __stream, + __const struct mntent *__restrict __mnt)); /* Close a stream opened with `setmntent'. */ extern int endmntent __P ((FILE *__stream)); diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 539cbbc..24d5f31 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -19,7 +19,10 @@ #ifndef _SYS_CDEFS_H #define _SYS_CDEFS_H 1 +/* We are almost always included from features.h. */ +#ifndef _FEATURES_H #include <features.h> +#endif /* Some user header file might have defined this before. */ #undef __P @@ -152,8 +155,11 @@ #endif -/* No current version of gcc knows the `restrict' keyword. Define it - for now unconditionally to the empty string. */ -#define __restrict +/* __restrict is known in EGCS 1.2 and above. */ +#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 92) + +# define __restrict /* Ignore */ + +#endif #endif /* sys/cdefs.h */ |