summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-07-18 01:59:20 +0000
committerRoland McGrath <roland@gnu.org>2005-07-18 01:59:20 +0000
commit58f03486fe2b30e939b1856c65b9728f69809d58 (patch)
treedcb574f3478820d9812cff1e8459d77d913a315c
parent482bbae066d6bebfa342de2aff2353128bbd4453 (diff)
2005-06-14 Ulrich Drepper <drepper@redhat.com>
[BZ #1087] * include/string.h: Use libc_hidden_proto for strnlen. * sysdeps/generic/strnlen.c: Add libc_hidden_def.
-rw-r--r--include/string.h1
-rw-r--r--sysdeps/generic/strnlen.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index 738dd8e27c..532d5ed333 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 c83520e349..6e526bbeba 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)