OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [include/] [stdlib.h] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
/*
2
 * stdlib.h
3
 *
4
 * Definitions for common types, variables, and functions.
5
 */
6
 
7
#ifndef _STDLIB_H_
8
#ifdef __cplusplus
9
extern "C" {
10
#endif
11
#define _STDLIB_H_
12
 
13
#include "_ansi.h"
14
 
15
#define __need_size_t
16
#define __need_wchar_t
17
#include <stddef.h>
18
 
19
#include <sys/reent.h>
20
 
21
#ifndef __STRICT_ANSI__
22
#include <alloca.h>
23
#endif
24
 
25
typedef struct
26
{
27
  int quot; /* quotient */
28
  int rem; /* remainder */
29
} div_t;
30
 
31
typedef struct
32
{
33
  long quot; /* quotient */
34
  long rem; /* remainder */
35
} ldiv_t;
36
 
37
#ifndef NULL
38
#define NULL 0
39
#endif
40
 
41
#define EXIT_FAILURE 1
42
#define EXIT_SUCCESS 0
43
 
44
#define RAND_MAX __RAND_MAX
45
 
46
extern __IMPORT int __mb_cur_max;
47
 
48
#define MB_CUR_MAX __mb_cur_max
49
 
50
_VOID   _EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn)));
51
int     _EXFUN(abs,(int));
52
int     _EXFUN(atexit,(_VOID (*__func)(_VOID)));
53
double  _EXFUN(atof,(const char *__nptr));
54
#ifndef __STRICT_ANSI__
55
float   _EXFUN(atoff,(const char *__nptr));
56
#endif
57
int     _EXFUN(atoi,(const char *__nptr));
58
long    _EXFUN(atol,(const char *__nptr));
59
_PTR    _EXFUN(bsearch,(const _PTR __key,
60
                       const _PTR __base,
61
                       size_t __nmemb,
62
                       size_t __size,
63
                       int _EXPARM(_compar,(const _PTR, const _PTR))));
64
_PTR    _EXFUN(calloc,(size_t __nmemb, size_t __size));
65
div_t   _EXFUN(div,(int __numer, int __denom));
66
_VOID   _EXFUN(exit,(int __status) _ATTRIBUTE ((noreturn)));
67
_VOID   _EXFUN(free,(_PTR));
68
char *  _EXFUN(getenv,(const char *__string));
69
char *  _EXFUN(_getenv_r,(struct _reent *, const char *__string));
70
char *  _EXFUN(_findenv,(_CONST char *, int *));
71
char *  _EXFUN(_findenv_r,(struct _reent *, _CONST char *, int *));
72
long    _EXFUN(labs,(long));
73
ldiv_t  _EXFUN(ldiv,(long __numer, long __denom));
74
_PTR    _EXFUN(malloc,(size_t __size));
75
int     _EXFUN(mblen,(const char *, size_t));
76
int     _EXFUN(_mblen_r,(struct _reent *, const char *, size_t, int *));
77
int     _EXFUN(mbtowc,(wchar_t *, const char *, size_t));
78
int     _EXFUN(_mbtowc_r,(struct _reent *, wchar_t *, const char *, size_t, int *));
79
int     _EXFUN(wctomb,(char *, wchar_t));
80
int     _EXFUN(_wctomb_r,(struct _reent *, char *, wchar_t, int *));
81
size_t  _EXFUN(mbstowcs,(wchar_t *, const char *, size_t));
82
size_t  _EXFUN(_mbstowcs_r,(struct _reent *, wchar_t *, const char *, size_t, int *));
83
size_t  _EXFUN(wcstombs,(char *, const wchar_t *, size_t));
84
size_t  _EXFUN(_wcstombs_r,(struct _reent *, char *, const wchar_t *, size_t, int *));
85
#ifndef __STRICT_ANSI__
86
#ifndef _REENT_ONLY
87
int     _EXFUN(mkstemp,(char *));
88
char *  _EXFUN(mktemp,(char *));
89
#endif
90
#endif
91
_VOID   _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR)));
92
int     _EXFUN(rand,(_VOID));
93
_PTR    _EXFUN(realloc,(_PTR __r, size_t __size));
94
_VOID   _EXFUN(srand,(unsigned __seed));
95
double  _EXFUN(strtod,(const char *__n, char **__end_PTR));
96
double  _EXFUN(_strtod_r,(struct _reent *,const char *__n, char **__end_PTR));
97
#ifndef __STRICT_ANSI__
98
float   _EXFUN(strtodf,(const char *__n, char **__end_PTR));
99
#endif
100
long    _EXFUN(strtol,(const char *__n, char **__end_PTR, int __base));
101
long    _EXFUN(_strtol_r,(struct _reent *,const char *__n, char **__end_PTR, int __base));
102
unsigned long _EXFUN(strtoul,(const char *__n, char **__end_PTR, int __base));
103
unsigned long _EXFUN(_strtoul_r,(struct _reent *,const char *__n, char **__end_PTR, int __base));
104
 
105
int     _EXFUN(system,(const char *__string));
106
 
107
#ifndef __STRICT_ANSI__
108
int     _EXFUN(putenv,(const char *__string));
109
int     _EXFUN(_putenv_r,(struct _reent *, const char *__string));
110
int     _EXFUN(setenv,(const char *__string, const char *__value, int __overwrite));
111
int     _EXFUN(_setenv_r,(struct _reent *, const char *__string, const char *__value, int __overwrite));
112
 
113
char *  _EXFUN(gcvt,(double,int,char *));
114
char *  _EXFUN(gcvtf,(float,int,char *));
115
char *  _EXFUN(fcvt,(double,int,int *,int *));
116
char *  _EXFUN(fcvtf,(float,int,int *,int *));
117
char *  _EXFUN(ecvt,(double,int,int *,int *));
118
char *  _EXFUN(ecvtbuf,(double, int, int*, int*, char *));
119
char *  _EXFUN(fcvtbuf,(double, int, int*, int*, char *));
120
char *  _EXFUN(ecvtf,(float,int,int *,int *));
121
char *  _EXFUN(dtoa,(double, int, int, int *, int*, char**));
122
int     _EXFUN(rand_r,(unsigned *__seed));
123
 
124
double _EXFUN(drand48,(_VOID));
125
double _EXFUN(_drand48_r,(struct _reent *));
126
double _EXFUN(erand48,(unsigned short [3]));
127
double _EXFUN(_erand48_r,(struct _reent *, unsigned short [3]));
128
long   _EXFUN(jrand48,(unsigned short [3]));
129
long   _EXFUN(_jrand48_r,(struct _reent *, unsigned short [3]));
130
_VOID  _EXFUN(lcong48,(unsigned short [7]));
131
_VOID  _EXFUN(_lcong48_r,(struct _reent *, unsigned short [7]));
132
long   _EXFUN(lrand48,(_VOID));
133
long   _EXFUN(_lrand48_r,(struct _reent *));
134
long   _EXFUN(mrand48,(_VOID));
135
long   _EXFUN(_mrand48_r,(struct _reent *));
136
long   _EXFUN(nrand48,(unsigned short [3]));
137
long   _EXFUN(_nrand48_r,(struct _reent *, unsigned short [3]));
138
unsigned short *
139
       _EXFUN(seed48,(unsigned short [3]));
140
unsigned short *
141
       _EXFUN(_seed48_r,(struct _reent *, unsigned short [3]));
142
_VOID  _EXFUN(srand48,(long));
143
_VOID  _EXFUN(_srand48_r,(struct _reent *, long));
144
long long _EXFUN(strtoll,(const char *__n, char **__end_PTR, int __base));
145
long long _EXFUN(_strtoll_r,(struct _reent *, const char *__n, char **__end_PTR, int __base));
146
unsigned long long _EXFUN(strtoull,(const char *__n, char **__end_PTR, int __base));
147
unsigned long long _EXFUN(_strtoull_r,(struct _reent *, const char *__n, char **__end_PTR, int __base));
148
 
149
#ifndef __CYGWIN__
150
_VOID   _EXFUN(cfree,(_PTR));
151
#else
152
char *  _EXFUN(realpath,(const char *, char *));
153
void    _EXFUN(unsetenv,(const char *__string));
154
void    _EXFUN(_unsetenv_r,(struct _reent *, const char *__string));
155
int     _EXFUN(random,(_VOID));
156
long    _EXFUN(srandom,(unsigned __seed));
157
char *  _EXFUN(ptsname, (int));
158
int     _EXFUN(grantpt, (int));
159
int     _EXFUN(unlockpt,(int));
160
#endif
161
 
162
#endif /* ! __STRICT_ANSI__ */
163
 
164
char *  _EXFUN(_dtoa_r,(struct _reent *, double, int, int, int *, int*, char**));
165
_PTR    _EXFUN(_malloc_r,(struct _reent *, size_t));
166
_PTR    _EXFUN(_calloc_r,(struct _reent *, size_t, size_t));
167
_VOID   _EXFUN(_free_r,(struct _reent *, _PTR));
168
_PTR    _EXFUN(_realloc_r,(struct _reent *, _PTR, size_t));
169
_VOID   _EXFUN(_mstats_r,(struct _reent *, char *));
170
int     _EXFUN(_system_r,(struct _reent *, const char *));
171
 
172
_VOID   _EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *));
173
 
174
#ifdef __cplusplus
175
}
176
#endif
177
#endif /* _STDLIB_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.