mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
* 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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user