OSDN Git Service

Rename newly created __libc_x (reserved for libpthread overwrites) w/ x_internal...
authorPeter S. Mazinger <ps.m@gmx.net>
Sat, 3 Dec 2005 23:36:38 +0000 (23:36 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Sat, 3 Dec 2005 23:36:38 +0000 (23:36 -0000)
17 files changed:
libc/inet/resolv.c
libc/inet/rpc/clnt_udp.c
libc/inet/rpc/rpc_dtablesize.c
libc/inet/rpc/rpc_thread.c
libc/inet/rpc/ruserpass.c
libc/inet/rpc/svc.c
libc/inet/rpc/svc_auth.c
libc/inet/rpc/svc_run.c
libc/misc/ttyent/getttyent.c
libc/stdio/__fsetlocking.c
libc/stdio/_stdio.h
libc/stdio/fgetc.c
libc/stdio/fgets.c
libc/stdio/fputc.c
libc/stdio/puts.c
libc/sysdeps/linux/common/cmsg_nxthdr.c
libc/unistd/usershell.c

index 18d1861..ba0fd46 100644 (file)
@@ -273,10 +273,10 @@ extern int __open_nameservers(void) attribute_hidden;
 extern void __close_nameservers(void) attribute_hidden;
 extern int __dn_expand(const u_char *, const u_char *, const u_char *,
        char *, int);
-extern int __libc_ns_name_uncompress(const u_char *, const u_char *,
+extern int __ns_name_uncompress_internal(const u_char *, const u_char *,
                const u_char *, char *, size_t) attribute_hidden;
-extern int __libc_ns_name_ntop(const u_char *, char *, size_t) attribute_hidden;
-extern int __libc_ns_name_unpack(const u_char *, const u_char *, const u_char *,
+extern int __ns_name_ntop_internal(const u_char *, char *, size_t) attribute_hidden;
+extern int __ns_name_unpack_internal(const u_char *, const u_char *, const u_char *,
                u_char *, size_t) attribute_hidden;
 
 
@@ -2389,7 +2389,7 @@ int gethostbyaddr_r (const void *addr, socklen_t len, int type,
 int __dn_expand(const u_char *msg, const u_char *eom, const u_char *src,
           char *dst, int dstsiz)
 {
-       int n = __libc_ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz);
+       int n = __ns_name_uncompress_internal(msg, eom, src, dst, (size_t)dstsiz);
 
        if (n > 0 && dst[0] == '.')
                dst[0] = '\0';
@@ -2441,19 +2441,19 @@ static int special(int ch)
  * note:
  *      Root domain returns as "." not "".
  */
-int attribute_hidden __libc_ns_name_uncompress(const u_char *msg, const u_char *eom,
+int attribute_hidden __ns_name_uncompress_internal(const u_char *msg, const u_char *eom,
                const u_char *src, char *dst, size_t dstsiz)
 {
        u_char tmp[NS_MAXCDNAME];
        int n;
 
-       if ((n = __libc_ns_name_unpack(msg, eom, src, tmp, sizeof tmp)) == -1)
+       if ((n = __ns_name_unpack_internal(msg, eom, src, tmp, sizeof tmp)) == -1)
                return (-1);
-       if (__libc_ns_name_ntop(tmp, dst, dstsiz) == -1)
+       if (__ns_name_ntop_internal(tmp, dst, dstsiz) == -1)
                return (-1);
        return (n);
 }
-strong_alias(__libc_ns_name_uncompress,__ns_name_uncompress)
+strong_alias(__ns_name_uncompress_internal,__ns_name_uncompress)
 
 
 /*
@@ -2465,7 +2465,7 @@ strong_alias(__libc_ns_name_uncompress,__ns_name_uncompress)
  *      The root is returned as "."
  *      All other domains are returned in non absolute form
  */
-int attribute_hidden __libc_ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) {
+int attribute_hidden __ns_name_ntop_internal(const u_char *src, char *dst, size_t dstsiz) {
        const u_char *cp;
        char *dn, *eom;
        u_char c;
@@ -2534,7 +2534,7 @@ int attribute_hidden __libc_ns_name_ntop(const u_char *src, char *dst, size_t ds
        *dn++ = '\0';
         return (dn - dst);
 }
-strong_alias(__libc_ns_name_ntop,__ns_name_ntop)
+strong_alias(__ns_name_ntop_internal,__ns_name_ntop)
 
 /*
  * ns_name_unpack(msg, eom, src, dst, dstsiz)
@@ -2542,7 +2542,7 @@ strong_alias(__libc_ns_name_ntop,__ns_name_ntop)
  * return:
  *      -1 if it fails, or consumed octets if it succeeds.
  */
-int attribute_hidden __libc_ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src,
+int attribute_hidden __ns_name_unpack_internal(const u_char *msg, const u_char *eom, const u_char *src,
                u_char *dst, size_t dstsiz)
 {
        const u_char *srcp, *dstlim;
@@ -2609,5 +2609,5 @@ int attribute_hidden __libc_ns_name_unpack(const u_char *msg, const u_char *eom,
                len = srcp - src;
        return (len);
 }
-strong_alias(__libc_ns_name_unpack,__ns_name_unpack)
+strong_alias(__ns_name_unpack_internal,__ns_name_unpack)
 #endif /* L_ns_name */
index bc032f2..2b84f5b 100644 (file)
@@ -38,7 +38,7 @@ static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro";
  */
 
 /* CMSG_NXTHDR is using it */
-#define __cmsg_nxthdr __libc_cmsg_nxthdr
+#define __cmsg_nxthdr __cmsg_nxthdr_internal
 
 #define authnone_create __authnone_create
 #define xdrmem_create __xdrmem_create
index aa6d598..ede7120 100644 (file)
@@ -45,7 +45,7 @@ static char sccsid[] = "@(#)rpc_dtablesize.c 1.2 87/08/11 Copyr 1987 Sun Micro";
  * expensive system call every time.
  */
 int attribute_hidden
-__libc__rpc_dtablesize (void)
+_rpc_dtablesize_internal (void)
 {
   static int size;
 
@@ -54,4 +54,4 @@ __libc__rpc_dtablesize (void)
 
   return size;
 }
-strong_alias(__libc__rpc_dtablesize,_rpc_dtablesize)
+strong_alias(_rpc_dtablesize_internal,_rpc_dtablesize)
index fb0e19c..1e42cbe 100644 (file)
@@ -95,7 +95,7 @@ __rpc_thread_variables (void)
 #undef svc_max_pollfd
 
 fd_set attribute_hidden *
-__libc_rpc_thread_svc_fdset (void)
+__rpc_thread_svc_fdset_internal (void)
 {
        struct rpc_thread_variables *tvp;
 
@@ -104,7 +104,7 @@ __libc_rpc_thread_svc_fdset (void)
                return &svc_fdset;
        return &tvp->svc_fdset_s;
 }
-strong_alias(__libc_rpc_thread_svc_fdset,__rpc_thread_svc_fdset)
+strong_alias(__rpc_thread_svc_fdset_internal,__rpc_thread_svc_fdset)
 
 struct rpc_createerr *
 __rpc_thread_createerr (void)
@@ -118,7 +118,7 @@ __rpc_thread_createerr (void)
 }
 
 struct pollfd attribute_hidden **
-__libc_rpc_thread_svc_pollfd (void)
+__rpc_thread_svc_pollfd_internal (void)
 {
        struct rpc_thread_variables *tvp;
 
@@ -127,10 +127,10 @@ __libc_rpc_thread_svc_pollfd (void)
                return &svc_pollfd;
        return &tvp->svc_pollfd_s;
 }
-strong_alias(__libc_rpc_thread_svc_pollfd,__rpc_thread_svc_pollfd)
+strong_alias(__rpc_thread_svc_pollfd_internal,__rpc_thread_svc_pollfd)
 
 int attribute_hidden *
-__libc_rpc_thread_svc_max_pollfd (void)
+__rpc_thread_svc_max_pollfd_internal (void)
 {
        struct rpc_thread_variables *tvp;
 
@@ -139,7 +139,7 @@ __libc_rpc_thread_svc_max_pollfd (void)
                return &svc_max_pollfd;
        return &tvp->svc_max_pollfd_s;
 }
-strong_alias(__libc_rpc_thread_svc_max_pollfd,__rpc_thread_svc_max_pollfd)
+strong_alias(__rpc_thread_svc_max_pollfd_internal,__rpc_thread_svc_max_pollfd)
 #else
 
 #undef svc_fdset
@@ -147,12 +147,12 @@ strong_alias(__libc_rpc_thread_svc_max_pollfd,__rpc_thread_svc_max_pollfd)
 #undef svc_pollfd
 #undef svc_max_pollfd
 
-fd_set attribute_hidden * __libc_rpc_thread_svc_fdset (void)
+fd_set attribute_hidden * __rpc_thread_svc_fdset_internal (void)
 {
     extern fd_set svc_fdset;
     return &(svc_fdset);
 }
-strong_alias(__libc_rpc_thread_svc_fdset,__rpc_thread_svc_fdset)
+strong_alias(__rpc_thread_svc_fdset_internal,__rpc_thread_svc_fdset)
 
 struct rpc_createerr * __rpc_thread_createerr (void)
 {
@@ -160,19 +160,19 @@ struct rpc_createerr * __rpc_thread_createerr (void)
     return &(rpc_createerr);
 }
 
-struct pollfd attribute_hidden ** __libc_rpc_thread_svc_pollfd (void)
+struct pollfd attribute_hidden ** __rpc_thread_svc_pollfd_internal (void)
 {
     extern struct pollfd *svc_pollfd;
     return &(svc_pollfd);
 }
-strong_alias(__libc_rpc_thread_svc_pollfd,__rpc_thread_svc_pollfd)
+strong_alias(__rpc_thread_svc_pollfd_internal,__rpc_thread_svc_pollfd)
 
-int attribute_hidden * __libc_rpc_thread_svc_max_pollfd (void)
+int attribute_hidden * __rpc_thread_svc_max_pollfd_internal (void)
 {
     extern int svc_max_pollfd;
     return &(svc_max_pollfd);
 }
-strong_alias(__libc_rpc_thread_svc_max_pollfd,__rpc_thread_svc_max_pollfd)
+strong_alias(__rpc_thread_svc_max_pollfd_internal,__rpc_thread_svc_max_pollfd)
 
 #endif /* __UCLIBC_HAS_THREADS__ */
 
index ca040ad..edb5170 100644 (file)
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 
-#define __fsetlocking __libc_fsetlocking
+#define __fsetlocking __fsetlocking_internal
 #define getgid __getgid
 #define getegid __getegid
 
index 5610277..b14cbd8 100644 (file)
 
 #define pmap_set __pmap_set
 
-#define _authenticate __libc__authenticate
-#define _rpc_dtablesize __libc__rpc_dtablesize
+#define _authenticate _authenticate_internal
+#define _rpc_dtablesize _rpc_dtablesize_internal
 
 /* used by svc_[max_]pollfd */
-#define __rpc_thread_svc_pollfd __libc_rpc_thread_svc_pollfd
-#define __rpc_thread_svc_max_pollfd __libc_rpc_thread_svc_max_pollfd
+#define __rpc_thread_svc_pollfd __rpc_thread_svc_pollfd_internal
+#define __rpc_thread_svc_max_pollfd __rpc_thread_svc_max_pollfd_internal
 
 /* used by svc_fdset */
-#define __rpc_thread_svc_fdset __libc_rpc_thread_svc_fdset
+#define __rpc_thread_svc_fdset __rpc_thread_svc_fdset_internal
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE
index 80c4f79..bcead06 100644 (file)
@@ -102,7 +102,7 @@ svcauthsw[] =
  * invalid.
  */
 enum auth_stat attribute_hidden
-__libc__authenticate (register struct svc_req *rqst, struct rpc_msg *msg)
+_authenticate_internal (register struct svc_req *rqst, struct rpc_msg *msg)
 {
   register int cred_flavor;
 
@@ -115,7 +115,7 @@ __libc__authenticate (register struct svc_req *rqst, struct rpc_msg *msg)
 
   return AUTH_REJECTEDCRED;
 }
-strong_alias(__libc__authenticate,_authenticate)
+strong_alias(_authenticate_internal,_authenticate)
 
 static enum auth_stat
 _svcauth_null (struct svc_req *rqst, struct rpc_msg *msg)
index 218bfd9..c0d3b34 100644 (file)
@@ -32,8 +32,8 @@
  */
 
 /* used by svc_[max_]pollfd */
-#define __rpc_thread_svc_pollfd __libc_rpc_thread_svc_pollfd
-#define __rpc_thread_svc_max_pollfd __libc_rpc_thread_svc_max_pollfd
+#define __rpc_thread_svc_pollfd __rpc_thread_svc_pollfd_internal
+#define __rpc_thread_svc_max_pollfd __rpc_thread_svc_max_pollfd_internal
 
 #define __FORCE_GLIBC
 #define _GNU_SOURCE
index c15228a..923c45a 100644 (file)
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 
-#define __fsetlocking __libc_fsetlocking
+#define __fsetlocking __fsetlocking_internal
 
 #define _GNU_SOURCE
 #include <features.h>
index 77690e2..5b6070c 100644 (file)
@@ -15,7 +15,7 @@
  *   glibc treats invalid locking_mode args as FSETLOCKING_INTERNAL.
  */
 
-int attribute_hidden __libc_fsetlocking(FILE *stream, int locking_mode)
+int attribute_hidden __fsetlocking_internal(FILE *stream, int locking_mode)
 {
 #ifdef __UCLIBC_HAS_THREADS__
        int current = 1 + (stream->__user_locking & 1);
@@ -44,4 +44,4 @@ int attribute_hidden __libc_fsetlocking(FILE *stream, int locking_mode)
 #endif
 }
 
-strong_alias(__libc_fsetlocking,__fsetlocking)
+strong_alias(__fsetlocking_internal,__fsetlocking)
index e5d3c07..85a00bb 100644 (file)
@@ -358,7 +358,7 @@ extern size_t __fwrite_unlocked(const void *__restrict ptr, size_t size,
 extern size_t __fread_unlocked(void *__restrict ptr, size_t size,
                                                size_t nmemb, FILE *__restrict stream) attribute_hidden;
 
-extern int __libc_fputc_unlocked(int c, FILE *stream) attribute_hidden;
+extern int __fputc_unlocked_internal(int c, FILE *stream) attribute_hidden;
 
 extern int __fflush_unlocked(FILE *stream) attribute_hidden;
 
@@ -368,7 +368,7 @@ extern void __clearerr_unlocked(FILE *stream);
 extern int __feof_unlocked(FILE *stream);
 extern int __ferror_unlocked(FILE *stream);
 
-extern int __libc_fgetc_unlocked(FILE *stream) attribute_hidden;
+extern int __fgetc_unlocked_internal(FILE *stream) attribute_hidden;
 extern char *__fgets_unlocked(char *__restrict s, int n,
                                        FILE * __restrict stream) attribute_hidden;
 
index 78fca84..be93227 100644 (file)
@@ -14,7 +14,7 @@
 
 #ifdef __DO_UNLOCKED
 
-int attribute_hidden __libc_fgetc_unlocked(FILE *stream)
+int attribute_hidden __fgetc_unlocked_internal(FILE *stream)
 {
        __STDIO_STREAM_VALIDATE(stream);
 
@@ -69,12 +69,12 @@ int attribute_hidden __libc_fgetc_unlocked(FILE *stream)
        return EOF;
 }
 
-strong_alias(__libc_fgetc_unlocked,__fgetc_unlocked)
-weak_alias(__fgetc_unlocked,fgetc_unlocked)
-weak_alias(__fgetc_unlocked,getc_unlocked)
+strong_alias(__fgetc_unlocked_internal,__fgetc_unlocked)
+weak_alias(__fgetc_unlocked_internal,fgetc_unlocked)
+weak_alias(__fgetc_unlocked_internal,getc_unlocked)
 #ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fgetc_unlocked,fgetc)
-weak_alias(__fgetc_unlocked,getc)
+weak_alias(__fgetc_unlocked_internal,fgetc)
+weak_alias(__fgetc_unlocked_internal,getc)
 #endif
 
 #elif defined __UCLIBC_HAS_THREADS__
index 743a2ea..52c856f 100644 (file)
@@ -5,8 +5,6 @@
  * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
  */
 
-#define __fgetc_unlocked __libc_fgetc_unlocked
-
 #include "_stdio.h"
 
 #ifdef __DO_UNLOCKED
@@ -36,7 +34,7 @@ char attribute_hidden *__fgets_unlocked(char *__restrict s, int n,
                                break;
                        }
                } else {
-                       if ((c = __fgetc_unlocked(stream)) == EOF) {
+                       if ((c = __fgetc_unlocked_internal(stream)) == EOF) {
                                if (__FERROR_UNLOCKED(stream)) {
                                        goto ERROR;
                                }
index 46ebb16..b319263 100644 (file)
@@ -14,7 +14,7 @@
 
 #ifdef __DO_UNLOCKED
 
-int attribute_hidden __libc_fputc_unlocked(int c, register FILE *stream)
+int attribute_hidden __fputc_unlocked_internal(int c, register FILE *stream)
 {
        __STDIO_STREAM_VALIDATE(stream);
 
@@ -69,12 +69,12 @@ int attribute_hidden __libc_fputc_unlocked(int c, register FILE *stream)
        return EOF;
 }
 
-strong_alias(__libc_fputc_unlocked,__fputc_unlocked)
-weak_alias(__fputc_unlocked,fputc_unlocked)
-weak_alias(__fputc_unlocked,putc_unlocked)
+strong_alias(__fputc_unlocked_internal,__fputc_unlocked)
+weak_alias(__fputc_unlocked_internal,fputc_unlocked)
+weak_alias(__fputc_unlocked_internal,putc_unlocked)
 #ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fputc_unlocked,fputc)
-weak_alias(__fputc_unlocked,putc)
+weak_alias(__fputc_unlocked_internal,fputc)
+weak_alias(__fputc_unlocked_internal,putc)
 #endif
 
 #elif defined __UCLIBC_HAS_THREADS__
index 37ae243..3a51032 100644 (file)
@@ -5,8 +5,6 @@
  * Dedicated to Toni.  See uClibc/DEDICATION.mjn3 for details.
  */
 
-#define __fputc_unlocked __libc_fputc_unlocked
-
 #include "_stdio.h"
 
 int puts(register const char * __restrict s)
@@ -24,7 +22,7 @@ int puts(register const char * __restrict s)
        /* Note: Nonportable as fputs need only return nonnegative on success. */
        if ((n = __fputs_unlocked(s, stream)) != EOF) {
                ++n;
-               if (__fputc_unlocked('\n', stream) == EOF) {
+               if (__fputc_unlocked_internal('\n', stream) == EOF) {
                        n = EOF;
                }
        }
index cc17c28..771f517 100644 (file)
@@ -21,9 +21,8 @@
 #include <features.h>
 #include <sys/socket.h>
 
-
 struct cmsghdr attribute_hidden *
-__libc_cmsg_nxthdr (struct msghdr *mhdr, struct cmsghdr *cmsg)
+__cmsg_nxthdr_internal (struct msghdr *mhdr, struct cmsghdr *cmsg)
 {
   if ((size_t) cmsg->cmsg_len < sizeof (struct cmsghdr))
     /* The kernel header does this so there may be a reason.  */
@@ -39,4 +38,4 @@ __libc_cmsg_nxthdr (struct msghdr *mhdr, struct cmsghdr *cmsg)
     return NULL;
   return cmsg;
 }
-strong_alias(__libc_cmsg_nxthdr,__cmsg_nxthdr)
+strong_alias(__cmsg_nxthdr_internal,__cmsg_nxthdr)
index 323ed6a..40c8b9e 100644 (file)
@@ -30,7 +30,7 @@
  * November 2002, Erik Andersen <andersen@codepoet.org> 
  */
 
-#define __fsetlocking __libc_fsetlocking
+#define __fsetlocking __fsetlocking_internal
 
 #define _GNU_SOURCE
 #include <sys/param.h>