diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:07:29 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:07:29 -0500 |
| commit | 40e2986d3d196855bba3836a60a482fd3a0f73a8 (patch) | |
| tree | 6ce03ea7ddffb7f0001bff12706b21f9bce3c67e /src/stdlib | |
| parent | 421cc9cd7295e5b92cf167a41bd8f55a3b842728 (diff) | |
remove posix and xopen specific functions
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/a64l.c | 23 | ||||
| -rw-r--r-- | src/stdlib/drand48.c | 12 | ||||
| -rw-r--r-- | src/stdlib/ecvt.c | 12 | ||||
| -rw-r--r-- | src/stdlib/erand48.c | 12 | ||||
| -rw-r--r-- | src/stdlib/fcvt.c | 12 | ||||
| -rw-r--r-- | src/stdlib/gcvt.c | 12 | ||||
| -rw-r--r-- | src/stdlib/getsubopt.c | 13 | ||||
| -rw-r--r-- | src/stdlib/grantpt.c | 12 | ||||
| -rw-r--r-- | src/stdlib/initstate.c | 12 | ||||
| -rw-r--r-- | src/stdlib/jrand48.c | 12 | ||||
| -rw-r--r-- | src/stdlib/l64a.c | 12 | ||||
| -rw-r--r-- | src/stdlib/lcong48.c | 11 | ||||
| -rw-r--r-- | src/stdlib/lrand48.c | 12 | ||||
| -rw-r--r-- | src/stdlib/mkstemp.c | 13 | ||||
| -rw-r--r-- | src/stdlib/mktemp.c | 12 | ||||
| -rw-r--r-- | src/stdlib/mrand48.c | 12 | ||||
| -rw-r--r-- | src/stdlib/nrand48.c | 12 | ||||
| -rw-r--r-- | src/stdlib/ptsname.c | 12 | ||||
| -rw-r--r-- | src/stdlib/putenv.c | 12 | ||||
| -rw-r--r-- | src/stdlib/random.c | 13 | ||||
| -rw-r--r-- | src/stdlib/realpath.c | 12 | ||||
| -rw-r--r-- | src/stdlib/seed48.c | 13 | ||||
| -rw-r--r-- | src/stdlib/setkey.c | 11 | ||||
| -rw-r--r-- | src/stdlib/setstate.c | 12 | ||||
| -rw-r--r-- | src/stdlib/srand48.c | 11 | ||||
| -rw-r--r-- | src/stdlib/srandom.c | 11 | ||||
| -rw-r--r-- | src/stdlib/ttyslot.c | 13 | ||||
| -rw-r--r-- | src/stdlib/unlockpt.c | 12 | ||||
| -rw-r--r-- | src/stdlib/valloc.c | 11 |
29 files changed, 0 insertions, 359 deletions
diff --git a/src/stdlib/a64l.c b/src/stdlib/a64l.c deleted file mode 100644 index 287e76f8..00000000 --- a/src/stdlib/a64l.c +++ /dev/null @@ -1,23 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -long a64l(const char *s) -{ - SIGNAL_SAFE(0); - 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 deleted file mode 100644 index 8f0e4a55..00000000 --- a/src/stdlib/drand48.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -double drand48(void) -{ - SIGNAL_SAFE(0); - return 0.0; -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/ecvt.c b/src/stdlib/ecvt.c deleted file mode 100644 index fc2e6016..00000000 --- a/src/stdlib/ecvt.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char *ecvt(double value, int ndigit, int *decpt, int *sign) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(400,700) -*/ diff --git a/src/stdlib/erand48.c b/src/stdlib/erand48.c deleted file mode 100644 index e7fdeb4d..00000000 --- a/src/stdlib/erand48.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -double erand48(unsigned short xsubi[3]) -{ - SIGNAL_SAFE(0); - return 0.0; -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/fcvt.c b/src/stdlib/fcvt.c deleted file mode 100644 index 857a25d7..00000000 --- a/src/stdlib/fcvt.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char *fcvt(double value, int ndigit, int *decpt, int *sign) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(400,700) -*/ diff --git a/src/stdlib/gcvt.c b/src/stdlib/gcvt.c deleted file mode 100644 index 61b40132..00000000 --- a/src/stdlib/gcvt.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char *gcvt(double value, int ndigit, char *buf) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(400,700) -*/ diff --git a/src/stdlib/getsubopt.c b/src/stdlib/getsubopt.c deleted file mode 100644 index 93dd08c3..00000000 --- a/src/stdlib/getsubopt.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -int getsubopt(char ** optionp, char * const * keylistp, char ** valuep) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/stdlib/grantpt.c b/src/stdlib/grantpt.c deleted file mode 100644 index 49796817..00000000 --- a/src/stdlib/grantpt.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -int grantpt(int fildes) -{ - SIGNAL_SAFE(0); - return fildes; -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/initstate.c b/src/stdlib/initstate.c deleted file mode 100644 index fde257eb..00000000 --- a/src/stdlib/initstate.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char * initstate(unsigned seed, char * state, size_t size) -{ - SIGNAL_SAFE(0); - return state; -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/jrand48.c b/src/stdlib/jrand48.c deleted file mode 100644 index 470dbce5..00000000 --- a/src/stdlib/jrand48.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -long jrand48(unsigned short xsub[3]) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/l64a.c b/src/stdlib/l64a.c deleted file mode 100644 index 67c0f9b9..00000000 --- a/src/stdlib/l64a.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char * l64a(long value) -{ - SIGNAL_SAFE(0); - return NULL; -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/lcong48.c b/src/stdlib/lcong48.c deleted file mode 100644 index ac43c301..00000000 --- a/src/stdlib/lcong48.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -void lcong48(unsigned short param[7]) -{ - SIGNAL_SAFE(0); -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/lrand48.c b/src/stdlib/lrand48.c deleted file mode 100644 index f4bb3c70..00000000 --- a/src/stdlib/lrand48.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -long lrand48(void) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/mkstemp.c b/src/stdlib/mkstemp.c deleted file mode 100644 index 7e721167..00000000 --- a/src/stdlib/mkstemp.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -int mkstemp(char * template) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(400) -POSIX(200809) -*/ diff --git a/src/stdlib/mktemp.c b/src/stdlib/mktemp.c deleted file mode 100644 index e1887653..00000000 --- a/src/stdlib/mktemp.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char *mktemp(char *template) -{ - SIGNAL_SAFE(0); - return template; -} - -/* -XOPEN(400,700) -*/ diff --git a/src/stdlib/mrand48.c b/src/stdlib/mrand48.c deleted file mode 100644 index 3a1c78b7..00000000 --- a/src/stdlib/mrand48.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -long mrand48(void) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/nrand48.c b/src/stdlib/nrand48.c deleted file mode 100644 index 73ca509b..00000000 --- a/src/stdlib/nrand48.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -long nrand48(unsigned short xsubi[3]) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/ptsname.c b/src/stdlib/ptsname.c deleted file mode 100644 index 147aa934..00000000 --- a/src/stdlib/ptsname.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char * ptsname(int fildes) -{ - SIGNAL_SAFE(0); - return NULL; -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/putenv.c b/src/stdlib/putenv.c deleted file mode 100644 index 0cfc1cb8..00000000 --- a/src/stdlib/putenv.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -int putenv(char * string) -{ - SIGNAL_SAFE(0); - return 0; -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/random.c b/src/stdlib/random.c deleted file mode 100644 index 45f712a1..00000000 --- a/src/stdlib/random.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -long random(void) -{ - SIGNAL_SAFE(0); - - return 0; -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/realpath.c b/src/stdlib/realpath.c deleted file mode 100644 index db8b7cab..00000000 --- a/src/stdlib/realpath.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char * realpath(const char * restrict file_name, char * restrict resolved_name) -{ - SIGNAL_SAFE(0); - return resolved_name; -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/seed48.c b/src/stdlib/seed48.c deleted file mode 100644 index 42c194a4..00000000 --- a/src/stdlib/seed48.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -unsigned short * seed48(unsigned short seed16v[3]) -{ - SIGNAL_SAFE(0); - - return seed16v; -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/setkey.c b/src/stdlib/setkey.c deleted file mode 100644 index 7659c223..00000000 --- a/src/stdlib/setkey.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -void setkey(const char * key) -{ - SIGNAL_SAFE(0); -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/setstate.c b/src/stdlib/setstate.c deleted file mode 100644 index c58a0325..00000000 --- a/src/stdlib/setstate.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -char * setstate(char * state) -{ - SIGNAL_SAFE(0); - return state; -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/srand48.c b/src/stdlib/srand48.c deleted file mode 100644 index 5c0768e9..00000000 --- a/src/stdlib/srand48.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -void srand48(long seedval) -{ - SIGNAL_SAFE(0); -} - -/* -XOPEN(4) -*/ diff --git a/src/stdlib/srandom.c b/src/stdlib/srandom.c deleted file mode 100644 index 07b93e3c..00000000 --- a/src/stdlib/srandom.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -void srandom(unsigned seed) -{ - SIGNAL_SAFE(0); -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/ttyslot.c b/src/stdlib/ttyslot.c deleted file mode 100644 index 1d440739..00000000 --- a/src/stdlib/ttyslot.c +++ /dev/null @@ -1,13 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -int ttyslot(void) -{ - SIGNAL_SAFE(0); - - return 0; -} - -/* -XOPEN(400,600) -*/ diff --git a/src/stdlib/unlockpt.c b/src/stdlib/unlockpt.c deleted file mode 100644 index 69572138..00000000 --- a/src/stdlib/unlockpt.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdlib.h> - -int unlockpt(int fildes) -{ - SIGNAL_SAFE(0); - - return fildes; -} - -/* -XOPEN(400) -*/ diff --git a/src/stdlib/valloc.c b/src/stdlib/valloc.c deleted file mode 100644 index c93b2c43..00000000 --- a/src/stdlib/valloc.c +++ /dev/null @@ -1,11 +0,0 @@ -#include <stdlib.h> -#include "_stdlib.h" - -void *valloc(size_t size) -{ - SIGNAL_SAFE(0); -} - -/* -XOPEN(400,600) -*/ |
