stdlib.h: Remove *rand48_r methods.
These were declared in this header on BeOS, so we need to keep them around for ABI compatibility, but they are nonstandard and no other C library besides glibc appears to provide them at all (not even musl, and none of the BSDs.)
This commit is contained in:
@@ -31,14 +31,6 @@ struct random_data {
|
||||
int *end_ptr;
|
||||
};
|
||||
|
||||
struct drand48_data {
|
||||
unsigned short int x[3];
|
||||
unsigned short int a[3];
|
||||
unsigned short int c;
|
||||
unsigned short int old_x[3];
|
||||
int init;
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -126,21 +118,6 @@ extern void srand48(long int seed);
|
||||
extern unsigned short *seed48(unsigned short int seed16v[3]);
|
||||
extern void lcong48(unsigned short int param[7]);
|
||||
|
||||
extern int drand48_r(struct drand48_data *data, double *result);
|
||||
extern int erand48_r(unsigned short int xsubi[3],
|
||||
struct drand48_data *data, double *result);
|
||||
extern int lrand48_r(struct drand48_data *data, long int *result);
|
||||
extern int nrand48_r(unsigned short int xsubi[3],
|
||||
struct drand48_data *data, long int *result);
|
||||
extern int mrand48_r(struct drand48_data *data, long int *result);
|
||||
extern int jrand48_r(unsigned short int xsubi[3],
|
||||
struct drand48_data *data, long int *result);
|
||||
extern int srand48_r(long int seed, struct drand48_data *data);
|
||||
extern int seed48_r(unsigned short int seed16v[3],
|
||||
struct drand48_data *data);
|
||||
extern int lcong48_r(unsigned short int param[7],
|
||||
struct drand48_data *data);
|
||||
|
||||
/* search and sort functions */
|
||||
typedef int (*_compare_function)(const void *, const void *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user