Add skeleton libc definition
[bootloader-ap.git] / include / stdlib.h
diff --git a/include/stdlib.h b/include/stdlib.h
new file mode 100644 (file)
index 0000000..4440bc1
--- /dev/null
@@ -0,0 +1,92 @@
+/*
+  libc standard library functions
+  Copyright (c) 2010 TJ <linux@tjworld.net>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program (See the COPYRIGHT file the base directory).
+    If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __STDLIB_H
+#define __STDLIB_H
+
+long int  atol(const char *str);
+int       atoi(const char *str);
+
+/*
+  These functions are unused and not defined
+
+long      a64l(const char *);
+void      abort(void);
+int       abs(int);
+int       atexit(void (*)(void));
+double    atof(const char *);
+void     *bsearch(const void *, const void *, size_t, size_t,
+              int (*)(const void *, const void *));
+void     *calloc(size_t, size_t);
+div_t     div(int, int);
+double    drand48(void);
+char     *ecvt(double, int, int *, int *);
+double    erand48(unsigned short int[3]);
+void      exit(int);
+char     *fcvt (double, int, int *, int *);
+void      free(void *);
+
+
+char     *gcvt(double, int, char *);
+char     *getenv(const char *);
+int       getsubopt(char **, char *const *, char **);
+int       grantpt(int);
+char     *initstate(unsigned int, char *, size_t);
+long int  jrand48(unsigned short int[3]);
+char     *l64a(long);
+long int  labs(long int);
+void      lcong48(unsigned short int[7]);
+ldiv_t    ldiv(long int, long int);
+long int  lrand48(void);
+void     *malloc(size_t);
+int       mblen(const char *, size_t);
+size_t    mbstowcs(wchar_t *, const char *, size_t);
+int       mbtowc(wchar_t *, const char *, size_t);
+char     *mktemp(char *);
+int       mkstemp(char *);
+long int  mrand48(void);
+long int  nrand48(unsigned short int [3]);
+char     *ptsname(int);
+int       putenv(char *);
+void      qsort(void *, size_t, size_t, int (*)(const void *,
+              const void *));
+int       rand(void);
+int       rand_r(unsigned int *);
+long      random(void);
+void     *realloc(void *, size_t);
+char     *realpath(const char *, char *);
+unsigned  short int    seed48(unsigned short int[3]);
+void      setkey(const char *);
+char     *setstate(const char *);
+void      srand(unsigned int);
+void      srand48(long int);
+void      srandom(unsigned);
+double    strtod(const char *, char **);
+long int  strtol(const char *, char **, int);
+unsigned long int
+          strtoul(const char *, char **, int);
+int       system(const char *);
+int       ttyslot(void); (LEGACY)
+int       unlockpt(int);
+void     *valloc(size_t); (LEGACY)
+size_t    wcstombs(char *, const wchar_t *, size_t);
+int       wctomb(char *, wchar_t);
+*/
+
+#endif