diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-04-21 14:50:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-04-21 14:50:33 +0000 |
commit | 47f13fd4ba484366bedadfc41b12b17a5c7c56d6 (patch) | |
tree | 1408bbf869a2c6887e354f82181abdd2afbc15a5 /stdlib/stdlib.h | |
parent | b4012b7542183a57cd92514e2359b8110609e52a (diff) | |
download | glibc-47f13fd4ba484366bedadfc41b12b17a5c7c56d6.zip glibc-47f13fd4ba484366bedadfc41b12b17a5c7c56d6.tar.gz glibc-47f13fd4ba484366bedadfc41b12b17a5c7c56d6.tar.bz2 |
Update.
1997-04-21 16:45 Ulrich Drepper <drepper@cygnus.com>
* stdlib/drand48.c: Cleanup namespace.
* stdlib/drand48_r.c: Cleanup namespace.
* stdlib/erand48.c: Cleanup namespace.
* stdlib/erand48_r.c: Cleanup namespace.
* stdlib/jrand48.c: Cleanup namespace.
* stdlib/jrand48_r.c: Cleanup namespace.
* stdlib/lrand48.c: Cleanup namespace.
* stdlib/lrand48_r.c: Cleanup namespace.
* stdlib/mrand48.c: Cleanup namespace.
* stdlib/mrand48_r.c: Cleanup namespace.
* stdlib/nrand48.c: Cleanup namespace.
* stdlib/nrand48_r.c: Cleanup namespace.
* stdlib/lcong48.c: Cleanup namespace.
* stdlib/lcong48_r.c: Cleanup namespace.
* stdlib/srand48.c: Cleanup namespace.
* stdlib/srand48_r.c: Cleanup namespace.
* stdlib/seed48.c: Cleanup namespace.
* stdlib/seed48_r.c: Cleanup namespace.
* stdlib/stdlib.h: Provide new prototypes.
Diffstat (limited to 'stdlib/stdlib.h')
-rw-r--r-- | stdlib/stdlib.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 4e60201..98ed889 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -211,7 +211,7 @@ extern __inline int atoi (__const char *__nptr) extern __inline long int atol (__const char *__nptr) { return strtol (__nptr, (char **) NULL, 10); } -#if defined __USE_ISOC9X && (defined __GNUC__ || defined __USE_MISC) +#if defined __USE_MISC || defined __USE_ISOC9X extern __inline long long int atoll (__const char *__nptr) { return strtoll (__nptr, (char **) NULL, 10); } #endif @@ -335,23 +335,39 @@ 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 __erand48_r __P ((unsigned short int __xsubi[3], + struct drand48_data *__buffer, double *__result)); extern int erand48_r __P ((unsigned short int __xsubi[3], struct drand48_data *__buffer, double *__result)); /* Return non-negative, long integer in [0,2^31). */ extern int lrand48_r __P ((struct drand48_data *__buffer, long int *__result)); +extern int __nrand48_r __P ((unsigned short int __xsubi[3], + struct drand48_data *__buffer, + long int *__result)); extern int nrand48_r __P ((unsigned short int __xsubi[3], struct drand48_data *__buffer, long int *__result)); /* Return signed, long integers in [-2^31,2^31). */ extern int mrand48_r __P ((struct drand48_data *__buffer, long int *__result)); +extern int __jrand48_r __P ((unsigned short int __xsubi[3], + struct drand48_data *__buffer, + long int *__result)); extern int jrand48_r __P ((unsigned short int __xsubi[3], struct drand48_data *__buffer, long int *__result)); /* Seed random number generator. */ +extern int __srand48_r __P ((long int __seedval, + struct drand48_data *__buffer)); extern int srand48_r __P ((long int __seedval, struct drand48_data *__buffer)); + +extern int __seed48_r __P ((unsigned short int __seed16v[3], + struct drand48_data *__buffer)); extern int seed48_r __P ((unsigned short int __seed16v[3], struct drand48_data *__buffer)); + +extern int __lcong48_r __P ((unsigned short int __param[7], + struct drand48_data *__buffer)); extern int lcong48_r __P ((unsigned short int __param[7], struct drand48_data *__buffer)); #endif /* Use misc. */ |