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.
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.
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,
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;
#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);
__new[__len] = '\0'; \
(char *) memcpy (__new, __old, __len); \
}))
-#endif
libc_hidden_proto (__mempcpy)
libc_hidden_proto (__stpcpy)
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
libc_hidden_proto (vswscanf)
+libc_hidden_proto (mbrtowc)
libc_hidden_proto (wcrtomb)
libc_hidden_proto (wcscmp)
libc_hidden_proto (wcsftime)
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__;
errno = serrno;
return 0;
}
+libc_hidden_def (getnameinfo)
{
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
return 0;
}
+libc_hidden_def (key_gendes)
int
key_setnet (struct key_netstarg *arg)
break;
}
}
+libc_hidden_def (_seterr_reply)
/* 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
return EAI_SYSTEM;
}
stub_warning (getaddrinfo)
-
+libc_hidden_def (getaddrinfo)
void
freeaddrinfo (struct addrinfo *ai)
/* Nothing. */
}
stub_warning (freeaddrinfo)
+libc_hidden_def (freeaddrinfo)
+
#include <stub-tag.h>
return last_i ? -(last_i & GAIH_EAI) : EAI_NONAME;
}
+libc_hidden_def (getaddrinfo)
void
freeaddrinfo (struct addrinfo *ai)
free (p);
}
}
+libc_hidden_def (freeaddrinfo)
}
libc_hidden_def (__mbrtowc)
weak_alias (__mbrtowc, mbrtowc)
+libc_hidden_weak (mbrtowc)
-/* 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
return NULL;
}
+libc_hidden_def (wmemchr)
-/* 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.
return s;
}
+libc_hidden_def (wmemset)