Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
DL
/
Handle
/
//opt/alt/ruby21/share/ri/2.1.0/system/DL/Handle/cdesc-Handle.ri
U:RDoc::NormalClass[iI"Handle:ETI"DL::Handle;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"?The DL::Handle is the manner to access the dynamic library;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;T@S;;i; I" Setup;T@o:RDoc::Markup::Verbatim;[ I""libc_so = "/lib64/libc.so.6" ;TI"=> "/lib64/libc.so.6" ;TI"'@handle = DL::Handle.new(libc_so) ;TI"'=> #<DL::Handle:0x00000000d69ef8> ;T:@format0S;;i; I"Setup, with flags;T@o;;[ I""libc_so = "/lib64/libc.so.6" ;TI"=> "/lib64/libc.so.6" ;TI"H@handle = DL::Handle.new(libc_so, DL::RTLD_LAZY | DL::RTLD_GLOBAL) ;TI"'=> #<DL::Handle:0x00000000d69ef8> ;T;0S;;i; I"Addresses to symbols;T@o;;[I"%strcpy_addr = @handle['strcpy'] ;TI"=> 140062278451968 ;T;0o; ;[I"or;T@o;;[I")strcpy_addr = @handle.sym('strcpy') ;TI"=> 140062278451968;T;0: @fileI"ext/dl/handle.c;T:0@omit_headings_from_table_of_contents_below0;0;0[ [U:RDoc::Constant[i I" NEXT;TI"DL::Handle::NEXT;T00o;;[ o; ;[I" NEXT;T@o; ;[I",A predefined pseudo-handle of RTLD_NEXT;T@o; ;[I"KWhich will find the next occurrence of a function in the search order ;TI"after the current library.;T;@1;0@1@cRDoc::NormalClass0U;[i I"DEFAULT;TI"DL::Handle::DEFAULT;T00o;;[ o; ;[I"DEFAULT;T@o; ;[I"/A predefined pseudo-handle of RTLD_DEFAULT;T@o; ;[I"JWhich will find the first occurrence of the desired symbol using the ;TI"!default library search order;T;@1;0@1@@D0[ [[I" class;T[[:public[[I"[];TI"ext/dl/handle.c;T[I"new;T@^[I"sym;T@^[:protected[ [:private[ [I" instance;T[[;[[I"[];T@^[I" close;T@^[I"close_enabled?;T@^[I"disable_close;T@^[I"enable_close;T@^[I"sym;T@^[I" to_i;T@^[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[I"ext/dl/cfunc.c;TI"DL;TcRDoc::NormalModule