From: Ulrich Drepper Date: Sat, 3 Aug 2002 21:19:56 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~21525 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b070c7513197cd8483fd90dfbc7ae8c8b3f91e1;p=external%2Fglibc.git Update. 2002-08-03 Ulrich Drepper * 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. --- diff --git a/ChangeLog b/ChangeLog index 6110b9e..ab80a28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2002-08-03 Ulrich Drepper + + * 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. + 2002-08-03 Jakub Jelinek * include/libio.h: New file. diff --git a/include/string.h b/include/string.h index d2062c7..f085b17 100644 --- a/include/string.h +++ b/include/string.h @@ -65,3 +65,8 @@ libc_hidden_proto (__mempcpy) libc_hidden_proto (__stpncpy) libc_hidden_proto (__rawmemchr) libc_hidden_proto (__strcasecmp) +libc_hidden_proto (__strcasecmp_l) +libc_hidden_proto (__strncasecmp_l) +libc_hidden_proto (__strdup) +libc_hidden_proto (__strndup) +libc_hidden_proto (__strerror_r) diff --git a/string/strdup.c b/string/strdup.c index ce160ad..559df60 100644 --- a/string/strdup.c +++ b/string/strdup.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1996, 1997, 1998, 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 @@ -47,6 +47,9 @@ __strdup (const char *s) return (char *) memcpy (new, s, len); } +#ifdef libc_hidden_def +libc_hidden_def (__strdup) +#endif #ifdef weak_alias weak_alias (__strdup, strdup) #endif diff --git a/string/strndup.c b/string/strndup.c index 98f497c..68ba6c7 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 diff --git a/sysdeps/generic/_strerror.c b/sysdeps/generic/_strerror.c index c8f2a9c..f19217f 100644 --- a/sysdeps/generic/_strerror.c +++ b/sysdeps/generic/_strerror.c @@ -69,3 +69,4 @@ __strerror_r (int errnum, char *buf, size_t buflen) return (char *) _(INTUSE(_sys_errlist)[errnum]); } weak_alias (__strerror_r, strerror_r) +libc_hidden_def (__strerror_r) diff --git a/sysdeps/generic/strcasecmp_l.c b/sysdeps/generic/strcasecmp_l.c index 107ce8a..a13f66d 100644 --- a/sysdeps/generic/strcasecmp_l.c +++ b/sysdeps/generic/strcasecmp_l.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997 Free Software Foundation, Inc. +/* Copyright (C) 1997, 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 @@ -18,3 +18,5 @@ #define USE_IN_EXTENDED_LOCALE_MODEL 1 #include + +libc_hidden_def (__strcasecmp_l) diff --git a/sysdeps/generic/strncase_l.c b/sysdeps/generic/strncase_l.c index 424913f..7704fc7 100644 --- a/sysdeps/generic/strncase_l.c +++ b/sysdeps/generic/strncase_l.c @@ -1,6 +1,6 @@ /* Compare at most N characters of two strings without taking care for the case using given locale. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 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 @@ -20,3 +20,5 @@ #define USE_IN_EXTENDED_LOCALE_MODEL 1 #include + +libc_hidden_def (__strncasecmp_l)