xref: /netbsd-src/sys/compat/sunos32/sunos32_exec.h (revision 92ce8c6a3d0d42503168f436841d4d67ff639367)
1*92ce8c6aSad /*	$NetBSD: sunos32_exec.h,v 1.10 2008/11/19 18:36:05 ad Exp $	*/
23fbaadb8Smrg 
33fbaadb8Smrg /*
43fbaadb8Smrg  * Copyright (c) 2001 Matthew R. Green
53fbaadb8Smrg  * All rights reserved.
63fbaadb8Smrg  *
73fbaadb8Smrg  * Redistribution and use in source and binary forms, with or without
83fbaadb8Smrg  * modification, are permitted provided that the following conditions
93fbaadb8Smrg  * are met:
103fbaadb8Smrg  * 1. Redistributions of source code must retain the above copyright
113fbaadb8Smrg  *    notice, this list of conditions and the following disclaimer.
123fbaadb8Smrg  * 2. Redistributions in binary form must reproduce the above copyright
133fbaadb8Smrg  *    notice, this list of conditions and the following disclaimer in the
143fbaadb8Smrg  *    documentation and/or other materials provided with the distribution.
153fbaadb8Smrg  *
163fbaadb8Smrg  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
173fbaadb8Smrg  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
183fbaadb8Smrg  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
193fbaadb8Smrg  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
203fbaadb8Smrg  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
213fbaadb8Smrg  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
223fbaadb8Smrg  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
233fbaadb8Smrg  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
243fbaadb8Smrg  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
253fbaadb8Smrg  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
263fbaadb8Smrg  * SUCH DAMAGE.
273fbaadb8Smrg  */
283fbaadb8Smrg 
293fbaadb8Smrg #ifndef	_SUNOS32_EXEC_H_
303fbaadb8Smrg #define	_SUNOS32_EXEC_H_
313fbaadb8Smrg 
32477f3d11Smrg #define SUNOS32_AOUT_HDR_SIZE (sizeof(struct netbsd32_exec))
333fbaadb8Smrg 
34*92ce8c6aSad extern struct emul emul_sunos;
353fbaadb8Smrg 
36f2af9174Sdsl int exec_sunos32_aout_makecmds(struct lwp *, struct exec_package *);
37f2af9174Sdsl void sunos32_setregs(struct lwp *l, struct exec_package *pack,
38f2af9174Sdsl 	u_long stack);
393fbaadb8Smrg 
403fbaadb8Smrg #endif /* _SUNOS32_EXEC_H_ */
41