dlinfo.c\ldso\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/ldso/dlinfo.c
blob: b55f5fe6cfef943a563f0a6d2e07d293e22aa8cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define _GNU_SOURCE
#include <dlfcn.h>
#include "dynlink.h"
int dlinfo(void *dso, int req, void *res)
{
	if (__dl_invalid_handle(dso)) return -1;
	if (req != RTLD_DI_LINKMAP) {
		__dl_seterr("Unsupported request %d", req);
		return -1;
	}
	*(struct link_map **)res = dso;
	return 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月08日 22:48:53 +0000

AltStyle によって変換されたページ (->オリジナル) /