2015-07-15 05:09:55 +00:00
|
|
|
/*
|
|
|
|
* stdlib.h
|
|
|
|
*
|
|
|
|
* Definitions for common types, variables, and functions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STDLIB_H_
|
|
|
|
#define _STDLIB_H_
|
|
|
|
|
|
|
|
#include <machine/ieeefp.h>
|
|
|
|
#include "_ansi.h"
|
|
|
|
|
|
|
|
#define __need_size_t
|
|
|
|
#define __need_wchar_t
|
|
|
|
#define __need_NULL
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#include <sys/reent.h>
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <machine/stdlib.h>
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
|
|
#include <alloca.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __CYGWIN__
|
|
|
|
#include <cygwin/stdlib.h>
|
|
|
|
#endif
|
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __GNU_VISIBLE
|
|
|
|
#include <xlocale.h>
|
|
|
|
#endif
|
|
|
|
|
2015-07-15 05:09:55 +00:00
|
|
|
_BEGIN_STD_C
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int quot; /* quotient */
|
|
|
|
int rem; /* remainder */
|
|
|
|
} div_t;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
long quot; /* quotient */
|
|
|
|
long rem; /* remainder */
|
|
|
|
} ldiv_t;
|
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __ISO_C_VISIBLE >= 1999
|
2015-07-15 05:09:55 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
long long int quot; /* quotient */
|
|
|
|
long long int rem; /* remainder */
|
|
|
|
} lldiv_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __compar_fn_t_defined
|
|
|
|
#define __compar_fn_t_defined
|
2018-02-16 13:43:18 +00:00
|
|
|
typedef int (*__compar_fn_t) (const void *, const void *);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NULL
|
|
|
|
#define NULL 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define EXIT_FAILURE 1
|
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
|
|
|
|
#define RAND_MAX __RAND_MAX
|
|
|
|
|
2018-02-16 13:43:18 +00:00
|
|
|
int __locale_mb_cur_max (void);
|
2015-07-15 05:09:55 +00:00
|
|
|
|
|
|
|
#define MB_CUR_MAX __locale_mb_cur_max()
|
|
|
|
|
2018-02-16 13:43:18 +00:00
|
|
|
void abort (void) _ATTRIBUTE ((__noreturn__));
|
|
|
|
int abs (int);
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __BSD_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
__uint32_t arc4random (void);
|
|
|
|
__uint32_t arc4random_uniform (__uint32_t);
|
|
|
|
void arc4random_buf (void *, size_t);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
int atexit (void (*__func)(void));
|
|
|
|
double atof (const char *__nptr);
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __MISC_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
float atoff (const char *__nptr);
|
|
|
|
#endif
|
|
|
|
int atoi (const char *__nptr);
|
|
|
|
int _atoi_r (struct _reent *, const char *__nptr);
|
|
|
|
long atol (const char *__nptr);
|
|
|
|
long _atol_r (struct _reent *, const char *__nptr);
|
|
|
|
void * bsearch (const void *__key,
|
|
|
|
const void *__base,
|
2015-07-15 05:09:55 +00:00
|
|
|
size_t __nmemb,
|
|
|
|
size_t __size,
|
2018-02-16 13:43:18 +00:00
|
|
|
__compar_fn_t _compar);
|
|
|
|
void * calloc (size_t __nmemb, size_t __size) _NOTHROW;
|
|
|
|
div_t div (int __numer, int __denom);
|
|
|
|
void exit (int __status) _ATTRIBUTE ((__noreturn__));
|
|
|
|
void free (void *) _NOTHROW;
|
|
|
|
char * getenv (const char *__string);
|
|
|
|
char * _getenv_r (struct _reent *, const char *__string);
|
|
|
|
char * _findenv (const char *, int *);
|
|
|
|
char * _findenv_r (struct _reent *, const char *, int *);
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __POSIX_VISIBLE >= 200809
|
2015-07-15 05:09:55 +00:00
|
|
|
extern char *suboptarg; /* getsubopt(3) external variable */
|
2018-02-16 13:43:18 +00:00
|
|
|
int getsubopt (char **, char * const *, char **);
|
|
|
|
#endif
|
|
|
|
long labs (long);
|
|
|
|
ldiv_t ldiv (long __numer, long __denom);
|
|
|
|
void * malloc (size_t __size) _NOTHROW;
|
|
|
|
int mblen (const char *, size_t);
|
|
|
|
int _mblen_r (struct _reent *, const char *, size_t, _mbstate_t *);
|
|
|
|
int mbtowc (wchar_t *__restrict, const char *__restrict, size_t);
|
|
|
|
int _mbtowc_r (struct _reent *, wchar_t *__restrict, const char *__restrict, size_t, _mbstate_t *);
|
|
|
|
int wctomb (char *, wchar_t);
|
|
|
|
int _wctomb_r (struct _reent *, char *, wchar_t, _mbstate_t *);
|
|
|
|
size_t mbstowcs (wchar_t *__restrict, const char *__restrict, size_t);
|
|
|
|
size_t _mbstowcs_r (struct _reent *, wchar_t *__restrict, const char *__restrict, size_t, _mbstate_t *);
|
|
|
|
size_t wcstombs (char *__restrict, const wchar_t *__restrict, size_t);
|
|
|
|
size_t _wcstombs_r (struct _reent *, char *__restrict, const wchar_t *__restrict, size_t, _mbstate_t *);
|
2015-07-15 05:09:55 +00:00
|
|
|
#ifndef _REENT_ONLY
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
|
2018-02-16 13:43:18 +00:00
|
|
|
char * mkdtemp (char *);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __GNU_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
int mkostemp (char *, int);
|
|
|
|
int mkostemps (char *, int, int);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 4
|
2018-02-16 13:43:18 +00:00
|
|
|
int mkstemp (char *);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __MISC_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
int mkstemps (char *, int);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __BSD_VISIBLE || (__XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200112)
|
2018-02-16 13:43:18 +00:00
|
|
|
char * mktemp (char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead")));
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif /* !_REENT_ONLY */
|
2018-02-16 13:43:18 +00:00
|
|
|
char * _mkdtemp_r (struct _reent *, char *);
|
|
|
|
int _mkostemp_r (struct _reent *, char *, int);
|
|
|
|
int _mkostemps_r (struct _reent *, char *, int, int);
|
|
|
|
int _mkstemp_r (struct _reent *, char *);
|
|
|
|
int _mkstemps_r (struct _reent *, char *, int);
|
|
|
|
char * _mktemp_r (struct _reent *, char *) _ATTRIBUTE ((__deprecated__("the use of `mktemp' is dangerous; use `mkstemp' instead")));
|
|
|
|
void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t _compar);
|
|
|
|
int rand (void);
|
|
|
|
void * realloc (void *__r, size_t __size) _NOTHROW;
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __BSD_VISIBLE
|
|
|
|
void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2)
|
|
|
|
__alloc_size(3);
|
2018-02-16 13:43:18 +00:00
|
|
|
void * reallocf (void *__r, size_t __size);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __BSD_VISIBLE || __XSI_VISIBLE >= 4
|
2018-02-16 13:43:18 +00:00
|
|
|
char * realpath (const char *__restrict path, char *__restrict resolved_path);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __BSD_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
int rpmatch (const char *response);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __XSI_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
void setkey (const char *__key);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
void srand (unsigned __seed);
|
|
|
|
double strtod (const char *__restrict __n, char **__restrict __end_PTR);
|
|
|
|
double _strtod_r (struct _reent *,const char *__restrict __n, char **__restrict __end_PTR);
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __ISO_C_VISIBLE >= 1999
|
2018-02-16 13:43:18 +00:00
|
|
|
float strtof (const char *__restrict __n, char **__restrict __end_PTR);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __MISC_VISIBLE
|
2015-07-15 05:09:55 +00:00
|
|
|
/* the following strtodf interface is deprecated...use strtof instead */
|
2017-04-13 03:52:05 +00:00
|
|
|
# ifndef strtodf
|
2015-07-15 05:09:55 +00:00
|
|
|
# define strtodf strtof
|
|
|
|
# endif
|
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
|
|
|
|
long _strtol_r (struct _reent *,const char *__restrict __n, char **__restrict __end_PTR, int __base);
|
|
|
|
unsigned long strtoul (const char *__restrict __n, char **__restrict __end_PTR, int __base);
|
|
|
|
unsigned long _strtoul_r (struct _reent *,const char *__restrict __n, char **__restrict __end_PTR, int __base);
|
2015-07-15 05:09:55 +00:00
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __GNU_VISIBLE
|
|
|
|
double strtod_l (const char *__restrict, char **__restrict, locale_t);
|
|
|
|
float strtof_l (const char *__restrict, char **__restrict, locale_t);
|
|
|
|
#ifdef _HAVE_LONG_DOUBLE
|
|
|
|
extern long double strtold_l (const char *__restrict, char **__restrict,
|
|
|
|
locale_t);
|
|
|
|
#endif /* _HAVE_LONG_DOUBLE */
|
|
|
|
long strtol_l (const char *__restrict, char **__restrict, int, locale_t);
|
|
|
|
unsigned long strtoul_l (const char *__restrict, char **__restrict, int,
|
|
|
|
locale_t __loc);
|
|
|
|
long long strtoll_l (const char *__restrict, char **__restrict, int, locale_t);
|
|
|
|
unsigned long long strtoull_l (const char *__restrict, char **__restrict, int,
|
|
|
|
locale_t __loc);
|
|
|
|
#endif
|
|
|
|
|
2018-02-16 13:43:18 +00:00
|
|
|
int system (const char *__string);
|
2015-07-15 05:09:55 +00:00
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __SVID_VISIBLE || __XSI_VISIBLE >= 4
|
2018-02-16 13:43:18 +00:00
|
|
|
long a64l (const char *__input);
|
|
|
|
char * l64a (long __input);
|
|
|
|
char * _l64a_r (struct _reent *,long __input);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __MISC_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
int on_exit (void (*__func)(int, void *),void *__arg);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __ISO_C_VISIBLE >= 1999
|
2018-02-16 13:43:18 +00:00
|
|
|
void _Exit (int __status) _ATTRIBUTE ((__noreturn__));
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __SVID_VISIBLE || __XSI_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
int putenv (char *__string);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
int _putenv_r (struct _reent *, char *__string);
|
|
|
|
void * _reallocf_r (struct _reent *, void *, size_t);
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
|
2018-02-16 13:43:18 +00:00
|
|
|
int setenv (const char *__string, const char *__value, int __overwrite);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
int _setenv_r (struct _reent *, const char *__string, const char *__value, int __overwrite);
|
2015-07-15 05:09:55 +00:00
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __XSI_VISIBLE >= 4 && __POSIX_VISIBLE < 200112
|
2018-02-16 13:43:18 +00:00
|
|
|
char * gcvt (double,int,char *);
|
|
|
|
char * gcvtf (float,int,char *);
|
|
|
|
char * fcvt (double,int,int *,int *);
|
|
|
|
char * fcvtf (float,int,int *,int *);
|
|
|
|
char * ecvt (double,int,int *,int *);
|
|
|
|
char * ecvtbuf (double, int, int*, int*, char *);
|
|
|
|
char * fcvtbuf (double, int, int*, int*, char *);
|
|
|
|
char * ecvtf (float,int,int *,int *);
|
|
|
|
#endif
|
|
|
|
char * __itoa (int, char *, int);
|
|
|
|
char * __utoa (unsigned, char *, int);
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __MISC_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
char * itoa (int, char *, int);
|
|
|
|
char * utoa (unsigned, char *, int);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __POSIX_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
int rand_r (unsigned *__seed);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
2015-07-15 05:09:55 +00:00
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __SVID_VISIBLE || __XSI_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
double drand48 (void);
|
|
|
|
double _drand48_r (struct _reent *);
|
|
|
|
double erand48 (unsigned short [3]);
|
|
|
|
double _erand48_r (struct _reent *, unsigned short [3]);
|
|
|
|
long jrand48 (unsigned short [3]);
|
|
|
|
long _jrand48_r (struct _reent *, unsigned short [3]);
|
|
|
|
void lcong48 (unsigned short [7]);
|
|
|
|
void _lcong48_r (struct _reent *, unsigned short [7]);
|
|
|
|
long lrand48 (void);
|
|
|
|
long _lrand48_r (struct _reent *);
|
|
|
|
long mrand48 (void);
|
|
|
|
long _mrand48_r (struct _reent *);
|
|
|
|
long nrand48 (unsigned short [3]);
|
|
|
|
long _nrand48_r (struct _reent *, unsigned short [3]);
|
2015-07-15 05:09:55 +00:00
|
|
|
unsigned short *
|
2018-02-16 13:43:18 +00:00
|
|
|
seed48 (unsigned short [3]);
|
2015-07-15 05:09:55 +00:00
|
|
|
unsigned short *
|
2018-02-16 13:43:18 +00:00
|
|
|
_seed48_r (struct _reent *, unsigned short [3]);
|
|
|
|
void srand48 (long);
|
|
|
|
void _srand48_r (struct _reent *, long);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif /* __SVID_VISIBLE || __XSI_VISIBLE */
|
|
|
|
#if __SVID_VISIBLE || __XSI_VISIBLE >= 4 || __BSD_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
char * initstate (unsigned, char *, size_t);
|
|
|
|
long random (void);
|
|
|
|
char * setstate (char *);
|
|
|
|
void srandom (unsigned);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __ISO_C_VISIBLE >= 1999
|
2018-02-16 13:43:18 +00:00
|
|
|
long long atoll (const char *__nptr);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
long long _atoll_r (struct _reent *, const char *__nptr);
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __ISO_C_VISIBLE >= 1999
|
2018-02-16 13:43:18 +00:00
|
|
|
long long llabs (long long);
|
|
|
|
lldiv_t lldiv (long long __numer, long long __denom);
|
|
|
|
long long strtoll (const char *__restrict __n, char **__restrict __end_PTR, int __base);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
long long _strtoll_r (struct _reent *, const char *__restrict __n, char **__restrict __end_PTR, int __base);
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __ISO_C_VISIBLE >= 1999
|
2018-02-16 13:43:18 +00:00
|
|
|
unsigned long long strtoull (const char *__restrict __n, char **__restrict __end_PTR, int __base);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
unsigned long long _strtoull_r (struct _reent *, const char *__restrict __n, char **__restrict __end_PTR, int __base);
|
2015-07-15 05:09:55 +00:00
|
|
|
|
|
|
|
#ifndef __CYGWIN__
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __MISC_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
void cfree (void *);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif
|
|
|
|
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
|
2018-02-16 13:43:18 +00:00
|
|
|
int unsetenv (const char *__string);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
int _unsetenv_r (struct _reent *, const char *__string);
|
2017-04-13 03:52:05 +00:00
|
|
|
#endif /* !__CYGWIN__ */
|
2015-07-15 05:09:55 +00:00
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __POSIX_VISIBLE >= 200112
|
2018-02-16 13:43:18 +00:00
|
|
|
int __nonnull ((1)) posix_memalign (void **, size_t, size_t);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
|
|
|
|
2018-02-16 13:43:18 +00:00
|
|
|
char * _dtoa_r (struct _reent *, double, int, int, int *, int*, char**);
|
2015-07-15 05:09:55 +00:00
|
|
|
#ifndef __CYGWIN__
|
2018-02-16 13:43:18 +00:00
|
|
|
void * _malloc_r (struct _reent *, size_t) _NOTHROW;
|
|
|
|
void * _calloc_r (struct _reent *, size_t, size_t) _NOTHROW;
|
|
|
|
void _free_r (struct _reent *, void *) _NOTHROW;
|
|
|
|
void * _realloc_r (struct _reent *, void *, size_t) _NOTHROW;
|
|
|
|
void _mstats_r (struct _reent *, char *);
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif
|
2018-02-16 13:43:18 +00:00
|
|
|
int _system_r (struct _reent *, const char *);
|
2015-07-15 05:09:55 +00:00
|
|
|
|
2018-02-16 13:43:18 +00:00
|
|
|
void __eprintf (const char *, const char *, unsigned int, const char *);
|
2015-07-15 05:09:55 +00:00
|
|
|
|
|
|
|
/* There are two common qsort_r variants. If you request
|
|
|
|
_BSD_SOURCE, you get the BSD version; otherwise you get the GNU
|
|
|
|
version. We want that #undef qsort_r will still let you
|
|
|
|
invoke the underlying function, but that requires gcc support. */
|
2017-04-13 03:52:05 +00:00
|
|
|
#if __GNU_VISIBLE
|
2018-02-16 13:43:18 +00:00
|
|
|
void qsort_r (void *__base, size_t __nmemb, size_t __size, int (*_compar)(const void *, const void *, void *), void *__thunk);
|
2017-04-13 03:52:05 +00:00
|
|
|
#elif __BSD_VISIBLE
|
2015-07-15 05:09:55 +00:00
|
|
|
# ifdef __GNUC__
|
2018-02-16 13:43:18 +00:00
|
|
|
void qsort_r (void *__base, size_t __nmemb, size_t __size, void *__thunk, int (*_compar)(void *, const void *, const void *))
|
2015-07-15 05:09:55 +00:00
|
|
|
__asm__ (__ASMNAME ("__bsd_qsort_r"));
|
|
|
|
# else
|
2018-02-16 13:43:18 +00:00
|
|
|
void __bsd_qsort_r (void *__base, size_t __nmemb, size_t __size, void *__thunk, int (*_compar)(void *, const void *, const void *));
|
2015-07-15 05:09:55 +00:00
|
|
|
# define qsort_r __bsd_qsort_r
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* On platforms where long double equals double. */
|
|
|
|
#ifdef _HAVE_LONG_DOUBLE
|
2017-04-13 03:52:05 +00:00
|
|
|
extern long double _strtold_r (struct _reent *, const char *__restrict, char **__restrict);
|
|
|
|
#if __ISO_C_VISIBLE >= 1999
|
2015-07-15 05:09:55 +00:00
|
|
|
extern long double strtold (const char *__restrict, char **__restrict);
|
|
|
|
#endif
|
|
|
|
#endif /* _HAVE_LONG_DOUBLE */
|
|
|
|
|
2017-04-13 03:52:05 +00:00
|
|
|
/*
|
|
|
|
* If we're in a mode greater than C99, expose C11 functions.
|
|
|
|
*/
|
|
|
|
#if __ISO_C_VISIBLE >= 2011
|
|
|
|
void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1)
|
|
|
|
__alloc_size(2);
|
|
|
|
int at_quick_exit(void (*)(void));
|
|
|
|
_Noreturn void
|
|
|
|
quick_exit(int);
|
|
|
|
#endif /* __ISO_C_VISIBLE >= 2011 */
|
|
|
|
|
2015-07-15 05:09:55 +00:00
|
|
|
_END_STD_C
|
|
|
|
|
2017-12-08 13:45:57 +00:00
|
|
|
#if __SSP_FORTIFY_LEVEL > 0
|
|
|
|
#include <ssp/stdlib.h>
|
|
|
|
#endif
|
|
|
|
|
2015-07-15 05:09:55 +00:00
|
|
|
#endif /* _STDLIB_H_ */
|