X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=jail%2Felf.h;h=78fedcd3323010ab90cea934a0bed530a0185d87;hp=ddbe234a08787af6c0735f6d97639953991f2b06;hb=a627ef40cd267c907cd9aeafe0dc863111bab9fd;hpb=517d1f0e1479928c5fc5076ef70c340127f291da diff --git a/jail/elf.h b/jail/elf.h index ddbe234..78fedcd 100644 --- a/jail/elf.h +++ b/jail/elf.h @@ -10,13 +10,12 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#ifndef _JAIL_ELF_H_ +#define _JAIL_ELF_H_ -#ifndef _ELF_H__ #include #include -#include "log.h" - struct library { struct avl_node avl; char *name; @@ -30,9 +29,10 @@ struct library_path { extern struct avl_tree libraries; -void alloc_library_path(const char *path); -int elf_load_deps(const char *library); +void alloc_library(const char *path, const char *name); +int elf_load_deps(const char *path, const char *map); const char* find_lib(const char *file); -void load_ldso_conf(const char *conf); +void init_library_search(void); +int lib_open(char **fullpath, const char *file); #endif