xref: /netbsd-src/sys/compat/freebsd/freebsd_exec.h (revision 02de58a76a0b3bef5b4a1ef57e7efacc362ffea4)
1*02de58a7Smaxv /*	$NetBSD: freebsd_exec.h,v 1.18 2017/07/29 10:39:48 maxv Exp $	*/
23c479005Sperry 
363bb46e7Smycroft /*-
463bb46e7Smycroft  * Copyright (c) 1992, 1993
563bb46e7Smycroft  *	The Regents of the University of California.  All rights reserved.
663bb46e7Smycroft  *
763bb46e7Smycroft  * Redistribution and use in source and binary forms, with or without
863bb46e7Smycroft  * modification, are permitted provided that the following conditions
963bb46e7Smycroft  * are met:
1063bb46e7Smycroft  * 1. Redistributions of source code must retain the above copyright
1163bb46e7Smycroft  *    notice, this list of conditions and the following disclaimer.
1263bb46e7Smycroft  * 2. Redistributions in binary form must reproduce the above copyright
1363bb46e7Smycroft  *    notice, this list of conditions and the following disclaimer in the
1463bb46e7Smycroft  *    documentation and/or other materials provided with the distribution.
15aad01611Sagc  * 3. Neither the name of the University nor the names of its contributors
1663bb46e7Smycroft  *    may be used to endorse or promote products derived from this software
1763bb46e7Smycroft  *    without specific prior written permission.
1863bb46e7Smycroft  *
1963bb46e7Smycroft  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2063bb46e7Smycroft  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2163bb46e7Smycroft  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2263bb46e7Smycroft  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2363bb46e7Smycroft  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2463bb46e7Smycroft  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2563bb46e7Smycroft  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2663bb46e7Smycroft  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2763bb46e7Smycroft  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2863bb46e7Smycroft  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2963bb46e7Smycroft  * SUCH DAMAGE.
3063bb46e7Smycroft  *
3163bb46e7Smycroft  *	from: @(#)exec.h	8.1 (Berkeley) 6/11/93
3263bb46e7Smycroft  */
3363bb46e7Smycroft 
3463bb46e7Smycroft #ifndef	_FREEBSD_EXEC_H
3563bb46e7Smycroft #define	_FREEBSD_EXEC_H
3663bb46e7Smycroft 
3790fd1df2Schristos #ifdef EXEC_ELF32
3890fd1df2Schristos #define FREEBSD_ELF_BRAND_STRING "FreeBSD"
3990fd1df2Schristos #define FREEBSD_ELF_INTERP_PREFIX_STRING "/usr/libexec/ld-elf.so"
4090fd1df2Schristos 
41f2af9174Sdsl int freebsd_elf32_probe(struct lwp *, struct exec_package *, void *,
42f2af9174Sdsl     char *, vaddr_t *);
4390fd1df2Schristos #endif /* EXEC_ELF32 */
4490fd1df2Schristos 
456a9e4e8eSmatt void freebsd_setregs(struct lwp *, struct exec_package *, vaddr_t);
4690fd1df2Schristos 
4763bb46e7Smycroft extern char freebsd_sigcode[], freebsd_esigcode[];
4892ce8c6aSad extern struct emul emul_freebsd;
4963bb46e7Smycroft 
5063bb46e7Smycroft #endif /* !_FREEBSD_EXEC_H */
51