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
8 #include <proto/exec.h>
11 /* Trivial startup for AROS */
12 extern void handler(struct DosPacket
*dp
);
14 struct ExecBase
*SysBase
;
17 #include <aros/asmcall.h>
19 __startup
static AROS_PROCH(pipe_main
, argstr
, argsize
, sysBase
)
21 #define AROS_PROCFUNC_INIT
22 #define AROS_PROCFUNC_EXIT
23 #define sysBase (*(struct ExecBase **)4L)
34 mp
= &((struct Process
*)FindTask(NULL
))->pr_MsgPort
;
38 dp
= (struct DosPacket
*)(GetMsg(mp
)->mn_Node
.ln_Name
);