head 1.1; access; symbols netbsd-11-0-RC4:1.1 netbsd-11-0-RC3:1.1 netbsd-11-0-RC2:1.1 netbsd-11-0-RC1:1.1 perseant-exfatfs-base-20250801:1.1 netbsd-11:1.1.0.8 netbsd-11-base:1.1 netbsd-10-1-RELEASE:1.1.4.2 netbsd-9:1.1.0.6 netbsd-10:1.1.0.4 perseant-exfatfs-base-20240630:1.1 perseant-exfatfs:1.1.0.2 perseant-exfatfs-base:1.1; locks; strict; comment @# @; 1.1 date 2024.04.28.01.21.27; author riastradh; state Exp; branches 1.1.4.1 1.1.6.1; next ; commitid TT7xsEOMeEiNGQ7F; 1.1.4.1 date 2024.04.28.01.21.27; author martin; state dead; branches; next 1.1.4.2; commitid DAdadJ9gBwPRBYmF; 1.1.4.2 date 2024.08.23.18.28.09; author martin; state Exp; branches; next ; commitid DAdadJ9gBwPRBYmF; 1.1.6.1 date 2024.04.28.01.21.27; author martin; state dead; branches; next 1.1.6.2; commitid fwGsKyqA176oDYmF; 1.1.6.2 date 2024.08.23.18.32.36; author martin; state Exp; branches; next ; commitid fwGsKyqA176oDYmF; desc @@ 1.1 log @libstdc++: Add test for PR lib/58206, sync_with_stdio busted. @ text @# $NetBSD$ # NOMAN= # defined TESTSDIR= ${TESTSBASE}/lib/libstdc++ BINDIR= ${TESTSDIR} TESTS_SH+= t_sync_with_stdio PROG_CXX+= h_cin_nosync .include @ 1.1.6.1 log @file Makefile was added on branch netbsd-9 on 2024-08-23 18:32:36 +0000 @ text @d1 12 @ 1.1.6.2 log @Pull up following revision(s) (requested by riastradh in ticket #1877): tests/lib/libstdc++/h_cin_nosync.cc: revision 1.1 tests/lib/libstdc++/t_sync_with_stdio.sh: revision 1.1 tests/lib/libstdc++/t_sync_with_stdio.sh: revision 1.2 etc/mtree/NetBSD.dist.tests: revision 1.204 distrib/sets/lists/tests/mi: revision 1.1313 (patch) tests/lib/libstdc++/Makefile: revision 1.1 distrib/sets/lists/debug/mi: revision 1.433 external/gpl3/gcc/dist/libstdc++-v3/config/io/basic_file_stdio.cc: revision 1.2 libstdc++: Add test for PR lib/58206, sync_with_stdio busted. libstdc++: Don't try to fflush stdin. It doesn't work. It's undefined behaviour. On NetBSD, it will fail with EBADF, if fd 0 isn't open for write, or if fd 0 is open for write, it will write heap garbage to fd 0. If stream points to an output stream or an update stream in which the most recent operation was not input, the fflush function causes any unwritten data for that stream to be delivered to the host environment to be written to the file; otherwise, the behavior is undefined. (ISO C11 and ISO C17, Sec. 7.21.5.2 `The fflush function') PR lib/58206 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114879 @ text @a0 12 # $NetBSD: Makefile,v 1.1 2024/04/28 01:21:27 riastradh Exp $ # NOMAN= # defined TESTSDIR= ${TESTSBASE}/lib/libstdc++ BINDIR= ${TESTSDIR} TESTS_SH+= t_sync_with_stdio PROG_CXX+= h_cin_nosync .include @ 1.1.4.1 log @file Makefile was added on branch netbsd-10 on 2024-08-23 18:28:09 +0000 @ text @d1 12 @ 1.1.4.2 log @Pull up following revision(s) (requested by riastradh in ticket #801): tests/lib/libstdc++/h_cin_nosync.cc: revision 1.1 tests/lib/libstdc++/t_sync_with_stdio.sh: revision 1.1 tests/lib/libstdc++/t_sync_with_stdio.sh: revision 1.2 etc/mtree/NetBSD.dist.tests: revision 1.204 distrib/sets/lists/tests/mi: revision 1.1313 tests/lib/libstdc++/Makefile: revision 1.1 distrib/sets/lists/debug/mi: revision 1.433 external/gpl3/gcc/dist/libstdc++-v3/config/io/basic_file_stdio.cc: revision 1.2 libstdc++: Add test for PR lib/58206, sync_with_stdio busted. libstdc++: Don't try to fflush stdin. It doesn't work. It's undefined behaviour. On NetBSD, it will fail with EBADF, if fd 0 isn't open for write, or if fd 0 is open for write, it will write heap garbage to fd 0. If stream points to an output stream or an update stream in which the most recent operation was not input, the fflush function causes any unwritten data for that stream to be delivered to the host environment to be written to the file; otherwise, the behavior is undefined. (ISO C11 and ISO C17, Sec. 7.21.5.2 `The fflush function') PR lib/58206 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114879 @ text @a0 12 # $NetBSD: Makefile,v 1.1 2024/04/28 01:21:27 riastradh Exp $ # NOMAN= # defined TESTSDIR= ${TESTSBASE}/lib/libstdc++ BINDIR= ${TESTSDIR} TESTS_SH+= t_sync_with_stdio PROG_CXX+= h_cin_nosync .include @