1191271Srwatson/*- 2191271Srwatson * Copyright (C) 1996 3191271Srwatson * Peter Wemm. All rights reserved. 4191271Srwatson * 5191271Srwatson * Redistribution and use in source and binary forms, with or without 6191271Srwatson * modification, are permitted provided that the following conditions 7191271Srwatson * are met: 8191271Srwatson * 1. Redistributions of source code must retain the above copyright 9191271Srwatson * notice, this list of conditions and the following disclaimer. 10191271Srwatson * 2. Redistributions in binary form must reproduce the above copyright 11191271Srwatson * notice, this list of conditions and the following disclaimer in the 12191271Srwatson * documentation and/or other materials provided with the distribution. 13191271Srwatson * 14191271Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15191271Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16191271Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17191271Srwatson * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18191271Srwatson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19191271Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20191271Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21191271Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22191271Srwatson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23191271Srwatson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24191271Srwatson * SUCH DAMAGE. 25191271Srwatson *- 26191271Srwatson * $FreeBSD: releng/11.0/libexec/rtld-aout/shlib.h 140241 2005-01-14 12:22:57Z delphij $ 27191271Srwatson */ 28191271Srwatson 29191271Srwatson/* 30191271Srwatson * prototypes for shlib.c. Big deal. 31191271Srwatson */ 32191271Srwatson 33191271Srwatsonextern char **search_dirs; 34191271Srwatsonextern int n_search_dirs; 35191271Srwatson 36191271Srwatsonvoid add_search_dir __P((const char *)); 37191271Srwatsonvoid add_search_path __P((char *)); 38191271Srwatsonvoid std_search_path __P((void)); 39191271Srwatsonint getdewey __P((int[], char *)); 40191271Srwatsonint cmpndewey __P((int[], int, int[], int)); 41191271Srwatsonchar *findshlib __P((char *, int *, int *, int)); 42191271Srwatsonchar *find_lib_file __P((const char *)); 43191271Srwatsonchar *search_lib_dir __P((char *, char *, int *, int *, int)); 44191271Srwatson