1140072Strhodes/*-
2140072Strhodes * Copyright (C) 1996
3140072Strhodes *	Peter Wemm.  All rights reserved.
4140072Strhodes *
5140072Strhodes * Redistribution and use in source and binary forms, with or without
6140072Strhodes * modification, are permitted provided that the following conditions
7140072Strhodes * are met:
8140072Strhodes * 1. Redistributions of source code must retain the above copyright
9140072Strhodes *    notice, this list of conditions and the following disclaimer.
10140072Strhodes * 2. Redistributions in binary form must reproduce the above copyright
11140072Strhodes *    notice, this list of conditions and the following disclaimer in the
12140072Strhodes *    documentation and/or other materials provided with the distribution.
13140072Strhodes *
14140072Strhodes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15140072Strhodes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16140072Strhodes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17140072Strhodes * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18140072Strhodes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19140072Strhodes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20140072Strhodes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21140072Strhodes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22140072Strhodes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23140072Strhodes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24140072Strhodes * SUCH DAMAGE.
25140072Strhodes *-
26140072Strhodes * $FreeBSD$
27140072Strhodes */
28140072Strhodes
29140072Strhodes/*
30140072Strhodes * prototypes for shlib.c.  Big deal.
31140072Strhodes */
32140072Strhodes
33140072Strhodesextern char	**search_dirs;
34140072Strhodesextern int	n_search_dirs;
35140072Strhodes
36140241Sdelphijvoid	add_search_dir __P((const char *));
37140072Strhodesvoid	add_search_path __P((char *));
38140072Strhodesvoid	std_search_path __P((void));
39140072Strhodesint	getdewey __P((int[], char *));
40140072Strhodesint	cmpndewey __P((int[], int, int[], int));
41140072Strhodeschar	*findshlib __P((char *, int *, int *, int));
42140072Strhodeschar	*find_lib_file __P((const char *));
43140072Strhodeschar	*search_lib_dir __P((char *, char *, int *, int *, int));
44