istream.cc (basic_istream<char>::ignore(streamsize), [...]): At the end, first check _M_gcount vs __n.
2005-01-05 Paolo Carlini <pcarlini@suse.de>
* src/istream.cc (basic_istream<char>::ignore(streamsize),
basic_istream<char>::ignore(streamsize, int_type),
basic_istream<wchar_t>::ignore(streamsize),
basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end,
first check _M_gcount vs __n.
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
int_type)): Likewise.
* testsuite/27_io/basic_istream/ignore/char/4.cc: New.
* testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
From-SVN: r92947
2005-01-05 12:11:48 +01:00
|
|
|
2005-01-05 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
|
|
|
* src/istream.cc (basic_istream<char>::ignore(streamsize),
|
|
|
|
basic_istream<char>::ignore(streamsize, int_type),
|
|
|
|
basic_istream<wchar_t>::ignore(streamsize),
|
|
|
|
basic_istream<wchar_t>::ignore(streamsize, int_type)): At the end,
|
|
|
|
first check _M_gcount vs __n.
|
|
|
|
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
|
|
|
|
int_type)): Likewise.
|
|
|
|
* testsuite/27_io/basic_istream/ignore/char/4.cc: New.
|
|
|
|
* testsuite/27_io/basic_istream/ignore/wchar_t/4.cc: Likewise.
|
|
|
|
|
2005-01-03 22:31:39 +01:00
|
|
|
2005-01-03 Mark Mitchell <mark@codesourcery.com>
|
|
|
|
|
2005-01-04 02:45:48 +01:00
|
|
|
* testsuite/testsuite_hooks.cc: Use __throw_exception_again
|
|
|
|
instead of just throw.
|
|
|
|
|
2005-01-04 01:17:16 +01:00
|
|
|
* testsuite/testsuite_hooks.cc: Update coypright and follow style
|
|
|
|
guidelines.
|
|
|
|
* testsuite/testsuite_hooks.h: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
|
|
|
|
semaphores, not sleep.
|
|
|
|
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
|
|
|
|
Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
|
|
|
|
* testsuite/27_io/objects/char/7.cc: Likewise.
|
|
|
|
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
|
|
|
|
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
|
|
|
|
* testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
|
|
|
|
|
2005-01-03 22:31:39 +01:00
|
|
|
* configure.ac: Check for sys/ipc.h and sys/sem.h.
|
|
|
|
* config.h.in: Regenerated.
|
|
|
|
* configure: Likewise.
|
|
|
|
* testsuite/testsuite_hooks.cc (_GLIBCXX_SYSV_SEM): Conditionally
|
|
|
|
define.
|
|
|
|
(sys/types.h): Include.
|
|
|
|
(sys/ipc.h): Likewise.
|
|
|
|
(sys/sem.h): Likewise.
|
|
|
|
(__gnu_test::semun): New type.
|
|
|
|
(__gnu_test::semaphore::sempaphore): New function.
|
|
|
|
(__gnu_test::semaphore::~semaphore): Likewise.
|
|
|
|
(__gnu_test::semaphore::wait): Likewise.
|
|
|
|
(__gnu_test::semaphore::signal): Likewise.
|
|
|
|
* testsuite/testsuite_hooks.h (__gnu_test::semaphore): New class.
|
2005-01-04 01:08:57 +01:00
|
|
|
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Use
|
2005-01-03 22:31:39 +01:00
|
|
|
semaphores, not sleep.
|
|
|
|
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc:
|
|
|
|
Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
|
|
|
|
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
|
|
|
|
* testsuite/27_io/objects/char/7.cc: Likewise.
|
|
|
|
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
|
|
|
|
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
|
2005-01-04 01:08:57 +01:00
|
|
|
* testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
|
2005-01-03 22:31:39 +01:00
|
|
|
|
2005-01-03 15:07:26 +01:00
|
|
|
2005-01-03 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
|
|
|
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
|
|
|
|
int_type)): Reset _M_gcount to numeric_limits<streamsize>::min().
|
|
|
|
* src/istream.cc (basic_istream<char>::ignore(streamsize, int_type),
|
|
|
|
basic_istream<wchar_t>::ignore(streamsize, int_type)): Likewise.
|
|
|
|
* src/istream.cc (basic_istream<char>::ignore(streamsize),
|
|
|
|
basic_istream<wchar_t>::ignore(streamsize)): Likewise; fix a typo.
|
|
|
|
|
2005-01-03 01:02:47 +01:00
|
|
|
2005-01-02 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
|
|
|
* src/istream.cc (basic_istream<char>::ignore(streamsize),
|
|
|
|
basic_istream<char>::ignore(streamsize, int_type),
|
|
|
|
basic_istream<wchar_t>::ignore(streamsize),
|
|
|
|
basic_istream<wchar_t>::ignore(streamsize, int_type)): Avoid
|
|
|
|
_M_gcount overflows.
|
|
|
|
* include/bits/istream.tcc (ignore(streamsize), ignore(streamsize,
|
|
|
|
int_type)): Likewise; use snextc in the main loop, consistently
|
|
|
|
with the specializations above.
|
|
|
|
|
2005-01-02 18:49:51 +01:00
|
|
|
2005-01-02 Chris Jefferson <chris@bubblescope.net>
|
|
|
|
|
|
|
|
* include/bits/stl_algobase.h (mismatch): Correct concept check.
|
|
|
|
|
2005-01-02 00:14:53 +01:00
|
|
|
2005-01-01 Paolo Carlini <pcarlini@suse.de>
|
|
|
|
|
|
|
|
* testsuite/ext/enc_filebuf/char/13189.cc: Fix, first include
|
|
|
|
testsuite_hooks.h, to know whether including ext/enc_filebuf.h.
|
|
|
|
* testsuite/ext/enc_filebuf/wchar_t/13189.cc: Likewise.
|
|
|
|
|
2005-01-01 22:03:33 +01:00
|
|
|
2005-01-01 Paolo Carlini <pcarlini@suse.de>
|
2004-12-31 19:15:22 +01:00
|
|
|
|
2005-01-01 22:03:33 +01:00
|
|
|
* testsuite/27_io/basic_istream/extractors_character/char/1.cc: Fix,
|
|
|
|
null-terminate array1 at the outset.
|
|
|
|
* testsuite/27_io/basic_istream/extractors_character/wchar_t/1.cc:
|
2004-01-04 19:34:27 +01:00
|
|
|
Likewise.
|