ladybird/Userland/Libraries/LibC/dlfcn.h

33 lines
560 B
C
Raw Normal View History

/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
2019-05-23 13:32:30 +00:00
#pragma once
#include <sys/cdefs.h>
__BEGIN_DECLS
2019-10-02 19:48:14 +00:00
#define RTLD_DEFAULT 0
#define RTLD_LAZY 2
#define RTLD_NOW 4
#define RTLD_GLOBAL 8
#define RTLD_LOCAL 16
2019-05-23 13:32:30 +00:00
typedef struct __Dl_info {
2022-04-01 17:58:27 +00:00
char const* dli_fname;
void* dli_fbase;
2022-04-01 17:58:27 +00:00
char const* dli_sname;
void* dli_saddr;
} Dl_info;
2019-05-23 13:32:30 +00:00
int dlclose(void*);
char* dlerror(void);
2022-04-01 17:58:27 +00:00
void* dlopen(char const*, int);
void* dlsym(void*, char const*);
int dladdr(void*, Dl_info*);
__END_DECLS