Module: Sys::Proc::Concern::System::LinuxGnu

Includes:
Helper, System::LinuxGnu
Defined in:
lib/sys/proc/concern/system/linux_gnu.rb

Overview

Provides specific Linux-GNU methods

Instance Method Summary collapse

Instance Method Details

#prognameString

Get program name

Returns:

  • (String)


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

def progname
  prctl.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/linux_gnu.rb', line 22

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

    self.progname
  end
end