The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
dlfcn.h File Reference

loading shared libraries at run time. More...

Go to the source code of this file.

Macros

#define RTLD_LAZY   0x0001
#define RTLD_NOW   0x0002
#define RTLD_GLOBAL   0x0100
#define RTLD_LOCAL   0x0000
#define RTLD_NOLOAD   0x0004
#define RTLD_DEFAULT   ((void *)0)

Functions

void * dlopen (const char *file, int mode)
void * dlsym (void *handle, const char *name)
int dlclose (void *handle)
char * dlerror (void)

Detailed Description

loading shared libraries at run time.

ginnOS programs are static and there is no dynamic loader yet: dlopen always fails, and dlerror says why. programs that can do without a library (SDL's optional parts) go on without it.

Macro Definition Documentation

◆ RTLD_LAZY

#define RTLD_LAZY   0x0001

◆ RTLD_NOW

#define RTLD_NOW   0x0002

◆ RTLD_GLOBAL

#define RTLD_GLOBAL   0x0100

◆ RTLD_LOCAL

#define RTLD_LOCAL   0x0000

◆ RTLD_NOLOAD

#define RTLD_NOLOAD   0x0004

◆ RTLD_DEFAULT

#define RTLD_DEFAULT   ((void *)0)

Function Documentation

◆ dlopen()

void * dlopen ( const char * file,
int mode )
Returns
NULL: there is no dynamic loader

◆ dlsym()

void * dlsym ( void * handle,
const char * name )
Returns
NULL

◆ dlclose()

int dlclose ( void * handle)
Returns
0

◆ dlerror()

char * dlerror ( void )
Returns
why the last call failed, once (then NULL)