arch/boot: disable build of aros-side grub executables for now to bring back nightly...
[AROS.git] / workbench / fs / pipe / main.c
blob2e6c4be3b7be03778224f642f80028971a4e3964
1 /*
2 * Copyright (C) 2011, The AROS Development Team. All rights reserved.
3 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
5 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
6 */
8 #include <proto/exec.h>
9 #include <proto/dos.h>
11 /* Trivial startup for AROS */
12 extern void handler(struct DosPacket *dp);
14 struct ExecBase *SysBase;
16 #ifdef __AROS__
17 #include <aros/asmcall.h>
19 __startup static AROS_PROCH(pipe_main, argstr, argsize, sysBase)
20 #else
21 #define AROS_PROCFUNC_INIT
22 #define AROS_PROCFUNC_EXIT
23 #define sysBase (*(struct ExecBase **)4L)
24 void startup(void)
25 #endif
27 AROS_PROCFUNC_INIT
29 SysBase = sysBase;
31 struct DosPacket *dp;
32 struct MsgPort *mp;
34 mp = &((struct Process *)FindTask(NULL))->pr_MsgPort;
36 WaitPort(mp);
38 dp = (struct DosPacket *)(GetMsg(mp)->mn_Node.ln_Name);
40 handler(dp);
42 return RETURN_OK;
44 AROS_PROCFUNC_EXIT