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