Home | History | Annotate | Line # | Download | only in include
stdlib.h revision 1.125.2.1
      1  1.125.2.1    martin /*	$NetBSD: stdlib.h,v 1.125.2.1 2024/10/11 19:03:24 martin Exp $	*/
      2       1.20       cgd 
      3        1.1       cgd /*-
      4       1.30     perry  * Copyright (c) 1990, 1993
      5       1.30     perry  *	The Regents of the University of California.  All rights reserved.
      6        1.1       cgd  *
      7        1.1       cgd  * Redistribution and use in source and binary forms, with or without
      8        1.1       cgd  * modification, are permitted provided that the following conditions
      9        1.1       cgd  * are met:
     10        1.1       cgd  * 1. Redistributions of source code must retain the above copyright
     11        1.1       cgd  *    notice, this list of conditions and the following disclaimer.
     12        1.1       cgd  * 2. Redistributions in binary form must reproduce the above copyright
     13        1.1       cgd  *    notice, this list of conditions and the following disclaimer in the
     14        1.1       cgd  *    documentation and/or other materials provided with the distribution.
     15       1.64       agc  * 3. Neither the name of the University nor the names of its contributors
     16        1.1       cgd  *    may be used to endorse or promote products derived from this software
     17        1.1       cgd  *    without specific prior written permission.
     18        1.1       cgd  *
     19        1.1       cgd  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     20        1.1       cgd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     21        1.1       cgd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     22        1.1       cgd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     23        1.1       cgd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     24        1.1       cgd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     25        1.1       cgd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     26        1.1       cgd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     27        1.1       cgd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     28        1.1       cgd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     29        1.1       cgd  * SUCH DAMAGE.
     30        1.1       cgd  *
     31       1.30     perry  *	@(#)stdlib.h	8.5 (Berkeley) 5/19/95
     32        1.1       cgd  */
     33        1.1       cgd 
     34        1.1       cgd #ifndef _STDLIB_H_
     35        1.1       cgd #define _STDLIB_H_
     36        1.6       jtc 
     37       1.37   mycroft #include <sys/cdefs.h>
     38       1.32    kleink #include <sys/featuretest.h>
     39       1.32    kleink 
     40       1.62     bjh21 #if defined(_NETBSD_SOURCE)
     41       1.32    kleink #include <sys/types.h>		/* for quad_t, etc. */
     42       1.23       jtc #endif
     43       1.23       jtc 
     44       1.30     perry #include <machine/ansi.h>
     45       1.30     perry 
     46       1.16       cgd #ifdef	_BSD_SIZE_T_
     47       1.16       cgd typedef	_BSD_SIZE_T_	size_t;
     48       1.16       cgd #undef	_BSD_SIZE_T_
     49        1.6       jtc #endif
     50        1.1       cgd 
     51       1.90  christos #if defined(_BSD_WCHAR_T_) && !defined(__cplusplus)
     52       1.16       cgd typedef	_BSD_WCHAR_T_	wchar_t;
     53       1.16       cgd #undef	_BSD_WCHAR_T_
     54        1.1       cgd #endif
     55        1.1       cgd 
     56        1.1       cgd typedef struct {
     57        1.1       cgd 	int quot;		/* quotient */
     58        1.1       cgd 	int rem;		/* remainder */
     59        1.1       cgd } div_t;
     60       1.23       jtc 
     61        1.1       cgd typedef struct {
     62        1.1       cgd 	long quot;		/* quotient */
     63        1.1       cgd 	long rem;		/* remainder */
     64        1.1       cgd } ldiv_t;
     65       1.10       jtc 
     66  1.125.2.1    martin #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
     67  1.125.2.1    martin     defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
     68       1.45    kleink typedef struct {
     69       1.45    kleink 	/* LONGLONG */
     70       1.45    kleink 	long long int quot;	/* quotient */
     71       1.45    kleink 	/* LONGLONG */
     72       1.45    kleink 	long long int rem;	/* remainder */
     73       1.45    kleink } lldiv_t;
     74       1.45    kleink #endif
     75       1.45    kleink 
     76       1.62     bjh21 #if defined(_NETBSD_SOURCE)
     77       1.23       jtc typedef struct {
     78       1.23       jtc 	quad_t quot;		/* quotient */
     79       1.23       jtc 	quad_t rem;		/* remainder */
     80       1.23       jtc } qdiv_t;
     81       1.23       jtc #endif
     82       1.23       jtc 
     83       1.23       jtc 
     84       1.44    kleink #include <sys/null.h>
     85        1.1       cgd 
     86        1.1       cgd #define	EXIT_FAILURE	1
     87        1.1       cgd #define	EXIT_SUCCESS	0
     88        1.1       cgd 
     89        1.1       cgd #define	RAND_MAX	0x7fffffff
     90        1.1       cgd 
     91       1.47    kleink extern size_t __mb_cur_max;
     92       1.30     perry #define	MB_CUR_MAX	__mb_cur_max
     93        1.1       cgd 
     94        1.1       cgd __BEGIN_DECLS
     95       1.80     perry __dead	 void _Exit(int);
     96       1.80     perry __dead	 void abort(void);
     97      1.121      maya __constfunc	int abs(int);
     98       1.69     perry int	 atexit(void (*)(void));
     99       1.69     perry double	 atof(const char *);
    100       1.69     perry int	 atoi(const char *);
    101       1.69     perry long	 atol(const char *);
    102       1.51  christos #ifndef __BSEARCH_DECLARED
    103       1.51  christos #define __BSEARCH_DECLARED
    104       1.51  christos /* also in search.h */
    105       1.69     perry void	*bsearch(const void *, const void *, size_t, size_t,
    106       1.69     perry     int (*)(const void *, const void *));
    107       1.51  christos #endif /* __BSEARCH_DECLARED */
    108       1.69     perry void	*calloc(size_t, size_t);
    109       1.69     perry div_t	 div(int, int);
    110       1.80     perry __dead	 void exit(int);
    111       1.69     perry void	 free(void *);
    112       1.69     perry __aconst char *getenv(const char *);
    113      1.121      maya __constfunc long
    114       1.69     perry 	 labs(long);
    115       1.69     perry ldiv_t	 ldiv(long, long);
    116       1.69     perry void	*malloc(size_t);
    117       1.69     perry void	 qsort(void *, size_t, size_t, int (*)(const void *, const void *));
    118       1.69     perry int	 rand(void);
    119       1.69     perry void	*realloc(void *, size_t);
    120      1.125       wiz void	*reallocarray(void *, size_t, size_t);
    121       1.69     perry void	 srand(unsigned);
    122       1.69     perry double	 strtod(const char * __restrict, char ** __restrict);
    123       1.69     perry long	 strtol(const char * __restrict, char ** __restrict, int);
    124        1.1       cgd unsigned long
    125       1.69     perry 	 strtoul(const char * __restrict, char ** __restrict, int);
    126      1.111  christos #ifdef _OPENBSD_SOURCE
    127      1.112  christos long long strtonum(const char *, long long, long long, const char **);
    128      1.111  christos #endif
    129       1.69     perry int	 system(const char *);
    130        1.1       cgd 
    131       1.30     perry /* These are currently just stubs. */
    132       1.69     perry int	 mblen(const char *, size_t);
    133       1.69     perry size_t	 mbstowcs(wchar_t * __restrict, const char * __restrict, size_t);
    134       1.69     perry int	 wctomb(char *, wchar_t);
    135       1.69     perry int	 mbtowc(wchar_t * __restrict, const char * __restrict, size_t);
    136       1.69     perry size_t	 wcstombs(char * __restrict, const wchar_t * __restrict, size_t);
    137        1.5    brezak 
    138       1.62     bjh21 #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
    139       1.62     bjh21     defined(_NETBSD_SOURCE)
    140       1.32    kleink 
    141       1.32    kleink 
    142       1.33    kleink /*
    143       1.33    kleink  * IEEE Std 1003.1c-95, also adopted by X/Open CAE Spec Issue 5 Version 2
    144       1.33    kleink  */
    145       1.62     bjh21 #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \
    146       1.62     bjh21     defined(_REENTRANT) || defined(_NETBSD_SOURCE)
    147       1.69     perry int	 rand_r(unsigned int *);
    148       1.33    kleink #endif
    149       1.32    kleink 
    150       1.32    kleink 
    151       1.33    kleink /*
    152       1.33    kleink  * X/Open Portability Guide >= Issue 4
    153       1.33    kleink  */
    154       1.83  drochner #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)
    155       1.69     perry double	 drand48(void);
    156       1.69     perry double	 erand48(unsigned short[3]);
    157       1.69     perry long	 jrand48(unsigned short[3]);
    158       1.69     perry void	 lcong48(unsigned short[7]);
    159       1.69     perry long	 lrand48(void);
    160       1.69     perry long	 mrand48(void);
    161       1.69     perry long	 nrand48(unsigned short[3]);
    162       1.32    kleink unsigned short *
    163       1.69     perry 	 seed48(unsigned short[3]);
    164       1.69     perry void	 srand48(long);
    165       1.32    kleink 
    166       1.98  christos #ifndef __LIBC12_SOURCE__
    167       1.98  christos int	 putenv(char *) __RENAME(__putenv50);
    168       1.98  christos #endif
    169       1.33    kleink #endif
    170       1.33    kleink 
    171       1.33    kleink 
    172       1.33    kleink /*
    173       1.33    kleink  * X/Open Portability Guide >= Issue 4 Version 2
    174       1.33    kleink  */
    175       1.62     bjh21 #if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \
    176       1.62     bjh21     (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
    177       1.69     perry long	 a64l(const char *);
    178       1.69     perry char	*l64a(long);
    179       1.33    kleink 
    180       1.69     perry long	 random(void);
    181       1.69     perry char	*setstate(char *);
    182      1.108  christos #ifndef __LIBC12_SOURCE__
    183      1.109  christos char	*initstate(unsigned int, char *, size_t) __RENAME(__initstate60);
    184      1.109  christos void	 srandom(unsigned int) __RENAME(__srandom60);
    185      1.108  christos #endif
    186       1.82  christos #ifdef _NETBSD_SOURCE
    187       1.84      yamt #define	RANDOM_MAX	0x7fffffff	/* (((long)1 << 31) - 1) */
    188      1.110  christos int	 mkostemp(char *, int);
    189      1.110  christos int	 mkostemps(char *, int, int);
    190       1.82  christos #endif
    191       1.33    kleink 
    192       1.70  christos char	*mktemp(char *)
    193       1.70  christos #ifdef __MKTEMP_OK__
    194       1.70  christos 	__RENAME(_mktemp)
    195       1.36   mycroft #endif
    196       1.70  christos 	;
    197       1.33    kleink 
    198       1.69     perry int	 setkey(const char *);
    199       1.33    kleink 
    200      1.100  christos char	*realpath(const char * __restrict, char * __restrict);
    201       1.33    kleink 
    202       1.69     perry int	 ttyslot(void);
    203       1.33    kleink 
    204       1.69     perry void	*valloc(size_t);		/* obsoleted by malloc() */
    205       1.67  christos 
    206       1.69     perry int	 grantpt(int);
    207       1.69     perry int	 unlockpt(int);
    208       1.69     perry char	*ptsname(int);
    209       1.33    kleink #endif
    210       1.33    kleink 
    211       1.45    kleink /*
    212       1.45    kleink  * ISO C99
    213       1.45    kleink  */
    214       1.62     bjh21 #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
    215      1.105     joerg     defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
    216      1.105     joerg 
    217       1.45    kleink /* LONGLONG */
    218       1.69     perry long long int	atoll(const char *);
    219       1.45    kleink /* LONGLONG */
    220       1.69     perry long long int	llabs(long long int);
    221       1.45    kleink /* LONGLONG */
    222       1.69     perry lldiv_t		lldiv(long long int, long long int);
    223       1.45    kleink /* LONGLONG */
    224       1.69     perry long long int	strtoll(const char * __restrict, char ** __restrict, int);
    225       1.45    kleink /* LONGLONG */
    226       1.54    kleink unsigned long long int
    227       1.69     perry 		strtoull(const char * __restrict, char ** __restrict, int);
    228       1.76    kleink float		strtof(const char * __restrict, char ** __restrict);
    229       1.76    kleink long double	strtold(const char * __restrict, char ** __restrict);
    230       1.45    kleink #endif
    231       1.33    kleink 
    232      1.106  christos #if defined(_ISOC11_SOURCE) || (__STDC_VERSION__ - 0) >= 201101L || \
    233      1.106  christos     defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
    234      1.116      nros void	*aligned_alloc(size_t, size_t);
    235      1.106  christos int	at_quick_exit(void (*)(void));
    236      1.106  christos __dead void quick_exit(int);
    237      1.106  christos #endif
    238      1.106  christos 
    239       1.33    kleink /*
    240       1.61    kleink  * The Open Group Base Specifications, Issue 6; IEEE Std 1003.1-2001 (POSIX)
    241       1.59    kleink  */
    242       1.62     bjh21 #if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 || \
    243       1.62     bjh21     defined(_NETBSD_SOURCE)
    244       1.69     perry int	 setenv(const char *, const char *, int);
    245       1.71  christos #ifndef __LIBC12_SOURCE__
    246       1.69     perry int	 unsetenv(const char *) __RENAME(__unsetenv13);
    247       1.59    kleink #endif
    248       1.67  christos 
    249       1.69     perry int	 posix_openpt(int);
    250       1.78        ad int	 posix_memalign(void **, size_t, size_t);
    251       1.59    kleink #endif
    252       1.59    kleink 
    253       1.59    kleink /*
    254      1.123  christos  * The Open Group Base Specifications, Issue 7; IEEE Std 1003.1-2008 (POSIX)
    255      1.123  christos  *   or
    256      1.123  christos  * X/Open Portability Guide >= Issue 4 Version 2
    257      1.123  christos  */
    258      1.123  christos #if (_POSIX_C_SOURCE - 0) >= 200809L || \
    259      1.123  christos     (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \
    260      1.123  christos     (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE)
    261      1.123  christos char	*mkdtemp(char *);
    262      1.123  christos int	 mkstemp(char *);
    263      1.123  christos 
    264      1.123  christos int	 getsubopt(char **, char * const *, char **);
    265      1.123  christos #endif
    266      1.123  christos 
    267      1.123  christos /*
    268       1.33    kleink  * Implementation-defined extensions
    269       1.33    kleink  */
    270       1.62     bjh21 #if defined(_NETBSD_SOURCE)
    271      1.124       nia #if defined(__PCC__) && !defined(__GNUC__)
    272       1.85  gmcgarry #define alloca(size) __builtin_alloca(size)
    273       1.82  christos #else
    274       1.82  christos void	*alloca(size_t);
    275       1.82  christos #endif /* __GNUC__ */
    276       1.11       cgd 
    277       1.75     perry uint32_t arc4random(void);
    278       1.69     perry void	 arc4random_stir(void);
    279       1.95  christos void	 arc4random_buf(void *, size_t);
    280       1.95  christos uint32_t arc4random_uniform(uint32_t);
    281      1.122     joerg void	 arc4random_addrandom(unsigned char *, int);
    282       1.69     perry char	*getbsize(int *, long *);
    283       1.69     perry char	*cgetcap(char *, const char *, int);
    284       1.69     perry int	 cgetclose(void);
    285       1.69     perry int	 cgetent(char **, const char * const *, const char *);
    286       1.69     perry int	 cgetfirst(char **, const char * const *);
    287       1.69     perry int	 cgetmatch(const char *, const char *);
    288       1.69     perry int	 cgetnext(char **, const char * const *);
    289       1.69     perry int	 cgetnum(char *, const char *, long *);
    290       1.69     perry int	 cgetset(const char *);
    291       1.69     perry int	 cgetstr(char *, const char *, char **);
    292       1.69     perry int	 cgetustr(char *, const char *, char **);
    293       1.81  christos void	 csetexpandtc(int);
    294       1.69     perry 
    295       1.69     perry int	 daemon(int, int);
    296       1.99     joerg int	 devname_r(dev_t, mode_t, char *, size_t);
    297       1.86  christos #ifndef __LIBC12_SOURCE__
    298       1.86  christos __aconst char *devname(dev_t, mode_t) __RENAME(__devname50);
    299       1.86  christos #endif
    300       1.79  christos 
    301       1.79  christos #define	HN_DECIMAL		0x01
    302       1.79  christos #define	HN_NOSPACE		0x02
    303       1.79  christos #define	HN_B			0x04
    304       1.79  christos #define	HN_DIVISOR_1000		0x08
    305       1.79  christos 
    306       1.79  christos #define	HN_GETSCALE		0x10
    307       1.79  christos #define	HN_AUTOSCALE		0x20
    308       1.79  christos 
    309       1.79  christos int	 humanize_number(char *, size_t, int64_t, const char *, int, int);
    310       1.79  christos int	 dehumanize_number(const char *, int64_t *);
    311      1.117  christos ssize_t	 hmac(const char *, const void *, size_t, const void *, size_t, void *,
    312      1.117  christos    size_t);
    313       1.79  christos 
    314       1.88  drochner devmajor_t getdevmajor(const char *, mode_t);
    315       1.69     perry int	 getloadavg(double [], int);
    316       1.69     perry 
    317       1.73    kleink int	 getenv_r(const char *, char *, size_t);
    318       1.73    kleink 
    319       1.69     perry void	 cfree(void *);
    320       1.69     perry 
    321       1.69     perry int	 heapsort(void *, size_t, size_t, int (*)(const void *, const void *));
    322       1.69     perry int	 mergesort(void *, size_t, size_t,
    323       1.69     perry 	    int (*)(const void *, const void *));
    324      1.107  christos int	 ptsname_r(int, char *, size_t);
    325       1.69     perry int	 radixsort(const unsigned char **, int, const unsigned char *,
    326       1.69     perry 	    unsigned);
    327       1.69     perry int	 sradixsort(const unsigned char **, int, const unsigned char *,
    328       1.69     perry 	    unsigned);
    329        1.7       jtc 
    330       1.89     joerg void	 mi_vector_hash(const void * __restrict, size_t, uint32_t,
    331       1.89     joerg 	    uint32_t[3]);
    332       1.89     joerg 
    333       1.69     perry void	 setproctitle(const char *, ...)
    334       1.91     joerg 	    __printflike(1, 2);
    335       1.94    jruoho const char *getprogname(void) __constfunc;
    336       1.69     perry void	setprogname(const char *);
    337       1.19       jtc 
    338       1.69     perry quad_t	 qabs(quad_t);
    339       1.69     perry quad_t	 strtoq(const char * __restrict, char ** __restrict, int);
    340       1.69     perry u_quad_t strtouq(const char * __restrict, char ** __restrict, int);
    341       1.57     lukem 
    342       1.57     lukem 	/* LONGLONG */
    343       1.57     lukem long long strsuftoll(const char *, const char *, long long, long long);
    344       1.57     lukem 	/* LONGLONG */
    345       1.57     lukem long long strsuftollx(const char *, const char *, long long, long long,
    346       1.57     lukem 	    		char *, size_t);
    347       1.42    kleink 
    348       1.69     perry int	 l64a_r(long, char *, int);
    349       1.53       cgd 
    350       1.69     perry size_t	shquote(const char *, char *, size_t);
    351       1.69     perry size_t	shquotev(int, char * const *, char *, size_t);
    352      1.114     joerg 
    353      1.114     joerg int	reallocarr(void *, size_t, size_t);
    354       1.62     bjh21 #endif /* _NETBSD_SOURCE */
    355       1.62     bjh21 #endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE */
    356       1.55    kleink 
    357       1.62     bjh21 #if defined(_NETBSD_SOURCE)
    358       1.69     perry qdiv_t	 qdiv(quad_t, quad_t);
    359       1.55    kleink #endif
    360      1.101     joerg 
    361      1.101     joerg #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
    362      1.101     joerg #  ifndef __LOCALE_T_DECLARED
    363      1.101     joerg typedef struct _locale		*locale_t;
    364      1.101     joerg #  define __LOCALE_T_DECLARED
    365      1.101     joerg #  endif
    366      1.102     joerg double		strtod_l(const char * __restrict, char ** __restrict, locale_t);
    367      1.102     joerg float		strtof_l(const char * __restrict, char ** __restrict, locale_t);
    368      1.102     joerg long double	strtold_l(const char * __restrict, char ** __restrict,
    369      1.102     joerg 			  locale_t);
    370      1.101     joerg long	 strtol_l(const char * __restrict, char ** __restrict, int, locale_t);
    371      1.101     joerg unsigned long
    372      1.101     joerg 	 strtoul_l(const char * __restrict, char ** __restrict, int, locale_t);
    373      1.101     joerg /* LONGLONG */
    374      1.101     joerg long long int
    375      1.101     joerg 	strtoll_l(const char * __restrict, char ** __restrict, int, locale_t);
    376      1.101     joerg /* LONGLONG */
    377      1.101     joerg unsigned long long int
    378      1.101     joerg 	strtoull_l(const char * __restrict, char ** __restrict, int, locale_t);
    379      1.101     joerg 
    380      1.101     joerg #  if defined(_NETBSD_SOURCE)
    381      1.101     joerg quad_t	 strtoq_l(const char * __restrict, char ** __restrict, int, locale_t);
    382      1.101     joerg u_quad_t strtouq_l(const char * __restrict, char ** __restrict, int, locale_t);
    383      1.103     joerg 
    384      1.104     joerg size_t	_mb_cur_max_l(locale_t);
    385      1.104     joerg #define	MB_CUR_MAX_L(loc)	_mb_cur_max_l(loc)
    386      1.103     joerg int	 mblen_l(const char *, size_t, locale_t);
    387      1.103     joerg size_t	 mbstowcs_l(wchar_t * __restrict, const char * __restrict, size_t,
    388      1.103     joerg 		    locale_t);
    389      1.103     joerg int	 wctomb_l(char *, wchar_t, locale_t);
    390      1.103     joerg int	 mbtowc_l(wchar_t * __restrict, const char * __restrict, size_t,
    391      1.103     joerg 	          locale_t);
    392      1.103     joerg size_t	 wcstombs_l(char * __restrict, const wchar_t * __restrict, size_t,
    393      1.103     joerg 		    locale_t);
    394      1.103     joerg 
    395      1.103     joerg #  endif /* _NETBSD_SOURCE */
    396      1.101     joerg #endif /* _POSIX_C_SOURCE >= 200809 || _NETBSD_SOURCE */
    397      1.101     joerg 
    398        1.1       cgd __END_DECLS
    399        1.1       cgd 
    400       1.27     mikel #endif /* !_STDLIB_H_ */
    401