1 /* $OpenBSD: ld.h,v 1.7 2006/05/13 05:59:28 deraadt Exp $ */ 2 /* 3 * Header file to make code compatible with ELF version 4 * ldconfig was taken from the a.out ld. 5 */ 6 #include <link.h> 7 8 extern int n_search_dirs; 9 extern char **search_dirs; 10 11 char *xstrdup(const char *); 12 void *xmalloc(size_t); 13 void *xrealloc(void *, size_t); 14 void *xcalloc(size_t, size_t); 15 char *concat(const char *, const char *, const char *); 16 17 void add_search_dir(char *name); 18 void std_search_path(void); 19 void add_search_path(char *path); 20 void remove_search_dir(char *name); 21 int getdewey(int dewey[], char *cp); 22 int cmpndewey(int d1[], int n1, int d2[], int n2); 23 24 #define PAGSIZ __LDPGSZ 25