From 0d212a2b26a764bba1c8220ee84547247bd78ad8 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 15 Jan 2006 22:41:03 +0000 Subject: make gcc4 happy w/ hidden_def/proto, correct some typos --- libc/inet/rpc/authunix_prot.c | 1 - libc/inet/socketcalls.c | 16 ++++---- libc/misc/fnmatch/fnmatch.c | 1 - libc/misc/glob/glob.c | 55 ++++++++++++++------------- libc/misc/glob/glob64.c | 16 ++++---- libc/misc/ttyent/getttyent.c | 23 ++++++----- libc/misc/utmp/utent.c | 7 ++-- libc/misc/wchar/wstdio.c | 11 ++---- libc/signal/sigaction.c | 2 +- libc/signal/signal.c | 2 +- libc/stdio/fflush.c | 2 +- libc/stdio/fgetc.c | 10 +++-- libc/stdio/fgets.c | 2 +- libc/stdio/fgetwc.c | 5 ++- libc/stdio/fileno.c | 2 +- libc/stdio/fputc.c | 6 +-- libc/stdio/fputs.c | 2 +- libc/stdio/fputws.c | 2 +- libc/stdio/fread.c | 2 +- libc/stdio/fwrite.c | 2 +- libc/stdlib/stdlib.c | 13 ++++--- libc/string/generic/strcmp.c | 2 +- libc/string/i386/strcmp.c | 2 +- libc/string/strcmp.c | 2 +- libc/string/strlcpy.c | 2 +- libc/string/strncmp.c | 2 + libc/string/strncpy.c | 2 + libc/string/strrchr.c | 2 +- libc/sysdeps/linux/arm/sigaction.c | 2 +- libc/sysdeps/linux/common/__syscall_fcntl.c | 4 +- libc/sysdeps/linux/common/__syscall_fcntl64.c | 2 +- libc/sysdeps/linux/common/close.c | 2 +- libc/sysdeps/linux/common/fork.c | 2 +- libc/sysdeps/linux/common/fstat.c | 2 +- libc/sysdeps/linux/common/getpagesize.c | 2 +- libc/sysdeps/linux/common/getpid.c | 2 +- libc/sysdeps/linux/common/llseek.c | 3 +- libc/sysdeps/linux/common/longjmp.c | 2 +- libc/sysdeps/linux/common/lseek.c | 2 +- libc/sysdeps/linux/common/lstat.c | 2 +- libc/sysdeps/linux/common/nanosleep.c | 2 +- libc/sysdeps/linux/common/open.c | 2 +- libc/sysdeps/linux/common/open64.c | 2 +- libc/sysdeps/linux/common/read.c | 2 +- libc/sysdeps/linux/common/stat.c | 2 +- libc/sysdeps/linux/common/waitpid.c | 2 +- libc/sysdeps/linux/common/write.c | 2 +- libc/sysdeps/linux/cris/fork.c | 2 +- libc/sysdeps/linux/frv/fstat.c | 2 +- libc/sysdeps/linux/frv/fstat64.c | 2 +- libc/sysdeps/linux/frv/lstat.c | 2 +- libc/sysdeps/linux/frv/lstat64.c | 2 +- libc/sysdeps/linux/frv/stat.c | 2 +- libc/sysdeps/linux/frv/stat64.c | 2 +- libc/sysdeps/linux/i386/sigaction.c | 2 +- libc/sysdeps/linux/mips/sigaction.c | 2 +- libc/sysdeps/linux/x86_64/sigaction.c | 2 +- libpthread/linuxthreads.old/forward.c | 11 +++--- 58 files changed, 138 insertions(+), 130 deletions(-) diff --git a/libc/inet/rpc/authunix_prot.c b/libc/inet/rpc/authunix_prot.c index ad26f2c1e..c2f706cd6 100644 --- a/libc/inet/rpc/authunix_prot.c +++ b/libc/inet/rpc/authunix_prot.c @@ -40,7 +40,6 @@ #include libc_hidden_proto(xdr_string) -libc_hidden_def(xdr_string) libc_hidden_proto(xdr_u_int) libc_hidden_proto(xdr_array) libc_hidden_proto(xdr_u_long) diff --git a/libc/inet/socketcalls.c b/libc/inet/socketcalls.c index 880eab3d8..4b22120d0 100644 --- a/libc/inet/socketcalls.c +++ b/libc/inet/socketcalls.c @@ -49,8 +49,8 @@ int __libc_accept(int s, struct sockaddr *addr, socklen_t * addrlen) return __socketcall(SYS_ACCEPT, args); } #endif -strong_alias(__libc_accept,accept) libc_hidden_proto(accept) +strong_alias(__libc_accept,accept) libc_hidden_def(accept) #endif @@ -87,8 +87,8 @@ int __libc_connect(int sockfd, const struct sockaddr *saddr, socklen_t addrlen) return __socketcall(SYS_CONNECT, args); } #endif -strong_alias(__libc_connect,connect) libc_hidden_proto(connect) +strong_alias(__libc_connect,connect) libc_hidden_def(connect) #endif @@ -185,8 +185,8 @@ ssize_t __libc_recv(int sockfd, __ptr_t buffer, size_t len, int flags) return (recvfrom(sockfd, buffer, len, flags, NULL, NULL)); } #endif -strong_alias(__libc_recv,recv) libc_hidden_proto(recv) +strong_alias(__libc_recv,recv) libc_hidden_def(recv) #endif @@ -211,8 +211,8 @@ ssize_t __libc_recvfrom(int sockfd, __ptr_t buffer, size_t len, int flags, return (__socketcall(SYS_RECVFROM, args)); } #endif -strong_alias(__libc_recvfrom,recvfrom) libc_hidden_proto(recvfrom) +strong_alias(__libc_recvfrom,recvfrom) libc_hidden_def(recvfrom) #endif @@ -231,8 +231,8 @@ ssize_t __libc_recvmsg(int sockfd, struct msghdr *msg, int flags) return (__socketcall(SYS_RECVMSG, args)); } #endif -strong_alias(__libc_recvmsg,recvmsg) libc_hidden_proto(recvmsg) +strong_alias(__libc_recvmsg,recvmsg) libc_hidden_def(recvmsg) #endif @@ -259,8 +259,8 @@ ssize_t __libc_send(int sockfd, const void *buffer, size_t len, int flags) return (sendto(sockfd, buffer, len, flags, NULL, 0)); } #endif -strong_alias(__libc_send,send) libc_hidden_proto(send) +strong_alias(__libc_send,send) libc_hidden_def(send) #endif @@ -279,8 +279,8 @@ ssize_t __libc_sendmsg(int sockfd, const struct msghdr *msg, int flags) return (__socketcall(SYS_SENDMSG, args)); } #endif -strong_alias(__libc_sendmsg,sendmsg) libc_hidden_proto(sendmsg) +strong_alias(__libc_sendmsg,sendmsg) libc_hidden_def(sendmsg) #endif @@ -305,8 +305,8 @@ ssize_t __libc_sendto(int sockfd, const void *buffer, size_t len, int flags, return (__socketcall(SYS_SENDTO, args)); } #endif -strong_alias(__libc_sendto,sendto) libc_hidden_proto(sendto) +strong_alias(__libc_sendto,sendto) libc_hidden_def(sendto) #endif diff --git a/libc/misc/fnmatch/fnmatch.c b/libc/misc/fnmatch/fnmatch.c index dc18c2f59..ac7dbcf2b 100644 --- a/libc/misc/fnmatch/fnmatch.c +++ b/libc/misc/fnmatch/fnmatch.c @@ -475,7 +475,6 @@ compat_symbol (libc, __fnmatch_old, fnmatch, GLIBC_2_0); libc_hidden_ver (__fnmatch, fnmatch) # endif # else -libc_hidden_proto(fnmatch) libc_hidden_def(fnmatch) # endif diff --git a/libc/misc/glob/glob.c b/libc/misc/glob/glob.c index cbc232076..8cb9a3ae5 100644 --- a/libc/misc/glob/glob.c +++ b/libc/misc/glob/glob.c @@ -15,6 +15,7 @@ License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#define _GNU_SOURCE #include #include #include @@ -25,7 +26,6 @@ Cambridge, MA 02139, USA. */ #include #include #include -#define _GNU_SOURCE #include libc_hidden_proto(memcpy) @@ -40,6 +40,7 @@ libc_hidden_proto(fnmatch) libc_hidden_proto(qsort) libc_hidden_proto(lstat) + extern __ptr_t (*__glob_opendir_hook) __P ((const char *directory)) attribute_hidden; extern void (*__glob_closedir_hook) __P ((__ptr_t stream)) attribute_hidden; extern const char *(*__glob_readdir_hook) __P ((__ptr_t stream)) attribute_hidden; @@ -53,20 +54,20 @@ static int prefix_array __P ((const char *prefix, char **array, size_t n, int add_slash)); static int collated_compare __P ((const __ptr_t, const __ptr_t)); +libc_hidden_proto(glob_pattern_p) #ifdef __GLOB64 -extern int __glob_pattern_p(const char *pattern, int quote) attribute_hidden; +libc_hidden_proto(glob64) +libc_hidden_proto(globfree64) libc_hidden_proto(readdir64) #define __readdir readdir64 #else -extern int __glob (__const char *__restrict __pattern, int __flags, - int (*__errfunc) (__const char *, int), - glob_t *__restrict __pglob) __THROW attribute_hidden; -extern void __globfree (glob_t *__pglob) __THROW attribute_hidden; +libc_hidden_proto(glob) +libc_hidden_proto(globfree) #define __readdir readdir libc_hidden_proto(readdir) /* Return nonzero if PATTERN contains any metacharacters. Metacharacters can be quoted with backslashes if QUOTE is nonzero. */ -int attribute_hidden __glob_pattern_p(const char *pattern, int quote) +int glob_pattern_p(const char *pattern, int quote) { const char *p; int open = 0; @@ -95,7 +96,7 @@ int attribute_hidden __glob_pattern_p(const char *pattern, int quote) return 0; } -strong_alias(__glob_pattern_p,glob_pattern_p) +libc_hidden_def(glob_pattern_p) #endif @@ -107,8 +108,8 @@ strong_alias(__glob_pattern_p,glob_pattern_p) `glob' returns GLOB_ABEND; if it returns zero, the error is ignored. If memory cannot be allocated for PGLOB, GLOB_NOSPACE is returned. Otherwise, `glob' returns zero. */ -int attribute_hidden -__glob (pattern, flags, errfunc, pglob) +int +glob (pattern, flags, errfunc, pglob) const char *pattern; int flags; int (*errfunc) __P ((const char *, int)); @@ -153,7 +154,7 @@ __glob (pattern, flags, errfunc, pglob) if (filename[0] == '\0' && dirlen > 1) /* "pattern/". Expand "pattern", appending slashes. */ { - int val = __glob (dirname, flags | GLOB_MARK, errfunc, pglob); + int val = glob (dirname, flags | GLOB_MARK, errfunc, pglob); if (val == 0) pglob->gl_flags = (pglob->gl_flags & ~GLOB_MARK) | (flags & GLOB_MARK); return val; @@ -167,7 +168,7 @@ __glob (pattern, flags, errfunc, pglob) oldcount = pglob->gl_pathc; - if (__glob_pattern_p (dirname, !(flags & GLOB_NOESCAPE))) + if (glob_pattern_p (dirname, !(flags & GLOB_NOESCAPE))) { /* The directory name contains metacharacters, so we have to glob for the directory, and then glob for @@ -175,7 +176,7 @@ __glob (pattern, flags, errfunc, pglob) glob_t dirs; register int i; - status = __glob (dirname, + status = glob (dirname, ((flags & (GLOB_ERR | GLOB_NOCHECK | GLOB_NOESCAPE)) | GLOB_NOSORT), errfunc, &dirs); @@ -196,8 +197,8 @@ __glob (pattern, flags, errfunc, pglob) if (interrupt_state) { - __globfree (&dirs); - __globfree (&files); + globfree (&dirs); + globfree (&files); return GLOB_ABEND; } } @@ -213,8 +214,8 @@ __glob (pattern, flags, errfunc, pglob) if (status != 0) { - __globfree (&dirs); - __globfree (pglob); + globfree (&dirs); + globfree (pglob); return status; } @@ -224,8 +225,8 @@ __glob (pattern, flags, errfunc, pglob) pglob->gl_pathc - oldcount, flags & GLOB_MARK)) { - __globfree (&dirs); - __globfree (pglob); + globfree (&dirs); + globfree (pglob); return GLOB_NOSPACE; } } @@ -284,7 +285,7 @@ __glob (pattern, flags, errfunc, pglob) pglob->gl_pathc - oldcount, flags & GLOB_MARK)) { - __globfree (pglob); + globfree (pglob); return GLOB_NOSPACE; } } @@ -311,15 +312,15 @@ __glob (pattern, flags, errfunc, pglob) return 0; } #ifdef __GLOB64 -strong_alias(__glob64,glob64) +libc_hidden_def(glob64) #else -strong_alias(__glob,glob) +libc_hidden_def(glob) #endif /* Free storage allocated in PGLOB by a previous `glob' call. */ -void attribute_hidden -__globfree (pglob) +void +globfree (pglob) register glob_t *pglob; { if (pglob->gl_pathv != NULL) @@ -332,9 +333,9 @@ __globfree (pglob) } } #ifdef __GLOB64 -strong_alias(__globfree64,globfree64) +libc_hidden_def(globfree64) #else -strong_alias(__globfree,globfree) +libc_hidden_def(globfree) #endif @@ -432,7 +433,7 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob) return GLOB_ABORTED; } - meta = __glob_pattern_p (pattern, !(flags & GLOB_NOESCAPE)); + meta = glob_pattern_p (pattern, !(flags & GLOB_NOESCAPE)); if (meta) flags |= GLOB_MAGCHAR; diff --git a/libc/misc/glob/glob64.c b/libc/misc/glob/glob64.c index 5baf86810..8c19e81bb 100644 --- a/libc/misc/glob/glob64.c +++ b/libc/misc/glob/glob64.c @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2000-2006 Erik Andersen + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#define _GNU_SOURCE #include #ifdef __UCLIBC_HAS_LFS__ @@ -18,20 +25,11 @@ #include #include - -extern int __glob64 (__const char *__restrict __pattern, int __flags, - int (*__errfunc) (__const char *, int), - glob64_t *__restrict __pglob) __THROW attribute_hidden; -extern void __globfree (glob_t *__pglob) __THROW attribute_hidden; -extern void __globfree64 (glob64_t *__pglob) __THROW attribute_hidden; #define dirent dirent64 #define glob_t glob64_t -#define __glob(pattern, flags, errfunc, pglob) \ - __glob64 (pattern, flags, errfunc, pglob) #define glob(pattern, flags, errfunc, pglob) \ glob64 (pattern, flags, errfunc, pglob) -#define __globfree(pglob) __globfree64 (pglob) #define globfree(pglob) globfree64 (pglob) #undef stat diff --git a/libc/misc/ttyent/getttyent.c b/libc/misc/ttyent/getttyent.c index 9754e9b49..c11811769 100644 --- a/libc/misc/ttyent/getttyent.c +++ b/libc/misc/ttyent/getttyent.c @@ -98,7 +98,8 @@ static char * value(register char *p) return ((p = strchr(p, '=')) ? ++p : NULL); } -int attribute_hidden __setttyent(void) +libc_hidden_proto(setttyent) +int setttyent(void) { if (tf) { @@ -113,15 +114,16 @@ int attribute_hidden __setttyent(void) } return (0); } -strong_alias(__setttyent,setttyent) +libc_hidden_def(setttyent) -struct ttyent attribute_hidden * __getttyent(void) +libc_hidden_proto(getttyent) +struct ttyent * getttyent(void) { register int c; register char *p; static char *line = NULL; - if (!tf && !__setttyent()) + if (!tf && !setttyent()) return (NULL); if (!line) { @@ -191,9 +193,10 @@ struct ttyent attribute_hidden * __getttyent(void) *p = '\0'; return (&tty); } -strong_alias(__getttyent,getttyent) +libc_hidden_def(getttyent) -int attribute_hidden __endttyent(void) +libc_hidden_proto(endttyent) +int endttyent(void) { int rval; @@ -204,16 +207,16 @@ int attribute_hidden __endttyent(void) } return (1); } -strong_alias(__endttyent,endttyent) +libc_hidden_def(endttyent) struct ttyent * getttynam(const char *tty) { register struct ttyent *t; - __setttyent(); - while ((t = __getttyent())) + setttyent(); + while ((t = getttyent())) if (!strcmp(tty, t->ty_name)) break; - __endttyent(); + endttyent(); return (t); } diff --git a/libc/misc/utmp/utent.c b/libc/misc/utmp/utent.c index c1932d7d7..b865cc271 100644 --- a/libc/misc/utmp/utent.c +++ b/libc/misc/utmp/utent.c @@ -112,7 +112,8 @@ struct utmp *getutent(void) } /* Locking is done in __getutent */ -struct utmp attribute_hidden *__getutid (const struct utmp *utmp_entry) +libc_hidden_proto(getutid) +struct utmp *getutid (const struct utmp *utmp_entry) { struct utmp *lutmp; @@ -137,7 +138,7 @@ struct utmp attribute_hidden *__getutid (const struct utmp *utmp_entry) return NULL; } -strong_alias(__getutid,getutid) +libc_hidden_def(getutid) /* Locking is done in __getutent */ struct utmp *getutline(const struct utmp *utmp_entry) @@ -162,7 +163,7 @@ struct utmp *pututline (const struct utmp *utmp_entry) the file pointer where they want it, everything will work out. */ lseek(static_fd, (off_t) - sizeof(struct utmp), SEEK_CUR); - if (__getutid(utmp_entry) != NULL) { + if (getutid(utmp_entry) != NULL) { lseek(static_fd, (off_t) - sizeof(struct utmp), SEEK_CUR); if (write(static_fd, utmp_entry, sizeof(struct utmp)) != sizeof(struct utmp)) return NULL; diff --git a/libc/misc/wchar/wstdio.c b/libc/misc/wchar/wstdio.c index 69287f871..00311a41d 100644 --- a/libc/misc/wchar/wstdio.c +++ b/libc/misc/wchar/wstdio.c @@ -56,6 +56,9 @@ #include #include +libc_hidden_proto(fgetwc_unlocked) +libc_hidden_proto(fputwc_unlocked) + #ifndef __UCLIBC_HAS_THREADS__ #ifdef __BCC__ @@ -259,7 +262,6 @@ UNLOCKED(wint_t,fgetwc,(register FILE *stream),(stream)) return wi; } -libc_hidden_proto(fgetwc_unlocked) libc_hidden_def(fgetwc_unlocked) strong_alias(fgetwc_unlocked,getwc_unlocked) @@ -269,8 +271,6 @@ strong_alias(fgetwc,getwc) /**********************************************************************/ #ifdef L_getwchar -libc_hidden_proto(fgetwc_unlocked) - UNLOCKED_STREAM(wint_t,getwchar,(void),(),stdin) { register FILE *stream = stdin; /* This helps bcc optimize. */ @@ -282,8 +282,6 @@ UNLOCKED_STREAM(wint_t,getwchar,(void),(),stdin) /**********************************************************************/ #ifdef L_fgetws -libc_hidden_proto(fgetwc_unlocked) - UNLOCKED(wchar_t *,fgetws,(wchar_t *__restrict ws, int n, FILE *__restrict stream),(ws, n, stream)) { @@ -333,7 +331,6 @@ UNLOCKED(wint_t,fputwc,(wchar_t wc, FILE *stream),(wc, stream)) ? wc : WEOF; #endif } -libc_hidden_proto(fputwc_unlocked) libc_hidden_def(fputwc_unlocked) strong_alias(fputwc_unlocked,putwc_unlocked) @@ -343,8 +340,6 @@ strong_alias(fputwc,putwc) /**********************************************************************/ #ifdef L_putwchar -libc_hidden_proto(fputwc_unlocked) - UNLOCKED_STREAM(wint_t,putwchar,(wchar_t wc),(wc),stdout) { register FILE *stream = stdout; /* This helps bcc optimize. */ diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c index f0569b392..0d941be33 100644 --- a/libc/signal/sigaction.c +++ b/libc/signal/sigaction.c @@ -104,7 +104,7 @@ __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 diff --git a/libc/signal/signal.c b/libc/signal/signal.c index 87bd7ab84..6a0beb9f7 100644 --- a/libc/signal/signal.c +++ b/libc/signal/signal.c @@ -51,6 +51,6 @@ __bsd_signal (int sig, __sighandler_t handler) return oact.sa_handler; } strong_alias(__bsd_signal,bsd_signal) -strong_alias(__bsd_signal,signal) libc_hidden_proto(signal) +strong_alias(__bsd_signal,signal) libc_hidden_def(signal) diff --git a/libc/stdio/fflush.c b/libc/stdio/fflush.c index a03c311e0..c0f58d8af 100644 --- a/libc/stdio/fflush.c +++ b/libc/stdio/fflush.c @@ -130,8 +130,8 @@ int fflush_unlocked(register FILE *stream) libc_hidden_def(fflush_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(fflush_unlocked,fflush) libc_hidden_proto(fflush) +strong_alias(fflush_unlocked,fflush) libc_hidden_def(fflush) #endif diff --git a/libc/stdio/fgetc.c b/libc/stdio/fgetc.c index eb8c58254..7eb2b6ea2 100644 --- a/libc/stdio/fgetc.c +++ b/libc/stdio/fgetc.c @@ -75,21 +75,23 @@ int __fgetc_unlocked(FILE *stream) } libc_hidden_def(__fgetc_unlocked) -strong_alias(__fgetc_unlocked,fgetc_unlocked) libc_hidden_proto(fgetc_unlocked) +strong_alias(__fgetc_unlocked,fgetc_unlocked) libc_hidden_def(fgetc_unlocked) -//strong_alias(__fgetc_unlocked,__getc_unlocked) //libc_hidden_proto(__getc_unlocked) +//strong_alias(__fgetc_unlocked,__getc_unlocked) //libc_hidden_def(__getc_unlocked) -strong_alias(__fgetc_unlocked,getc_unlocked) + libc_hidden_proto(getc_unlocked) +strong_alias(__fgetc_unlocked,getc_unlocked) libc_hidden_def(getc_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(__fgetc_unlocked,fgetc) libc_hidden_proto(fgetc) +strong_alias(__fgetc_unlocked,fgetc) libc_hidden_def(fgetc) + strong_alias(__fgetc_unlocked,getc) #endif diff --git a/libc/stdio/fgets.c b/libc/stdio/fgets.c index ae2ecdc8d..5acaf91ed 100644 --- a/libc/stdio/fgets.c +++ b/libc/stdio/fgets.c @@ -64,8 +64,8 @@ char *fgets_unlocked(char *__restrict s, int n, libc_hidden_def(fgets_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(fgets_unlocked,fgets) libc_hidden_proto(fgets) +strong_alias(fgets_unlocked,fgets) libc_hidden_def(fgets) #endif diff --git a/libc/stdio/fgetwc.c b/libc/stdio/fgetwc.c index 716a8e9c0..062d825d6 100644 --- a/libc/stdio/fgetwc.c +++ b/libc/stdio/fgetwc.c @@ -113,9 +113,10 @@ libc_hidden_def(fgetwc_unlocked) strong_alias(fgetwc_unlocked,getwc_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(fgetwc_unlocked,fgetwc) libc_hidden_proto(fgetwc) +strong_alias(fgetwc_unlocked,fgetwc) libc_hidden_def(fgetwc) + strong_alias(fgetwc_unlocked,getwc) #endif @@ -136,6 +137,6 @@ wint_t fgetwc(register FILE *stream) return retval; } libc_hidden_def(fgetwc) -strong_alias(fgetwc,getwc) +strong_alias(fgetwc,getwc) #endif diff --git a/libc/stdio/fileno.c b/libc/stdio/fileno.c index deeff71b1..929936bfd 100644 --- a/libc/stdio/fileno.c +++ b/libc/stdio/fileno.c @@ -25,8 +25,8 @@ int fileno_unlocked(register FILE *stream) libc_hidden_def(fileno_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(fileno_unlocked,fileno) libc_hidden_proto(fileno) +strong_alias(fileno_unlocked,fileno) libc_hidden_def(fileno) #endif diff --git a/libc/stdio/fputc.c b/libc/stdio/fputc.c index bbc72ab86..8c80bff27 100644 --- a/libc/stdio/fputc.c +++ b/libc/stdio/fputc.c @@ -74,14 +74,14 @@ libc_hidden_def(__fputc_unlocked) strong_alias(__fputc_unlocked,fputc_unlocked) -strong_alias(__fputc_unlocked,putc_unlocked) libc_hidden_proto(putc_unlocked) +strong_alias(__fputc_unlocked,putc_unlocked) libc_hidden_def(putc_unlocked) #ifndef __UCLIBC_HAS_THREADS__ strong_alias(__fputc_unlocked,fputc) -strong_alias(__fputc_unlocked,putc) libc_hidden_proto(putc) +strong_alias(__fputc_unlocked,putc) libc_hidden_def(putc) #endif @@ -102,8 +102,8 @@ int fputc(int c, register FILE *stream) } libc_hidden_def(fputc) -strong_alias(fputc,putc) libc_hidden_proto(putc) +strong_alias(fputc,putc) libc_hidden_def(putc) #endif diff --git a/libc/stdio/fputs.c b/libc/stdio/fputs.c index a2d9c22c3..4111491d6 100644 --- a/libc/stdio/fputs.c +++ b/libc/stdio/fputs.c @@ -29,8 +29,8 @@ int fputs_unlocked(register const char * __restrict s, libc_hidden_def(fputs_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(fputs_unlocked,fputs) libc_hidden_proto(fputs) +strong_alias(fputs_unlocked,fputs) libc_hidden_def(fputs) #endif diff --git a/libc/stdio/fputws.c b/libc/stdio/fputws.c index 2557155d6..ecbc121dd 100644 --- a/libc/stdio/fputws.c +++ b/libc/stdio/fputws.c @@ -23,8 +23,8 @@ int fputws_unlocked(const wchar_t *__restrict ws, libc_hidden_def(fputws_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(fputws_unlocked,fputws) libc_hidden_proto(fputws) +strong_alias(fputws_unlocked,fputws) libc_hidden_def(fputws) #endif diff --git a/libc/stdio/fread.c b/libc/stdio/fread.c index 3145553c2..c603a9d2e 100644 --- a/libc/stdio/fread.c +++ b/libc/stdio/fread.c @@ -90,8 +90,8 @@ size_t fread_unlocked(void * __restrict ptr, size_t size, size_t nmemb, libc_hidden_def(fread_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(fread_unlocked,fread) libc_hidden_proto(fread) +strong_alias(fread_unlocked,fread) libc_hidden_def(fread) #endif diff --git a/libc/stdio/fwrite.c b/libc/stdio/fwrite.c index 85ca6050e..7be794ab4 100644 --- a/libc/stdio/fwrite.c +++ b/libc/stdio/fwrite.c @@ -38,8 +38,8 @@ size_t fwrite_unlocked(const void * __restrict ptr, size_t size, libc_hidden_def(fwrite_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -strong_alias(fwrite_unlocked,fwrite) libc_hidden_proto(fwrite) +strong_alias(fwrite_unlocked,fwrite) libc_hidden_def(fwrite) #endif diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c index 5d92d572d..2ff404621 100644 --- a/libc/stdlib/stdlib.c +++ b/libc/stdlib/stdlib.c @@ -286,8 +286,11 @@ long atol(const char *nptr) libc_hidden_def(atol) #if UINT_MAX == ULONG_MAX -strong_alias(atol,atoi) +/* psm: need to redefine atoi here */ +#undef atoi +extern long int atoi (__const char *__nptr) __THROW __attribute_pure__ __nonnull ((1)) __wur; libc_hidden_proto(atoi) +strong_alias(atol,atoi) libc_hidden_def(atoi) #endif @@ -327,8 +330,8 @@ strong_alias(strtol,strtoimax) #endif #if defined(ULLONG_MAX) && (ULLONG_MAX == ULONG_MAX) -strong_alias(__XL_NPP(strtol),__XL_NPP(strtoll)) libc_hidden_proto(__XL_NPP(strtoll)) +strong_alias(__XL_NPP(strtol),__XL_NPP(strtoll)) libc_hidden_def(__XL_NPP(strtoll)) #endif @@ -375,8 +378,8 @@ strong_alias(strtoul,strtoumax) #endif #if defined(ULLONG_MAX) && (ULLONG_MAX == ULONG_MAX) -strong_alias(__XL_NPP(strtoul),__XL_NPP(strtoull)) libc_hidden_proto(__XL_NPP(strtoull)) +strong_alias(__XL_NPP(strtoul),__XL_NPP(strtoull)) libc_hidden_def(__XL_NPP(strtoull)) #endif @@ -1015,8 +1018,8 @@ strong_alias(wcstol,wcstoimax) #endif #if defined(ULLONG_MAX) && (ULLONG_MAX == ULONG_MAX) -strong_alias(__XL_NPP(wcstol),__XL_NPP(wcstoll)) libc_hidden_proto(__XL_NPP(wcstoll)) +strong_alias(__XL_NPP(wcstol),__XL_NPP(wcstoll)) libc_hidden_def(__XL_NPP(wcstoll)) #endif @@ -1063,8 +1066,8 @@ strong_alias(wcstoul,wcstoumax) #endif #if defined(ULLONG_MAX) && (ULLONG_MAX == ULONG_MAX) -strong_alias(__XL_NPP(wcstoul),__XL_NPP(wcstoull)) libc_hidden_proto(__XL_NPP(wcstoull)) +strong_alias(__XL_NPP(wcstoul),__XL_NPP(wcstoull)) libc_hidden_def(__XL_NPP(wcstoull)) #endif diff --git a/libc/string/generic/strcmp.c b/libc/string/generic/strcmp.c index 6edb503e1..acfefb6dc 100644 --- a/libc/string/generic/strcmp.c +++ b/libc/string/generic/strcmp.c @@ -44,7 +44,7 @@ int strcmp (const char *p1, const char *p2) libc_hidden_def(strcmp) #ifndef __UCLIBC_HAS_LOCALE__ -strong_alias(strcmp,strcoll) libc_hidden_proto(strcoll) +strong_alias(strcmp,strcoll) libc_hidden_def(strcoll) #endif diff --git a/libc/string/i386/strcmp.c b/libc/string/i386/strcmp.c index e3cf88715..47635d817 100644 --- a/libc/string/i386/strcmp.c +++ b/libc/string/i386/strcmp.c @@ -55,7 +55,7 @@ int strcmp(const char *cs, const char *ct) libc_hidden_def(strcmp) #ifndef __UCLIBC_HAS_LOCALE__ -strong_alias(strcmp,strcoll) libc_hidden_proto(strcoll) +strong_alias(strcmp,strcoll) libc_hidden_def(strcoll) #endif diff --git a/libc/string/strcmp.c b/libc/string/strcmp.c index 0ca95766c..4a95ab882 100644 --- a/libc/string/strcmp.c +++ b/libc/string/strcmp.c @@ -40,7 +40,7 @@ int Wstrcmp(register const Wchar *s1, register const Wchar *s2) libc_hidden_def(Wstrcmp) #ifndef __UCLIBC_HAS_LOCALE__ -strong_alias(Wstrcmp,Wstrcoll) libc_hidden_proto(Wstrcoll) +strong_alias(Wstrcmp,Wstrcoll) libc_hidden_def(Wstrcoll) #endif diff --git a/libc/string/strlcpy.c b/libc/string/strlcpy.c index a622d0c00..e4f4c3152 100644 --- a/libc/string/strlcpy.c +++ b/libc/string/strlcpy.c @@ -50,8 +50,8 @@ size_t Wstrlcpy(register Wchar *__restrict dst, #ifndef WANT_WIDE libc_hidden_def(strlcpy) #ifndef __UCLIBC_HAS_LOCALE__ -strong_alias(strlcpy,strxfrm) libc_hidden_proto(strxfrm) +strong_alias(strlcpy,strxfrm) libc_hidden_def(strxfrm) #endif #else diff --git a/libc/string/strncmp.c b/libc/string/strncmp.c index e7caf916c..7305cbaa5 100644 --- a/libc/string/strncmp.c +++ b/libc/string/strncmp.c @@ -37,4 +37,6 @@ int Wstrncmp(register const Wchar *s1, register const Wchar *s2, size_t n) return r; #endif } +#ifndef WANT_WIDE libc_hidden_def(strncmp) +#endif diff --git a/libc/string/strncpy.c b/libc/string/strncpy.c index 7c6654626..40da93dac 100644 --- a/libc/string/strncpy.c +++ b/libc/string/strncpy.c @@ -34,4 +34,6 @@ Wchar *Wstrncpy(Wchar * __restrict s1, register const Wchar * __restrict s2, return s1; } +#ifndef WANT_WIDE libc_hidden_def(strncpy) +#endif diff --git a/libc/string/strrchr.c b/libc/string/strrchr.c index 7c44a346a..8a9184f9f 100644 --- a/libc/string/strrchr.c +++ b/libc/string/strrchr.c @@ -27,7 +27,7 @@ Wchar *Wstrrchr(register const Wchar *s, Wint c) return (Wchar *) p; /* silence the warning */ } -libc_hidden_def(strrchr) #ifndef WANT_WIDE +libc_hidden_def(strrchr) strong_alias(strrchr,rindex) #endif 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 +#include #include #include @@ -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 diff --git a/libpthread/linuxthreads.old/forward.c b/libpthread/linuxthreads.old/forward.c index 8373b4d41..b6ff3d65b 100644 --- a/libpthread/linuxthreads.old/forward.c +++ b/libpthread/linuxthreads.old/forward.c @@ -17,13 +17,14 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include -#include "internals.h" +#include #include +#include -#include +/* psm: keep this before internals.h */ +libc_hidden_proto(exit) -libc_hidden_def(exit) +#include "internals.h" /* Pointers to the libc functions. */ struct pthread_functions __libc_pthread_functions attribute_hidden; @@ -103,7 +104,7 @@ FORWARD (pthread_equal, (pthread_t thread1, pthread_t thread2), /* Use an alias to avoid warning, as pthread_exit is declared noreturn. */ FORWARD2 (__pthread_exit, void, (void *retval), (retval), exit (EXIT_SUCCESS)) -strong_alias (__pthread_exit, pthread_exit); +strong_alias (__pthread_exit, pthread_exit) FORWARD (pthread_getschedparam, -- cgit v1.2.3