2 #include <proto/exec.h>
8 #include "../rom/exec/etask.h"
10 static LONG
get_default_stack_size()
12 struct CommandLineInterface
*cli
= Cli();
13 return cli
->cli_DefaultStack
* CLI_DEFAULTSTACK_UNIT
;
16 int main(int argc
, char **argv
)
18 struct aros_startup
* oldstartup
;
19 char *fname
= "SYS:Utilities/Clock";
23 oldstartup
= (struct aros_startup
*)GetIntETask(FindTask(NULL
))->iet_startup
;
27 BPTR seglist
= LoadSeg(fname
);
30 SetProgramName(fname
);
31 lastresult
=RunCommand(seglist
,get_default_stack_size(),
37 printf("current iet_startup: %p, old iet_startup: %p\n", (struct aros_startup
*)GetIntETask(FindTask(NULL
))->iet_startup
, oldstartup
);