rush
Revamped UNIX Shell
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Macros
shellutils.h
Go to the documentation of this file.
1
13
#ifndef SHELLUTILS_H
14
#define SHELLUTILS_H
15
16
17
#include <limits.h>
18
#include <stdbool.h>
19
20
22
#if (defined ARG_MAX && ARG_MAX <= 1048576)
23
#define MAX_CMDLINE_LEN ARG_MAX
24
#else
25
#define MAX_CMDLINE_LEN 1048576
26
#endif
27
28
30
typedef
struct
{
31
char
*inFile;
33
char
*outFile;
35
bool
background;
37
const
char
*parseError;
40
char
*cmdLine;
42
char
**argv;
44
}
ShCommand
;
45
46
53
void
shPrompt
(
void
);
54
86
ShCommand
*
shParseCmdLine
(
char
cmdLine[]);
87
88
89
#endif
/* SHELLUTILS_H */
Generated on Fri May 16 2014 15:33:51 for rush by
1.8.1.2