X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=jail%2Felf.h;h=78fedcd3323010ab90cea934a0bed530a0185d87;hp=19ceb3e08ac3e12750409228035763ac29c23de8;hb=0cf8b0576a66ca28aeec98e19dc9c1cbf4324894;hpb=303eaecc18ca1d26af9d9105631000c8bdef11a0 diff --git a/jail/elf.h b/jail/elf.h index 19ceb3e..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); -char* find_lib(char *file); -int elf_load_deps(char *library); -void load_ldso_conf(const char *conf); +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 init_library_search(void); +int lib_open(char **fullpath, const char *file); #endif