summary refs log tree commit diff
path: root/string/strndup.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-03 21:19:56 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-03 21:19:56 +0000
commit5b070c7513197cd8483fd90dfbc7ae8c8b3f91e1 (patch)
tree8e93f8e79196ed7008ae2d1315ba3fb9f4b6c89b /string/strndup.c
parent602d9786f1a8d78238dbbe118f36416f8490f779 (diff)
downloadglibc-5b070c7513197cd8483fd90dfbc7ae8c8b3f91e1.tar.gz
glibc-5b070c7513197cd8483fd90dfbc7ae8c8b3f91e1.tar.xz
glibc-5b070c7513197cd8483fd90dfbc7ae8c8b3f91e1.zip
Update.
2002-08-03  Ulrich Drepper  <drepper@redhat.com>

	* include/string.h: Use libc_hidden_proto for __strcasecmp_l,
	__strncasecmp_l, __strdup, __strndup, __strerror_r.
	* sysdeps/generic/strcasecmp_l.c (__strcasecmp_l): Add
	libc_hidden_def.
	* string/strdup.c (__strdup): Likewise.
	* string/strndup.c (__strndup): Likewise.
	* sysdeps/generic/_strerror.c (__strerror_r): Likewise.
	* sysdeps/generic/strncase_l.c (__strncasecmp_l): Likewise.
Diffstat (limited to 'string/strndup.c')
-rw-r--r--string/strndup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/string/strndup.c b/string/strndup.c
index 98f497c7ed..68ba6c766b 100644
--- a/string/strndup.c
+++ b/string/strndup.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 2001, 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
@@ -51,6 +51,9 @@ __strndup (s, n)
   new[len] = '\0';
   return (char *) memcpy (new, s, len);
 }
+#ifdef libc_hidden_def
+libc_hidden_def (__strndup)
+#endif
 #ifdef weak_alias
 weak_alias (__strndup, strndup)
 #endif