mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
36a26d7fa8
This function is supposed to take a `const void *addr` as first parameter, but we took a `void *addr`. https://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/baselib-dladdr-3.html
32 lines
566 B
C
32 lines
566 B
C
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
#define RTLD_DEFAULT 0
|
|
#define RTLD_LAZY 2
|
|
#define RTLD_NOW 4
|
|
#define RTLD_GLOBAL 8
|
|
#define RTLD_LOCAL 16
|
|
|
|
typedef struct __Dl_info {
|
|
char const* dli_fname;
|
|
void* dli_fbase;
|
|
char const* dli_sname;
|
|
void* dli_saddr;
|
|
} Dl_info;
|
|
|
|
int dlclose(void*);
|
|
char* dlerror(void);
|
|
void* dlopen(char const*, int);
|
|
void* dlsym(void*, char const*);
|
|
int dladdr(void const*, Dl_info*);
|
|
|
|
__END_DECLS
|