Revise project license to be GNU GPL version 2 to allow incorporating Broadcom BCM432...
[bootloader-ap.git] / include / stdlib.h
1 /*
2   libc standard library functions
3   Copyright (c) 2010 TJ <linux@tjworld.net>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License version 2 as published by
7     the Free Software Foundation.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License along
15     with this program; if not, write to the Free Software Foundation, Inc.,
16     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17     If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __STDLIB_H
21 #define __STDLIB_H
22
23 long int  atol(const char *str);
24 int       atoi(const char *str);
25
26 /*
27   These functions are unused and not defined
28
29 long      a64l(const char *);
30 void      abort(void);
31 int       abs(int);
32 int       atexit(void (*)(void));
33 double    atof(const char *);
34 void     *bsearch(const void *, const void *, size_t, size_t,
35               int (*)(const void *, const void *));
36 void     *calloc(size_t, size_t);
37 div_t     div(int, int);
38 double    drand48(void);
39 char     *ecvt(double, int, int *, int *);
40 double    erand48(unsigned short int[3]);
41 void      exit(int);
42 char     *fcvt (double, int, int *, int *);
43 void      free(void *);
44
45
46 char     *gcvt(double, int, char *);
47 char     *getenv(const char *);
48 int       getsubopt(char **, char *const *, char **);
49 int       grantpt(int);
50 char     *initstate(unsigned int, char *, size_t);
51 long int  jrand48(unsigned short int[3]);
52 char     *l64a(long);
53 long int  labs(long int);
54 void      lcong48(unsigned short int[7]);
55 ldiv_t    ldiv(long int, long int);
56 long int  lrand48(void);
57 void     *malloc(size_t);
58 int       mblen(const char *, size_t);
59 size_t    mbstowcs(wchar_t *, const char *, size_t);
60 int       mbtowc(wchar_t *, const char *, size_t);
61 char     *mktemp(char *);
62 int       mkstemp(char *);
63 long int  mrand48(void);
64 long int  nrand48(unsigned short int [3]);
65 char     *ptsname(int);
66 int       putenv(char *);
67 void      qsort(void *, size_t, size_t, int (*)(const void *,
68               const void *));
69 int       rand(void);
70 int       rand_r(unsigned int *);
71 long      random(void);
72 void     *realloc(void *, size_t);
73 char     *realpath(const char *, char *);
74 unsigned  short int    seed48(unsigned short int[3]);
75 void      setkey(const char *);
76 char     *setstate(const char *);
77 void      srand(unsigned int);
78 void      srand48(long int);
79 void      srandom(unsigned);
80 double    strtod(const char *, char **);
81 long int  strtol(const char *, char **, int);
82 unsigned long int
83           strtoul(const char *, char **, int);
84 int       system(const char *);
85 int       ttyslot(void); (LEGACY)
86 int       unlockpt(int);
87 void     *valloc(size_t); (LEGACY)
88 size_t    wcstombs(char *, const wchar_t *, size_t);
89 int       wctomb(char *, wchar_t);
90 */
91
92 #endif