diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-26 05:06:57 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-26 05:06:57 +0000 |
commit | 6bb201d6d1d44ac2c376a20125caf4be849579df (patch) | |
tree | 68ff6c7bd2664bf93a162eb0480e50863c334078 /ext/fiddle/lib | |
parent | 45c4d828233898f4164aaabca6dfb68a38e04a57 (diff) | |
download | ruby-6bb201d6d1d44ac2c376a20125caf4be849579df.tar.gz |
* ext/fiddle/*: [DOC] More doc on dlopen and RTLD_DEFAULT from r42186
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle/lib')
-rw-r--r-- | ext/fiddle/lib/fiddle.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/fiddle/lib/fiddle.rb b/ext/fiddle/lib/fiddle.rb index 3a9b5d5bff..ae6e299637 100644 --- a/ext/fiddle/lib/fiddle.rb +++ b/ext/fiddle/lib/fiddle.rb @@ -33,9 +33,13 @@ module Fiddle # Fiddle::Handle. # # If +nil+ is given for the +library+, Fiddle::Handle::DEFAULT is used, which - # usually means +libc+. + # is the equivalent to RTLD_DEFAULT. See <code>man 3 dlopen</code> for more. # - # libc = Fiddle.dlopen(nil) + # lib = Fiddle.dlopen(nil) + # + # The default is dependent on OS, and provide a handle for all libraries + # already loaded. For example, in most cases you can use this to access + # +libc+ functions, or ruby functions like +rb_str_new+. # # See Fiddle::Handle.new for more. def dlopen library |