glibc/string
Ulrich Drepper de1c3ebb59 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
* misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
	implement as __extern_always_inline function.
	(vsyslog): Define as __extern_always_inline function unconditionally.
	* libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
	When __va_arg_pack is defined, implement as __extern_always_inline
	functions.
	(vsprintf, vsnprintf, vprintf, vfprintf): Define as
	__extern_always_inline functions unconditionally.
	* libio/bits/stdio.h (vprintf): Ifdef out the inline when
	bits/stdio2.h will be included.
	* wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
	(swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
	implement as __extern_always_inline functions.
	(vswprintf, vwprintf, vfwprintf): Define as
	__extern_always_inline functions unconditionally.
	* debug/tst-chk1.c (do_test): Enable remaining tests for C++.

2007-09-03  Jakub Jelinek  <jakub@redhat.com>

	* misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
	define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
	attribute.
	* include/features.h (__USE_EXTERN_INLINES): Define only when
	__extern_inline is defined.
	* stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* socket/sys/socket.h: Include bits/socket2.h when
	__extern_always_inline is defined instead of when not __cplusplus.
	* libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* posix/unistd.h: Include bits/unistd.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* string/string.h: Include bits/string3.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	(btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
	* io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
	is not defined.
	* misc/bits/syslog-ldbl.h: Guard *_chk stuff with
	defined __extern_always_inline instead of !defined __cplusplus.
	* libio/bits/stdio-ldbl.h: Likewise.
	* wcsmbs/bits/wchar-ldbl.h: Likewise.
	* misc/bits/syslog.h (syslog): Don't define for C++.
	(vsyslog): Use __extern_always_inline function for C++ instead of
	a macro.
	* libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
	whenever that macro is defined.
	(vprintf): Don't provide the inline for C++.
	(fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
	* libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
	define the macros for C++.
	(vsprintf, vsnprintf, vprintf, vfprintf): Define as
	__extern_always_inline functions for C++.
	* io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
	stat64, lstat64, fstat64, fstatat64): Don't define if not
	__USE_EXTERN_INLINES.
	* wcsmbs/bits/wchar2.h: Fix #error message.
	(swprintf, wprintf, fwprintf): Don't define the macros for C++.
	(vswprintf, vwprintf, vfwprintf): Define using
	__extern_always_inline functions for C++.
	* string/bits/string3.h: Don't #undef macros if __cplusplus.
	(memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
	strncpy, strcat, strncat): Define as __extern_always_inline
	functions instead of macros for C++.
	* math/bits/cmathcalls.h: Guard __extern_inline routines with
	defined __extern_inline.
	* sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
	to __extern_inline whenever that macro is defined.
	* sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
	* sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
	* sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
	gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
	prototypes.  Only provide __extern_inline routines if
	__USE_EXTERN_INLINES.
	* debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
	tests.
	* debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
	For now avoid some *printf tests in C++.  Skip all testing
	if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
	is not.
	* debug/tst-chk4.cc: New file.
	* debug/tst-chk5.cc: New file.
	* debug/tst-chk6.cc: New file.
	* debug/tst-lfschk4.cc: New file.
	* debug/tst-lfschk5.cc: New file.
	* debug/tst-lfschk6.cc: New file.
	* include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
	prototypes in C++.
	* include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
	__vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
	__vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
2007-09-15 02:38:04 +00:00
..
bits * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+. 2007-09-15 02:38:04 +00:00
_strerror.c * intl/dcigettext.c (DCIGETTEXT): If _nl_find_msg returns -1 don't 2006-06-22 23:59:32 +00:00
.cvsignore Tue May 14 14:07:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> 1996-05-14 20:30:25 +00:00
argz-addsep.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
argz-append.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
argz-count.c Update. 2002-04-09 20:36:24 +00:00
argz-create.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
argz-ctsep.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
argz-delete.c 2002-08-03 Roland McGrath <roland@redhat.com> 2002-08-04 01:28:06 +00:00
argz-extract.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
argz-insert.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
argz-next.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
argz-replace.c * io/ftw.c (open_dir_stream): Return right away if REALLOC fails. 2006-05-10 06:39:15 +00:00
argz-stringify.c Update. 2002-04-09 20:36:24 +00:00
argz.h * configure.in (libc_cv_gnu89_inline): Test for -fgnu89-inline. 2007-03-17 17:04:28 +00:00
basename.c * sunrpc/svc_authux.c (_svcauth_unix): Remove spurious printf (ugh!). 2002-08-12 02:02:20 +00:00
bcopy.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
bug-envz1.c * string/Makefile (tests): Add bug-envz1. 2006-06-04 16:36:04 +00:00
bug-strcoll1.c Update. 2001-04-26 20:45:18 +00:00
bug-strncat1.c * malloc/memusagestat.c (main): Use return instead of exit to 2000-12-31 10:52:32 +00:00
bug-strpbrk1.c * malloc/memusagestat.c (main): Use return instead of exit to 2000-12-31 10:52:32 +00:00
bug-strspn1.c * malloc/memusagestat.c (main): Use return instead of exit to 2000-12-31 10:52:32 +00:00
bug-strtok1.c [BZ #2126] 2006-01-10 00:25:07 +00:00
byteswap.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
bzero.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
Depend Update. 2001-03-19 21:40:15 +00:00
endian.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
envz.c [BZ #2703] 2006-06-04 04:35:55 +00:00
envz.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
ffs.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
ffsll.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
inl-tester.c Update. 1997-09-11 12:09:10 +00:00
Makefile * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before 2007-02-01 16:14:15 +00:00
memccpy.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
memchr.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
memcmp.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
memcpy.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
memfrob.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
memmem.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
memmove.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
memory.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
mempcpy.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
memrchr.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
memset.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
noinl-tester.c Update. 1997-09-16 00:42:43 +00:00
rawmemchr.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
stpcpy.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
stpncpy.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
stratcliff.c (main): Check memccpy. 2003-09-09 20:15:17 +00:00
strcasecmp_l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strcasecmp.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strcasestr.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strcat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strchr.c [BZ #2751] 2006-08-22 06:47:33 +00:00
strchrnul.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strcmp.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strcoll_l.c Update. 2004-03-14 21:12:06 +00:00
strcoll.c * include/libc-symbols.h (__hidden_proto): Remove bogus declaration 2005-03-17 21:06:39 +00:00
strcpy.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strcspn.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strdup.c Update. 2002-08-03 21:19:56 +00:00
strerror_l.c * elf/dl-open.c (dl_open_worker): Declare l in 2 different 2007-03-17 17:09:13 +00:00
strerror.c * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): 2002-11-01 20:44:15 +00:00
strfry.c * nis/nis_table.c (nis_list): Don't fail if __follow_path returned 2007-08-22 16:04:18 +00:00
string-inlines.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
string.h * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+. 2007-09-15 02:38:04 +00:00
strings.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
strlen.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strncase_l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strncase.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strncat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strncmp.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strncpy.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strndup.c Update. 2002-08-03 21:19:56 +00:00
strnlen.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strpbrk.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strrchr.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strsep.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strsignal.c * configure.in: Remove gnu_ld definition and everything using it. 2005-11-06 02:06:06 +00:00
strspn.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strstr.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strtok_r.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
strtok.c [BZ #4582] 2007-08-22 07:04:23 +00:00
strverscmp.c Update. 2002-08-04 09:27:27 +00:00
strxfrm_l.c * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization 2006-11-10 15:20:59 +00:00
strxfrm.c Update. 2004-03-14 21:12:06 +00:00
swab.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-ffs.c Update. 2004-04-04 06:17:27 +00:00
test-memccpy.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-memchr.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-memcmp.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-memcpy.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-memmove.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-mempcpy.c * string/test-string.h: New file. 2002-11-07 19:15:01 +00:00
test-memset.c * string/test-memset.c (test_main): Use negative byte value is 2005-07-25 01:40:59 +00:00
test-stpcpy.c * string/test-string.h: New file. 2002-11-07 19:15:01 +00:00
test-stpncpy.c * string/test-strspn.c (do_test): Ensure zero termination. 2002-11-09 00:36:21 +00:00
test-strcat.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-strchr.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-strcmp.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-strcpy.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-strcspn.c * string/test-strchr.c (stupid_strchr): New function. 2002-11-08 22:10:01 +00:00
test-string.h Update. 2004-03-07 09:05:18 +00:00
test-strlen.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-strncmp.c [BZ #1877] 2005-11-18 00:12:44 +00:00
test-strncpy.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-strpbrk.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-strrchr.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
test-strspn.c * posix/tst-execle1.c (do_test): Add a const. 2005-12-27 22:50:12 +00:00
testcopy.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tester.c * string/tester.c (test_strnlen): New function. 2006-02-20 21:48:49 +00:00
tst-bswap.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
tst-inlcall.c [BZ #130, BZ #131] 2004-04-29 21:55:45 +00:00
tst-strfry.c * stdlib/random_r.c (__initstate_r): Don't use non-existing state. 2005-04-12 15:29:07 +00:00
tst-strlen.c Update. 2001-08-28 04:52:25 +00:00
tst-strtok.c Update. 2001-02-22 13:46:25 +00:00
tst-strxfrm2.c * string/strxfrm_l.c (STRXFRM): Fix trailing \1 optimization 2006-11-10 15:20:59 +00:00
tst-strxfrm.c 2002-08-29 Roland McGrath <roland@redhat.com> 2002-08-29 09:26:30 +00:00
tst-svc.c * malloc/memusagestat.c (main): Use return instead of exit to 2000-12-31 10:52:32 +00:00
tst-svc.expect Update. 2001-02-02 08:24:56 +00:00
tst-svc.input Update. 2001-02-02 08:24:56 +00:00
Versions * sysdeps/unix/sysv/linux/i386/sysdep.h (PTR_MANGLE): Roll value before 2007-02-01 16:14:15 +00:00
wordcopy.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
xpg-strerror.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00