Skip to content

module internal.dlopen

Source: stdlib/internal/dlopen.codon


c_dlerror() @C Function is external C function


c_dlopen(_: cobj, _: int) @C Function is external C function


c_dlsym(_: cobj, _: cobj) @C Function is external C function


c_dlclose(_: cobj) @C Function is external C function


RTLD_NOW: Literal[int] = 2


RTLD_GLOBAL: Literal[int] = (8 if __apple__ else 256)


RTLD_LOCAL: Literal[int] = (0 if __apple__ else 256)


dlext()


dlerror() @pure Function has no side effects and returns same value for same inputs


dlopen(name: str, flag: int = (RTLD_NOW | RTLD_GLOBAL))


dlsym(lib, name: str, Fn: type)


dlclose(handle: cobj)