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
-
#progname ⇒ String
Get program name.
-
#progname=(progname) ⇒ String
Set program name.
Instance Method Details
#progname ⇒ String
Get program name
33 34 35 |
# File 'lib/sys/proc/concern/system/freebsd.rb', line 33 def progname libc.getprogname end |
#progname=(progname) ⇒ String
Set program name
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 |