125984Sjdp/*- 225984Sjdp * Copyright (c) 1997 John D. Polstra. 325984Sjdp * All rights reserved. 425984Sjdp * 525984Sjdp * Redistribution and use in source and binary forms, with or without 625984Sjdp * modification, are permitted provided that the following conditions 725984Sjdp * are met: 825984Sjdp * 1. Redistributions of source code must retain the above copyright 925984Sjdp * notice, this list of conditions and the following disclaimer. 1025984Sjdp * 2. Redistributions in binary form must reproduce the above copyright 1125984Sjdp * notice, this list of conditions and the following disclaimer in the 1225984Sjdp * documentation and/or other materials provided with the distribution. 1325984Sjdp * 1425984Sjdp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1525984Sjdp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1625984Sjdp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1725984Sjdp * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1825984Sjdp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1925984Sjdp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2025984Sjdp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2125984Sjdp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2225984Sjdp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2325984Sjdp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2425984Sjdp * SUCH DAMAGE. 2525984Sjdp * 2650473Speter * $FreeBSD$ 2725984Sjdp */ 2825984Sjdp 2976224Sobrien#ifndef _ELF_HINTS_H_ 3076224Sobrien#define _ELF_HINTS_H_ 3125984Sjdp 3238830Sjdp/* 3338830Sjdp * Hints file produced by ldconfig. 3438830Sjdp */ 3538830Sjdpstruct elfhints_hdr { 3638830Sjdp u_int32_t magic; /* Magic number */ 3738830Sjdp u_int32_t version; /* File version (1) */ 3838830Sjdp u_int32_t strtab; /* Offset of string table in file */ 3938830Sjdp u_int32_t strsize; /* Size of string table */ 4038830Sjdp u_int32_t dirlist; /* Offset of directory list in 4138830Sjdp string table */ 4238830Sjdp u_int32_t dirlistlen; /* strlen(dirlist) */ 4338830Sjdp u_int32_t spare[26]; /* Room for expansion */ 4438830Sjdp}; 4538830Sjdp 4638830Sjdp#define ELFHINTS_MAGIC 0x746e6845 4738830Sjdp 4838830Sjdp#define _PATH_ELF_HINTS "/var/run/ld-elf.so.hints" 4938830Sjdp 5076224Sobrien#endif /* !_ELF_HINTS_H_ */ 51