Sha256: f9ff04d0ac465b37294bb37485d30dd353e64c9d79210381080f0ec6e26f11bc

Contents?: true

Size: 664 Bytes

Versions: 16

Compression:

Stored size: 664 Bytes

Contents

#include <internal/util/solaris/scoped_kstat.hpp>

using namespace std;
using namespace leatherman::util;

namespace facter { namespace util { namespace solaris {

    scoped_kstat::scoped_kstat() :
        scoped_resource(nullptr, close)
    {
        _resource = kstat_open();
    }

    scoped_kstat::scoped_kstat(kstat_ctl* ctrl) :
        scoped_resource(move(ctrl), free)
    {
    }

    void scoped_kstat::close(kstat_ctl* ctrl)
    {
        if (ctrl) {
            ::kstat_close(ctrl);
        }
    }

    kstat_exception::kstat_exception(std::string const& message) :
        runtime_error(message)
    {
    }

}}}  // namespace facter::util::solaris

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.12.1.cfacter.20181031 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.11.6.cfacter.20181031 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.12.1.cfacter.20181023 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.11.5.cfacter.20181022 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.12.0.cfacter.20181004 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.12.0.cfacter.20181001 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.12.0.cfacter.20180918 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.11.4.cfacter.20180821 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.11.3.cfacter.20180716 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.11.2.cfacter.20180612 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.9.6.cfacter.20180612 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.11.2.cfacter.20180606 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.9.6.cfacter.20180606 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
facter-3.11.0.cfacter.20180319 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc
cfacter-3.11.0.rc.20180314 ext/facter/facter/lib/src/util/solaris/scoped_kstat.cc