Skip to content

Commit

Permalink
Added documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 15, 2013
1 parent 7da78d7 commit acda16e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/ffi/libc/libc.rb
Expand Up @@ -184,6 +184,18 @@ def self.each_ifaddrs

attach_function :sys_getrusage, :getrusage, [:int, :pointer], :int

#
# Gets the RUsage for the user.
#
# @param [RUSAGE_SELF, RUSAGE_CHILDREN, RUSAGE_THREAD] who
# Whome to get RUsage statistics for.
#
# @return [RUsage]
# The RUsage statistics.
#
# @raise [RuntimeError]
# An error has occurred.
#
def self.getrusage(who=RUSAGE_SELF)
rusage = RUsage.new

Expand Down

0 comments on commit acda16e

Please sign in to comment.