From: Roland McGrath Date: Mon, 18 Jul 2005 01:59:20 +0000 (+0000) Subject: 2005-06-14 Ulrich Drepper X-Git-Tag: cvs/fedora-glibc-2_3-20050718T0425~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58f03486fe2b30e939b1856c65b9728f69809d58;p=thirdparty%2Fglibc.git 2005-06-14 Ulrich Drepper [BZ #1087] * include/string.h: Use libc_hidden_proto for strnlen. * sysdeps/generic/strnlen.c: Add libc_hidden_def. --- diff --git a/include/string.h b/include/string.h index 738dd8e27c8..532d5ed3330 100644 --- a/include/string.h +++ b/include/string.h @@ -96,6 +96,7 @@ libc_hidden_builtin_proto (strcmp) libc_hidden_builtin_proto (strcpy) libc_hidden_builtin_proto (strcspn) libc_hidden_builtin_proto (strlen) +libc_hidden_builtin_proto (strnlen) libc_hidden_builtin_proto (strncmp) libc_hidden_builtin_proto (strncpy) libc_hidden_builtin_proto (strpbrk) diff --git a/sysdeps/generic/strnlen.c b/sysdeps/generic/strnlen.c index c83520e3495..6e526bbebac 100644 --- a/sysdeps/generic/strnlen.c +++ b/sysdeps/generic/strnlen.c @@ -158,3 +158,4 @@ __strnlen (const char *str, size_t maxlen) return char_ptr - str; } weak_alias (__strnlen, strnlen) +libc_hidden_def (strnlen)