mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-27 08:31:08 +08:00
libkern.h: Deal with latest <stdlib.h> of Newlib
This commit is contained in:
parent
42f085dcd7
commit
891a7568e5
@ -113,12 +113,23 @@ void qsort(void *base, size_t nmemb, size_t size,
|
|||||||
int (*compar)(const void *, const void *));
|
int (*compar)(const void *, const void *));
|
||||||
void qsort_r(void *base, size_t nmemb, size_t size, void *thunk,
|
void qsort_r(void *base, size_t nmemb, size_t size, void *thunk,
|
||||||
int (*compar)(void *, const void *, const void *));
|
int (*compar)(void *, const void *, const void *));
|
||||||
|
#ifndef __rtems__
|
||||||
u_long random(void);
|
u_long random(void);
|
||||||
|
#else /* __rtems__ */
|
||||||
|
#include <stdlib.h>
|
||||||
|
u_long _bsd_random(void);
|
||||||
|
#define random() _bsd_random()
|
||||||
|
#endif /* __rtems__ */
|
||||||
char *index(const char *, int);
|
char *index(const char *, int);
|
||||||
char *rindex(const char *, int);
|
char *rindex(const char *, int);
|
||||||
int scanc(u_int, const u_char *, const u_char *, int);
|
int scanc(u_int, const u_char *, const u_char *, int);
|
||||||
int skpc(int, int, char *);
|
int skpc(int, int, char *);
|
||||||
|
#ifndef __rtems__
|
||||||
void srandom(u_long);
|
void srandom(u_long);
|
||||||
|
#else /* __rtems__ */
|
||||||
|
void _bsd_srandom(u_long);
|
||||||
|
#define srandom(_x) _bsd_srandom(_x)
|
||||||
|
#endif /* __rtems__ */
|
||||||
int strcasecmp(const char *, const char *);
|
int strcasecmp(const char *, const char *);
|
||||||
char *strcat(char * __restrict, const char * __restrict);
|
char *strcat(char * __restrict, const char * __restrict);
|
||||||
int strcmp(const char *, const char *);
|
int strcmp(const char *, const char *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user