Remove cpu_exec_makecmds() macro and declare it as a function. Also, wrap

everything in `#ifdef KERNEL'.
This commit is contained in:
mycroft 1993-08-19 14:34:25 +00:00
parent 5aa52f5be0
commit 4a5baa80a0
2 changed files with 12 additions and 4 deletions

View File

@ -24,12 +24,14 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: aout_machdep.h,v 1.3 1993/06/04 01:12:04 cgd Exp $
* $Id: aout_machdep.h,v 1.4 1993/08/19 14:34:25 mycroft Exp $
*/
#ifndef _HP300_EXEC_H_
#define _HP300_EXEC_H_
#ifdef KERNEL
#ifdef HPUXCOMPAT
#include "user.h" /* for pcb */
#include "hp300/hpux/hpux_exec.h"
@ -41,7 +43,7 @@
* The standard executable formats are taken care of automatically;
* machine-specific ones can be defined using this function.
*/
#define cpu_exec_makecmds(p,epp) ENOEXEC
int cpu_exec_makecmds __P((struct proc *p, struct exec_package *epp));
/*
* the following function/macro checks to see if a given machine
@ -55,4 +57,6 @@
#define cpu_exec_checkmid(mid) ((mid == MID_HP200) || (mid == MID_HP300)))
#endif
#endif /* KERNEL */
#endif /* _HP300_EXEC_H_ */

View File

@ -24,12 +24,14 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: exec.h,v 1.3 1993/06/04 01:12:04 cgd Exp $
* $Id: exec.h,v 1.4 1993/08/19 14:34:25 mycroft Exp $
*/
#ifndef _HP300_EXEC_H_
#define _HP300_EXEC_H_
#ifdef KERNEL
#ifdef HPUXCOMPAT
#include "user.h" /* for pcb */
#include "hp300/hpux/hpux_exec.h"
@ -41,7 +43,7 @@
* The standard executable formats are taken care of automatically;
* machine-specific ones can be defined using this function.
*/
#define cpu_exec_makecmds(p,epp) ENOEXEC
int cpu_exec_makecmds __P((struct proc *p, struct exec_package *epp));
/*
* the following function/macro checks to see if a given machine
@ -55,4 +57,6 @@
#define cpu_exec_checkmid(mid) ((mid == MID_HP200) || (mid == MID_HP300)))
#endif
#endif /* KERNEL */
#endif /* _HP300_EXEC_H_ */