diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-09-18 20:57:40 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-09-18 20:57:40 +0200 |
commit | 21730caa6647f645974e132ca8afec79b4eeab2b (patch) | |
tree | 6c0a0e491526f19ab08062d7f22448ac60ca4bf5 /libc/stdlib | |
parent | 35c8387f6d3dd3d901bdc9bb7eb1c681cd1b2c0d (diff) |
trim Experimentally off and uncommented hidden
sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *)
sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *)
should be a nop
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/stdlib')
48 files changed, 0 insertions, 153 deletions
diff --git a/libc/stdlib/__uc_malloc.c b/libc/stdlib/__uc_malloc.c index 38457596f..2a2e223ef 100644 --- a/libc/stdlib/__uc_malloc.c +++ b/libc/stdlib/__uc_malloc.c @@ -22,9 +22,6 @@ Cambridge, MA 02139, USA. #include <unistd.h> #include <malloc.h> -/* libc_hidden_proto(_exit) */ -/* libc_hidden_proto(__uc_malloc) */ -/* libc_hidden_proto(__uc_malloc_failed) */ void (*__uc_malloc_failed)(size_t size) = NULL; /* Seemingly superfluous assigment of NULL above prevents gas error diff --git a/libc/stdlib/_atexit.c b/libc/stdlib/_atexit.c index 884032bba..0d420d3c9 100644 --- a/libc/stdlib/_atexit.c +++ b/libc/stdlib/_atexit.c @@ -46,8 +46,6 @@ #include <bits/uClibc_mutex.h> __UCLIBC_MUTEX_EXTERN(__atexit_lock); -/* libc_hidden_proto(exit) */ -/* libc_hidden_proto(_exit) */ typedef void (*aefuncp) (void); /* atexit function pointer */ diff --git a/libc/stdlib/_strtod.c b/libc/stdlib/_strtod.c index 6a3d246ea..71fba8248 100644 --- a/libc/stdlib/_strtod.c +++ b/libc/stdlib/_strtod.c @@ -110,12 +110,10 @@ # include <wchar.h> # include <wctype.h> # include <bits/uClibc_uwchar.h> -/* libc_hidden_proto(iswspace) */ #endif #ifdef __UCLIBC_HAS_XLOCALE__ # include <xlocale.h> -/* libc_hidden_proto(iswspace_l) */ #endif /* Handle _STRTOD_HEXADECIMAL_FLOATS via uClibc config now. */ @@ -175,10 +173,7 @@ extern void __fp_range_check(__fpmax_t y, __fpmax_t x) attribute_hidden; #if defined(L___strtofpmax) || defined(L___strtofpmax_l) || defined(L___wcstofpmax) || defined(L___wcstofpmax_l) #ifdef __UCLIBC_HAS_XLOCALE__ -/* libc_hidden_proto(__ctype_b_loc) */ #elif defined __UCLIBC_HAS_CTYPE_TABLES__ -/* libc_hidden_proto(__ctype_b) */ -/* libc_hidden_proto(__ctype_tolower) */ #endif #if defined(L___wcstofpmax) || defined(L___wcstofpmax_l) @@ -214,7 +209,6 @@ __fpmax_t attribute_hidden __strtofpmax(const Wchar *str, Wchar **endptr, int ex #else /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */ -/* Experimentally off - libc_hidden_proto(memcmp) */ __fpmax_t attribute_hidden __XL_NPP(__strtofpmax)(const Wchar *str, Wchar **endptr, int exponent_power __LOCALE_PARAM ) diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c index fcf90187c..3cc796370 100644 --- a/libc/stdlib/abort.c +++ b/libc/stdlib/abort.c @@ -26,13 +26,7 @@ Cambridge, MA 02139, USA. */ #include <signal.h> #include <errno.h> -/* libc_hidden_proto(abort) */ -/* Experimentally off - libc_hidden_proto(memset) */ -/* libc_hidden_proto(sigaction) */ -/* libc_hidden_proto(sigprocmask) */ -/* libc_hidden_proto(raise) */ -/* libc_hidden_proto(_exit) */ /* Our last ditch effort to commit suicide */ #ifdef __UCLIBC_ABORT_INSTRUCTION__ diff --git a/libc/stdlib/arc4random.c b/libc/stdlib/arc4random.c index e7d69f168..416db6d0c 100644 --- a/libc/stdlib/arc4random.c +++ b/libc/stdlib/arc4random.c @@ -38,10 +38,6 @@ //libc_hidden_proto(sysctl) #endif -/* libc_hidden_proto(open) */ -/* libc_hidden_proto(read) */ -/* libc_hidden_proto(close) */ -/* libc_hidden_proto(gettimeofday) */ struct arc4_stream { uint8_t i; @@ -168,7 +164,6 @@ arc4_getword(as) return val; } -/* libc_hidden_proto(arc4random_stir) */ void arc4random_stir(void) { diff --git a/libc/stdlib/bsd_getpt.c b/libc/stdlib/bsd_getpt.c index c7582e855..e704e235f 100644 --- a/libc/stdlib/bsd_getpt.c +++ b/libc/stdlib/bsd_getpt.c @@ -23,8 +23,6 @@ #include <unistd.h> #if defined __USE_BSD -/* libc_hidden_proto(open) */ -/* Experimentally off - libc_hidden_proto(mempcpy) */ /* Prefix for master pseudo terminal nodes. */ #define _PATH_PTY "/dev/pty" diff --git a/libc/stdlib/drand48.c b/libc/stdlib/drand48.c index f0d20de61..8c9017b11 100644 --- a/libc/stdlib/drand48.c +++ b/libc/stdlib/drand48.c @@ -19,7 +19,6 @@ #include <stdlib.h> -/* libc_hidden_proto(erand48_r) */ /* Global state for non-reentrant functions. Defined in drand48-iter.c. */ extern struct drand48_data __libc_drand48_data attribute_hidden; diff --git a/libc/stdlib/drand48_r.c b/libc/stdlib/drand48_r.c index 96fb186f4..df07b0752 100644 --- a/libc/stdlib/drand48_r.c +++ b/libc/stdlib/drand48_r.c @@ -21,7 +21,6 @@ #include <math.h> #include <stdlib.h> -/* libc_hidden_proto(erand48_r) */ int drand48_r (struct drand48_data *buffer, double *result) { diff --git a/libc/stdlib/erand48.c b/libc/stdlib/erand48.c index 913d6ed84..ee28d9635 100644 --- a/libc/stdlib/erand48.c +++ b/libc/stdlib/erand48.c @@ -19,7 +19,6 @@ #include <stdlib.h> -/* libc_hidden_proto(erand48_r) */ /* Global state for non-reentrant functions. Defined in drand48-iter.c. */ extern struct drand48_data __libc_drand48_data attribute_hidden; diff --git a/libc/stdlib/erand48_r.c b/libc/stdlib/erand48_r.c index f367f8dc6..e36e73eb2 100644 --- a/libc/stdlib/erand48_r.c +++ b/libc/stdlib/erand48_r.c @@ -24,7 +24,6 @@ extern int __drand48_iterate(unsigned short xsubi[3], struct drand48_data *buffer) attribute_hidden; -/* libc_hidden_proto(erand48_r) */ int erand48_r (unsigned short int xsubi[3], struct drand48_data *buffer, double *result) { union ieee754_double temp; diff --git a/libc/stdlib/gcvt.c b/libc/stdlib/gcvt.c index 6c61ee1e4..3c27b62c4 100644 --- a/libc/stdlib/gcvt.c +++ b/libc/stdlib/gcvt.c @@ -1,7 +1,6 @@ #include <stdio.h> #include <stdlib.h> -/* libc_hidden_proto(sprintf) */ #ifdef __UCLIBC_HAS_FLOATS__ #define MAX_NDIGIT 17 diff --git a/libc/stdlib/getenv.c b/libc/stdlib/getenv.c index e0193e223..d5db1785c 100644 --- a/libc/stdlib/getenv.c +++ b/libc/stdlib/getenv.c @@ -8,9 +8,6 @@ #include <unistd.h> #include <stdlib.h> -/* libc_hidden_proto(getenv) */ -/* Experimentally off - libc_hidden_proto(memcmp) */ -/* Experimentally off - libc_hidden_proto(strlen) */ /* IEEE Std 1003.1-2001 says getenv need not be thread safe, so * don't bother locking access to __environ */ diff --git a/libc/stdlib/getpt.c b/libc/stdlib/getpt.c index f39e79664..2d8b207d3 100644 --- a/libc/stdlib/getpt.c +++ b/libc/stdlib/getpt.c @@ -27,8 +27,6 @@ extern __typeof(statfs) __libc_statfs; -/* libc_hidden_proto(open) */ -/* libc_hidden_proto(close) */ #if !defined __ASSUME_DEVPTS__ diff --git a/libc/stdlib/jrand48.c b/libc/stdlib/jrand48.c index 7bfc9d608..163c5408e 100644 --- a/libc/stdlib/jrand48.c +++ b/libc/stdlib/jrand48.c @@ -19,7 +19,6 @@ #include <stdlib.h> -/* libc_hidden_proto(jrand48_r) */ /* Global state for non-reentrant functions. Defined in drand48-iter.c. */ extern struct drand48_data __libc_drand48_data attribute_hidden; diff --git a/libc/stdlib/jrand48_r.c b/libc/stdlib/jrand48_r.c index da2a1506d..24f7075f5 100644 --- a/libc/stdlib/jrand48_r.c +++ b/libc/stdlib/jrand48_r.c @@ -22,7 +22,6 @@ extern int __drand48_iterate(unsigned short xsubi[3], struct drand48_data *buffer) attribute_hidden; -/* libc_hidden_proto(jrand48_r) */ int jrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer, long int *result) { /* Compute next state. */ diff --git a/libc/stdlib/lrand48.c b/libc/stdlib/lrand48.c index 33d0e91ef..a0b15caff 100644 --- a/libc/stdlib/lrand48.c +++ b/libc/stdlib/lrand48.c @@ -19,7 +19,6 @@ #include <stdlib.h> -/* libc_hidden_proto(nrand48_r) */ /* Global state for non-reentrant functions. Defined in drand48-iter.c. */ extern struct drand48_data __libc_drand48_data attribute_hidden; diff --git a/libc/stdlib/lrand48_r.c b/libc/stdlib/lrand48_r.c index c3aa89a24..5a425d1e9 100644 --- a/libc/stdlib/lrand48_r.c +++ b/libc/stdlib/lrand48_r.c @@ -19,9 +19,7 @@ #include <stdlib.h> -/* libc_hidden_proto(nrand48_r) */ -/* libc_hidden_proto(lrand48_r) */ int lrand48_r (struct drand48_data *buffer, long int *result) { /* Be generous for the arguments, detect some errors. */ diff --git a/libc/stdlib/malloc-simple/alloc.c b/libc/stdlib/malloc-simple/alloc.c index e729494e0..36355c1e9 100644 --- a/libc/stdlib/malloc-simple/alloc.c +++ b/libc/stdlib/malloc-simple/alloc.c @@ -17,10 +17,6 @@ #include <sys/mman.h> #include <malloc.h> -/* Experimentally off - libc_hidden_proto(memcpy) */ -/*libc_hidden_proto(memset)*/ -/* libc_hidden_proto(mmap) */ -/* libc_hidden_proto(munmap) */ #ifdef L_malloc void *malloc(size_t size) diff --git a/libc/stdlib/malloc-standard/calloc.c b/libc/stdlib/malloc-standard/calloc.c index 80ba3d04a..a70516f0e 100644 --- a/libc/stdlib/malloc-standard/calloc.c +++ b/libc/stdlib/malloc-standard/calloc.c @@ -16,7 +16,6 @@ #include "malloc.h" -/* Experimentally off - libc_hidden_proto(memset) */ /* ------------------------------ calloc ------------------------------ */ void* calloc(size_t n_elements, size_t elem_size) diff --git a/libc/stdlib/malloc-standard/free.c b/libc/stdlib/malloc-standard/free.c index 9fbf563ab..39e54d635 100644 --- a/libc/stdlib/malloc-standard/free.c +++ b/libc/stdlib/malloc-standard/free.c @@ -16,7 +16,6 @@ #include "malloc.h" -/* libc_hidden_proto(munmap) */ /* ------------------------- __malloc_trim ------------------------- __malloc_trim is an inverse of sorts to __malloc_alloc. It gives memory diff --git a/libc/stdlib/malloc-standard/mallinfo.c b/libc/stdlib/malloc-standard/mallinfo.c index 4ebbe8b49..d60d6d9b5 100644 --- a/libc/stdlib/malloc-standard/mallinfo.c +++ b/libc/stdlib/malloc-standard/mallinfo.c @@ -16,10 +16,8 @@ #include "malloc.h" -/* libc_hidden_proto(fprintf) */ /* ------------------------------ mallinfo ------------------------------ */ -/* libc_hidden_proto(mallinfo) */ struct mallinfo mallinfo(void) { mstate av; diff --git a/libc/stdlib/malloc-standard/malloc.h b/libc/stdlib/malloc-standard/malloc.h index 524468cbe..90c9fd14d 100644 --- a/libc/stdlib/malloc-standard/malloc.h +++ b/libc/stdlib/malloc-standard/malloc.h @@ -24,10 +24,6 @@ #include <sys/mman.h> #include <bits/uClibc_mutex.h> -/* libc_hidden_proto(mmap) */ -/* libc_hidden_proto(sysconf) */ -/* libc_hidden_proto(sbrk) */ -/* libc_hidden_proto(abort) */ __UCLIBC_MUTEX_EXTERN(__malloc_lock); diff --git a/libc/stdlib/malloc-standard/realloc.c b/libc/stdlib/malloc-standard/realloc.c index 95eb0d38a..e060b70ea 100644 --- a/libc/stdlib/malloc-standard/realloc.c +++ b/libc/stdlib/malloc-standard/realloc.c @@ -16,8 +16,6 @@ #include "malloc.h" -/* libc_hidden_proto(mremap) */ -/* Experimentally off - libc_hidden_proto(memcpy) */ /* ------------------------------ realloc ------------------------------ */ void* realloc(void* oldmem, size_t bytes) diff --git a/libc/stdlib/malloc/calloc.c b/libc/stdlib/malloc/calloc.c index 79e6ec6c7..7ac94b83d 100644 --- a/libc/stdlib/malloc/calloc.c +++ b/libc/stdlib/malloc/calloc.c @@ -22,7 +22,6 @@ #include <string.h> #include <errno.h> -/* Experimentally off - libc_hidden_proto(memset) */ void * calloc(size_t nmemb, size_t lsize) { diff --git a/libc/stdlib/malloc/free.c b/libc/stdlib/malloc/free.c index 5dd3a7625..c17e7ec2a 100644 --- a/libc/stdlib/malloc/free.c +++ b/libc/stdlib/malloc/free.c @@ -15,8 +15,6 @@ #include <unistd.h> #include <sys/mman.h> -/* libc_hidden_proto(munmap) */ -/* libc_hidden_proto(sbrk) */ #include "malloc.h" #include "heap.h" diff --git a/libc/stdlib/malloc/heap_debug.c b/libc/stdlib/malloc/heap_debug.c index f1ccc6f2d..5f17aae04 100644 --- a/libc/stdlib/malloc/heap_debug.c +++ b/libc/stdlib/malloc/heap_debug.c @@ -17,9 +17,6 @@ #include <string.h> #include <unistd.h> -/* libc_hidden_proto(vfprintf) */ -/* libc_hidden_proto(fprintf) */ -/* libc_hidden_proto(_exit) */ #include "malloc.h" #include "heap.h" diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c index 19877db89..f4bbc71a2 100644 --- a/libc/stdlib/malloc/malloc.c +++ b/libc/stdlib/malloc/malloc.c @@ -16,8 +16,6 @@ #include <errno.h> #include <sys/mman.h> -/* libc_hidden_proto(mmap) */ -/* libc_hidden_proto(sbrk) */ #include "malloc.h" #include "heap.h" diff --git a/libc/stdlib/malloc/malloc_debug.c b/libc/stdlib/malloc/malloc_debug.c index 01f9bfd6f..1a5374faa 100644 --- a/libc/stdlib/malloc/malloc_debug.c +++ b/libc/stdlib/malloc/malloc_debug.c @@ -16,10 +16,6 @@ #include <unistd.h> #include <stdarg.h> -/* libc_hidden_proto(atoi) */ -/* libc_hidden_proto(vfprintf) */ -/* libc_hidden_proto(putc) */ -/* libc_hidden_proto(getenv) */ #include "malloc.h" #include "heap.h" diff --git a/libc/stdlib/malloc/realloc.c b/libc/stdlib/malloc/realloc.c index a8271995b..fa779205a 100644 --- a/libc/stdlib/malloc/realloc.c +++ b/libc/stdlib/malloc/realloc.c @@ -15,7 +15,6 @@ #include <string.h> #include <errno.h> -/* Experimentally off - libc_hidden_proto(memcpy) */ #include "malloc.h" #include "heap.h" diff --git a/libc/stdlib/mrand48.c b/libc/stdlib/mrand48.c index 131c4b991..b209acd57 100644 --- a/libc/stdlib/mrand48.c +++ b/libc/stdlib/mrand48.c @@ -19,7 +19,6 @@ #include <stdlib.h> -/* libc_hidden_proto(jrand48_r) */ /* Global state for non-reentrant functions. Defined in drand48-iter.c. */ extern struct drand48_data __libc_drand48_data attribute_hidden; diff --git a/libc/stdlib/mrand48_r.c b/libc/stdlib/mrand48_r.c index 0127fddb5..86fd6a2b9 100644 --- a/libc/stdlib/mrand48_r.c +++ b/libc/stdlib/mrand48_r.c @@ -19,7 +19,6 @@ #include <stdlib.h> -/* libc_hidden_proto(jrand48_r) */ int mrand48_r (struct drand48_data *buffer, long int *result) { diff --git a/libc/stdlib/nrand48.c b/libc/stdlib/nrand48.c index e69afd78b..97c197caa 100644 --- a/libc/stdlib/nrand48.c +++ b/libc/stdlib/nrand48.c @@ -19,7 +19,6 @@ #include <stdlib.h> -/* libc_hidden_proto(nrand48_r) */ /* Global state for non-reentrant functions. Defined in drand48-iter.c. */ extern struct drand48_data __libc_drand48_data attribute_hidden; diff --git a/libc/stdlib/nrand48_r.c b/libc/stdlib/nrand48_r.c index acf813e9b..0710e90ef 100644 --- a/libc/stdlib/nrand48_r.c +++ b/libc/stdlib/nrand48_r.c @@ -22,7 +22,6 @@ extern int __drand48_iterate(unsigned short xsubi[3], struct drand48_data *buffer) attribute_hidden; -/* libc_hidden_proto(nrand48_r) */ int nrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer, long int *result) { /* Compute next state. */ diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c index 3e4a1cfe1..ff3823301 100644 --- a/libc/stdlib/ptsname.c +++ b/libc/stdlib/ptsname.c @@ -29,13 +29,6 @@ #include <unistd.h> #include <bits/uClibc_uintmaxtostr.h> -/* Experimentally off - libc_hidden_proto(strcat) */ -/* Experimentally off - libc_hidden_proto(strcpy) */ -/* Experimentally off - libc_hidden_proto(strlen) */ -/* libc_hidden_proto(isatty) */ -/* libc_hidden_proto(ioctl) */ -/* libc_hidden_proto(fstat) */ -/* libc_hidden_proto(stat) */ #if !defined __UNIX98PTY_ONLY__ @@ -68,7 +61,6 @@ extern const char __libc_ptyname2[] attribute_hidden; /* Store at most BUFLEN characters of the pathname of the slave pseudo terminal associated with the master FD is open on in BUF. Return 0 on success, otherwise an error number. */ -/* libc_hidden_proto(ptsname_r) */ int ptsname_r (int fd, char *buf, size_t buflen) { int save_errno = errno; diff --git a/libc/stdlib/rand.c b/libc/stdlib/rand.c index 93fc01483..4b899c0fc 100644 --- a/libc/stdlib/rand.c +++ b/libc/stdlib/rand.c @@ -7,7 +7,6 @@ #include <stdlib.h> -/* libc_hidden_proto(random) */ int rand(void) { diff --git a/libc/stdlib/random.c b/libc/stdlib/random.c index 967a1e52a..b009c4310 100644 --- a/libc/stdlib/random.c +++ b/libc/stdlib/random.c @@ -27,10 +27,6 @@ #include <stddef.h> #include <stdlib.h> -/* libc_hidden_proto(random_r) */ -/* libc_hidden_proto(srandom_r) */ -/* libc_hidden_proto(setstate_r) */ -/* libc_hidden_proto(initstate_r) */ /* POSIX.1c requires that there is mutual exclusion for the `rand' and `srand' functions to prevent concurrent calls from modifying common @@ -235,7 +231,6 @@ char * setstate (char *arg_state) rear pointers can't wrap on the same call by not testing the rear pointer if the front one has wrapped. Returns a 31-bit random number. */ -/* libc_hidden_proto(random) */ long int random (void) { int32_t retval; diff --git a/libc/stdlib/random_r.c b/libc/stdlib/random_r.c index cb70b7dc4..4b2b3f85d 100644 --- a/libc/stdlib/random_r.c +++ b/libc/stdlib/random_r.c @@ -131,7 +131,6 @@ static const struct random_poly_info random_poly_info = rear pointers can't wrap on the same call by not testing the rear pointer if the front one has wrapped. Returns a 31-bit random number. */ -/* libc_hidden_proto(random_r) */ int random_r(struct random_data *buf, int32_t *result) { int32_t *state; @@ -189,7 +188,6 @@ libc_hidden_def(random_r) information a given number of times to get rid of any initial dependencies introduced by the L.C.R.N.G. Note that the initialization of randtbl[] for default usage relies on values produced by this routine. */ -/* libc_hidden_proto(srandom_r) */ int srandom_r (unsigned int seed, struct random_data *buf) { int type; @@ -257,7 +255,6 @@ libc_hidden_def(srandom_r) Note: The first thing we do is save the current state, if any, just like setstate so that it doesn't matter when initstate is called. Returns a pointer to the old state. */ -/* libc_hidden_proto(initstate_r) */ int initstate_r (unsigned int seed, char *arg_state, size_t n, struct random_data *buf) { int type; @@ -316,7 +313,6 @@ libc_hidden_def(initstate_r) to the order in which things are done, it is OK to call setstate with the same state as the current state Returns a pointer to the old state information. */ -/* libc_hidden_proto(setstate_r) */ int setstate_r (char *arg_state, struct random_data *buf) { int32_t *new_state = 1 + (int32_t *) arg_state; diff --git a/libc/stdlib/realpath.c b/libc/stdlib/realpath.c index 3a4789152..1a00c3112 100644 --- a/libc/stdlib/realpath.c +++ b/libc/stdlib/realpath.c @@ -21,11 +21,6 @@ |