Subversion Repositories HelenOS

Rev

Rev 3809 | Rev 3813 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3809 Rev 3812
Line 40... Line 40...
40
#include "scli.h"
40
#include "scli.h"
41
#include "input.h"
41
#include "input.h"
42
#include "errors.h"
42
#include "errors.h"
43
#include "exec.h"
43
#include "exec.h"
44
 
44
 
45
extern volatile unsigned int cli_interactive;
-
 
46
 
-
 
47
/* Not exposed in input.h */
-
 
48
static void cli_restricted(char *);
-
 
49
static void read_line(char *, int);
45
static void read_line(char *, int);
50
 
46
 
51
/* More than a macro than anything */
-
 
52
static void cli_restricted(char *cmd)
-
 
53
{
-
 
54
    printf("%s is not available in %s mode\n", cmd,
-
 
55
        cli_interactive ? "interactive" : "non-interactive");
-
 
56
 
-
 
57
    return;
-
 
58
}
-
 
59
 
-
 
60
/* Tokenizes input from console, sees if the first word is a built-in, if so
47
/* Tokenizes input from console, sees if the first word is a built-in, if so
61
 * invokes the built-in entry point (a[0]) passing all arguments in a[] to
48
 * invokes the built-in entry point (a[0]) passing all arguments in a[] to
62
 * the handler */
49
 * the handler */
63
int tok_input(cliuser_t *usr)
50
int tok_input(cliuser_t *usr)
64
{
51
{