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