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/stdio | |
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/stdio')
76 files changed, 0 insertions, 209 deletions
diff --git a/libc/stdio/_READ.c b/libc/stdio/_READ.c index 0531b2ef2..02601c090 100644 --- a/libc/stdio/_READ.c +++ b/libc/stdio/_READ.c @@ -7,8 +7,6 @@ #include "_stdio.h" -/* libc_hidden_proto(read) */ -/* libc_hidden_proto(abort) */ /* Given a reading stream without its end-of-file indicator set and * with no buffered input or ungots, read at most 'bufsize' bytes diff --git a/libc/stdio/_WRITE.c b/libc/stdio/_WRITE.c index 3d6174325..10b3b9584 100644 --- a/libc/stdio/_WRITE.c +++ b/libc/stdio/_WRITE.c @@ -7,7 +7,6 @@ #include "_stdio.h" -/* libc_hidden_proto(write) */ /* Given a writing stream with no buffered output, write the * data in 'buf' (which may be the stream's bufstart) of size diff --git a/libc/stdio/__fsetlocking.c b/libc/stdio/__fsetlocking.c index 2011cc78c..6d4fc18b8 100644 --- a/libc/stdio/__fsetlocking.c +++ b/libc/stdio/__fsetlocking.c @@ -8,7 +8,6 @@ #include "_stdio.h" #include <stdio_ext.h> -/* libc_hidden_proto(__fsetlocking) */ /* Not threadsafe. */ diff --git a/libc/stdio/_cs_funcs.c b/libc/stdio/_cs_funcs.c index 69a04bcc8..49b636b19 100644 --- a/libc/stdio/_cs_funcs.c +++ b/libc/stdio/_cs_funcs.c @@ -7,13 +7,8 @@ #include "_stdio.h" -/* libc_hidden_proto(read) */ -/* libc_hidden_proto(write) */ -/* libc_hidden_proto(close) */ #ifdef __UCLIBC_HAS_LFS__ -/* libc_hidden_proto(lseek64) */ #else -/* libc_hidden_proto(lseek) */ #endif /**********************************************************************/ diff --git a/libc/stdio/_flushlbf.c b/libc/stdio/_flushlbf.c index 7146e9bc9..c322c3e33 100644 --- a/libc/stdio/_flushlbf.c +++ b/libc/stdio/_flushlbf.c @@ -8,7 +8,6 @@ #include "_stdio.h" #include <stdio_ext.h> -/* libc_hidden_proto(fflush_unlocked) */ /* Solaris function -- * Flush all line buffered (writing) streams. diff --git a/libc/stdio/_fopen.c b/libc/stdio/_fopen.c index 51d1cf9bf..96377ee44 100644 --- a/libc/stdio/_fopen.c +++ b/libc/stdio/_fopen.c @@ -7,9 +7,6 @@ #include "_stdio.h" -/* libc_hidden_proto(isatty) */ -/* libc_hidden_proto(open) */ -/* libc_hidden_proto(fcntl) */ /* * Cases: diff --git a/libc/stdio/_fpmaxtostr.c b/libc/stdio/_fpmaxtostr.c index 0aab23364..1332a20e7 100644 --- a/libc/stdio/_fpmaxtostr.c +++ b/libc/stdio/_fpmaxtostr.c @@ -11,7 +11,6 @@ #include <locale.h> #include <bits/uClibc_fpmax.h> -/* Experimentally off - libc_hidden_proto(memset) */ typedef size_t (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len, intptr_t buf); diff --git a/libc/stdio/_fwrite.c b/libc/stdio/_fwrite.c index ba4b02fb1..47860afbf 100644 --- a/libc/stdio/_fwrite.c +++ b/libc/stdio/_fwrite.c @@ -7,9 +7,6 @@ #include "_stdio.h" -/* Experimentally off - libc_hidden_proto(memchr) */ -/* Experimentally off - libc_hidden_proto(memcpy) */ -/* Experimentally off - libc_hidden_proto(memrchr) */ #ifdef __STDIO_BUFFERS diff --git a/libc/stdio/_scanf.c b/libc/stdio/_scanf.c index 9189a52e1..11d5c7854 100644 --- a/libc/stdio/_scanf.c +++ b/libc/stdio/_scanf.c @@ -77,31 +77,10 @@ #include <bits/uClibc_fpmax.h> #endif /* __UCLIBC_HAS_FLOATS__ */ -/* Experimentally off - libc_hidden_proto(memcmp) */ -/* Experimentally off - libc_hidden_proto(memset) */ -/* Experimentally off - libc_hidden_proto(strcpy) */ -/* Experimentally off - libc_hidden_proto(strlen) */ -/* libc_hidden_proto(ungetc) */ -/* libc_hidden_proto(vfscanf) */ -/* libc_hidden_proto(vsscanf) */ -/* libc_hidden_proto(fclose) */ -/* libc_hidden_proto(getc_unlocked) */ -/* libc_hidden_proto(__fgetc_unlocked) */ #ifdef __UCLIBC_HAS_WCHAR__ -/* libc_hidden_proto(wcslen) */ -/* libc_hidden_proto(vfwscanf) */ -/* libc_hidden_proto(vswscanf) */ -/* libc_hidden_proto(mbsrtowcs) */ -/* libc_hidden_proto(mbrtowc) */ -/* libc_hidden_proto(wcrtomb) */ -/* libc_hidden_proto(ungetwc) */ -/* libc_hidden_proto(iswspace) */ -/* libc_hidden_proto(fgetwc_unlocked) */ #endif #ifdef __UCLIBC_HAS_XLOCALE__ -/* libc_hidden_proto(__ctype_b_loc) */ #elif defined __UCLIBC_HAS_CTYPE_TABLES__ -/* libc_hidden_proto(__ctype_b) */ #endif #ifdef __UCLIBC_HAS_SCANF_GLIBC_A_FLAG__ @@ -165,7 +144,6 @@ _stdlib_strto_l(register const char * __restrict str, /**********************************************************************/ #ifdef L_fscanf -/* libc_hidden_proto(fscanf) */ int fscanf(FILE * __restrict stream, const char * __restrict format, ...) { va_list arg; @@ -201,7 +179,6 @@ int scanf(const char * __restrict format, ...) #ifdef __STDIO_HAS_VSSCANF -/* libc_hidden_proto(sscanf) */ int sscanf(const char * __restrict str, const char * __restrict format, ...) { va_list arg; @@ -223,7 +200,6 @@ libc_hidden_def(sscanf) /**********************************************************************/ #ifdef L_vscanf -/* libc_hidden_proto(vscanf) */ int vscanf(const char * __restrict format, va_list arg) { return vfscanf(stdin, format, arg); diff --git a/libc/stdio/_stdio.c b/libc/stdio/_stdio.c index 3c3ce59c7..3c8d667d2 100644 --- a/libc/stdio/_stdio.c +++ b/libc/stdio/_stdio.c @@ -7,8 +7,6 @@ #include "_stdio.h" -/* Experimentally off - libc_hidden_proto(memcpy) */ -/* libc_hidden_proto(isatty) */ /* This is pretty much straight from uClibc, but with one important * difference. diff --git a/libc/stdio/_trans2w.c b/libc/stdio/_trans2w.c index 57a06d336..c72237939 100644 --- a/libc/stdio/_trans2w.c +++ b/libc/stdio/_trans2w.c @@ -7,7 +7,6 @@ #include "_stdio.h" -/* libc_hidden_proto(fseek) */ /* Function to handle transition to writing. * Initialize or verify the stream's orientation (even if readonly). diff --git a/libc/stdio/_uintmaxtostr.c b/libc/stdio/_uintmaxtostr.c index 086f6abd1..4be2c462f 100644 --- a/libc/stdio/_uintmaxtostr.c +++ b/libc/stdio/_uintmaxtostr.c @@ -11,7 +11,6 @@ #include <locale.h> #include <bits/uClibc_uintmaxtostr.h> -/* Experimentally off - libc_hidden_proto(memcpy) */ /* Avoid using long long / and % operations to cut down dependencies on * libgcc.a. Definitely helps on i386 at least. */ diff --git a/libc/stdio/_vfprintf.c b/libc/stdio/_vfprintf.c index c9d0f6bb9..d651cc965 100644 --- a/libc/stdio/_vfprintf.c +++ b/libc/stdio/_vfprintf.c @@ -115,21 +115,7 @@ #include <bits/uClibc_uintmaxtostr.h> #include <bits/uClibc_va_copy.h> -/* Experimentally off - libc_hidden_proto(memcpy) */ -/* Experimentally off - libc_hidden_proto(memset) */ -/* Experimentally off - libc_hidden_proto(strlen) */ -/* Experimentally off - libc_hidden_proto(strnlen) */ -/* libc_hidden_proto(__glibc_strerror_r) */ -/* libc_hidden_proto(fputs_unlocked) */ -/* libc_hidden_proto(abort) */ #ifdef __UCLIBC_HAS_WCHAR__ -/* libc_hidden_proto(wcslen) */ -/* libc_hidden_proto(wcsnlen) */ -/* libc_hidden_proto(mbsrtowcs) */ -/* libc_hidden_proto(wcsrtombs) */ -/* libc_hidden_proto(btowc) */ -/* libc_hidden_proto(wcrtomb) */ -/* libc_hidden_proto(fputws) */ #endif /* Some older or broken gcc toolchains define LONG_LONG_MAX but not @@ -729,9 +715,7 @@ void attribute_hidden _ppfs_setargs(register ppfs_t *ppfs) #ifdef L__ppfs_parsespec #ifdef __UCLIBC_HAS_XLOCALE__ -/* libc_hidden_proto(__ctype_b_loc) */ #elif defined __UCLIBC_HAS_CTYPE_TABLES__ -/* libc_hidden_proto(__ctype_b) */ #endif /* Notes: argtype differs from glibc for the following: @@ -1860,7 +1844,6 @@ static int _do_one_spec(FILE * __restrict stream, return 0; } -/* libc_hidden_proto(fprintf) */ int VFPRINTF_internal (FILE * __restrict stream, const FMT_TYPE * __restrict format, diff --git a/libc/stdio/_wfwrite.c b/libc/stdio/_wfwrite.c index 81f5bd4e8..517e3a7a3 100644 --- a/libc/stdio/_wfwrite.c +++ b/libc/stdio/_wfwrite.c @@ -16,8 +16,6 @@ #warning TODO: Fix prototype. #endif -/* libc_hidden_proto(wmemcpy) */ -/* libc_hidden_proto(wcsnrtombs) */ size_t attribute_hidden _wstdio_fwrite(const wchar_t *__restrict ws, size_t n, register FILE *__restrict stream) diff --git a/libc/stdio/asprintf.c b/libc/stdio/asprintf.c index 8c6420936..6334cc72a 100644 --- a/libc/stdio/asprintf.c +++ b/libc/stdio/asprintf.c @@ -11,9 +11,7 @@ #include "_stdio.h" #include <stdarg.h> -/* libc_hidden_proto(asprintf) */ -/* libc_hidden_proto(vasprintf) */ #ifndef __STDIO_HAS_VSNPRINTF #warning Skipping asprintf and __asprintf since no vsnprintf! diff --git a/libc/stdio/ctermid.c b/libc/stdio/ctermid.c index 26369d6f5..854c526ea 100644 --- a/libc/stdio/ctermid.c +++ b/libc/stdio/ctermid.c @@ -7,7 +7,6 @@ #include "_stdio.h" -/* Experimentally off - libc_hidden_proto(strcpy) */ char *ctermid(register char *s) { diff --git a/libc/stdio/dprintf.c b/libc/stdio/dprintf.c index 0123c501a..3fab12739 100644 --- a/libc/stdio/dprintf.c +++ b/libc/stdio/dprintf.c @@ -11,7 +11,6 @@ #include "_stdio.h" #include <stdarg.h> -/* libc_hidden_proto(vdprintf) */ int dprintf(int filedes, const char * __restrict format, ...) { diff --git a/libc/stdio/fclose.c b/libc/stdio/fclose.c index 7d2138130..3417b2678 100644 --- a/libc/stdio/fclose.c +++ b/libc/stdio/fclose.c @@ -6,10 +6,7 @@ */ #include "_stdio.h" -/* libc_hidden_proto(fclose) */ -/* libc_hidden_proto(close) */ -/* libc_hidden_proto(fflush_unlocked) */ int fclose(register FILE *stream) { diff --git a/libc/stdio/fcloseall.c b/libc/stdio/fcloseall.c index b13da31a1..4d78b37d6 100644 --- a/libc/stdio/fcloseall.c +++ b/libc/stdio/fcloseall.c @@ -10,7 +10,6 @@ #ifdef __USE_GNU #include "_stdio.h" -/* libc_hidden_proto(fclose) */ /* NOTE: GLIBC difference!!! -- fcloseall * According to the info pages, glibc actually fclose()s all open files. diff --git a/libc/stdio/fdopen.c b/libc/stdio/fdopen.c index 85ece2a5f..76c239f4d 100644 --- a/libc/stdio/fdopen.c +++ b/libc/stdio/fdopen.c @@ -7,8 +7,6 @@ #include "_stdio.h" -/* libc_hidden_proto(fdopen) */ -/* libc_hidden_proto(fcntl) */ FILE *fdopen(int filedes, const char *mode) { diff --git a/libc/stdio/fflush.c b/libc/stdio/fflush.c index 01564a936..8b918d6bb 100644 --- a/libc/stdio/fflush.c +++ b/libc/stdio/fflush.c @@ -7,7 +7,6 @@ #include "_stdio.h" -/* libc_hidden_proto(fflush_unlocked) */ #ifdef __DO_UNLOCKED @@ -179,14 +178,12 @@ int fflush_unlocked(register FILE *stream) libc_hidden_def(fflush_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -/* libc_hidden_proto(fflush) */ strong_alias(fflush_unlocked,fflush) libc_hidden_def(fflush) #endif #elif defined __UCLIBC_HAS_THREADS__ -/* libc_hidden_proto(fflush) */ int fflush(register FILE *stream) { int retval; diff --git a/libc/stdio/fgetc.c b/libc/stdio/fgetc.c index dfe57a6cd..fc25002ee 100644 --- a/libc/stdio/fgetc.c +++ b/libc/stdio/fgetc.c @@ -13,11 +13,9 @@ #undef getc #undef getc_unlocked -/* libc_hidden_proto(__fgetc_unlocked) */ #ifdef __DO_UNLOCKED -/* libc_hidden_proto(fflush_unlocked) */ int __fgetc_unlocked(FILE *stream) { @@ -75,7 +73,6 @@ int __fgetc_unlocked(FILE *stream) } libc_hidden_def(__fgetc_unlocked) -/* libc_hidden_proto(fgetc_unlocked) */ strong_alias(__fgetc_unlocked,fgetc_unlocked) libc_hidden_def(fgetc_unlocked) @@ -83,12 +80,10 @@ libc_hidden_def(fgetc_unlocked) //strong_alias(__fgetc_unlocked,__getc_unlocked) //libc_hidden_def(__getc_unlocked) -/* libc_hidden_proto(getc_unlocked) */ strong_alias(__fgetc_unlocked,getc_unlocked) libc_hidden_def(getc_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -/* libc_hidden_proto(fgetc) */ strong_alias(__fgetc_unlocked,fgetc) libc_hidden_def(fgetc) @@ -97,7 +92,6 @@ strong_alias(__fgetc_unlocked,getc) #elif defined __UCLIBC_HAS_THREADS__ -/* libc_hidden_proto(fgetc) */ int fgetc(register FILE *stream) { if (stream->__user_locking != 0) { diff --git a/libc/stdio/fgets.c b/libc/stdio/fgets.c index 0c7b97ecd..bc710c764 100644 --- a/libc/stdio/fgets.c +++ b/libc/stdio/fgets.c @@ -7,11 +7,9 @@ #include "_stdio.h" -/* libc_hidden_proto(fgets_unlocked) */ #ifdef __DO_UNLOCKED -/* libc_hidden_proto(__fgetc_unlocked) */ char *fgets_unlocked(char *__restrict s, int n, register FILE * __restrict stream) @@ -64,14 +62,12 @@ char *fgets_unlocked(char *__restrict s, int n, libc_hidden_def(fgets_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -/* libc_hidden_proto(fgets) */ strong_alias(fgets_unlocked,fgets) libc_hidden_def(fgets) #endif #elif defined __UCLIBC_HAS_THREADS__ -/* libc_hidden_proto(fgets) */ char *fgets(char *__restrict s, int n, register FILE * __restrict stream) { d |