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/sysdeps/linux/common | |
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/sysdeps/linux/common')
90 files changed, 1 insertions, 151 deletions
diff --git a/libc/sysdeps/linux/common/__rt_sigtimedwait.c b/libc/sysdeps/linux/common/__rt_sigtimedwait.c index 6dc8725f6..f9ec0eabf 100644 --- a/libc/sysdeps/linux/common/__rt_sigtimedwait.c +++ b/libc/sysdeps/linux/common/__rt_sigtimedwait.c @@ -12,8 +12,6 @@ #define __need_NULL #include <stddef.h> -/* libc_hidden_proto(sigwaitinfo) */ -/* libc_hidden_proto(sigtimedwait) */ #ifdef __NR_rt_sigtimedwait #define __NR___rt_sigtimedwait __NR_rt_sigtimedwait diff --git a/libc/sysdeps/linux/common/_exit.c b/libc/sysdeps/linux/common/_exit.c index a8b3ffcb9..fbeed0d8a 100644 --- a/libc/sysdeps/linux/common/_exit.c +++ b/libc/sysdeps/linux/common/_exit.c @@ -13,7 +13,6 @@ #include <sys/types.h> #include <sys/syscall.h> -/* libc_hidden_proto(_exit) */ void attribute_noreturn _exit(int status) { diff --git a/libc/sysdeps/linux/common/adjtimex.c b/libc/sysdeps/linux/common/adjtimex.c index 725c82994..45cb38495 100644 --- a/libc/sysdeps/linux/common/adjtimex.c +++ b/libc/sysdeps/linux/common/adjtimex.c @@ -10,7 +10,6 @@ #include <sys/syscall.h> #include <sys/timex.h> -/* libc_hidden_proto(adjtimex) */ _syscall1(int, adjtimex, struct timex *, buf) libc_hidden_def(adjtimex) diff --git a/libc/sysdeps/linux/common/alarm.c b/libc/sysdeps/linux/common/alarm.c index 10d4123a7..cfd68fe1b 100644 --- a/libc/sysdeps/linux/common/alarm.c +++ b/libc/sysdeps/linux/common/alarm.c @@ -10,14 +10,12 @@ #include <sys/syscall.h> #include <unistd.h> -/* libc_hidden_proto(alarm) */ #ifdef __NR_alarm _syscall1(unsigned int, alarm, unsigned int, seconds) #else #include <sys/time.h> -/* libc_hidden_proto(setitimer) */ unsigned int alarm(unsigned int seconds) { diff --git a/libc/sysdeps/linux/common/chdir.c b/libc/sysdeps/linux/common/chdir.c index 05441eb82..e13810196 100644 --- a/libc/sysdeps/linux/common/chdir.c +++ b/libc/sysdeps/linux/common/chdir.c @@ -12,7 +12,6 @@ #include <unistd.h> #include <sys/param.h> -/* libc_hidden_proto(chdir) */ #define __NR___syscall_chdir __NR_chdir static __inline__ _syscall1(int, __syscall_chdir, const char *, path) diff --git a/libc/sysdeps/linux/common/chmod.c b/libc/sysdeps/linux/common/chmod.c index a4524ba1f..871e0233d 100644 --- a/libc/sysdeps/linux/common/chmod.c +++ b/libc/sysdeps/linux/common/chmod.c @@ -10,7 +10,6 @@ #include <sys/syscall.h> #include <sys/stat.h> -/* libc_hidden_proto(chmod) */ #define __NR___syscall_chmod __NR_chmod static __inline__ _syscall2(int, __syscall_chmod, const char *, path, __kernel_mode_t, mode) diff --git a/libc/sysdeps/linux/common/chown.c b/libc/sysdeps/linux/common/chown.c index 2e7784a0c..f2c60e0b7 100644 --- a/libc/sysdeps/linux/common/chown.c +++ b/libc/sysdeps/linux/common/chown.c @@ -11,7 +11,6 @@ #include <unistd.h> #include <bits/wordsize.h> -/* libc_hidden_proto(chown) */ #if (__WORDSIZE == 32 && defined(__NR_chown32)) || __WORDSIZE == 64 # ifdef __NR_chown32 diff --git a/libc/sysdeps/linux/common/clock_getres.c b/libc/sysdeps/linux/common/clock_getres.c index 4964ec57c..61413b6c4 100644 --- a/libc/sysdeps/linux/common/clock_getres.c +++ b/libc/sysdeps/linux/common/clock_getres.c @@ -14,7 +14,6 @@ #ifdef __NR_clock_getres _syscall2(int, clock_getres, clockid_t, clock_id, struct timespec*, res) #else -/* libc_hidden_proto(sysconf) */ int clock_getres(clockid_t clock_id, struct timespec* res) { diff --git a/libc/sysdeps/linux/common/clock_gettime.c b/libc/sysdeps/linux/common/clock_gettime.c index f1db8ad7c..888cd64b0 100644 --- a/libc/sysdeps/linux/common/clock_gettime.c +++ b/libc/sysdeps/linux/common/clock_gettime.c @@ -15,7 +15,6 @@ #ifdef __NR_clock_gettime _syscall2(int, clock_gettime, clockid_t, clock_id, struct timespec*, tp) #else -/* libc_hidden_proto(gettimeofday) */ int clock_gettime(clockid_t clock_id, struct timespec* tp) { diff --git a/libc/sysdeps/linux/common/clock_settime.c b/libc/sysdeps/linux/common/clock_settime.c index f11088a37..0c9c840ac 100644 --- a/libc/sysdeps/linux/common/clock_settime.c +++ b/libc/sysdeps/linux/common/clock_settime.c @@ -14,7 +14,6 @@ #ifdef __NR_clock_settime _syscall2(int, clock_settime, clockid_t, clock_id, const struct timespec*, tp) #else -/* libc_hidden_proto(settimeofday) */ int clock_settime(clockid_t clock_id, const struct timespec* tp) { diff --git a/libc/sysdeps/linux/common/cmsg_nxthdr.c b/libc/sysdeps/linux/common/cmsg_nxthdr.c index 5230fc6be..0360b479b 100644 --- a/libc/sysdeps/linux/common/cmsg_nxthdr.c +++ b/libc/sysdeps/linux/common/cmsg_nxthdr.c @@ -23,7 +23,6 @@ #undef __USE_EXTERN_INLINES #include <sys/socket.h> -/* libc_hidden_proto(__cmsg_nxthdr) */ struct cmsghdr * __cmsg_nxthdr (struct msghdr *mhdr, struct cmsghdr *cmsg) diff --git a/libc/sysdeps/linux/common/dl-osinfo.h b/libc/sysdeps/linux/common/dl-osinfo.h index 195c64803..649d203f8 100644 --- a/libc/sysdeps/linux/common/dl-osinfo.h +++ b/libc/sysdeps/linux/common/dl-osinfo.h @@ -21,10 +21,6 @@ # ifdef IS_IN_libc #include <fcntl.h> -/* libc_hidden_proto(open) */ -/* libc_hidden_proto(read) */ -/* libc_hidden_proto(close) */ -/* libc_hidden_proto(gettimeofday) */ # define OPEN open # define READ read # define CLOSE close diff --git a/libc/sysdeps/linux/common/dup2.c b/libc/sysdeps/linux/common/dup2.c index 2a315fed4..006f06b69 100644 --- a/libc/sysdeps/linux/common/dup2.c +++ b/libc/sysdeps/linux/common/dup2.c @@ -10,7 +10,6 @@ #include <sys/syscall.h> #include <unistd.h> -/* libc_hidden_proto(dup2) */ _syscall2(int, dup2, int, oldfd, int, newfd) libc_hidden_def(dup2) diff --git a/libc/sysdeps/linux/common/execve.c b/libc/sysdeps/linux/common/execve.c index 53efd78fb..e8568df2b 100644 --- a/libc/sysdeps/linux/common/execve.c +++ b/libc/sysdeps/linux/common/execve.c @@ -12,7 +12,6 @@ #include <string.h> #include <sys/param.h> -/* libc_hidden_proto(execve) */ _syscall3(int, execve, const char *, filename, char *const *, argv, char *const *, envp) libc_hidden_def(execve) diff --git a/libc/sysdeps/linux/common/fchdir.c b/libc/sysdeps/linux/common/fchdir.c index 45236f177..4d54ef821 100644 --- a/libc/sysdeps/linux/common/fchdir.c +++ b/libc/sysdeps/linux/common/fchdir.c @@ -10,7 +10,6 @@ #include <sys/syscall.h> #include <unistd.h> -/* libc_hidden_proto(fchdir) */ _syscall1(int, fchdir, int, fd) libc_hidden_def(fchdir) diff --git a/libc/sysdeps/linux/common/fork.c b/libc/sysdeps/linux/common/fork.c index 5993387f0..26a20d987 100644 --- a/libc/sysdeps/linux/common/fork.c +++ b/libc/sysdeps/linux/common/fork.c @@ -16,7 +16,6 @@ extern __typeof(fork) __libc_fork; #define __NR___libc_fork __NR_fork _syscall0(pid_t, __libc_fork) -/* libc_hidden_proto(fork) */ weak_alias(__libc_fork,fork) libc_hidden_weak(fork) #endif @@ -28,7 +27,6 @@ pid_t __libc_fork(void) __set_errno(ENOSYS); return -1; } -/* libc_hidden_proto(fork) */ weak_alias(__libc_fork,fork) libc_hidden_weak(fork) link_warning(fork, "fork: this function is not implemented on no-mmu systems") diff --git a/libc/sysdeps/linux/common/fstat64.c b/libc/sysdeps/linux/common/fstat64.c index a57b4f6f5..60613433b 100644 --- a/libc/sysdeps/linux/common/fstat64.c +++ b/libc/sysdeps/linux/common/fstat64.c @@ -14,7 +14,6 @@ #include <sys/stat.h> #include "xstatconv.h" -/* libc_hidden_proto(fstat64) */ #define __NR___syscall_fstat64 __NR_fstat64 static __inline__ _syscall2(int, __syscall_fstat64, diff --git a/libc/sysdeps/linux/common/ftruncate.c b/libc/sysdeps/linux/common/ftruncate.c index a7a6ea69d..3bdef3f46 100644 --- a/libc/sysdeps/linux/common/ftruncate.c +++ b/libc/sysdeps/linux/common/ftruncate.c @@ -10,7 +10,6 @@ #include <sys/syscall.h> #include <unistd.h> -/* libc_hidden_proto(ftruncate) */ _syscall2(int, ftruncate, int, fd, __off_t, length) libc_hidden_def(ftruncate) diff --git a/libc/sysdeps/linux/common/ftruncate64.c b/libc/sysdeps/linux/common/ftruncate64.c index 4d00b0294..c5a616007 100644 --- a/libc/sysdeps/linux/common/ftruncate64.c +++ b/libc/sysdeps/linux/common/ftruncate64.c @@ -21,7 +21,6 @@ # include <sys/types.h> # include <sys/syscall.h> -/* libc_hidden_proto(ftruncate64) */ # ifdef __NR_ftruncate64 @@ -52,7 +51,6 @@ int ftruncate64 (int fd, __off64_t length) # else /* __NR_ftruncate64 */ -/* libc_hidden_proto(ftruncate) */ int ftruncate64 (int fd, __off64_t length) { diff --git a/libc/sysdeps/linux/common/getcwd.c b/libc/sysdeps/linux/common/getcwd.c index 13619159d..75d7a1c8b 100644 --- a/libc/sysdeps/linux/common/getcwd.c +++ b/libc/sysdeps/linux/common/getcwd.c @@ -15,17 +15,7 @@ #include <sys/param.h> #include <sys/syscall.h> -/* libc_hidden_proto(getcwd) */ -/* libc_hidden_proto(getpagesize) */ - -/* Experimentally off - libc_hidden_proto(strcat) */ -/* Experimentally off - libc_hidden_proto(strcpy) */ -/* Experimentally off - |