summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stdlib/a64l.c21
-rw-r--r--src/stdlib/drand48.c10
-rw-r--r--src/stdlib/ecvt.c10
-rw-r--r--src/stdlib/erand48.c10
-rw-r--r--src/stdlib/fcvt.c10
-rw-r--r--src/stdlib/gcvt.c10
-rw-r--r--src/stdlib/getsubopt.c11
-rw-r--r--src/stdlib/grantpt.c10
-rw-r--r--src/stdlib/initstate.c10
-rw-r--r--src/stdlib/jrand48.c10
-rw-r--r--src/stdlib/l64a.c10
-rw-r--r--src/stdlib/lcong48.c9
-rw-r--r--src/stdlib/lrand48.c10
-rw-r--r--src/stdlib/mkstemp.c11
-rw-r--r--src/stdlib/mktemp.c10
-rw-r--r--src/stdlib/mrand48.c10
-rw-r--r--src/stdlib/nrand48.c10
-rw-r--r--src/stdlib/ptsname.c10
-rw-r--r--src/stdlib/putenv.c10
-rw-r--r--src/stdlib/random.c10
-rw-r--r--src/stdlib/realpath.c10
-rw-r--r--src/stdlib/seed48.c10
-rw-r--r--src/stdlib/setkey.c9
-rw-r--r--src/stdlib/setstate.c10
-rw-r--r--src/stdlib/srand48.c9
-rw-r--r--src/stdlib/srandom.c9
-rw-r--r--src/stdlib/ttyslot.c10
-rw-r--r--src/stdlib/unlockpt.c10
-rw-r--r--src/stdlib/valloc.c9
29 files changed, 298 insertions, 0 deletions
diff --git a/src/stdlib/a64l.c b/src/stdlib/a64l.c
new file mode 100644
index 00000000..e47fe49f
--- /dev/null
+++ b/src/stdlib/a64l.c
@@ -0,0 +1,21 @@
+#include <stdlib.h>
+
+long a64l(const char *s)
+{
+ long l = 0;
+ int i = 0;
+ int n = 0;
+ int base = 1;
+ while (i < 6) {
+ /*n = indexof ((char*)radix64, s[i]); */
+ if (n == -1)
+ return l;
+ l += n * base;
+ base *= 64;
+ }
+ return l;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/drand48.c b/src/stdlib/drand48.c
new file mode 100644
index 00000000..87ef3359
--- /dev/null
+++ b/src/stdlib/drand48.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+double drand48(void)
+{
+ return 0.0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/ecvt.c b/src/stdlib/ecvt.c
new file mode 100644
index 00000000..137c7996
--- /dev/null
+++ b/src/stdlib/ecvt.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char *ecvt(double value, int ndigit, int *decpt, int *sign)
+{
+ return 0;
+}
+
+/*
+XOPEN(400,700)
+*/
diff --git a/src/stdlib/erand48.c b/src/stdlib/erand48.c
new file mode 100644
index 00000000..3e4be053
--- /dev/null
+++ b/src/stdlib/erand48.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+double erand48(unsigned short xsubi[3])
+{
+ return 0.0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/fcvt.c b/src/stdlib/fcvt.c
new file mode 100644
index 00000000..091b3515
--- /dev/null
+++ b/src/stdlib/fcvt.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char *fcvt(double value, int ndigit, int *decpt, int *sign)
+{
+ return 0;
+}
+
+/*
+XOPEN(400,700)
+*/
diff --git a/src/stdlib/gcvt.c b/src/stdlib/gcvt.c
new file mode 100644
index 00000000..6c337272
--- /dev/null
+++ b/src/stdlib/gcvt.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char *gcvt(double value, int ndigit, char *buf)
+{
+ return 0;
+}
+
+/*
+XOPEN(400,700)
+*/
diff --git a/src/stdlib/getsubopt.c b/src/stdlib/getsubopt.c
new file mode 100644
index 00000000..aff17828
--- /dev/null
+++ b/src/stdlib/getsubopt.c
@@ -0,0 +1,11 @@
+#include <stdlib.h>
+
+int getsubopt(char ** optionp, char * const * keylistp, char ** valuep)
+{
+ return 0;
+}
+
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/stdlib/grantpt.c b/src/stdlib/grantpt.c
new file mode 100644
index 00000000..71e28e2a
--- /dev/null
+++ b/src/stdlib/grantpt.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+int grantpt(int fildes)
+{
+ return fildes;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/initstate.c b/src/stdlib/initstate.c
new file mode 100644
index 00000000..93c9c1ab
--- /dev/null
+++ b/src/stdlib/initstate.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char * initstate(unsigned seed, char * state, size_t size)
+{
+ return state;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/jrand48.c b/src/stdlib/jrand48.c
new file mode 100644
index 00000000..f1d508d2
--- /dev/null
+++ b/src/stdlib/jrand48.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+long jrand48(unsigned short xsub[3])
+{
+ return 0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/l64a.c b/src/stdlib/l64a.c
new file mode 100644
index 00000000..99585372
--- /dev/null
+++ b/src/stdlib/l64a.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char * l64a(long value)
+{
+ return NULL;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/lcong48.c b/src/stdlib/lcong48.c
new file mode 100644
index 00000000..2817def4
--- /dev/null
+++ b/src/stdlib/lcong48.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+
+void lcong48(unsigned short param[7])
+{
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/lrand48.c b/src/stdlib/lrand48.c
new file mode 100644
index 00000000..5d6a7f85
--- /dev/null
+++ b/src/stdlib/lrand48.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+long lrand48(void)
+{
+ return 0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/mkstemp.c b/src/stdlib/mkstemp.c
new file mode 100644
index 00000000..11831ea2
--- /dev/null
+++ b/src/stdlib/mkstemp.c
@@ -0,0 +1,11 @@
+#include <stdlib.h>
+
+int mkstemp(char * template)
+{
+ return 0;
+}
+
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/stdlib/mktemp.c b/src/stdlib/mktemp.c
new file mode 100644
index 00000000..cc6e5e82
--- /dev/null
+++ b/src/stdlib/mktemp.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char *mktemp(char *template)
+{
+ return template;
+}
+
+/*
+XOPEN(400,700)
+*/
diff --git a/src/stdlib/mrand48.c b/src/stdlib/mrand48.c
new file mode 100644
index 00000000..7d287fd1
--- /dev/null
+++ b/src/stdlib/mrand48.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+long mrand48(void)
+{
+ return 0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/nrand48.c b/src/stdlib/nrand48.c
new file mode 100644
index 00000000..35ced790
--- /dev/null
+++ b/src/stdlib/nrand48.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+long nrand48(unsigned short xsubi[3])
+{
+ return 0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/ptsname.c b/src/stdlib/ptsname.c
new file mode 100644
index 00000000..a004294a
--- /dev/null
+++ b/src/stdlib/ptsname.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char * ptsname(int fildes)
+{
+ return NULL;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/putenv.c b/src/stdlib/putenv.c
new file mode 100644
index 00000000..471712e7
--- /dev/null
+++ b/src/stdlib/putenv.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+int putenv(char * string)
+{
+ return 0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/random.c b/src/stdlib/random.c
new file mode 100644
index 00000000..e3c82a41
--- /dev/null
+++ b/src/stdlib/random.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+long random(void)
+{
+ return 0;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/realpath.c b/src/stdlib/realpath.c
new file mode 100644
index 00000000..1d0e04e6
--- /dev/null
+++ b/src/stdlib/realpath.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char * realpath(const char * restrict file_name, char * restrict resolved_name)
+{
+ return resolved_name;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/seed48.c b/src/stdlib/seed48.c
new file mode 100644
index 00000000..2a342ffd
--- /dev/null
+++ b/src/stdlib/seed48.c
@@ -0,0 +1,10 @@
+#if (defined _XOPEN_SOURCE)
+
+unsigned short * seed48(unsigned short seed16v[3])
+{
+ return seed16v;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/setkey.c b/src/stdlib/setkey.c
new file mode 100644
index 00000000..82e12934
--- /dev/null
+++ b/src/stdlib/setkey.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+
+void setkey(const char * key)
+{
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/setstate.c b/src/stdlib/setstate.c
new file mode 100644
index 00000000..9a8ab58b
--- /dev/null
+++ b/src/stdlib/setstate.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+char * setstate(char * state)
+{
+ return state;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/srand48.c b/src/stdlib/srand48.c
new file mode 100644
index 00000000..97be97c0
--- /dev/null
+++ b/src/stdlib/srand48.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+
+void srand48(long seedval)
+{
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/stdlib/srandom.c b/src/stdlib/srandom.c
new file mode 100644
index 00000000..a0839684
--- /dev/null
+++ b/src/stdlib/srandom.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+
+void srandom(unsigned seed)
+{
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/ttyslot.c b/src/stdlib/ttyslot.c
new file mode 100644
index 00000000..4e7a2b8e
--- /dev/null
+++ b/src/stdlib/ttyslot.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+int ttyslot(void)
+{
+ return 0;
+}
+
+/*
+XOPEN(400,600)
+*/
diff --git a/src/stdlib/unlockpt.c b/src/stdlib/unlockpt.c
new file mode 100644
index 00000000..eb15b8dc
--- /dev/null
+++ b/src/stdlib/unlockpt.c
@@ -0,0 +1,10 @@
+#include <stdlib.h>
+
+int unlockpt(int fildes)
+{
+ return fildes;
+}
+
+/*
+XOPEN(400)
+*/
diff --git a/src/stdlib/valloc.c b/src/stdlib/valloc.c
new file mode 100644
index 00000000..23df0003
--- /dev/null
+++ b/src/stdlib/valloc.c
@@ -0,0 +1,9 @@
+#include <stdlib.h>
+
+void *valloc(size_t size)
+{
+}
+
+/*
+XOPEN(400,600)
+*/