mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
29 lines
717 B
C
29 lines
717 B
C
#ifndef COSMOPOLITAN_LIBC_DLFCN_H_
|
|
#define COSMOPOLITAN_LIBC_DLFCN_H_
|
|
|
|
#define RTLD_LOCAL 0
|
|
#define RTLD_LAZY 1
|
|
#define RTLD_NOW 2
|
|
#define RTLD_GLOBAL 256
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
#define RTLD_NEXT ((void *)-1)
|
|
#define RTLD_DEFAULT ((void *)0)
|
|
|
|
char *dlerror(void);
|
|
void *dlopen(const char *, int);
|
|
void *dlsym(void *, const char *);
|
|
int dlclose(void *);
|
|
int dl_iterate_phdr(int (*)(void *, size_t, void *), void *);
|
|
|
|
#ifdef _COSMO_SOURCE
|
|
char *cosmo_dlerror(void);
|
|
void *cosmo_dlopen(const char *, int);
|
|
void *cosmo_dlsym(void *, const char *);
|
|
int cosmo_dlclose(void *);
|
|
int cosmo_dl_iterate_phdr(int (*)(void *, size_t, void *), void *);
|
|
#endif
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* COSMOPOLITAN_LIBC_DLFCN_H_ */
|