The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
Loading...
Searching...
No Matches
dlfcn.h
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* @file dlfcn.h
5
* @brief loading shared libraries at run time. ginnOS programs are static
6
* and there is no dynamic loader yet: dlopen always fails, and
7
* dlerror says why. programs that can do without a library (SDL's
8
* optional parts) go on without it.
9
*/
10
11
#define RTLD_LAZY 0x0001
12
#define RTLD_NOW 0x0002
13
#define RTLD_GLOBAL 0x0100
14
#define RTLD_LOCAL 0x0000
15
#define RTLD_NOLOAD 0x0004
16
17
#define RTLD_DEFAULT ((void *)0)
18
19
/** @return NULL: there is no dynamic loader */
20
void
*
dlopen
(
const
char
*
file
,
int
mode);
21
22
/** @return NULL */
23
void
*
dlsym
(
void
*handle,
const
char
*name);
24
25
/** @return 0 */
26
int
dlclose
(
void
*handle);
27
28
/** @return why the last call failed, once (then NULL) */
29
char
*
dlerror
(
void
);
dlopen
void * dlopen(const char *file, int mode)
dlerror
char * dlerror(void)
dlsym
void * dlsym(void *handle, const char *name)
dlclose
int dlclose(void *handle)
file
an open-file description.
Definition
file.h:64
src
libc
include
dlfcn.h
Generated by
1.18.0