module Facter::Resolvers::Solaris::FFI::Ioctl
Public Class Methods
ioctl(call_const, pointer, address_family = AF_INET)
click to toggle source
# File lib/facter/resolvers/solaris/ffi/functions.rb, line 16 def self.ioctl(call_const, pointer, address_family = AF_INET) fd = Ioctl.open_socket(address_family, SOCK_DGRAM, 0) begin ioctl_base(fd, call_const, pointer) ensure Ioctl.close_socket(fd) end end