]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
9661-1.cc: Include <cstdlib>.
authorPaolo Carlini <pcarlini@suse.de>
Fri, 2 Mar 2007 18:11:15 +0000 (18:11 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 2 Mar 2007 18:11:15 +0000 (18:11 +0000)
2007-03-02  Paolo Carlini  <pcarlini@suse.de>

* testsuite/27_io/objects/wchar_t/9661-1.cc: Include <cstdlib>.
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
* testsuite/27_io/objects/char/7.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_arithmetic/char/
11.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_character/wchar_t/
4.cc: Likewise.
* testsuite/27_io/basic_istream/extractors_character/char/
4.cc: Likewise.
* testsuite/27_io/basic_ostream/seekp/wchar_t/
2346-fstream.cc: Likewise.
* testsuite/27_io/basic_ostream/seekp/char/
2346-fstream.cc: Likewise.
* testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.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/close/char/4879.cc: Likewise.
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
* testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
wchar_t/10.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
wchar_t/11.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
char/10.cc: Likewise.
* testsuite/21_strings/basic_string/inserters_extractors/
char/11.cc: Likewise.
* testsuite/ext/pb_ds/example/trie_dna.cc: Likewise.
* testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
* testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
* testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Likewise.
* testsuite/performance/27_io/ifstream_getline.cc: Likewise.
* testsuite/22_locale/locale/cons/4.cc: Likewise.
* testsuite/22_locale/locale/cons/5.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/thread/
mutex_weaktoshared.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/thread/
default_weaktoshared.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread1.cc: Likewise.
* testsuite/23_containers/deque/cons/assign/1.cc: Likewise.

From-SVN: r122482

39 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/10.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/char/11.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc
libstdc++-v3/testsuite/21_strings/basic_string/inserters_extractors/wchar_t/11.cc
libstdc++-v3/testsuite/22_locale/locale/cons/4.cc
libstdc++-v3/testsuite/22_locale/locale/cons/5.cc
libstdc++-v3/testsuite/23_containers/deque/cons/assign/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/4879.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/close/char/9964.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/26777.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/11.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/char/4.cc
libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/4.cc
libstdc++-v3/testsuite/27_io/basic_istream/getline/char/5.cc
libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/2.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/2.cc
libstdc++-v3/testsuite/27_io/basic_ostream/seekp/char/2346-fstream.cc
libstdc++-v3/testsuite/27_io/basic_ostream/seekp/wchar_t/2346-fstream.cc
libstdc++-v3/testsuite/27_io/objects/char/7.cc
libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/7.cc
libstdc++-v3/testsuite/27_io/objects/wchar_t/9661-1.cc
libstdc++-v3/testsuite/ext/new_allocator/deallocate_global.cc
libstdc++-v3/testsuite/ext/new_allocator/deallocate_local.cc
libstdc++-v3/testsuite/ext/pb_ds/example/trie_dna.cc
libstdc++-v3/testsuite/performance/27_io/filebuf_sgetn_unbuf.cc
libstdc++-v3/testsuite/performance/27_io/ifstream_getline.cc
libstdc++-v3/testsuite/thread/pthread1.cc
libstdc++-v3/testsuite/thread/pthread5.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc

index e43a953324538242371110234928a844b5d7bdb2..bd20ce0c1acc93970311d957e8fa0c3a039a3ba3 100644 (file)
@@ -1,3 +1,55 @@
+2007-03-02  Paolo Carlini  <pcarlini@suse.de>
+
+       * testsuite/27_io/objects/wchar_t/9661-1.cc: Include <cstdlib>.
+       * testsuite/27_io/objects/wchar_t/7.cc: Likewise.
+       * testsuite/27_io/objects/char/9661-1.cc: Likewise.
+       * testsuite/27_io/objects/char/7.cc: Likewise.
+       * testsuite/27_io/basic_istream/ignore/wchar_t/2.cc: Likewise.
+       * testsuite/27_io/basic_istream/ignore/char/2.cc: Likewise.
+       * testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Likewise.
+       * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise.
+       * testsuite/27_io/basic_istream/extractors_arithmetic/char/
+       11.cc: Likewise.
+       * testsuite/27_io/basic_istream/extractors_character/wchar_t/
+       4.cc: Likewise.
+       * testsuite/27_io/basic_istream/extractors_character/char/
+       4.cc: Likewise.
+       * testsuite/27_io/basic_ostream/seekp/wchar_t/
+       2346-fstream.cc: Likewise.
+       * testsuite/27_io/basic_ostream/seekp/char/
+       2346-fstream.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/imbue/wchar_t/14975-2.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/close/char/4879.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
+       * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Likewise.
+       * testsuite/21_strings/basic_string/inserters_extractors/
+       wchar_t/10.cc: Likewise.
+       * testsuite/21_strings/basic_string/inserters_extractors/
+       wchar_t/11.cc: Likewise.
+       * testsuite/21_strings/basic_string/inserters_extractors/
+       char/10.cc: Likewise.
+       * testsuite/21_strings/basic_string/inserters_extractors/
+       char/11.cc: Likewise.
+       * testsuite/ext/pb_ds/example/trie_dna.cc: Likewise.
+       * testsuite/ext/new_allocator/deallocate_global.cc: Likewise.
+       * testsuite/ext/new_allocator/deallocate_local.cc: Likewise.
+       * testsuite/performance/27_io/filebuf_sgetn_unbuf.cc: Likewise.
+       * testsuite/performance/27_io/ifstream_getline.cc: Likewise.
+       * testsuite/22_locale/locale/cons/4.cc: Likewise.
+       * testsuite/22_locale/locale/cons/5.cc: Likewise.
+       * testsuite/tr1/2_general_utilities/shared_ptr/thread/
+       mutex_weaktoshared.cc: Likewise.
+       * testsuite/tr1/2_general_utilities/shared_ptr/thread/
+       default_weaktoshared.cc: Likewise.
+       * testsuite/thread/pthread5.cc: Likewise.
+       * testsuite/thread/pthread1.cc: Likewise.
+       * testsuite/23_containers/deque/cons/assign/1.cc: Likewise.
+
 2007-03-02  Paolo Carlini  <pcarlini@suse.de>
 
        * testsuite/thread/pthread1.cc: Include <pthread.h>.
index 9c6d69440f10135f405fd5de14f8b2b684bb8133..204ea4c53d217c5e4a6f833bc0e4460f26f82034 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 #include <istream>
 #include <string>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index a400cd9bb9e7fee2f2864e81266281d51dbf65a9..9897bb28778a15e7d1309ffaaa5a63f25f4e16aa 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 #include <istream>
 #include <string>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index c2c4e619f5e38699211ee5eb153fdb06b7368fce..4a7fa50ff9b7a05bfe6517ea7922ba4818b1028c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 #include <istream>
 #include <string>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index 391cece916e507cac6afd5df806f04085c86a9a1..e3b5c173404d4b65fd1d75b18e6308b8ace73256 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 #include <istream>
 #include <string>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index 2f90053fbb9fd7a1913c6c6627ce4f3af199d95c..6d69ed2dc02967067697baedac94e0c1778e6729 100644 (file)
@@ -23,6 +23,7 @@
 // 22.1.1.2 locale constructors and destructors [lib.locale.cons]
 
 #include <cwchar> // for mbstate_t
+#include <cstdlib>
 #include <locale>
 #include <stdexcept>
 #include <testsuite_hooks.h>
index b08b3466c08ecd7f1d2407e5c04b396365a97443..856109588946c2ed98b081ba7e55db55da11573b 100644 (file)
@@ -2,7 +2,8 @@
 
 // 2000-09-13 Benjamin Kosnik <bkoz@redhat.com>
 
-// Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation
+// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+// Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -23,6 +24,7 @@
 // 22.1.1.2 locale constructors and destructors [lib.locale.cons]
 
 #include <cwchar> // for mbstate_t
+#include <cstdlib>
 #include <locale>
 #include <stdexcept>
 #include <testsuite_hooks.h>
index df6c846064d18ee883552715994a2db7fc9865cc..a9b0a4baee028ad143408fb04f8189cf9e3e0255 100644 (file)
@@ -1,6 +1,6 @@
 // 2005-12-12  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 // 23.2.1.1 deque constructors, copy, and assignment
 
 #include <deque>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 void test01()
index e976c370f8d40a086e8ccf4618bccd6819aa3940..b726fff1dd792e8c51bfa1f7bd879375eb7570db 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-require-fork "" }
 // { dg-require-mkfifo "" }
  
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -29,6 +29,7 @@
 
 #include <fstream>
 #include <iostream>
+#include <cstdlib>
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
index 1b9c3ff90ecbf392fc340e91ebcea7ddfdc297ac..53f70fab9107c18b158232d0c583ac7a709bb88c 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-require-fork "" }
 // { dg-require-mkfifo "" }
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -28,6 +28,7 @@
 // the non-portable functionality in the libstdc++-v3 IO library
 
 #include <fstream>
+#include <cstdlib>
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
index f1649580fec87b3de6a767234fa6b2e8515134b8..ff71a17b88364a534319198dba3c63f01497abdd 100644 (file)
@@ -2,7 +2,7 @@
 // { dg-require-fork "" }
 // { dg-require-mkfifo "" }
 
-// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -24,6 +24,7 @@
 
 #include <fstream>
 #include <locale>
+#include <cstdlib>
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 111f819f6e6b5f383e8fa6c93ca8ea531b85db5b..ef0a1561df3f3b11164c8dc500a57f652eb14013 100644 (file)
@@ -4,7 +4,7 @@
 
 // 2004-01-11  Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -26,6 +26,7 @@
 
 #include <fstream>
 #include <locale>
+#include <cstdlib>
 
 #include <unistd.h>
 #include <sys/types.h>
index 385888a3cdb9503540d98239e921fe7baf61ff6f..61d6cae4a733c2c8c61fd893afa35a15a47e2580 100644 (file)
@@ -4,7 +4,7 @@
 
 // 2004-01-11  Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -26,6 +26,7 @@
 
 #include <fstream>
 #include <locale>
+#include <cstdlib>
 
 #include <unistd.h>
 #include <sys/types.h>
index 14cfde77fbd51fd7549de5f1065065ccb492683c..1b3da5ad557077cf9d8c28dd16c3cc9e0dfbeadd 100644 (file)
@@ -4,7 +4,7 @@
 
 // 2004-04-16  Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -24,6 +24,7 @@
 
 #include <fstream>
 #include <locale>
+#include <cstdlib>
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
index 9cc973315a560409853d7a22fd5d4c58c4966a85..9963b052bd119ac59d99b1af2e3f1f1cf84bd2c0 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2006-03-22  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2006 Free Software Foundation, Inc.
+// Copyright (C) 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -27,6 +27,7 @@
 #include <testsuite_hooks.h>
 #include <fstream>
 #include <sstream>
+#include <cstdlib>
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
index d9b91088654c703c99545b15ce97f126ab5b2934..106ecda8bba330b1ceb4785a3e22a9cf109d91b2 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-require-fork "" }
 // { dg-require-mkfifo "" }
 
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -27,6 +27,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 // libstdc++/9533
index ffc36a3fc0791b753ee156f4e07d033e41920dc8..83b2f2b8629102247586544c44d076d423a9949e 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2001-05-21 Benjamin Kosnik  <bkoz@redhat.com>
 
-// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
+// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
 // Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -25,6 +25,7 @@
 // 27.8.1.4 Overridden virtual functions
 
 #include <fstream>
+#include <cstdlib>
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
index 0fa42e21c3cb781caaef2eee2f60fafe8a2b996b..370b18ccfdd11ab4363867a4c85183110b825ae4 100644 (file)
@@ -1,6 +1,7 @@
 // 1999-04-12 bkoz
 
-// Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+// Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -23,6 +24,7 @@
 #include <istream>
 #include <sstream>
 #include <locale>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 // In the presence of no fmtflags, the input operator should behave
index 9a1a71b85877a6a0b4878d300c19f43a956d0c99..be2831df07434150213149235204e62ad9d08222 100644 (file)
@@ -1,6 +1,6 @@
 // 2005-07-22  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2005 Free Software Foundation
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -23,6 +23,7 @@
 #include <istream>
 #include <string>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index d4e0069163be66b19de2ac6fb789a49af244d43e..924f6d2dd1a3bf63ed0d5310abdbea59e8f4c0c4 100644 (file)
@@ -1,6 +1,6 @@
 // 2005-07-22  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2005 Free Software Foundation
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -23,6 +23,7 @@
 #include <istream>
 #include <string>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index dccaa9f938b90da64b62e1667fe1635644c5caa3..1e57c0bd2375460f758680b6f073f4410b49c735 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 #include <istream>
 #include <string>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index 19cd94ff4a41af62d0841f3a9410ea33552ca83d..12cf727001ffae490cc444fd4a03aeac6e274da8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 #include <istream>
 #include <string>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index 1ed3a8435e30eec428645f82272c6559958527a2..9aa78a7e1138e0a63d682d51979b274047d33a94 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -22,6 +22,7 @@
 #include <string>
 #include <fstream>
 #include <limits>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index 0107f87dcef1343056bc2a59ce9b467903c6d7d5..5f4309bcde2c56e2db9df4d54a15886314d1f754 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -22,6 +22,7 @@
 #include <string>
 #include <fstream>
 #include <limits>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 using namespace std;
index 7f4cd4c279919890c28f3cdaea9d108ed34730b2..7ae0a55d7de7a7e0d27433e08469c1fbdc93f523 100644 (file)
@@ -1,6 +1,7 @@
 // 2000-06-29 bkoz
 
-// Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation
+// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+// Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -25,6 +26,7 @@
 #include <ostream>
 #include <istream>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 const char* s = " lootpack, peanut butter wolf, rob swift, madlib, quasimoto";
index 2a698d3d3bb02dddfa91200343695467f1f8ec7e..1b80e4e01ed1cd1c911957a9252e6e9f1b2ad698 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2005 Free Software Foundation
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -23,6 +23,7 @@
 #include <ostream>
 #include <istream>
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_hooks.h>
 
 const wchar_t* s = L" lootpack, peanut butter wolf, rob swift, madlib, quasimoto";
index a90fa03a5b5cf5035cae92cc763a13432f08a2da..53162256be21e94fe17edf556bcc86db53431595 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2003-04-26 Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -25,6 +25,7 @@
 
 #include <fstream>
 #include <iostream>
+#include <cstdlib>
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
index 4723282650361a73b07fa1a4e438b0791ecdd5e8..3bba3d84d44af0d146a4b30c84006b249fd487af 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2003-04-30  Petur Runolfsson <peturr02@ru.is>
 
-// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -26,6 +26,7 @@
 
 #include <testsuite_hooks.h>
 #include <cstdio>
+#include <cstdlib>
 #include <iostream>
 #include <unistd.h>
 #include <signal.h>
index 1e962d7eda467bfbdd9416f43b64dc9663c00092..7240e8352d6986c8aeb3268392b6153098ee7268 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2003-05-01 Petur Runolfsson  <peturr02@ru.is>
 
-// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -25,6 +25,7 @@
 
 #include <fstream>
 #include <iostream>
+#include <cstdlib>
 #include <unistd.h>
 #include <signal.h>
 #include <fcntl.h>
index beee4046a216f5fc9dc1d3f3be5f4cf12d091761..21218975b72a7a2602d845095946924ab7b63302 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2003-04-30  Petur Runolfsson <peturr02@ru.is>
 
-// Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -26,6 +26,7 @@
 
 #include <testsuite_hooks.h>
 #include <cstdio>
+#include <cstdlib>
 #include <iostream>
 #include <unistd.h>
 #include <signal.h>
index 170737db3f4fa2fdfbe9cca50b531748d0300ba4..387e715704a9367c593f172c46c0b2a6c3476101 100644 (file)
@@ -1,5 +1,5 @@
 //
-// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 
 #include <string>
 #include <stdexcept>
+#include <cstdlib>
 #include <ext/new_allocator.h>
 
 static size_t count;
@@ -39,8 +40,8 @@ static count_check check;
 
 void* operator new(size_t size) throw(std::bad_alloc)
 {
-  printf("operator new is called \n");
-  void* p = malloc(size);
+  std::printf("operator new is called \n");
+  void* p = std::malloc(size);
   if (p == NULL)
     throw std::bad_alloc();
   count++;
@@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc)
  
 void operator delete(void* p) throw()
 {
-  printf("operator delete is called \n");
+  std::printf("operator delete is called \n");
   if (p == NULL)
     return;
   count--;
index 6512f2e8ed11ebd67bd6ede11ff25db301d87eb1..572c34421fb1b22af93be458b8525f2b96074ee1 100644 (file)
@@ -1,5 +1,5 @@
 //
-// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -21,6 +21,7 @@
 
 #include <string>
 #include <stdexcept>
+#include <cstdlib>
 #include <ext/new_allocator.h>
 
 static size_t count;
@@ -39,8 +40,8 @@ static count_check check;
 
 void* operator new(size_t size) throw(std::bad_alloc)
 {
-  printf("operator new is called \n");
-  void* p = malloc(size);
+  std::printf("operator new is called \n");
+  void* p = std::malloc(size);
   if (p == NULL)
     throw std::bad_alloc();
   count++;
@@ -49,7 +50,7 @@ void* operator new(size_t size) throw(std::bad_alloc)
  
 void operator delete(void* p) throw()
 {
-  printf("operator delete is called \n");
+  std::printf("operator delete is called \n");
   if (p == NULL)
     return;
   count--;
index c1f23d524c4036a4ca825051502b1db9c38b0c28..63afba382bab47b5355fd0524541beedc164f66b 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the terms
@@ -52,6 +52,7 @@
 
 #include <cassert>
 #include <iostream>
+#include <cstdlib>
 #include <ext/pb_ds/assoc_container.hpp>
 #include <ext/pb_ds/trie_policy.hpp>
 
@@ -102,7 +103,7 @@ public:
       case 'T':
        return 3;
       default:
-       abort();
+       std::abort();
       };
   }
 };
index 16afbe5bef23616d8247a06c086d98d930f1145e..07c5163ac75227dabd516b04613b678b833a950f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -26,6 +26,7 @@
 // the GNU General Public License.
 
 #include <cstdio>
+#include <cstdlib>
 #include <fstream>
 #include <testsuite_performance.h>
 
index b5eaddf3f709c186758b655d4954e051cfb1ccf0..ea4fab0b39c993714704d5a0601a1217c72b9bc3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003 Free Software Foundation, Inc.
+// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -26,6 +26,7 @@
 // the GNU General Public License.
 
 #include <fstream>
+#include <cstdlib>
 #include <testsuite_performance.h>
 
 // libstdc++/5001 (100,000 line input file)
index f66c3c9e8467034f60b1437918f00d5703652521..fc19378ef4da4953b76a7341d6f9e8bf113d900f 100644 (file)
@@ -31,6 +31,7 @@
 // if the STL threading support is fubar'd).
 
 #include <list>
+#include <cstdlib>
 #include <pthread.h>
 
 using namespace std;
index 4d5aac4365b460031883158432eb9ea0546b5736..fd3b483301cad2d05404903cc0486428fdc235f4 100644 (file)
@@ -28,6 +28,7 @@
 #include <vector>
 #include <list>
 #include <string>
+#include <cstdlib>
 #include <pthread.h>
 
 #ifdef _GLIBCXX_HAVE_UNISTD_H
index 5b17500165f3811dc6b65316d3d5234f1521bcb0..5149daa5b6de8e279af0fd08b32dc21b894eff12 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006 Free Software Foundation
+// Copyright (C) 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -27,6 +27,7 @@
 #include <vector>
 #include <testsuite_hooks.h>
 #include <iostream>
+#include <cstdlib>
 
 #include <pthread.h>
 
@@ -169,14 +170,14 @@ test01()
     {
       if (pthread_create(&threads[worker], &tattr,
                         thread_hammer, reinterpret_cast<void*>(&weak_pool[worker])))
-       abort();
+       std::abort();
     }
   // Wait for threads to complete, then check integrity of reference.
   void* status;
   for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++)
     {
       if (pthread_join(threads[worker], &status))
-       abort();
+       std::abort();
     }
   obj_pool.clear();
   
index 370218a11368882e1b88090271935b69d95c00fb..0333b9f7754e31e3f2c1ca3735c766e092abab65 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006 Free Software Foundation
+// Copyright (C) 2006, 2007 Free Software Foundation
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -27,6 +27,7 @@
 #include <vector>
 #include <testsuite_hooks.h>
 #include <iostream>
+#include <cstdlib>
 
 #include <pthread.h>
 
@@ -171,14 +172,14 @@ test01()
     {
       if (pthread_create(&threads[worker], &tattr,
                         thread_hammer, reinterpret_cast<void*>(&weak_pool[worker])))
-       abort();
+       std::abort();
     }
   // Wait for threads to complete, then check integrity of reference.
   void* status;
   for (unsigned int worker = 0; worker < HAMMER_MAX_THREADS; worker++)
     {
       if (pthread_join(threads[worker], &status))
-       abort();
+       std::abort();
     }
   obj_pool.clear();