| History log of /src/tests/lib/libstdc++ |
| Revision | Date | Author | Comments |
| 1.1 | 28-Apr-2024 |
riastradh | branches: 1.1.4; 1.1.6; libstdc++: Add test for PR lib/58206, sync_with_stdio busted.
|
| 1.1.6.2 | 23-Aug-2024 |
martin | 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
|
| 1.1.6.1 | 28-Apr-2024 |
martin | file Makefile was added on branch netbsd-9 on 2024-08-23 18:32:36 +0000
|
| 1.1.4.2 | 23-Aug-2024 |
martin | 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
|
| 1.1.4.1 | 28-Apr-2024 |
martin | file Makefile was added on branch netbsd-10 on 2024-08-23 18:28:09 +0000
|
| 1.1 | 28-Apr-2024 |
riastradh | branches: 1.1.4; 1.1.6; libstdc++: Add test for PR lib/58206, sync_with_stdio busted.
|
| 1.1.6.2 | 23-Aug-2024 |
martin | 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
|
| 1.1.6.1 | 28-Apr-2024 |
martin | file h_cin_nosync.cc was added on branch netbsd-9 on 2024-08-23 18:32:35 +0000
|
| 1.1.4.2 | 23-Aug-2024 |
martin | 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
|
| 1.1.4.1 | 28-Apr-2024 |
martin | file h_cin_nosync.cc was added on branch netbsd-10 on 2024-08-23 18:28:09 +0000
|
| 1.2 | 20-May-2024 |
riastradh | branches: 1.2.4; 1.2.6; 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
|
| 1.1 | 28-Apr-2024 |
riastradh | libstdc++: Add test for PR lib/58206, sync_with_stdio busted.
|
| 1.2.6.2 | 23-Aug-2024 |
martin | 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
|
| 1.2.6.1 | 20-May-2024 |
martin | file t_sync_with_stdio.sh was added on branch netbsd-9 on 2024-08-23 18:32:35 +0000
|
| 1.2.4.2 | 23-Aug-2024 |
martin | 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
|
| 1.2.4.1 | 20-May-2024 |
martin | file t_sync_with_stdio.sh was added on branch netbsd-10 on 2024-08-23 18:28:09 +0000
|