Changeset View
Changeset View
Standalone View
Standalone View
bin/sh/options.h
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
| #define uflag optval[14] | #define uflag optval[14] | ||||
| #define privileged optval[15] | #define privileged optval[15] | ||||
| #define Tflag optval[16] | #define Tflag optval[16] | ||||
| #define Pflag optval[17] | #define Pflag optval[17] | ||||
| #define hflag optval[18] | #define hflag optval[18] | ||||
| #define nologflag optval[19] | #define nologflag optval[19] | ||||
| #define pipefailflag optval[20] | #define pipefailflag optval[20] | ||||
| #define verifyflag optval[21] | #define verifyflag optval[21] | ||||
| #define braceexpandflag optval[22] | |||||
| #define NSHORTOPTS 19 | #define NSHORTOPTS 19 | ||||
| #define NOPTS 22 | #define NOPTS 23 | ||||
| extern char optval[NOPTS]; | extern char optval[NOPTS]; | ||||
| extern const char optletter[NSHORTOPTS]; | extern const char optletter[NSHORTOPTS]; | ||||
| #ifdef DEFINE_OPTIONS | #ifdef DEFINE_OPTIONS | ||||
| char optval[NOPTS]; | char optval[NOPTS]; | ||||
| const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh"; | const char optletter[NSHORTOPTS] = "efIimnsxvVECabupTPh"; | ||||
| static const unsigned char optname[] = | static const unsigned char optname[] = | ||||
| "\007errexit" | "\007errexit" | ||||
| Show All 13 Lines | static const unsigned char optname[] = | ||||
| "\007nounset" | "\007nounset" | ||||
| "\012privileged" | "\012privileged" | ||||
| "\012trapsasync" | "\012trapsasync" | ||||
| "\010physical" | "\010physical" | ||||
| "\010trackall" | "\010trackall" | ||||
| "\005nolog" | "\005nolog" | ||||
| "\010pipefail" | "\010pipefail" | ||||
| "\006verify" | "\006verify" | ||||
| "\013braceexpand" | |||||
| ; | ; | ||||
| #endif | #endif | ||||
| extern char *minusc; /* argument to -c option */ | extern char *minusc; /* argument to -c option */ | ||||
| extern char *arg0; /* $0 */ | extern char *arg0; /* $0 */ | ||||
| extern struct shparam shellparam; /* $@ */ | extern struct shparam shellparam; /* $@ */ | ||||
| extern char **argptr; /* argument list for builtin commands */ | extern char **argptr; /* argument list for builtin commands */ | ||||
| extern char *shoptarg; /* set by nextopt */ | extern char *shoptarg; /* set by nextopt */ | ||||
| extern char *nextopt_optptr; /* used by nextopt */ | extern char *nextopt_optptr; /* used by nextopt */ | ||||
| int procargs(int, char **); | int procargs(int, char **); | ||||
| void optschanged(void); | void optschanged(void); | ||||
| void freeparam(struct shparam *); | void freeparam(struct shparam *); | ||||
| int nextopt(const char *); | int nextopt(const char *); | ||||
| void getoptsreset(const char *); | void getoptsreset(const char *); | ||||