diff options
Diffstat (limited to 'src/stdlib')
78 files changed, 390 insertions, 0 deletions
diff --git a/src/stdlib/_Exit.c b/src/stdlib/_Exit.c index 50f1c37f..b973ebbc 100644 --- a/src/stdlib/_Exit.c +++ b/src/stdlib/_Exit.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include "_syscall.h" @@ -29,3 +31,6 @@ No functions registered by fn(atexit) or fn(at_quick_exit) are called. /* STDC(199901) */ + + +#endif diff --git a/src/stdlib/__stdlib.c b/src/stdlib/__stdlib.c index 6fcfd82b..aa67fa10 100644 --- a/src/stdlib/__stdlib.c +++ b/src/stdlib/__stdlib.c @@ -1,3 +1,5 @@ +#if 0 + #include "_stdlib.h" struct __stdlib __stdlib; @@ -5,3 +7,6 @@ struct __stdlib __stdlib; /* STDC(0) */ + + +#endif diff --git a/src/stdlib/a64l.c b/src/stdlib/a64l.c index e47fe49f..f579d5fa 100644 --- a/src/stdlib/a64l.c +++ b/src/stdlib/a64l.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> long a64l(const char *s) @@ -19,3 +21,6 @@ long a64l(const char *s) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/abort.c b/src/stdlib/abort.c index 3debab2c..fb2578c8 100644 --- a/src/stdlib/abort.c +++ b/src/stdlib/abort.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <sys/types.h> #include <signal.h> @@ -24,3 +26,6 @@ IMPLEMENTATION(whether temporary files are removed) IMPLEMENTATION(the value of unsuccessful termination returned to the host environment) STDC(1) */ + + +#endif diff --git a/src/stdlib/abort_handler_s.c b/src/stdlib/abort_handler_s.c index 2405cd79..31d06568 100644 --- a/src/stdlib/abort_handler_s.c +++ b/src/stdlib/abort_handler_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> void abort_handler_s(const char * restrict msg, void * restrict ptr, errno_t error) @@ -8,3 +10,6 @@ void abort_handler_s(const char * restrict msg, void * restrict ptr, errno_t err /* CEXT1(201112) */ + + +#endif diff --git a/src/stdlib/abs.c b/src/stdlib/abs.c index 5cf59b4e..b043fd03 100644 --- a/src/stdlib/abs.c +++ b/src/stdlib/abs.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <limits.h> @@ -21,3 +23,6 @@ UNDEFINED(ABS(ARGUMENT(j)) cannot be represented) RETURN_SUCCESS(ABS(j)); STDC(1) */ + + +#endif diff --git a/src/stdlib/aligned_alloc.c b/src/stdlib/aligned_alloc.c index 9b721a13..36bae69d 100644 --- a/src/stdlib/aligned_alloc.c +++ b/src/stdlib/aligned_alloc.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdli.h> void *aligned_alloc(size_t alignment, size_t size) @@ -10,3 +12,6 @@ void *aligned_alloc(size_t alignment, size_t size) /* STDC(201112) */ + + +#endif diff --git a/src/stdlib/at_quick_exit.c b/src/stdlib/at_quick_exit.c index 01127d4e..f3659fd6 100644 --- a/src/stdlib/at_quick_exit.c +++ b/src/stdlib/at_quick_exit.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <limits.h> #include <errno.h> @@ -52,3 +54,6 @@ program exits via fn(quick_exit). The function must take no parameters. /* STDC(201112) */ + + +#endif diff --git a/src/stdlib/atexit.c b/src/stdlib/atexit.c index 79b486d0..d48b9d0e 100644 --- a/src/stdlib/atexit.c +++ b/src/stdlib/atexit.c @@ -1,3 +1,5 @@ +#if 0 + #include <errno.h> #include <stdlib.h> #include "_stdlib.h" @@ -36,3 +38,6 @@ RETURN_FAILURE(NONZERO) RETURN_SUCCESS(0) STDC(1) */ + + +#endif diff --git a/src/stdlib/atof.c b/src/stdlib/atof.c index c8fd2344..1cb52620 100644 --- a/src/stdlib/atof.c +++ b/src/stdlib/atof.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert string to floating-point **/ @@ -17,3 +19,6 @@ LC_CTYPE RETURN_SUCCESS(the converted value) STDC(1) */ + + +#endif diff --git a/src/stdlib/atoi.c b/src/stdlib/atoi.c index 6e58dd22..4ed20bc3 100644 --- a/src/stdlib/atoi.c +++ b/src/stdlib/atoi.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert string to integer **/ @@ -17,3 +19,6 @@ LC_CTYPE RETURN_SUCCESS(the converted value) STDC(1) */ + + +#endif diff --git a/src/stdlib/atol.c b/src/stdlib/atol.c index 6bcebf7d..0a1e35d5 100644 --- a/src/stdlib/atol.c +++ b/src/stdlib/atol.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert string to long integer **/ @@ -17,3 +19,6 @@ LC_CTYPE RETURN_SUCCESS(the converted value) STDC(1) */ + + +#endif diff --git a/src/stdlib/atoll.c b/src/stdlib/atoll.c index d10cb5ed..b9da2def 100644 --- a/src/stdlib/atoll.c +++ b/src/stdlib/atoll.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert string to long long integer **/ @@ -17,3 +19,6 @@ LC_CTYPE RETURN_SUCCESS(the converted value) STDC(199901) */ + + +#endif diff --git a/src/stdlib/bsearch.c b/src/stdlib/bsearch.c index 39de941e..39bf7694 100644 --- a/src/stdlib/bsearch.c +++ b/src/stdlib/bsearch.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** binary search **/ @@ -42,3 +44,6 @@ RETURN_FAILURE(CONSTANT(NULL)) RETURN_SUCCESS(a pointer to the matching element) STDC(1) */ + + +#endif diff --git a/src/stdlib/bsearch_s.c b/src/stdlib/bsearch_s.c index 0f2cee63..dfa1a7ed 100644 --- a/src/stdlib/bsearch_s.c +++ b/src/stdlib/bsearch_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <stddef.h> /** binary search **/ @@ -45,3 +47,6 @@ element. /* CEXT1(201112) */ + + +#endif diff --git a/src/stdlib/calloc.c b/src/stdlib/calloc.c index 76317054..609cd0d4 100644 --- a/src/stdlib/calloc.c +++ b/src/stdlib/calloc.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <string.h> @@ -36,3 +38,6 @@ RETURN_FAILURE(CONSTANT(NULL)) RETURN_SUCCESS(a pointer to the newly allocated memory) STDC(1) */ + + +#endif diff --git a/src/stdlib/div.c b/src/stdlib/div.c index dfd80652..89e6bf0e 100644 --- a/src/stdlib/div.c +++ b/src/stdlib/div.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** calculate quotient and remainder **/ @@ -20,3 +22,6 @@ UNDEFINED(The result cannot be represented) RETURN_SUCCESS(a TYPEDEF(div_t) containing both the quotient and remainder) STDC(1) */ + + +#endif diff --git a/src/stdlib/drand48.c b/src/stdlib/drand48.c index 87ef3359..21a5b1d0 100644 --- a/src/stdlib/drand48.c +++ b/src/stdlib/drand48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> double drand48(void) @@ -8,3 +10,6 @@ double drand48(void) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/ecvt.c b/src/stdlib/ecvt.c index 137c7996..81756c48 100644 --- a/src/stdlib/ecvt.c +++ b/src/stdlib/ecvt.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char *ecvt(double value, int ndigit, int *decpt, int *sign) @@ -8,3 +10,6 @@ char *ecvt(double value, int ndigit, int *decpt, int *sign) /* XOPEN(400,700) */ + + +#endif diff --git a/src/stdlib/erand48.c b/src/stdlib/erand48.c index 3e4be053..3b1506cf 100644 --- a/src/stdlib/erand48.c +++ b/src/stdlib/erand48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> double erand48(unsigned short xsubi[3]) @@ -8,3 +10,6 @@ double erand48(unsigned short xsubi[3]) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/exit.c b/src/stdlib/exit.c index 557ad2cf..55800ace 100644 --- a/src/stdlib/exit.c +++ b/src/stdlib/exit.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <stdio.h> #include "_stdlib.h" @@ -45,3 +47,6 @@ IMPLEMENTATION(The unsuccessful termination value returned to the host environme /* STDC(1) */ + + +#endif diff --git a/src/stdlib/fcvt.c b/src/stdlib/fcvt.c index 091b3515..cab92565 100644 --- a/src/stdlib/fcvt.c +++ b/src/stdlib/fcvt.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char *fcvt(double value, int ndigit, int *decpt, int *sign) @@ -8,3 +10,6 @@ char *fcvt(double value, int ndigit, int *decpt, int *sign) /* XOPEN(400,700) */ + + +#endif diff --git a/src/stdlib/free.c b/src/stdlib/free.c index 55a98a2f..350c70cc 100644 --- a/src/stdlib/free.c +++ b/src/stdlib/free.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** deallocate memory **/ @@ -20,3 +22,6 @@ causes nothing to happen. UNDEFINED(ARGUMENT(ptr) was not returned by a previous call to FUNCTION(calloc), FUNCTION(malloc), or FUNCTION(realloc)) STDC(1) */ + + +#endif diff --git a/src/stdlib/gcvt.c b/src/stdlib/gcvt.c index 6c337272..67b6f730 100644 --- a/src/stdlib/gcvt.c +++ b/src/stdlib/gcvt.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char *gcvt(double value, int ndigit, char *buf) @@ -8,3 +10,6 @@ char *gcvt(double value, int ndigit, char *buf) /* XOPEN(400,700) */ + + +#endif diff --git a/src/stdlib/getenv.c b/src/stdlib/getenv.c index 1eba2241..56ca970d 100644 --- a/src/stdlib/getenv.c +++ b/src/stdlib/getenv.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <string.h> #include "_stdlib.h" @@ -30,3 +32,6 @@ RETURN_FAILURE(CONSTANT(NULL)) RETURN_SUCCESS(a pointer to the environment string) STDC(1) */ + + +#endif diff --git a/src/stdlib/getenv_s.c b/src/stdlib/getenv_s.c index 8760678b..32904779 100644 --- a/src/stdlib/getenv_s.c +++ b/src/stdlib/getenv_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <string.h> #include <stdlib.h> @@ -25,3 +27,6 @@ environment. /* CEXT1(201112) */ + + +#endif diff --git a/src/stdlib/getsubopt.c b/src/stdlib/getsubopt.c index aff17828..08f56e4f 100644 --- a/src/stdlib/getsubopt.c +++ b/src/stdlib/getsubopt.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> int getsubopt(char ** optionp, char * const * keylistp, char ** valuep) @@ -9,3 +11,6 @@ int getsubopt(char ** optionp, char * const * keylistp, char ** valuep) XOPEN(400) POSIX(200809) */ + + +#endif diff --git a/src/stdlib/grantpt.c b/src/stdlib/grantpt.c index 71e28e2a..beab15ae 100644 --- a/src/stdlib/grantpt.c +++ b/src/stdlib/grantpt.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> int grantpt(int fildes) @@ -8,3 +10,6 @@ int grantpt(int fildes) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/ignore_handler_s.c b/src/stdlib/ignore_handler_s.c index ec8c77ff..6ef026eb 100644 --- a/src/stdlib/ignore_handler_s.c +++ b/src/stdlib/ignore_handler_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** ignore constraint violations **/ @@ -22,3 +24,6 @@ It simply returns to its caller. /* CEXT1(201112) */ + + +#endif diff --git a/src/stdlib/initstate.c b/src/stdlib/initstate.c index 93c9c1ab..e10b78a7 100644 --- a/src/stdlib/initstate.c +++ b/src/stdlib/initstate.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char * initstate(unsigned seed, char * state, size_t size) @@ -8,3 +10,6 @@ char * initstate(unsigned seed, char * state, size_t size) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/jrand48.c b/src/stdlib/jrand48.c index f1d508d2..395b56c0 100644 --- a/src/stdlib/jrand48.c +++ b/src/stdlib/jrand48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> long jrand48(unsigned short xsub[3]) @@ -8,3 +10,6 @@ long jrand48(unsigned short xsub[3]) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/l64a.c b/src/stdlib/l64a.c index 99585372..09b9ac95 100644 --- a/src/stdlib/l64a.c +++ b/src/stdlib/l64a.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char * l64a(long value) @@ -8,3 +10,6 @@ char * l64a(long value) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/labs.c b/src/stdlib/labs.c index 5a53524a..aa1aaecf 100644 --- a/src/stdlib/labs.c +++ b/src/stdlib/labs.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <limits.h> @@ -22,3 +24,6 @@ UNDEFINED(ABS(ARGUMENT(j)) cannot be represented) RETURN_SUCCESS(ABS(ARGUMENT(j))) STDC(1) */ + + +#endif diff --git a/src/stdlib/lcong48.c b/src/stdlib/lcong48.c index 2817def4..b14824d8 100644 --- a/src/stdlib/lcong48.c +++ b/src/stdlib/lcong48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> void lcong48(unsigned short param[7]) @@ -7,3 +9,6 @@ void lcong48(unsigned short param[7]) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/ldiv.c b/src/stdlib/ldiv.c index 0aebaf49..9345b8e0 100644 --- a/src/stdlib/ldiv.c +++ b/src/stdlib/ldiv.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** calculate quotient and remainder **/ @@ -20,3 +22,6 @@ UNDEFINED(The result cannot be represented) RETURN_SUCCESS(a TYPEDEF(ldiv_t) containing both the quotient and remainder) STDC(1) */ + + +#endif diff --git a/src/stdlib/llabs.c b/src/stdlib/llabs.c index a2a6cfbe..9bf435bd 100644 --- a/src/stdlib/llabs.c +++ b/src/stdlib/llabs.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <limits.h> @@ -22,3 +24,6 @@ UNDEFINED(ABS(ARGUMENT(j)) cannot be represented RETURN_SUCCESS(ABS(ARGUMENT(j)) STDC(199901) */ + + +#endif diff --git a/src/stdlib/lldiv.c b/src/stdlib/lldiv.c index 7487aee2..2472b9f7 100644 --- a/src/stdlib/lldiv.c +++ b/src/stdlib/lldiv.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** calculate quotient and remainder **/ @@ -20,3 +22,6 @@ UNDEFINED(The result cannot be represented) RETURN_SUCCESS(a TYPEDEF(ldiv_t) containing both the quotient and remainder) STDC(199901) */ + + +#endif diff --git a/src/stdlib/lrand48.c b/src/stdlib/lrand48.c index 5d6a7f85..f8477e2e 100644 --- a/src/stdlib/lrand48.c +++ b/src/stdlib/lrand48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> long lrand48(void) @@ -8,3 +10,6 @@ long lrand48(void) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/malloc.c b/src/stdlib/malloc.c index b2116fa7..01924ee4 100644 --- a/src/stdlib/malloc.c +++ b/src/stdlib/malloc.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** allocate memory **/ @@ -21,3 +23,6 @@ RETURN_FAILURE(CONSTANT(NULL)) RETURN_SUCCESS(a pointer to the allocated space) STDC(1) */ + + +#endif diff --git a/src/stdlib/mblen.c b/src/stdlib/mblen.c index 9a575e9c..45b80ccb 100644 --- a/src/stdlib/mblen.c +++ b/src/stdlib/mblen.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** count bytes in multibyte character **/ @@ -32,3 +34,6 @@ RETURN(0, ARGUMENT(s) points to a null character); RETURN(TYPE(int), the number of bytes in the multibyte character); STDC(1) */ + + +#endif diff --git a/src/stdlib/mbstowcs.c b/src/stdlib/mbstowcs.c index a5ce53d8..70daf2ca 100644 --- a/src/stdlib/mbstowcs.c +++ b/src/stdlib/mbstowcs.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert multibyte string to wide character string **/ @@ -28,3 +30,6 @@ RETURN_FAILURE(-1) RETURN_SUCCESS(the number of wide characters converted, not counting any terminating zero) STDC(1) */ + + +#endif diff --git a/src/stdlib/mbstowcs_s.c b/src/stdlib/mbstowcs_s.c index fb60a896..8abab6e8 100644 --- a/src/stdlib/mbstowcs_s.c +++ b/src/stdlib/mbstowcs_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert multibyte string to wide character string **/ @@ -24,3 +26,6 @@ be converted after a null character, which is converted. /* CEXT1(201112) */ + + +#endif diff --git a/src/stdlib/mbtowc.c b/src/stdlib/mbtowc.c index 3704acd4..73c590af 100644 --- a/src/stdlib/mbtowc.c +++ b/src/stdlib/mbtowc.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert a multibyte character to a wide character **/ @@ -35,3 +37,6 @@ RETURN(0, ARGUMENT(s) points to a null character) RETURN(TYPE(int), the number of bytes in the converted multibyte character) STDC(1) */ + + +#endif diff --git a/src/stdlib/mkstemp.c b/src/stdlib/mkstemp.c index 11831ea2..6c97e468 100644 --- a/src/stdlib/mkstemp.c +++ b/src/stdlib/mkstemp.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> int mkstemp(char * template) @@ -9,3 +11,6 @@ int mkstemp(char * template) XOPEN(400) POSIX(200809) */ + + +#endif diff --git a/src/stdlib/mktemp.c b/src/stdlib/mktemp.c index cc6e5e82..b3656c4c 100644 --- a/src/stdlib/mktemp.c +++ b/src/stdlib/mktemp.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char *mktemp(char *template) @@ -8,3 +10,6 @@ char *mktemp(char *template) /* XOPEN(400,700) */ + + +#endif diff --git a/src/stdlib/mrand48.c b/src/stdlib/mrand48.c index 7d287fd1..5f9a7f7d 100644 --- a/src/stdlib/mrand48.c +++ b/src/stdlib/mrand48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> long mrand48(void) @@ -8,3 +10,6 @@ long mrand48(void) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/nrand48.c b/src/stdlib/nrand48.c index 35ced790..30ff633c 100644 --- a/src/stdlib/nrand48.c +++ b/src/stdlib/nrand48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> long nrand48(unsigned short xsubi[3]) @@ -8,3 +10,6 @@ long nrand48(unsigned short xsubi[3]) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/ptsname.c b/src/stdlib/ptsname.c index a004294a..fc7cce1c 100644 --- a/src/stdlib/ptsname.c +++ b/src/stdlib/ptsname.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char * ptsname(int fildes) @@ -8,3 +10,6 @@ char * ptsname(int fildes) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/putenv.c b/src/stdlib/putenv.c index 471712e7..723ecb1f 100644 --- a/src/stdlib/putenv.c +++ b/src/stdlib/putenv.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> int putenv(char * string) @@ -8,3 +10,6 @@ int putenv(char * string) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/qsort.c b/src/stdlib/qsort.c index 0c7d8e21..9fec5191 100644 --- a/src/stdlib/qsort.c +++ b/src/stdlib/qsort.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** sort an array **/ @@ -53,3 +55,6 @@ is greater than the second. UNSPECIFIED(The order of equal elements) STDC(1) */ + + +#endif diff --git a/src/stdlib/qsort_s.c b/src/stdlib/qsort_s.c index 99afe7f0..4510d36d 100644 --- a/src/stdlib/qsort_s.c +++ b/src/stdlib/qsort_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** sort an array **/ @@ -27,3 +29,6 @@ greater than the second. /* CEXT1(201112) */ + + +#endif diff --git a/src/stdlib/quick_exit.c b/src/stdlib/quick_exit.c index 3ff50e4e..56d4c560 100644 --- a/src/stdlib/quick_exit.c +++ b/src/stdlib/quick_exit.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include "_stdlib.h" @@ -41,3 +43,6 @@ streams are closed. All temporary files created by fn(tmpfile) are removed. /* STDC(201112) */ + + +#endif diff --git a/src/stdlib/rand.c b/src/stdlib/rand.c index c00515da..f02adac0 100644 --- a/src/stdlib/rand.c +++ b/src/stdlib/rand.c @@ -1,3 +1,5 @@ +#if 0 + #include "_stdlib.h" /** get a pseudo-random number **/ @@ -14,3 +16,6 @@ computes a pseudo-random number in the range [0,CONSTANT(RAND_MAX)]. RETURN_SUCCESS(a pseudo-random integer) STDC(1) */ + + +#endif diff --git a/src/stdlib/random.c b/src/stdlib/random.c index e3c82a41..4cf34916 100644 --- a/src/stdlib/random.c +++ b/src/stdlib/random.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> long random(void) @@ -8,3 +10,6 @@ long random(void) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/realloc.c b/src/stdlib/realloc.c index b5efffb2..98564654 100644 --- a/src/stdlib/realloc.c +++ b/src/stdlib/realloc.c @@ -1,3 +1,5 @@ +#if 0 + #if ((!defined _POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 199309L)) #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199309L /* force mmap() constants */ @@ -65,3 +67,6 @@ RETURN_FAILURE(CONSTANT(NULL)) RETURN_SUCCESS(a pointer to the reallocate space) STDC(1) */ + + +#endif diff --git a/src/stdlib/realpath.c b/src/stdlib/realpath.c index 1d0e04e6..07b946e2 100644 --- a/src/stdlib/realpath.c +++ b/src/stdlib/realpath.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char * realpath(const char * restrict file_name, char * restrict resolved_name) @@ -8,3 +10,6 @@ char * realpath(const char * restrict file_name, char * restrict resolved_name) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/seed48.c b/src/stdlib/seed48.c index a976a7c8..8a070709 100644 --- a/src/stdlib/seed48.c +++ b/src/stdlib/seed48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> unsigned short * seed48(unsigned short seed16v[3]) @@ -8,3 +10,6 @@ unsigned short * seed48(unsigned short seed16v[3]) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/set_constraint_handler_s.c b/src/stdlib/set_constraint_handler_s.c index 3e3200bd..cecf3cbb 100644 --- a/src/stdlib/set_constraint_handler_s.c +++ b/src/stdlib/set_constraint_handler_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> constraint_handler_t set_constraint_handler_s(constraint_handler_t handler) @@ -9,3 +11,6 @@ constraint_handler_t set_constraint_handler_s(constraint_handler_t handler) /* CEXT1(201112) */ + + +#endif diff --git a/src/stdlib/setkey.c b/src/stdlib/setkey.c index 82e12934..61386689 100644 --- a/src/stdlib/setkey.c +++ b/src/stdlib/setkey.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> void setkey(const char * key) @@ -7,3 +9,6 @@ void setkey(const char * key) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/setstate.c b/src/stdlib/setstate.c index 9a8ab58b..9d7caa72 100644 --- a/src/stdlib/setstate.c +++ b/src/stdlib/setstate.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> char * setstate(char * state) @@ -8,3 +10,6 @@ char * setstate(char * state) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/srand.c b/src/stdlib/srand.c index 42d5be95..ab364ad4 100644 --- a/src/stdlib/srand.c +++ b/src/stdlib/srand.c @@ -1,3 +1,5 @@ +#if 0 + #include "_stdlib.h" /** seed the pseudo-random number generator **/ @@ -16,3 +18,6 @@ Program execution begins with a seed of 1. /* STDC(1) */ + + +#endif diff --git a/src/stdlib/srand48.c b/src/stdlib/srand48.c index 97be97c0..fcd82d93 100644 --- a/src/stdlib/srand48.c +++ b/src/stdlib/srand48.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> void srand48(long seedval) @@ -7,3 +9,6 @@ void srand48(long seedval) /* XOPEN(4) */ + + +#endif diff --git a/src/stdlib/srandom.c b/src/stdlib/srandom.c index a0839684..b2822abd 100644 --- a/src/stdlib/srandom.c +++ b/src/stdlib/srandom.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> void srandom(unsigned seed) @@ -7,3 +9,6 @@ void srandom(unsigned seed) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/strtod.c b/src/stdlib/strtod.c index 32ffa973..500c8e32 100644 --- a/src/stdlib/strtod.c +++ b/src/stdlib/strtod.c @@ -1,3 +1,5 @@ +#if 0 + #include <ctype.h> #include <errno.h> #include <float.h> @@ -48,3 +50,6 @@ RETURN(CONSTANT(-HUGE_VAL), converted value too small) RETURN(VAR(a TYPE(double)), the converted value) STDC(1) */ + + +#endif diff --git a/src/stdlib/strtof.c b/src/stdlib/strtof.c index c88a7c3f..18c8b2ac 100644 --- a/src/stdlib/strtof.c +++ b/src/stdlib/strtof.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <float.h> #include <errno.h> @@ -40,3 +42,6 @@ RETURN(CONSTANT(-HUGE_VALF), converted value too small) RETURN(VAR(a TYPE(float)), the converted value) STDC(199901) */ + + +#endif diff --git a/src/stdlib/strtol.c b/src/stdlib/strtol.c index 08ed591c..9b12b0e6 100644 --- a/src/stdlib/strtol.c +++ b/src/stdlib/strtol.c @@ -1,3 +1,5 @@ +#if 0 + #include <ctype.h> #include <errno.h> #include <limits.h> @@ -45,3 +47,6 @@ RETURN(CONSTANT(LONG_MIN), converted value too small) RETURN(a TYPE(long int) value, the converted value) STDC(1) */ + + +#endif diff --git a/src/stdlib/strtold.c b/src/stdlib/strtold.c index 1c0ce7b8..5bb5bf63 100644 --- a/src/stdlib/strtold.c +++ b/src/stdlib/strtold.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <float.h> #include <ctype.h> @@ -40,3 +42,6 @@ RETURN(CONSTANT(-HUGE_VALL), converted value too small) RETURN(VAR(a TYPE(long double)), the converted value) STDC(199901) */ + + +#endif diff --git a/src/stdlib/strtoll.c b/src/stdlib/strtoll.c index 00b763c9..5df50390 100644 --- a/src/stdlib/strtoll.c +++ b/src/stdlib/strtoll.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <ctype.h> #include <limits.h> @@ -17,3 +19,6 @@ long long int strtoll(const char * restrict nptr, char ** restrict endptr, int b /* STDC(199901) */ + + +#endif diff --git a/src/stdlib/strtoul.c b/src/stdlib/strtoul.c index 7a91823f..aa952d0c 100644 --- a/src/stdlib/strtoul.c +++ b/src/stdlib/strtoul.c @@ -1,3 +1,5 @@ +#if 0 + #include <errno.h> #include <ctype.h> #include <limits.h> @@ -44,3 +46,6 @@ RETURN(ULONG_MAX, converted value too large) RETURN(an TYPE(unsigned long int) value, the converted value) STDC(1) */ + + +#endif diff --git a/src/stdlib/strtoull.c b/src/stdlib/strtoull.c index f4d1d248..bf0eff9a 100644 --- a/src/stdlib/strtoull.c +++ b/src/stdlib/strtoull.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #include <ctype.h> #include <limits.h> @@ -17,3 +19,6 @@ unsigned long long int strtoull(const char * restrict nptr, char ** restrict end /* STDC(199901) */ + + +#endif diff --git a/src/stdlib/system.c b/src/stdlib/system.c index ce24c83c..dff181d9 100644 --- a/src/stdlib/system.c +++ b/src/stdlib/system.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> #ifdef _POSIX_SOURCE @@ -67,3 +69,6 @@ RETURN(NONZERO, If ARGUMENT(string) is CONSTANT(NULL), a command processor is av RETURN(0, If ARGUMENT(string) is CONSTANT(NULL), a command processor is not available) STDC(1) */ + + +#endif diff --git a/src/stdlib/ttyslot.c b/src/stdlib/ttyslot.c index 4e7a2b8e..2fe95dc9 100644 --- a/src/stdlib/ttyslot.c +++ b/src/stdlib/ttyslot.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> int ttyslot(void) @@ -8,3 +10,6 @@ int ttyslot(void) /* XOPEN(400,600) */ + + +#endif diff --git a/src/stdlib/unlockpt.c b/src/stdlib/unlockpt.c index eb15b8dc..45fcc941 100644 --- a/src/stdlib/unlockpt.c +++ b/src/stdlib/unlockpt.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> int unlockpt(int fildes) @@ -8,3 +10,6 @@ int unlockpt(int fildes) /* XOPEN(400) */ + + +#endif diff --git a/src/stdlib/valloc.c b/src/stdlib/valloc.c index 23df0003..647751be 100644 --- a/src/stdlib/valloc.c +++ b/src/stdlib/valloc.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> void *valloc(size_t size) @@ -7,3 +9,6 @@ void *valloc(size_t size) /* XOPEN(400,600) */ + + +#endif diff --git a/src/stdlib/wcstombs.c b/src/stdlib/wcstombs.c index 3643a5a4..a39cdc38 100644 --- a/src/stdlib/wcstombs.c +++ b/src/stdlib/wcstombs.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert wide character string to multibyte string **/ @@ -23,3 +25,6 @@ RETURN_FAILURE(-1) RETURN_SUCCESS(the number of bytes modified, not counting any terminating null) STDC(1) */ + + +#endif diff --git a/src/stdlib/wcstombs_s.c b/src/stdlib/wcstombs_s.c index a0713638..180426a0 100644 --- a/src/stdlib/wcstombs_s.c +++ b/src/stdlib/wcstombs_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert wide character string to multibyte string **/ @@ -26,3 +28,6 @@ after reaching a null wide character, which is converted and stored. /* CEXT1(201112) */ + + +#endif diff --git a/src/stdlib/wctomb.c b/src/stdlib/wctomb.c index a2928a8b..3d834d3b 100644 --- a/src/stdlib/wctomb.c +++ b/src/stdlib/wctomb.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert wide character to multibyte character **/ @@ -31,3 +33,6 @@ RETURN(-1, The value of ARGUMENT(wchar) does not correspond to a valid multibyte RETURN(TYPE(int), The number of bytes contained in the multibyte character corresponding to ARGUMENT(wchar)) STDC(1) */ + + +#endif diff --git a/src/stdlib/wctomb_s.c b/src/stdlib/wctomb_s.c index 161b3504..ea3e6865 100644 --- a/src/stdlib/wctomb_s.c +++ b/src/stdlib/wctomb_s.c @@ -1,3 +1,5 @@ +#if 0 + #include <stdlib.h> /** convert wide character to multibyte character **/ @@ -30,3 +32,6 @@ state dependency. /* CEXT1(201112) */ + + +#endif |