Sha256: ea92f39e78511c96b819a5980cfe6cc41afd2b82a6ec6434b5124f0d9751ebe6

Contents?: true

Size: 697 Bytes

Versions: 16

Compression:

Stored size: 697 Bytes

Contents

#include <internal/facts/solaris/kernel_resolver.hpp>
#include <leatherman/logging/logging.hpp>
#include <sys/utsname.h>

using namespace std;

namespace facter { namespace facts { namespace solaris {

    kernel_resolver::data kernel_resolver::collect_data(collection& facts)
    {
        data result;
        struct utsname name;
        if (uname(&name) == -1) {
            LOG_WARNING("uname failed: {1} ({2}): kernel facts are unavailable.", strerror(errno), errno);
            return result;
        }

        result.name = name.sysname;
        result.release = name.release;
        result.version = name.version;
        return result;
    }

}}}  // namespace facter::facts::solaris

Version data entries

16 entries across 16 versions & 2 rubygems

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