⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msh.c

📁 为samsung2410 ARM移植的busybox工具包
💻 C
📖 第 1 页 / 共 5 页
字号:
#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>>8)&0377)#define WAITCORE(s) (((s)&0200)!=0)/* * library and system defintions */typedef void xint;				/* base type of jmp_buf, for not broken compilers *//* * shell components */#define QUOTE   0200#define NOBLOCK ((struct op *)NULL)#define NOWORD  ((char *)NULL)#define NOWORDS ((char **)NULL)#define NOPIPE  ((int *)NULL)/* * Description of a command or an operation on commands. * Might eventually use a union. */struct op {	int type;					/* operation type, see below */	char **words;				/* arguments to a command */	struct ioword **ioact;		/* IO actions (eg, < > >>) */	struct op *left;	struct op *right;	char *str;					/* identifier for case and for */};#define TCOM    1				/* command */#define TPAREN  2				/* (c-list) */#define TPIPE   3				/* a | b */#define TLIST   4				/* a [&;] b */#define TOR     5				/* || */#define TAND    6				/* && */#define TFOR    7#define TDO     8#define TCASE   lues returned by wait */#define WAITSIG(s) ((s)&0177)#define WAITVAL(s) (((s)>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -