filename | test/include/stdlib.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Sat Aug 05 00:18:21 2006 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | Add error lines to tests with incomplete polys Split clip tests to separate data file Add tests for cmd bit 23 ("use list size field") |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/include/stdlib.h Sat Aug 05 00:18:21 2006 +00001.3 @@ -0,0 +1,140 @@1.4 +/*1.5 + * stdlib.h1.6 + *1.7 + * Definitions for common types, variables, and functions.1.8 + */1.9 +1.10 +#ifndef _STDLIB_H_1.11 +#ifdef __cplusplus1.12 +extern "C" {1.13 +#endif1.14 +#define _STDLIB_H_1.15 +1.16 +#include "_ansi.h"1.17 +1.18 +#define __need_size_t1.19 +#define __need_wchar_t1.20 +#include <stddef.h>1.21 +1.22 +#include <sys/reent.h>1.23 +1.24 +typedef struct1.25 +{1.26 + int quot; /* quotient */1.27 + int rem; /* remainder */1.28 +} div_t;1.29 +1.30 +typedef struct1.31 +{1.32 + long quot; /* quotient */1.33 + long rem; /* remainder */1.34 +} ldiv_t;1.35 +1.36 +#ifndef NULL1.37 +#define NULL 01.38 +#endif1.39 +1.40 +#define EXIT_FAILURE 11.41 +#define EXIT_SUCCESS 01.42 +1.43 +#define RAND_MAX 0x7fffffff1.44 +1.45 +#if (defined(__CYGWIN__) || defined(__CYGWIN32__)) && ! defined(_COMPILING_NEWLIB)1.46 +extern __declspec(dllimport) int __mb_cur_max;1.47 +#else1.48 +extern int __mb_cur_max;1.49 +#endif1.50 +1.51 +#define MB_CUR_MAX __mb_cur_max1.52 +1.53 +_VOID _EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn)));1.54 +int _EXFUN(abs,(int));1.55 +int _EXFUN(atexit,(_VOID (*__func)(_VOID)));1.56 +double _EXFUN(atof,(const char *__nptr));1.57 +#ifndef __STRICT_ANSI__1.58 +float _EXFUN(atoff,(const char *__nptr));1.59 +#endif1.60 +int _EXFUN(atoi,(const char *__nptr));1.61 +long _EXFUN(atol,(const char *__nptr));1.62 +_PTR _EXFUN(bsearch,(const _PTR __key,1.63 + const _PTR __base,1.64 + size_t __nmemb,1.65 + size_t __size,1.66 + int _EXFUN((*_compar),(const _PTR, const _PTR))));1.67 +_PTR _EXFUN(calloc,(size_t __nmemb, size_t __size));1.68 +div_t _EXFUN(div,(int __numer, int __denom));1.69 +_VOID _EXFUN(exit,(int __status) _ATTRIBUTE ((noreturn)));1.70 +_VOID _EXFUN(free,(_PTR));1.71 +char * _EXFUN(getenv,(const char *__string));1.72 +char * _EXFUN(_getenv_r,(struct _reent *, const char *__string));1.73 +char * _EXFUN(_findenv,(_CONST char *, int *));1.74 +char * _EXFUN(_findenv_r,(struct _reent *, _CONST char *, int *));1.75 +long _EXFUN(labs,(long));1.76 +ldiv_t _EXFUN(ldiv,(long __numer, long __denom));1.77 +_PTR _EXFUN(malloc,(size_t __size));1.78 +int _EXFUN(mblen,(const char *, size_t));1.79 +int _EXFUN(_mblen_r,(struct _reent *, const char *, size_t, int *));1.80 +int _EXFUN(mbtowc,(wchar_t *, const char *, size_t));1.81 +int _EXFUN(_mbtowc_r,(struct _reent *, wchar_t *, const char *, size_t, int *));1.82 +int _EXFUN(wctomb,(char *, wchar_t));1.83 +int _EXFUN(_wctomb_r,(struct _reent *, char *, wchar_t, int *));1.84 +size_t _EXFUN(mbstowcs,(wchar_t *, const char *, size_t));1.85 +size_t _EXFUN(_mbstowcs_r,(struct _reent *, wchar_t *, const char *, size_t, int *));1.86 +size_t _EXFUN(wcstombs,(char *, const wchar_t *, size_t));1.87 +size_t _EXFUN(_wcstombs_r,(struct _reent *, char *, const wchar_t *, size_t, int *));1.88 +_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR)));1.89 +int _EXFUN(rand,(_VOID));1.90 +_PTR _EXFUN(realloc,(_PTR __r, size_t __size));1.91 +_VOID _EXFUN(srand,(unsigned __seed));1.92 +double _EXFUN(strtod,(const char *__n, char **_end_PTR));1.93 +#ifndef __STRICT_ANSI__1.94 +float _EXFUN(strtodf,(const char *__n, char **_end_PTR));1.95 +#endif1.96 +long _EXFUN(strtol,(const char *__n, char **_end_PTR, int __base));1.97 +unsigned long _EXFUN(strtoul,(const char *_n_PTR, char **_end_PTR, int __base));1.98 +unsigned long _EXFUN(_strtoul_r,(struct _reent *,const char *_n_PTR, char **_end_PTR, int __base));1.99 +int _EXFUN(system,(const char *__string));1.100 +1.101 +#ifndef __STRICT_ANSI__1.102 +_VOID _EXFUN(cfree,(_PTR));1.103 +int _EXFUN(putenv,(const char *__string));1.104 +int _EXFUN(setenv,(const char *__string, const char *__value, int __overwrite));1.105 +int _EXFUN(_setenv_r,(struct _reent *, const char *__string, const char *__value, int __overwrite));1.106 +1.107 +char * _EXFUN(gcvt,(double,int,char *));1.108 +char * _EXFUN(gcvtf,(float,int,char *));1.109 +char * _EXFUN(fcvt,(double,int,int *,int *));1.110 +char * _EXFUN(fcvtf,(float,int,int *,int *));1.111 +char * _EXFUN(ecvt,(double,int,int *,int *));1.112 +char * _EXFUN(ecvtbuf,(double, int, int*, int*, char *));1.113 +char * _EXFUN(fcvtbuf,(double, int, int*, int*, char *));1.114 +char * _EXFUN(ecvtf,(float,int,int *,int *));1.115 +char * _EXFUN(dtoa,(double, int, int, int *, int*, char**));1.116 +int _EXFUN(rand_r,(unsigned *__seed));1.117 +1.118 +#ifdef __CYGWIN32__1.119 +char * _EXFUN(realpath,(const char *, char *));1.120 +void _EXFUN(unsetenv,(const char *__string));1.121 +int _EXFUN(random,(_VOID));1.122 +long _EXFUN(srandom,(unsigned __seed));1.123 +char * _EXFUN(ptsname, (int));1.124 +int _EXFUN(grantpt, (int));1.125 +int _EXFUN(unlockpt,(int));1.126 +#endif1.127 +1.128 +#endif /* ! __STRICT_ANSI__ */1.129 +1.130 +char * _EXFUN(_dtoa_r,(struct _reent *, double, int, int, int *, int*, char**));1.131 +_PTR _EXFUN(_malloc_r,(struct _reent *, size_t));1.132 +_PTR _EXFUN(_calloc_r,(struct _reent *, size_t, size_t));1.133 +_VOID _EXFUN(_free_r,(struct _reent *, _PTR));1.134 +_PTR _EXFUN(_realloc_r,(struct _reent *, _PTR, size_t));1.135 +_VOID _EXFUN(_mstats_r,(struct _reent *, char *));1.136 +int _EXFUN(_system_r,(struct _reent *, const char *));1.137 +1.138 +_VOID _EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *));1.139 +1.140 +#ifdef __cplusplus1.141 +}1.142 +#endif1.143 +#endif /* _STDLIB_H_ */
.