glibc/io
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 * io/bits/fcntl2.h (open, open64, openat, openat64): Add 2007-08-04 20:09:21 +00:00
sys * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+. 2007-09-15 02:38:04 +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
Makefile * io/Makefile (aux): Add have_o_cloexec. 2007-08-03 04:09:03 +00:00
Versions * Makerules (sysd-rules): Define PTW for ptw-* files. 2007-05-24 23:55:28 +00:00
access.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
bug-ftw1.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
bug-ftw2.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
bug-ftw3.c Update. 2002-02-07 17:54:45 +00:00
bug-ftw4.c Update. 2003-11-18 19:12:03 +00:00
bug-ftw5.c [BZ #4076] 2007-02-21 09:36:46 +00:00
chdir.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
chmod.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
chown.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
close.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
creat.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
creat64.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
dup.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
dup2.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
euidaccess.c * io/euidaccess.c: Add eaccess as an alias. 2006-01-06 11:22:10 +00:00
faccessat.c * io/fcntl.h [__USE_ATFILE] (AT_EACCESS): New macro. 2006-01-06 12:14:26 +00:00
fchdir.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fchmod.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fchmodat.c * io/sys/stat.h [__USE_GNU]: Declare fchmodat. 2006-01-05 10:32:47 +00:00
fchown.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fchownat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fcntl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fcntl.h * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+. 2007-09-15 02:38:04 +00:00
flock.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fstat.c . 2007-07-31 13:33:18 +00:00
fstat64.c . 2007-07-31 13:33:18 +00:00
fstatat.c . 2007-07-31 13:33:18 +00:00
fstatat64.c . 2007-07-31 13:33:18 +00:00
fstatfs.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fstatfs64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fstatvfs.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fstatvfs64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fts.c Make sure fts_cur is always valid after return from fts_read. 2007-01-10 18:38:19 +00:00
fts.h Update. 2003-09-12 22:37:19 +00:00
ftw.c [BZ #4076] 2007-02-21 09:36:46 +00:00
ftw.h Update. 2004-09-17 08:44:34 +00:00
ftw64.c [BZ #2226] 2006-02-12 21:41:44 +00:00
ftwtest-sh 2004-01-29 Roland McGrath <roland@redhat.com> 2004-02-09 20:12:23 +00:00
ftwtest.c Update. 2003-11-07 23:00:00 +00:00
futimens.c * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and 2007-05-10 21:44:41 +00:00
fxstat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fxstat64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fxstatat.c [BZ #2226] 2006-02-12 21:41:44 +00:00
fxstatat64.c [BZ #2226] 2006-02-12 21:41:44 +00:00
getcwd.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
getdirname.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
getwd.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
have_o_cloexec.c * io/Makefile (aux): Add have_o_cloexec. 2007-08-03 04:09:03 +00:00
isatty.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
lchmod.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
lchown.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
link.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
linkat.c Add fifth parameter to linkat. 2006-02-27 00:52:57 +00:00
lockf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
lockf64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
lseek64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
lstat.c . 2007-07-31 13:33:18 +00:00
lstat64.c . 2007-07-31 13:33:18 +00:00
lxstat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
lxstat64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
mkdir.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
mkdirat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
mkfifo.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
mkfifoat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
mknod.c . 2007-07-31 13:33:18 +00:00
mknodat.c . 2007-07-31 13:33:18 +00:00
open.c * Makerules (sysd-rules): Define PTW for ptw-* files. 2007-05-24 23:55:28 +00:00
open64.c * Makerules (sysd-rules): Define PTW for ptw-* files. 2007-05-24 23:55:28 +00:00
openat.c * Makerules (sysd-rules): Define PTW for ptw-* files. 2007-05-24 23:55:28 +00:00
openat64.c * Makerules (sysd-rules): Define PTW for ptw-* files. 2007-05-24 23:55:28 +00:00
pipe.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
poll.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
poll.h initial import 1995-02-18 01:27:10 +00:00
posix_fadvise.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
posix_fadvise64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
posix_fallocate.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
posix_fallocate64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
ppoll.c * include/fcntl.h: Declare __have_atfcts. 2006-01-20 07:08:05 +00:00
pwd.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
read.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
readlink.c [BZ #2450] 2006-04-01 19:12:44 +00:00
readlinkat.c * posix/bits/unistd.h (__readlinkat_chk): New prototype. 2006-04-24 17:01:40 +00:00
rmdir.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
sendfile.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
sendfile64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
stat.c . 2007-07-31 13:33:18 +00:00
stat64.c . 2007-07-31 13:33:18 +00:00
statfs.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
statfs64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
statvfs.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
statvfs64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
symlink.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
symlinkat.c * sysdeps/unix/sysv/linux/renameat.c: Move errno setting code in 2005-12-16 00:24:16 +00:00
test-lfs.c [BZ #2526, BZ #3138, BZ #3143] 2006-09-12 11:44:01 +00:00
test-stat.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-stat2.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-utime.c Update. 2003-07-15 08:59:35 +00:00
tst-faccessat.c * sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correcty 2006-01-22 00:57:24 +00:00
tst-fchmodat.c * sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correcty 2006-01-22 00:57:24 +00:00
tst-fchownat.c * sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correcty 2006-01-22 00:57:24 +00:00
tst-fcntl.c [BZ #2526, BZ #3138, BZ #3143] 2006-09-12 11:44:01 +00:00
tst-fstatat.c * sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correcty 2006-01-22 00:57:24 +00:00
tst-futimesat.c * io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64, 2005-11-11 20:02:07 +00:00
tst-getcwd.c Fix format strings. 2002-09-30 07:47:16 +00:00
tst-linkat.c (do_test): Pass new parameter to linkat. 2006-02-27 00:59:21 +00:00
tst-mkdirat.c * io/Makefile (tests): Add tst-symlinkat, tst-linkat, tst-readlinkat, 2006-01-20 23:24:42 +00:00
tst-mkfifoat.c * io/Makefile (tests): Add tst-symlinkat, tst-linkat, tst-readlinkat, 2006-01-20 23:24:42 +00:00
tst-mknodat.c * io/Makefile (tests): Add tst-symlinkat, tst-linkat, tst-readlinkat, 2006-01-20 23:24:42 +00:00
tst-openat.c * sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correcty 2006-01-22 00:57:24 +00:00
tst-posix_fallocate.c Include <fcntl.h>. 2007-07-28 18:04:22 +00:00
tst-readlinkat.c * io/Makefile (tests): Add tst-symlinkat, tst-linkat, and 2006-01-20 21:55:16 +00:00
tst-renameat.c * sysdeps/unix/sysv/linux/renameat.c (__atfct_seterrno_2): Correcty 2006-01-22 00:57:24 +00:00
tst-statvfs.c Update. 2003-10-27 04:05:04 +00:00
tst-symlinkat.c * io/Makefile (tests): Add tst-symlinkat, tst-linkat, and 2006-01-20 21:55:16 +00:00
tst-ttyname_r.c * nis/nis_subr.c (nis_getnames): Revert last change. 2006-12-05 21:28:15 +00:00
tst-unlinkat.c * io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64, 2005-11-11 20:02:07 +00:00
ttyname.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
ttyname_r.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
umask.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
unlink.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
unlinkat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
utime.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
utime.h Update. 2004-09-28 07:46:43 +00:00
utimensat.c * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Define UTIME_NOW and 2007-05-10 21:44:41 +00:00
write.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
xmknod.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
xmknodat.c 2005-12-15 Thomas Schwinge <tschwinge@gnu.org> 2005-12-20 07:31:14 +00:00
xstat.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
xstat64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00