112SN/A/* 212SN/A * Taken from NetBSD sys/exec_aout.h 312SN/A */ 412SN/A 512SN/A/* $NetBSD: exec_aout.h,v 1.29 2002/12/10 17:14:31 thorpej Exp $ */ 612SN/A 712SN/A/* 812SN/A * Copyright (c) 1993, 1994 Christopher G. Demetriou 912SN/A * All rights reserved. 1012SN/A * 1112SN/A * Redistribution and use in source and binary forms, with or without 1212SN/A * modification, are permitted provided that the following conditions 1312SN/A * are met: 1412SN/A * 1. Redistributions of source code must retain the above copyright 1512SN/A * notice, this list of conditions and the following disclaimer. 1612SN/A * 2. Redistributions in binary form must reproduce the above copyright 1712SN/A * notice, this list of conditions and the following disclaimer in the 1812SN/A * documentation and/or other materials provided with the distribution. 1912SN/A * 3. All advertising materials mentioning features or use of this software 2012SN/A * must display the following acknowledgement: 2112SN/A * This product includes software developed by Christopher G. Demetriou. 2212SN/A * 4. The name of the author may not be used to endorse or promote products 2312SN/A * derived from this software without specific prior written permission 2412SN/A * 2512SN/A * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2612SN/A * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2712SN/A * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2812SN/A * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2912SN/A * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 3012SN/A * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 3112SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 3212SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3312SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 3412SN/A * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3512SN/A */ 3612SN/A 3712SN/A#ifndef _SYS_EXEC_AOUT_H_ 3812SN/A#define _SYS_EXEC_AOUT_H_ 3912SN/A 4012SN/A#ifndef N_PAGSIZ 4112SN/A#define N_PAGSIZ(ex) (AOUT_LDPGSZ) 4212SN/A#endif 4312SN/A 4412SN/A/* a_magic */ 4512SN/A#define OMAGIC 0407 /* old impure format */ 4612SN/A#define NMAGIC 0410 /* read-only text */ 4712SN/A#define ZMAGIC 0413 /* demand load format */ 4812SN/A 4912SN/A#define N_ALIGN(ex,x) \ 5012SN/A (N_GETMAGIC(ex) == ZMAGIC ? \ 5112SN/A ((x) + AOUT_LDPGSZ - 1) & ~(AOUT_LDPGSZ - 1) : (x)) 5212SN/A 5312SN/A/* Valid magic number check. */ 5412SN/A#define N_BADMAG(ex) \ 5512SN/A (N_GETMAGIC(ex) != NMAGIC && N_GETMAGIC(ex) != OMAGIC && \ 5612SN/A N_GETMAGIC(ex) != ZMAGIC) 5712SN/A 582244SN/A//Only alpha will be able to load aout for now 592244SN/A#include "arch/alpha/aout_machdep.h" 6012SN/A 6112SN/A#endif /* !_SYS_EXEC_AOUT_H_ */ 62