2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include <aros/debug.h>
11 #include <proto/exec.h>
12 #include "dos_intern.h"
14 /*****************************************************************************
17 #include <proto/dos.h>
19 AROS_LH0(struct CommandLineInterface
*, Cli
,
24 struct DosLibrary
*, DOSBase
, 82, Dos
)
27 Returns a pointer to the CLI structure of the current process.
32 Pointer to CLI structure.
35 Do not use this function to test if the process was started from
36 the shell. Check pr_CLI instead.
46 *****************************************************************************/
50 /* Get pointer to process structure */
51 struct Process
*me
= (struct Process
*) FindTask(NULL
);
53 ASSERT_VALID_PROCESS(me
);
55 /* Make sure this is a process */
56 if (me
->pr_Task
.tc_Node
.ln_Type
== NT_PROCESS
)
58 /* Nothing spectacular */
59 return (struct CommandLineInterface
*) BADDR(me
->pr_CLI
);