• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

12.2.4 Low-level operations on shared libraries
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Linking Foreign Modules
          • Low-level operations on shared libraries
            • open_shared_object/2
            • open_shared_object/3
            • close_shared_object/1
            • call_shared_object_function/2
    • Packages
Availability:built-in
open_shared_object(+File, -Handle, +Options)
As open_shared_object/2, but allows for additional flags to be passed. Defined options are below. These options map to RTLD_NOW, RTLD_LAZY, RTLD_GLOBAL, RTLD_NODELETE, RTLD_NOLOAD and RTLD_DEEPBIND on systems where this predicate is implemented using dlopen() and these flags are supported. If the flag is not supported on the target OS, the corresponding option is silently ignored.
resolve(Atom)
When to resolve symbols. Values are lazy (default) or now.
visibility(Atom)
Visibility of the new symbols. Values are are local (default) or global, making the new symbols available to all subsequently loaded shared objects.
now(Bool)
now(true) is the same as resolve(now). Provided for backward compatibility.
global(Bool)
global(true) is the same as visibility(global). Provided for backward compatibility.
delete(Bool)
If false, include RTLD_NODELETE.
load(Bool)
if false, include RTLD_NOLOAD. This returns a handle to the object if it is already loaded and NULL otherwise. It causes this predicate to fail silently if the object is not loaded.
deepbind(Bool)
if true, include RTLD_DEEPBIND.

Note that these flags may not be supported by your operating system. Check the documentation of dlopen() or equivalent on your operating system. Unsupported flags are silently ignored.

ClioPatria (version V3.1.1-51-ga0b30a5)