The manual
ginnOS
The reference: libc, the libraries and the kernel
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 */
20void *dlopen(const char *file, int mode);
21
22/** @return NULL */
23void *dlsym(void *handle, const char *name);
24
25/** @return 0 */
26int dlclose(void *handle);
27
28/** @return why the last call failed, once (then NULL) */
29char *dlerror(void);
void * dlopen(const char *file, int mode)
char * dlerror(void)
void * dlsym(void *handle, const char *name)
int dlclose(void *handle)
an open-file description.
Definition file.h:64