Changeset 1211 in kBuild for trunk/src/kash/shinstance.h
- Timestamp:
- Oct 7, 2007 6:39:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.h
r1210 r1211 114 114 shfdtab fdtab; /**< The file descriptor table. */ 115 115 116 /* alias.c */ 117 #define ATABSIZE 39 118 struct alias *atab[ATABSIZE]; 119 120 /* cd.c */ 121 char *curdir; /**< current working directory */ 122 char *prevdir; /**< previous working directory */ 123 char *cdcomppath; 124 int getpwd_first; /**< static in getpwd. (initialized to 1!) */ 125 116 126 /* error.h */ 117 127 struct jmploc *handler; … … 121 131 int volatile intpending; 122 132 133 /* error.c */ 134 char errmsg_buf[16]; /**< static in errmsg. (bss) */ 135 136 /* eval.h */ 137 char *commandname; /**< currently executing command */ 138 int exitstatus; /**< exit status of last command */ 139 int back_exitstatus;/**< exit status of backquoted command */ 140 struct strlist *cmdenviron; /**< environment for builtin command */ 141 int funcnest; /**< depth of function calls */ 142 int evalskip; /**< set if we are skipping commands */ 143 int skipcount; /**< number of levels to skip */ 144 int loopnest; /**< current loop nesting level */ 145 146 /* eval.c */ 147 int vforked; 148 149 /* expand.c */ 150 char *expdest; /**< output of current string */ 151 struct nodelist *argbackq; /**< list of back quote expressions */ 152 struct ifsregion ifsfirst; /**< first struct in list of ifs regions */ 153 struct ifsregion *ifslastp; /**< last struct in list */ 154 struct arglist exparg; /**< holds expanded arg list */ 155 char *expdir; /**< Used by expandmeta. */ 156 157 /* exec.h */ 158 const char *pathopt; /**< set by padvance */ 159 160 /* exec.c */ 161 struct tblentry *cmdtable[CMDTABLESIZE]; 162 int builtinloc/* = -1*/; /**< index in path of %builtin, or -1 */ 163 164 /* input.h */ 165 int plinno/* = 1 */;/**< input line number */ 166 int parsenleft; /**< number of characters left in input buffer */ 167 char *parsenextc; /**< next character in input buffer */ 168 int init_editline/* = 0 */; /**< 0 == not setup, 1 == OK, -1 == failed */ 169 170 /* input.c */ 171 int parselleft; /**< copy of parsefile->lleft */ 172 struct parsefile basepf; /**< top level input file */ 173 char basebuf[BUFSIZ];/**< buffer for top level input file */ 174 struct parsefile *parsefile/* = &basepf*/; /**< current input file */ 175 #ifndef SMALL 176 EditLine *el; /**< cookie for editline package */ 177 #endif 178 179 /* jobs.h */ 180 pid_t backgndpid/* = -1 */; /**< pid of last background process */ 181 int job_warning; /**< user was warned about stopped jobs */ 182 183 /* jobs.c */ 184 struct job *jobtab; /**< array of jobs */ 185 int njobs; /**< size of array */ 186 int jobs_invalid; /**< set in child */ 187 #if JOBS 188 int initialpgrp; /**< pgrp of shell on invocation */ 189 int curjob/* = -1*/;/**< current job */ 190 #endif 191 int ttyfd/* = -1*/; 192 int jobctl; /**< job control enabled / disabled */ 193 char *cmdnextc; 194 int cmdnleft; 195 196 /* mail.c */ 197 #define MAXMBOXES 10 198 int nmboxes; /**< number of mailboxes */ 199 time_t mailtime[MAXMBOXES]; /**< times of mailboxes */ 200 123 201 /* main.h */ 124 202 int rootpid; /**< pid of main shell. */ … … 126 204 struct shinstance *psh_rootshell; /**< The root shell pointer. (!rootshell) */ 127 205 128 /* trap.h */ 129 int pendingsigs; /**< indicates some signal received */ 130 131 /* trap.c */ 132 char gotsig[NSIG]; /**< indicates specified signal received */ 133 char *trap[NSIG+1]; /**< trap handler commands */ 134 char sigmode[NSIG]; /**< current value of signal */ 206 /* memalloc.h */ 207 char *stacknxt/* = stackbase.space*/; 208 int stacknleft/* = MINSIZE*/; 209 int sstrnleft; 210 int herefd/* = -1 */; 211 212 /* memalloc.c */ 213 struct stack_block stackbase; 214 struct stack_block *stackp/* = &stackbase*/; 215 struct stackmark *markp; 216 217 /* myhistedit.h */ 218 int displayhist; 219 #ifndef SMALL 220 History *hist; 221 EditLine *el; 222 #endif 223 224 /* output.h */ 225 struct output output; 226 struct output errout; 227 struct output memout; 228 struct output *out1; 229 struct output *out2; 230 231 /* output.c */ 232 #define OUTBUFSIZ BUFSIZ 233 #define MEM_OUT -3 /**< output to dynamically allocated memory */ 234 235 /* options.h */ 236 struct optent optlist[NOPTS]; 237 char *minusc; /**< argument to -c option */ 238 char *arg0; /**< $0 */ 239 struct shparam shellparam; /**< $@ */ 240 char **argptr; /**< argument list for builtin commands */ 241 char *optionarg; /**< set by nextopt */ 242 char *optptr; /**< used by nextopt */ 135 243 136 244 /* parse.h */ … … 153 261 int startlinno; /**< line # where last token started */ 154 262 155 /* output.h */ 156 struct output output; 157 struct output errout; 158 struct output memout; 159 struct output *out1; 160 struct output *out2; 161 /* output.c */ 162 #define OUTBUFSIZ BUFSIZ 163 #define MEM_OUT -3 /**< output to dynamically allocated memory */ 164 165 /* options.h */ 166 struct optent optlist[NOPTS]; 167 char *minusc; /**< argument to -c option */ 168 char *arg0; /**< $0 */ 169 struct shparam shellparam; /**< $@ */ 170 char **argptr; /**< argument list for builtin commands */ 171 char *optionarg; /**< set by nextopt */ 172 char *optptr; /**< used by nextopt */ 263 /* redir.c */ 264 struct redirtab *redirlist; 265 int fd0_redirected/* = 0*/; 266 267 /* trap.h */ 268 int pendingsigs; /**< indicates some signal received */ 269 270 /* trap.c */ 271 char gotsig[NSIG]; /**< indicates specified signal received */ 272 char *trap[NSIG+1]; /**< trap handler commands */ 273 char sigmode[NSIG]; /**< current value of signal */ 173 274 174 275 /* var.h */ … … 202 303 struct var *vartab[VTABSIZE]; 203 304 204 /* myhistedit.h */205 int displayhist;206 #ifndef SMALL207 History *hist;208 EditLine *el;209 #endif210 211 /* memalloc.h */212 char *stacknxt/* = stackbase.space*/;213 int stacknleft/* = MINSIZE*/;214 int sstrnleft;215 int herefd/* = -1 */;216 217 /* memalloc.c */218 struct stack_block stackbase;219 struct stack_block *stackp/* = &stackbase*/;220 struct stackmark *markp;221 222 /* jobs.h */223 pid_t backgndpid/* = -1 */; /**< pid of last background process */224 int job_warning; /**< user was warned about stopped jobs */225 226 /* jobs.c */227 struct job *jobtab; /**< array of jobs */228 int njobs; /**< size of array */229 int jobs_invalid; /**< set in child */230 #if JOBS231 int initialpgrp; /**< pgrp of shell on invocation */232 int curjob/* = -1*/;/**< current job */233 #endif234 int ttyfd/* = -1*/;235 int jobctl; /**< job control enabled / disabled */236 char *cmdnextc;237 int cmdnleft;238 239 /* input.h */240 int plinno/* = 1 */;/**< input line number */241 int parsenleft; /**< number of characters left in input buffer */242 char *parsenextc; /**< next character in input buffer */243 int init_editline/* = 0 */; /**< 0 == not setup, 1 == OK, -1 == failed */244 245 /* input.c */246 int parselleft; /**< copy of parsefile->lleft */247 struct parsefile basepf; /**< top level input file */248 char basebuf[BUFSIZ];/**< buffer for top level input file */249 struct parsefile *parsefile/* = &basepf*/; /**< current input file */250 #ifndef SMALL251 EditLine *el; /**< cookie for editline package */252 #endif253 254 255 /* exec.h */256 const char *pathopt; /**< set by padvance */257 258 /* exec.c */259 struct tblentry *cmdtable[CMDTABLESIZE];260 int builtinloc/* = -1*/; /**< index in path of %builtin, or -1 */261 262 263 /* eval.h */264 char *commandname; /**< currently executing command */265 int exitstatus; /**< exit status of last command */266 int back_exitstatus;/**< exit status of backquoted command */267 struct strlist *cmdenviron; /**< environment for builtin command */268 int funcnest; /**< depth of function calls */269 int evalskip; /**< set if we are skipping commands */270 int skipcount; /**< number of levels to skip */271 int loopnest; /**< current loop nesting level */272 273 305 /* builtins.h */ 274 275 /* alias.c */276 #define ATABSIZE 39277 struct alias *atab[ATABSIZE];278 279 /* cd.c */280 char *curdir; /**< current working directory */281 char *prevdir; /**< previous working directory */282 char *cdcomppath;283 int getpwd_first; /**< static in getpwd. (initialized to 1!) */284 285 /* error.c */286 char errmsg_buf[16]; /**< static in errmsg. (bss) */287 288 /* eval.c */289 int vforked;290 291 /* expand.c */292 char *expdest; /**< output of current string */293 struct nodelist *argbackq; /**< list of back quote expressions */294 struct ifsregion ifsfirst; /**< first struct in list of ifs regions */295 struct ifsregion *ifslastp; /**< last struct in list */296 struct arglist exparg; /**< holds expanded arg list */297 char *expdir; /**< Used by expandmeta. */298 299 /* mail.c */300 #define MAXMBOXES 10301 int nmboxes; /**< number of mailboxes */302 time_t mailtime[MAXMBOXES]; /**< times of mailboxes */303 306 304 307 /* bltin/test.c */
Note:
See TracChangeset
for help on using the changeset viewer.