2016-08-22 22:53:26 +00:00
|
|
|
#ifndef TMPLIBRARY_H
|
|
|
|
#define TMPLIBRARY_H
|
|
|
|
|
2019-05-01 07:18:59 +00:00
|
|
|
#define _GNU_SOURCE
|
|
|
|
#include <dlfcn.h>
|
|
|
|
|
2016-08-24 06:49:14 +00:00
|
|
|
#include <sys/types.h>
|
2016-08-23 16:48:10 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2019-05-01 07:18:59 +00:00
|
|
|
#include <link.h>
|
|
|
|
|
|
|
|
#ifndef RTLD_DI_LINKMAP
|
|
|
|
#define RTLD_DI_LINKMAP 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int _dlinfo(void *handle, int request, void *info);
|
|
|
|
|
2019-05-07 12:15:10 +00:00
|
|
|
void *memdlopen(const char *soname, const char *buffer, size_t size, int flags);
|
2017-03-06 05:43:24 +00:00
|
|
|
int drop_library(char *path, size_t path_size, const char *buffer, size_t size);
|
2017-04-03 16:40:20 +00:00
|
|
|
pid_t memexec(const char *buffer, size_t size, const char *const* argv, int stdior[3],
|
2017-03-07 17:36:55 +00:00
|
|
|
bool redirected_stdio, bool detach);
|
2016-08-22 22:53:26 +00:00
|
|
|
|
2019-05-01 07:18:59 +00:00
|
|
|
int remap(const char *path);
|
2019-04-23 13:53:25 +00:00
|
|
|
|
2016-08-22 22:53:26 +00:00
|
|
|
#endif /* TMPLIBRARY_H */
|