summaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-04 20:58:15 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-04 20:58:15 +0000
commita6ff34d7b0b59a1ad501dca25558ba21f6e539bb (patch)
treeeabe576c69bb878112d903d1e08836bab8c8aed1 /stdlib
parentfcb7e0a5f7722609d78739d8ef590fcfd2ed2109 (diff)
downloadglibc-a6ff34d7b0b59a1ad501dca25558ba21f6e539bb.tar.gz
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 'stdlib')
-rw-r--r--stdlib/monetary.h11
-rw-r--r--stdlib/stdlib.h76
2 files changed, 52 insertions, 35 deletions
diff --git a/stdlib/monetary.h b/stdlib/monetary.h
index aa9aa63986..d0dcaadfd7 100644
--- a/stdlib/monetary.h
+++ b/stdlib/monetary.h
@@ -1,5 +1,5 @@
/* Header file for monetary value formatting functions.
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998 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
@@ -28,15 +28,16 @@
__BEGIN_DECLS
/* Formatting a monetary value according to the current locale. */
-extern ssize_t strfmon __P ((char *__s, size_t __maxsize,
- __const char *__format, ...));
+extern ssize_t strfmon __P ((char *__restrict __s, size_t __maxsize,
+ __const char *__restrict __format, ...));
#ifdef __USE_GNU
# include <xlocale.h>
/* Formatting a monetary value according to the current locale. */
-extern ssize_t __strfmon_l __P ((char *__s, size_t __maxsize, __locale_t loc,
- __const char *__format, ...));
+extern ssize_t __strfmon_l __P ((char *__restrict __s, size_t __maxsize,
+ __locale_t loc,
+ __const char *__restrict __format, ...));
#endif
__END_DECLS
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 0b4120967e..355c649652 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -372,14 +372,18 @@ struct random_data
int32_t *end_ptr; /* Pointer behind state table. */
};
-extern int random_r __P ((struct random_data *__buf, int32_t *__result));
+extern int random_r __P ((struct random_data *__restrict __buf,
+ int32_t *__restrict __result));
extern int srandom_r __P ((unsigned int __seed, struct random_data *__buf));
-extern int initstate_r __P ((unsigned int __seed, __ptr_t __statebuf,
- size_t __statelen, struct random_data *__buf));
+extern int initstate_r __P ((unsigned int __seed,
+ __ptr_t __restrict __statebuf,
+ size_t __statelen,
+ struct random_data *__restrict __buf));
-extern int setstate_r __P ((__ptr_t __statebuf, struct random_data *__buf));
+extern int setstate_r __P ((__ptr_t __restrict __statebuf,
+ struct random_data *__restrict __buf));
# endif /* Use misc. */
#endif /* Use SVID || extended X/Open. */
@@ -427,19 +431,25 @@ struct drand48_data
# ifdef __USE_MISC
/* Return non-negative, double-precision floating-point value in [0.0,1.0). */
-extern int drand48_r __P ((struct drand48_data *__buffer, double *__result));
+extern int drand48_r __P ((struct drand48_data *__restrict __buffer,
+ double *__restrict __result));
extern int erand48_r __P ((unsigned short int __xsubi[3],
- struct drand48_data *__buffer, double *__result));
+ struct drand48_data *__restrict __buffer,
+ double *__restrict __result));
/* Return non-negative, long integer in [0,2^31). */
-extern int lrand48_r __P ((struct drand48_data *__buffer, long int *__result));
+extern int lrand48_r __P ((struct drand48_data *__restrict __buffer,
+ long int *__restrict __result));
extern int nrand48_r __P ((unsigned short int __xsubi[3],
- struct drand48_data *__buffer, long int *__result));
+ struct drand48_data *__restrict __buffer,
+ long int *__restrict __result));
/* Return signed, long integers in [-2^31,2^31). */
-extern int mrand48_r __P ((struct drand48_data *__buffer, long int *__result));
+extern int mrand48_r __P ((struct drand48_data *__restrict __buffer,
+ long int *__restrict __result));
extern int jrand48_r __P ((unsigned short int __xsubi[3],
- struct drand48_data *__buffer, long int *__result));
+ struct drand48_data *__restrict __buffer,
+ long int *__restrict __result));
/* Seed random number generator. */
extern int srand48_r __P ((long int __seedval, struct drand48_data *__buffer));
@@ -572,7 +582,8 @@ extern char *canonicalize_file_name __P ((__const char *__name));
name is PATH_MAX chars or more, returns null with `errno' set to
ENAMETOOLONG; if the name fits in fewer than PATH_MAX chars, returns the
name in RESOLVED. */
-extern char *realpath __P ((__const char *__name, char *__resolved));
+extern char *realpath __P ((__const char *__restrict __name,
+ char *__restrict __resolved));
#endif
@@ -627,14 +638,14 @@ __extension__ extern lldiv_t lldiv __P ((long long int __numer,
/* Convert VALUE to a string with NDIGIT digits and return a pointer to
this. Set *DECPT with the position of the decimal character and *SIGN
with the sign of the number. */
-extern char *ecvt __P ((double __value, int __ndigit, int *__decpt,
- int *__sign));
+extern char *ecvt __P ((double __value, int __ndigit, int *__restrict __decpt,
+ int *__restrict __sign));
/* Convert VALUE to a string rounded to NDIGIT decimal digits. Set *DECPT
with the position of the decimal character and *SIGN with the sign of
the number. */
-extern char *fcvt __P ((double __value, int __ndigit, int *__decpt,
- int *__sign));
+extern char *fcvt __P ((double __value, int __ndigit, int *__restrict __decpt,
+ int *__restrict __sign));
/* If possible convert VALUE to a string with NDIGIT significant digits.
Otherwise use exponential representation. The resulting string will
@@ -642,25 +653,29 @@ extern char *fcvt __P ((double __value, int __ndigit, int *__decpt,
extern char *gcvt __P ((double __value, int __ndigit, char *__buf));
/* Long double versions of above functions. */
-extern char *qecvt __P ((__long_double_t __value, int __ndigit, int *__decpt,
- int *__sign));
-extern char *qfcvt __P ((__long_double_t __value, int __ndigit, int *__decpt,
- int *__sign));
+extern char *qecvt __P ((__long_double_t __value, int __ndigit,
+ int *__restrict __decpt, int *__restrict __sign));
+extern char *qfcvt __P ((__long_double_t __value, int __ndigit,
+ int *__restrict __decpt, int *__restrict __sign));
extern char *qgcvt __P ((__long_double_t __value, int __ndigit, char *__buf));
# ifdef __USE_MISC
/* Reentrant version of the functions above which provide their own
buffers. */
-extern int ecvt_r __P ((double __value, int __ndigit, int *__decpt,
- int *__sign, char *__buf, size_t __len));
-extern int fcvt_r __P ((double __value, int __ndigit, int *__decpt,
- int *__sign, char *__buf, size_t __len));
-
-extern int qecvt_r __P ((__long_double_t __value, int __ndigit, int *__decpt,
- int *__sign, char *__buf, size_t __len));
-extern int qfcvt_r __P ((__long_double_t __value, int __ndigit, int *__decpt,
- int *__sign, char *__buf, size_t __len));
+extern int ecvt_r __P ((double __value, int __ndigit, int *__restrict __decpt,
+ int *__restrict __sign, char *__restrict __buf,
+ size_t __len));
+extern int fcvt_r __P ((double __value, int __ndigit, int *__restrict __decpt,
+ int *__restrict __sign, char *__restrict __buf,
+ size_t __len));
+
+extern int qecvt_r __P ((__long_double_t __value, int __ndigit,
+ int *__restrict __decpt, int *__restrict __sign,
+ char *__restrict __buf, size_t __len));
+extern int qfcvt_r __P ((__long_double_t __value, int __ndigit,
+ int *__restrict __decpt, int *__restrict __sign,
+ char *__restrict __buf, size_t __len));
# endif /* misc */
#endif /* use MISC || use X/Open Unix */
@@ -701,8 +716,9 @@ extern int rpmatch __P ((__const char *__response));
not part of TOKENS return in *VALUEP beginning of unknown
suboption. On exit *OPTIONP is set to the beginning of the next
token or at the terminating NUL character. */
-extern int getsubopt __P ((char **__optionp, __const char *__const *__tokens,
- char **__valuep));
+extern int getsubopt __P ((char **__restrict __optionp,
+ __const char *__const *__restrict __tokens,
+ char **__restrict __valuep));
#endif