]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* include/rpc/auth.h: Use libc_hidden_proto for getnetname,
authorRoland McGrath <roland@gnu.org>
Tue, 6 Aug 2002 06:09:28 +0000 (06:09 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 6 Aug 2002 06:09:28 +0000 (06:09 +0000)
netname2user, host2netname, user2netname, key_gendes.
* sunrpc/netname.c: Add libc_hidden_def.
* sunrpc/key_call.c: Likewise.

* include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
freeaddrinfo.
* inet/getnameinfo.c: Add libc_hidden_def.
* sysdeps/generic/getaddrinfo.c: Likewise.
* sysdeps/posix/getaddrinfo.c: Likewise.

* include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
* wcsmbs/wmemchr.c: Add libc_hidden_def.
* wcsmbs/wmemset.c: Add libc_hidden_def.

* include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
(index, rindex): Define as macros for strchr, strrchr.

* string/envz.c (envz_strip): index -> strchr

* include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
* sunrpc/rpc_prot.c: Add libc_hidden_def.

* include/wchar.h: Use libc_hidden_proto for mbrtowc.
* wcsmbs/mbrtowc.c: Add libc_hidden_weak.

15 files changed:
ChangeLog
include/netdb.h
include/rpc/auth.h
include/rpc/rpc_msg.h
include/string.h
include/wchar.h
inet/getnameinfo.c
string/envz.c
sunrpc/key_call.c
sunrpc/rpc_prot.c
sysdeps/generic/getaddrinfo.c
sysdeps/posix/getaddrinfo.c
wcsmbs/mbrtowc.c
wcsmbs/wmemchr.c
wcsmbs/wmemset.c

index ffbb3f4a5304dbbef3ba1a609663675aba5833e4..4e93f7530979ba0105b294794eba670e0af9a457 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,31 @@
 2002-08-05  Roland McGrath  <roland@redhat.com>
 
+       * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
+       netname2user, host2netname, user2netname, key_gendes.
+       * sunrpc/netname.c: Add libc_hidden_def.
+       * sunrpc/key_call.c: Likewise.
+
+       * include/netdb.h: Use libc_hidden_proto for getaddrinfo, getnameinfo,
+       freeaddrinfo.
+       * inet/getnameinfo.c: Add libc_hidden_def.
+       * sysdeps/generic/getaddrinfo.c: Likewise.
+       * sysdeps/posix/getaddrinfo.c: Likewise.
+
+       * include/wchar.h: Use libc_hidden_proto for wmemchr, wmemset.
+       * wcsmbs/wmemchr.c: Add libc_hidden_def.
+       * wcsmbs/wmemset.c: Add libc_hidden_def.
+
+       * include/string.h: Move libc_hidden_proto's inside #ifndef _STRING_H.
+       (index, rindex): Define as macros for strchr, strrchr.
+
+       * string/envz.c (envz_strip): index -> strchr
+
+       * include/rpc/rpc_msg.h: Use libc_hidden_proto for _seterr_reply.
+       * sunrpc/rpc_prot.c: Add libc_hidden_def.
+
+       * include/wchar.h: Use libc_hidden_proto for mbrtowc.
+       * wcsmbs/mbrtowc.c: Add libc_hidden_weak.
+
        * include/stdlib.h: Use libc_hidden_proto for wctomb.
        * stdlib/wctomb.c: Add libc_hidden_def.
 
        * inet/ruserpass.c: Likewise.
        * inet/getnetgrent_r.c: Likewise.
 
-       * include/rpc/auth.h: Use libc_hidden_proto for getnetname,
-       netname2user, host2netname, user2netname.
-       * sunrpc/netname.c: Add libc_hidden_def.
-
        * include/rpc/svc.h: Use libc_hidden_proto for svc_register,
        svc_unregister, remove *_internal decls.  Use libc_hidden_proto
        for svcerr_auth, svcerr_noprog, svcerr_progvers.
index a824404cb3bcda93eeb971070a148aa70e689cb0..9b1a1abb9bd2a66dbbb64384566b0385b640a317 100644 (file)
@@ -28,6 +28,10 @@ libc_hidden_proto (rexec_af)
 libc_hidden_proto (rresvport_af)
 libc_hidden_proto (ruserok_af)
 
+libc_hidden_proto (getaddrinfo)
+libc_hidden_proto (getnameinfo)
+libc_hidden_proto (freeaddrinfo)
+
 /* Document internal interfaces.  */
 extern int __gethostent_r (struct hostent *__restrict __result_buf,
                           char *__restrict __buf, size_t __buflen,
index 9cef7c6fa948be2ce5c0ae3e97fdddc1ad4638cb..a5e290b898b869cbc2e6cf9b44fac493169c6e42 100644 (file)
@@ -5,6 +5,7 @@ libc_hidden_proto (getnetname)
 libc_hidden_proto (netname2user)
 libc_hidden_proto (host2netname)
 libc_hidden_proto (user2netname)
+libc_hidden_proto (key_gendes)
 
 /* Now define the internal interfaces.  */
 struct key_netstarg;
index ab2e77543070c800b3dbdbbbcb6f46d5a11edc59..3e518c93d407d61bde2ff0b8eed5a64d11bec3e1 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _RPC_MSG_H
 #include <sunrpc/rpc/rpc_msg.h>
 
+libc_hidden_proto (_seterr_reply)
+
 /* Now define the internal interfaces.  */
 
 extern bool_t xdr_rejected_reply (XDR *xdrs, struct rejected_reply *rr);
index 64c59b00fb1052e995e917a0f464b73757b0a8b7..b4ccb1b57fd41e3dca88953fba920b75034a1581 100644 (file)
@@ -59,7 +59,6 @@ extern char *__strerror_r (int __errnum, char *__buf, size_t __buflen);
       __new[__len] = '\0';                                                   \
       (char *) memcpy (__new, __old, __len);                                 \
     }))
-#endif
 
 libc_hidden_proto (__mempcpy)
 libc_hidden_proto (__stpcpy)
@@ -72,3 +71,12 @@ libc_hidden_proto (__strdup)
 libc_hidden_proto (__strndup)
 libc_hidden_proto (__strerror_r)
 libc_hidden_proto (__strverscmp)
+
+# ifndef index
+#  define index(s, c)  (strchr ((s), (c)))
+# endif
+# ifndef rindex
+#  define rindex(s, c) (strrchr ((s), (c)))
+# endif
+
+#endif
index 0a5c9486106831df181e9db2b4e52bc6380ed100..9094ce12a83bcf14deb5e9e582dc0d844c482a8f 100644 (file)
@@ -19,6 +19,7 @@ libc_hidden_proto (putwc_unlocked)
 
 libc_hidden_proto (vswscanf)
 
+libc_hidden_proto (mbrtowc)
 libc_hidden_proto (wcrtomb)
 libc_hidden_proto (wcscmp)
 libc_hidden_proto (wcsftime)
@@ -27,6 +28,9 @@ libc_hidden_proto (wcschr)
 libc_hidden_proto (wcscoll)
 libc_hidden_proto (wcspbrk)
 
+libc_hidden_proto (wmemchr)
+libc_hidden_proto (wmemset)
+
 /* Now define the internal interfaces.  */
 extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2)
      __attribute_pure__;
index 9f1a5c4f4597cb0e18ec7fb0857af353a7d9c829..063bec4c793f193c9f083a9d5c9c5b6be45c4885 100644 (file)
@@ -421,3 +421,4 @@ getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
   errno = serrno;
   return 0;
 }
+libc_hidden_def (getnameinfo)
index e1532ca948243d611ad996fef50707c09fe384ca..5c5804c12bf76dd9905d1506872f708985df0cfc 100644 (file)
@@ -163,7 +163,7 @@ envz_strip (char **envz, size_t *envz_len)
     {
       size_t entry_len = strlen (entry) + 1;
       left -= entry_len;
-      if (! index (entry, SEP))
+      if (! strchr (entry, SEP))
        /* Null entry. */
        memmove (entry + entry_len, entry, left);
       else
index e41e3fc3803854394ecf1cad7411031a4b0ea0df..0b09a5a66ebf510ee562ad94ea6e97a3f9d0fbb1 100644 (file)
@@ -233,6 +233,7 @@ key_gendes (des_block *key)
 
   return 0;
 }
+libc_hidden_def (key_gendes)
 
 int
 key_setnet (struct key_netstarg *arg)
index 59ec5058b6edca41ea968f0b3a04f81c901a8efb..69b0b6cd9d69eba87fc4ce2bbc18edd17fccc2a9 100644 (file)
@@ -283,3 +283,4 @@ _seterr_reply (struct rpc_msg *msg,
       break;
     }
 }
+libc_hidden_def (_seterr_reply)
index fba5fd8db7ccb296de2e72275447e0dfc475ad09..548c0b863e2a70f65f4fcdc6dcb1776473b88eba 100644 (file)
@@ -1,5 +1,5 @@
 /* Stub version of getaddrinfo function.
-   Copyright (C) 1996 Free Software Foundation, Inc.
+   Copyright (C) 1996, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -28,7 +28,7 @@ getaddrinfo (const char *name, const char *service, const struct addrinfo *req,
   return EAI_SYSTEM;
 }
 stub_warning (getaddrinfo)
-
+libc_hidden_def (getaddrinfo)
 
 void
 freeaddrinfo (struct addrinfo *ai)
@@ -36,4 +36,6 @@ freeaddrinfo (struct addrinfo *ai)
   /* Nothing.  */
 }
 stub_warning (freeaddrinfo)
+libc_hidden_def (freeaddrinfo)
+
 #include <stub-tag.h>
index cdd1d887d880c5b9f1b13a0a08642b19cb1b3b78..5e09a9f7658f6477556527e21f353e6e90276e7e 100644 (file)
@@ -789,6 +789,7 @@ getaddrinfo (const char *name, const char *service,
 
   return last_i ? -(last_i & GAIH_EAI) : EAI_NONAME;
 }
+libc_hidden_def (getaddrinfo)
 
 void
 freeaddrinfo (struct addrinfo *ai)
@@ -802,3 +803,4 @@ freeaddrinfo (struct addrinfo *ai)
       free (p);
     }
 }
+libc_hidden_def (freeaddrinfo)
index 521fdd753f3c00e30fc459fae52ffbe7866ae2f0..c25ba51d4bb4dcc23e890030894ecd139ccaa1b3 100644 (file)
@@ -106,3 +106,4 @@ __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
 }
 libc_hidden_def (__mbrtowc)
 weak_alias (__mbrtowc, mbrtowc)
+libc_hidden_weak (mbrtowc)
index 5cf18346a03eb7d1a255e5cff2888b087c137fc7..da93e965b20566709f6f7ce6b2079dd7f2629b2a 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996,97,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
+   Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
@@ -60,3 +60,4 @@ wmemchr (s, c, n)
 
   return NULL;
 }
+libc_hidden_def (wmemchr)
index 0565173635b1643e9476be1e43cf3691a2b62356..ae69f1fd0e6f212b67382940c0c29f55d186d299 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996,97,99,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
 
@@ -53,3 +53,4 @@ wmemset (s, c, n)
 
   return s;
 }
+libc_hidden_def (wmemset)