diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-15 22:41:03 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-15 22:41:03 +0000 |
commit | 0d212a2b26a764bba1c8220ee84547247bd78ad8 (patch) | |
tree | e34fb551f34f3500c5fafc5234bb95e0b7722d6c /libc/sysdeps | |
parent | c50ee9bde4fa794cd2bb962dd1f3f44d0fbf8274 (diff) |
make gcc4 happy w/ hidden_def/proto, correct some typos
Diffstat (limited to 'libc/sysdeps')
29 files changed, 31 insertions, 30 deletions
diff --git a/libc/sysdeps/linux/arm/sigaction.c b/libc/sysdeps/linux/arm/sigaction.c index 3d3112a29..ff96444a4 100644 --- a/libc/sysdeps/linux/arm/sigaction.c +++ b/libc/sysdeps/linux/arm/sigaction.c @@ -126,7 +126,7 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa #endif #ifndef LIBC_SIGACTION -strong_alias(__libc_sigaction,sigaction) libc_hidden_proto(sigaction) +strong_alias(__libc_sigaction,sigaction) libc_hidden_def(sigaction) #endif diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c index ab0e5e6fa..c7a39bd51 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl.c @@ -48,12 +48,12 @@ int __libc_fcntl(int fd, int cmd, ...) } libc_hidden_def(__libc_fcntl) -strong_alias(__libc_fcntl,fcntl) libc_hidden_proto(fcntl) +strong_alias(__libc_fcntl,fcntl) libc_hidden_def(fcntl) #if ! defined __NR_fcntl64 && defined __UCLIBC_HAS_LFS__ strong_alias(__libc_fcntl,__libc_fcntl64) -strong_alias(__libc_fcntl,fcntl64) libc_hidden_proto(fcntl64) +strong_alias(__libc_fcntl,fcntl64) libc_hidden_def(fcntl64) #endif diff --git a/libc/sysdeps/linux/common/__syscall_fcntl64.c b/libc/sysdeps/linux/common/__syscall_fcntl64.c index 06aef210d..34ad2d173 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl64.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl64.c @@ -30,7 +30,7 @@ int __libc_fcntl64(int fd, int cmd, ...) } libc_hidden_def(__libc_fcntl64) -strong_alias(__libc_fcntl64,fcntl64) libc_hidden_proto(fcntl64) +strong_alias(__libc_fcntl64,fcntl64) libc_hidden_def(fcntl64) #endif diff --git a/libc/sysdeps/linux/common/close.c b/libc/sysdeps/linux/common/close.c index 7e5c7e5f7..56b41ec5c 100644 --- a/libc/sysdeps/linux/common/close.c +++ b/libc/sysdeps/linux/common/close.c @@ -12,6 +12,6 @@ #define __NR___libc_close __NR_close _syscall1(int, __libc_close, int, fd); -strong_alias(__libc_close,close) libc_hidden_proto(close) +strong_alias(__libc_close,close) libc_hidden_def(close) diff --git a/libc/sysdeps/linux/common/fork.c b/libc/sysdeps/linux/common/fork.c index e8d16fe17..13c57237c 100644 --- a/libc/sysdeps/linux/common/fork.c +++ b/libc/sysdeps/linux/common/fork.c @@ -14,8 +14,8 @@ #ifdef __NR_fork #define __NR___libc_fork __NR_fork _syscall0(pid_t, __libc_fork); -strong_alias(__libc_fork,fork) libc_hidden_proto(fork) +strong_alias(__libc_fork,fork) libc_hidden_def(fork) #endif #endif diff --git a/libc/sysdeps/linux/common/fstat.c b/libc/sysdeps/linux/common/fstat.c index be822d1a1..a51b46c71 100644 --- a/libc/sysdeps/linux/common/fstat.c +++ b/libc/sysdeps/linux/common/fstat.c @@ -37,7 +37,7 @@ int fstat(int fd, struct stat *buf) libc_hidden_def(fstat) #if ! defined __NR_fstat64 && defined __UCLIBC_HAS_LFS__ -strong_alias(fstat,fstat64) libc_hidden_proto(fstat64) +strong_alias(fstat,fstat64) libc_hidden_def(fstat64) #endif diff --git a/libc/sysdeps/linux/common/getpagesize.c b/libc/sysdeps/linux/common/getpagesize.c index 44456c0e7..1f2937bb6 100644 --- a/libc/sysdeps/linux/common/getpagesize.c +++ b/libc/sysdeps/linux/common/getpagesize.c @@ -43,6 +43,6 @@ int __getpagesize(void) #endif /* NBPG. */ #endif /* EXEC_PAGESIZE. */ } -strong_alias(__getpagesize,getpagesize) libc_hidden_proto(getpagesize) +strong_alias(__getpagesize,getpagesize) libc_hidden_def(getpagesize) diff --git a/libc/sysdeps/linux/common/getpid.c b/libc/sysdeps/linux/common/getpid.c index ecb29851e..be4c2ad47 100644 --- a/libc/sysdeps/linux/common/getpid.c +++ b/libc/sysdeps/linux/common/getpid.c @@ -15,6 +15,6 @@ #endif #define __NR___libc_getpid __NR_getpid _syscall0(pid_t, __libc_getpid); -strong_alias(__libc_getpid, getpid) libc_hidden_proto(getpid) +strong_alias(__libc_getpid, getpid) libc_hidden_def(getpid) diff --git a/libc/sysdeps/linux/common/llseek.c b/libc/sysdeps/linux/common/llseek.c index 7cfbce8ba..4ebef54ca 100644 --- a/libc/sysdeps/linux/common/llseek.c +++ b/libc/sysdeps/linux/common/llseek.c @@ -17,6 +17,7 @@ # undef __USE_FILE_OFFSET64 #endif #include <errno.h> +#include <unistd.h> #include <sys/types.h> #include <sys/syscall.h> @@ -44,7 +45,7 @@ loff_t __libc_lseek64(int fd, loff_t offset, int whence) return(loff_t)(__libc_lseek(fd, (off_t) (offset), whence)); } #endif -strong_alias(__libc_lseek64,lseek64) libc_hidden_proto(lseek64) +strong_alias(__libc_lseek64,lseek64) libc_hidden_def(lseek64) //strong_alias(__libc_lseek64,_llseek) diff --git a/libc/sysdeps/linux/common/longjmp.c b/libc/sysdeps/linux/common/longjmp.c index e4c8713fe..8dc6a6cab 100644 --- a/libc/sysdeps/linux/common/longjmp.c +++ b/libc/sysdeps/linux/common/longjmp.c @@ -47,4 +47,4 @@ void __libc_longjmp (sigjmp_buf env, int val) strong_alias(__libc_longjmp,longjmp) strong_alias(__libc_longjmp,siglongjmp) strong_alias(__libc_longjmp,__libc_siglongjmp) -weak_alias (__libc_longjmp, _longjmp) +strong_alias(__libc_longjmp,_longjmp) diff --git a/libc/sysdeps/linux/common/lseek.c b/libc/sysdeps/linux/common/lseek.c index 022d2f6a0..4e6bd9be6 100644 --- a/libc/sysdeps/linux/common/lseek.c +++ b/libc/sysdeps/linux/common/lseek.c @@ -17,6 +17,6 @@ libc_hidden_proto(__libc_lseek) _syscall3(__off_t, __libc_lseek, int, fildes, __off_t, offset, int, whence); libc_hidden_def(__libc_lseek) -strong_alias(__libc_lseek,lseek) libc_hidden_proto(lseek) +strong_alias(__libc_lseek,lseek) libc_hidden_def(lseek) diff --git a/libc/sysdeps/linux/common/lstat.c b/libc/sysdeps/linux/common/lstat.c index 2c4a86b9d..b654a8fb1 100644 --- a/libc/sysdeps/linux/common/lstat.c +++ b/libc/sysdeps/linux/common/lstat.c @@ -38,7 +38,7 @@ int lstat(const char *file_name, struct stat *buf) libc_hidden_def(lstat) #if ! defined __NR_lstat64 && defined __UCLIBC_HAS_LFS__ -strong_alias(lstat,lstat64) libc_hidden_proto(lstat64) +strong_alias(lstat,lstat64) libc_hidden_def(lstat64) #endif diff --git a/libc/sysdeps/linux/common/nanosleep.c b/libc/sysdeps/linux/common/nanosleep.c index c695e827d..b13aaf446 100644 --- a/libc/sysdeps/linux/common/nanosleep.c +++ b/libc/sysdeps/linux/common/nanosleep.c @@ -14,6 +14,6 @@ #define __NR___libc_nanosleep __NR_nanosleep _syscall2(int, __libc_nanosleep, const struct timespec *, req, struct timespec *, rem); -strong_alias(__libc_nanosleep,nanosleep) libc_hidden_proto(nanosleep) +strong_alias(__libc_nanosleep,nanosleep) libc_hidden_def(nanosleep) diff --git a/libc/sysdeps/linux/common/open.c b/libc/sysdeps/linux/common/open.c index 1be1f2567..d755f36fa 100644 --- a/libc/sysdeps/linux/common/open.c +++ b/libc/sysdeps/linux/common/open.c @@ -38,8 +38,8 @@ int __libc_open(const char *file, int flags, ...) } libc_hidden_def(__libc_open) -strong_alias(__libc_open,open) libc_hidden_proto(open) +strong_alias(__libc_open,open) libc_hidden_def(open) int creat(const char *file, mode_t mode) diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c index 97c3d2df9..90837cfe7 100644 --- a/libc/sysdeps/linux/common/open64.c +++ b/libc/sysdeps/linux/common/open64.c @@ -33,7 +33,7 @@ int __libc_open64 (const char *file, int oflag, ...) return __libc_open(file, oflag | O_LARGEFILE, mode); } -strong_alias(__libc_open64,open64) libc_hidden_proto(open64) +strong_alias(__libc_open64,open64) libc_hidden_def(open64) #endif /* __UCLIBC_HAS_LFS__ */ diff --git a/libc/sysdeps/linux/common/read.c b/libc/sysdeps/linux/common/read.c index 079bd0eb5..785ea5ffb 100644 --- a/libc/sysdeps/linux/common/read.c +++ b/libc/sysdeps/linux/common/read.c @@ -12,6 +12,6 @@ #define __NR___libc_read __NR_read _syscall3(ssize_t, __libc_read, int, fd, __ptr_t, buf, size_t, count); -strong_alias(__libc_read,read) libc_hidden_proto(read) +strong_alias(__libc_read,read) libc_hidden_def(read) diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c index f0fbccbf0..aeb9f16db 100644 --- a/libc/sysdeps/linux/common/stat.c +++ b/libc/sysdeps/linux/common/stat.c @@ -39,7 +39,7 @@ int stat(const char *file_name, struct stat *buf) libc_hidden_def(stat) #if ! defined __NR_stat64 && defined __UCLIBC_HAS_LFS__ -strong_alias(stat,stat64) libc_hidden_proto(stat64) +strong_alias(stat,stat64) libc_hidden_def(stat64) #endif diff --git a/libc/sysdeps/linux/common/waitpid.c b/libc/sysdeps/linux/common/waitpid.c index aeeafc7c5..064b0110c 100644 --- a/libc/sysdeps/linux/common/waitpid.c +++ b/libc/sysdeps/linux/common/waitpid.c @@ -16,6 +16,6 @@ __pid_t __libc_waitpid(__pid_t pid, int *wait_stat, int options) { return wait4(pid, wait_stat, options, NULL); } -strong_alias(__libc_waitpid,waitpid) libc_hidden_proto(waitpid) +strong_alias(__libc_waitpid,waitpid) libc_hidden_def(waitpid) diff --git a/libc/sysdeps/linux/common/write.c b/libc/sysdeps/linux/common/write.c index e27bfe06f..8a17ae9b9 100644 --- a/libc/sysdeps/linux/common/write.c +++ b/libc/sysdeps/linux/common/write.c @@ -12,8 +12,8 @@ #define __NR___libc_write __NR_write _syscall3(ssize_t, __libc_write, int, fd, const __ptr_t, buf, size_t, count); -strong_alias(__libc_write,write) libc_hidden_proto(write) +strong_alias(__libc_write,write) libc_hidden_def(write) #if 0 /* Stupid libgcc.a from gcc 2.95.x uses __write in pure.o diff --git a/libc/sysdeps/linux/cris/fork.c b/libc/sysdeps/linux/cris/fork.c index 53c071e5c..e95122a09 100644 --- a/libc/sysdeps/linux/cris/fork.c +++ b/libc/sysdeps/linux/cris/fork.c @@ -14,6 +14,6 @@ SYSCALL__ (__libc_fork, 0) R0&-1==R0, and the child gets R0&0==0. */ /* i dunno what the blurb above is useful for. we just return. */ __asm__("ret\n\tnop"); -strong_alias(__libc_fork,fork) libc_hidden_proto(fork) +strong_alias(__libc_fork,fork) libc_hidden_def(fork) diff --git a/libc/sysdeps/linux/frv/fstat.c b/libc/sysdeps/linux/frv/fstat.c index 92c8df9d2..c1b524b26 100644 --- a/libc/sysdeps/linux/frv/fstat.c +++ b/libc/sysdeps/linux/frv/fstat.c @@ -30,6 +30,6 @@ #define __NR___syscall_fstat __NR_fstat static inline _syscall2(int, __syscall_fstat, int, fd, struct stat *, buf); -strong_alias(__syscall_fstat,fstat) libc_hidden_proto(fstat) +strong_alias(__syscall_fstat,fstat) libc_hidden_def(fstat) diff --git a/libc/sysdeps/linux/frv/fstat64.c b/libc/sysdeps/linux/frv/fstat64.c index ff7f2397f..98c02e72d 100644 --- a/libc/sysdeps/linux/frv/fstat64.c +++ b/libc/sysdeps/linux/frv/fstat64.c @@ -31,7 +31,7 @@ #if defined __UCLIBC_HAS_LFS__ #define __NR___syscall_fstat64 __NR_fstat64 static inline _syscall2(int, __syscall_fstat64, int, fd, struct stat64 *, buf); -strong_alias(__syscall_fstat64,fstat64) libc_hidden_proto(fstat64) +strong_alias(__syscall_fstat64,fstat64) libc_hidden_def(fstat64) #endif diff --git a/libc/sysdeps/linux/frv/lstat.c b/libc/sysdeps/linux/frv/lstat.c index 3170e79fb..9fe65a71c 100644 --- a/libc/sysdeps/linux/frv/lstat.c +++ b/libc/sysdeps/linux/frv/lstat.c @@ -30,6 +30,6 @@ #define __NR___syscall_lstat __NR_lstat static inline _syscall2(int, __syscall_lstat, const char *, file_name, struct stat *, buf); -strong_alias(__syscall_lstat,lstat) libc_hidden_proto(lstat) +strong_alias(__syscall_lstat,lstat) libc_hidden_def(lstat) diff --git a/libc/sysdeps/linux/frv/lstat64.c b/libc/sysdeps/linux/frv/lstat64.c index 969ef8d65..50e62969f 100644 --- a/libc/sysdeps/linux/frv/lstat64.c +++ b/libc/sysdeps/linux/frv/lstat64.c @@ -31,7 +31,7 @@ #if defined __UCLIBC_HAS_LFS__ #define __NR___syscall_lstat64 __NR_lstat64 static inline _syscall2(int, __syscall_lstat64, const char *, file_name, struct stat64 *, buf); -strong_alias(__syscall_lstat64,lstat64) libc_hidden_proto(lstat64) +strong_alias(__syscall_lstat64,lstat64) libc_hidden_def(lstat64) #endif diff --git a/libc/sysdeps/linux/frv/stat.c b/libc/sysdeps/linux/frv/stat.c index 82e3cfa8b..cde54aecc 100644 --- a/libc/sysdeps/linux/frv/stat.c +++ b/libc/sysdeps/linux/frv/stat.c @@ -30,6 +30,6 @@ #define __NR___syscall_stat __NR_stat static inline _syscall2(int, __syscall_stat, const char *, file_name, struct stat *, buf); -strong_alias(__syscall_stat,stat) libc_hidden_proto(stat) +strong_alias(__syscall_stat,stat) libc_hidden_def(stat) diff --git a/libc/sysdeps/linux/frv/stat64.c b/libc/sysdeps/linux/frv/stat64.c index b10e66d8a..97abf240a 100644 --- a/libc/sysdeps/linux/frv/stat64.c +++ b/libc/sysdeps/linux/frv/stat64.c @@ -31,7 +31,7 @@ #if defined __UCLIBC_HAS_LFS__ #define __NR___syscall_stat64 __NR_stat64 static inline _syscall2(int, __syscall_stat64, const char *, file_name, struct stat64 *, buf); -strong_alias(__syscall_stat64,stat64) libc_hidden_proto(stat64) +strong_alias(__syscall_stat64,stat64) libc_hidden_def(stat64) #endif diff --git a/libc/sysdeps/linux/i386/sigaction.c b/libc/sysdeps/linux/i386/sigaction.c index e3162ab46..c550c75d2 100644 --- a/libc/sysdeps/linux/i386/sigaction.c +++ b/libc/sysdeps/linux/i386/sigaction.c @@ -123,8 +123,8 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa #endif #ifndef LIBC_SIGACTION -strong_alias(__libc_sigaction,sigaction) libc_hidden_proto(sigaction) +strong_alias(__libc_sigaction,sigaction) libc_hidden_def(sigaction) #endif diff --git a/libc/sysdeps/linux/mips/sigaction.c b/libc/sysdeps/linux/mips/sigaction.c index 5e2d6ccde..15307d9ae 100644 --- a/libc/sysdeps/linux/mips/sigaction.c +++ b/libc/sysdeps/linux/mips/sigaction.c @@ -114,7 +114,7 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa #endif #ifndef LIBC_SIGACTION -strong_alias(__libc_sigaction,sigaction) libc_hidden_proto(sigaction) +strong_alias(__libc_sigaction,sigaction) libc_hidden_def(sigaction) #endif diff --git a/libc/sysdeps/linux/x86_64/sigaction.c b/libc/sysdeps/linux/x86_64/sigaction.c index 7a2d1ce28..61022ea12 100644 --- a/libc/sysdeps/linux/x86_64/sigaction.c +++ b/libc/sysdeps/linux/x86_64/sigaction.c @@ -120,8 +120,8 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) #endif #ifndef LIBC_SIGACTION -strong_alias(__libc_sigaction,sigaction) libc_hidden_proto(sigaction) +strong_alias(__libc_sigaction,sigaction) libc_hidden_def(sigaction) #endif |