Module: Sys::Proc::Concern::System::Freebsd

Includes:
Helper, System::Freebsd
Defined in:
lib/sys/proc/concern/system/freebsd.rb

Overview

Provides specific Freebsd methods

Instance Method Summary collapse

Instance Method Details

#prognameString

Get program name

Returns:

  • (String)


33
34
35
# File 'lib/sys/proc/concern/system/freebsd.rb', line 33

def progname
  libc.getprogname
end

#progname=(progname) ⇒ String

Set program name

Parameters:

  • progname (String)

Returns:

  • (String)


22
23
24
25
26
27
28
# File 'lib/sys/proc/concern/system/freebsd.rb', line 22

def progname=(progname)
  self.helper.get('system/generic').setprogname(progname) do |s|
    libc.setprogname(s.progname)

    self.progname
  end
end