summaryrefslogtreecommitdiff
path: root/libexec/ld.so/ldconfig/ld.h
blob: 868d86ec2606e15ea3a9c39b1130f5eac49701d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* $OpenBSD: ld.h,v 1.7 2006/05/13 05:59:28 deraadt Exp $ */
/*
 * Header file to make code compatible with ELF version
 * ldconfig was taken from the a.out ld.
 */
#include <link.h>

extern int	n_search_dirs;
extern char	**search_dirs;

char	*xstrdup(const char *);
void	*xmalloc(size_t);
void	*xrealloc(void *, size_t);
void	*xcalloc(size_t, size_t);
char	*concat(const char *, const char *, const char *);

void	add_search_dir(char *name);
void	std_search_path(void);
void	add_search_path(char *path);
void	remove_search_dir(char *name);
int	getdewey(int dewey[], char *cp);
int	cmpndewey(int d1[], int n1, int d2[], int n2);

#define PAGSIZ	__LDPGSZ