diff options
Diffstat (limited to 'unit/atf-src/atf-run/io.hpp')
-rw-r--r-- | unit/atf-src/atf-run/io.hpp | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/unit/atf-src/atf-run/io.hpp b/unit/atf-src/atf-run/io.hpp index 4d9c548c..b8ff59a8 100644 --- a/unit/atf-src/atf-run/io.hpp +++ b/unit/atf-src/atf-run/io.hpp @@ -1,7 +1,7 @@ // // Automated Testing Framework (atf) // -// Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc. +// Copyright (c) 2007 The NetBSD Foundation, Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without @@ -36,7 +36,8 @@ #include "fs.hpp" -#include "../atf-c++/utils.hpp" +#include "../atf-c++/detail/auto_array.hpp" +#include "../atf-c++/noncopyable.hpp" namespace atf { namespace atf_run { @@ -253,8 +254,7 @@ private: //! However, it is not copyable to avoid introducing inconsistences with //! the on-disk file and the in-memory buffers. //! -class systembuf : - public std::streambuf, atf::utils::noncopyable +class systembuf : public std::streambuf, atf::noncopyable { public: typedef int handle_type; @@ -374,15 +374,9 @@ protected: //! this happens, the buffer eventually empties and the system blocks //! until the writer generates some data. //! -class pistream : - public std::istream, utils::noncopyable +class pistream : public std::istream, noncopyable { //! - //! \brief The file handle managed by this stream. - //! - int m_fd; - - //! //! \brief The systembuf object used to manage this stream's data. //! systembuf m_systembuf; @@ -406,12 +400,12 @@ public: // The "muxer" class. // ------------------------------------------------------------------------ -class muxer : utils::noncopyable { +class muxer : noncopyable { const int* m_fds; const size_t m_nfds; const size_t m_bufsize; - atf::utils::auto_array< std::string > m_buffers; + atf::auto_array< std::string > m_buffers; protected: virtual void line_callback(const size_t, const std::string&) = 0; |