Searched refs:Shell_t (Results 1 - 25 of 57) sorted by relevance

123

/ast/src/cmd/ksh93/include/
H A Dpath.h66 Shell_t *shp;
74 extern void path_newdir(Shell_t*,Pathcomp_t*);
76 extern Pathcomp_t *path_unsetfpath(Shell_t*);
77 extern Pathcomp_t *path_addpath(Shell_t*,Pathcomp_t*,const char*,int);
81 extern Pathcomp_t *path_absolute(Shell_t*, const char*, Pathcomp_t*);
83 extern char *path_fullname(Shell_t*,const char*);
84 extern int path_expand(Shell_t*,const char*, struct argnod**);
85 extern void path_exec(Shell_t*,const char*,char*[],struct argnod*);
86 extern pid_t path_spawn(Shell_t*,const char*,char*[],char*[],Pathcomp_t*,int);
90 extern int path_open(Shell_t*,cons
[all...]
H A Dio.h68 extern int sh_iocheckfd(Shell_t*,int);
69 extern void sh_ioinit(Shell_t*);
71 extern int sh_iorenumber(Shell_t*,int,int);
74 extern void sh_iorestore(Shell_t*,int,int);
78 extern Sfio_t *sh_iostream(Shell_t*,int);
79 extern int sh_redirect(Shell_t*,struct ionod*,int);
80 extern void sh_iosave(Shell_t *, int,int,char*);
81 extern int sh_iovalidfd(Shell_t*, int);
82 extern int sh_inuse(Shell_t*, int);
83 extern void sh_iounsave(Shell_t*);
[all...]
H A Ddefs.h387 extern Shell_t *nv_shell(Namval_t*);
388 extern void sh_applyopts(Shell_t*,Shopt_t);
389 extern char **sh_argbuild(Shell_t*,int*,const struct comnod*,int);
390 extern struct dolnod *sh_argfree(Shell_t *, struct dolnod*,int);
391 extern struct dolnod *sh_argnew(Shell_t*,char*[],struct dolnod**);
392 extern void *sh_argopen(Shell_t*);
393 extern struct argnod *sh_argprocsub(Shell_t*,struct argnod*);
394 extern void sh_argreset(Shell_t*,struct dolnod*,struct dolnod*);
396 extern struct dolnod *sh_arguse(Shell_t*);
398 extern void sh_chktrap(Shell_t*);
[all...]
H A Dtest.h60 extern int test_unop(Shell_t*,int, const char*);
62 extern int test_binop(Shell_t*,int, const char*, const char*);
H A Djobs.h50 extern char *sh_pid2str(Shell_t*,pid_t);
78 Shell_t *p_shp; /* shell that posted the job */
195 extern int job_post(Shell_t*,pid_t,pid_t);
199 extern void job_chldtrap(Shell_t*, const char*,int);
202 extern void job_init(Shell_t*,int);
203 extern int job_close(Shell_t*);
H A Dshell.h50 typedef struct Shell_s Shell_t; typedef in typeref:struct:Shell_s
54 typedef void (*Shinit_f)(Shell_t*, int);
176 extern Shell_t *sh_init(int,char*[],Shinit_f);
180 extern void *sh_parse(Shell_t*, Sfio_t*,int);
201 extern Shell_t *sh_getinterp(void);
213 extern void sh_sigcheck(Shell_t*);
224 extern __IMPORT__ Shell_t sh;
226 extern Shell_t sh;
H A Dstreval.h73 Shell_t *shp;
97 Shell_t *shp;
204 extern Sfdouble_t strval(Shell_t*,const char*,char**,Sfdouble_t(*)(const char**,struct lval*,int,Sfdouble_t),int);
205 extern Arith_t *arith_compile(Shell_t *,const char*,char**,Sfdouble_t(*)(const char**,struct lval*,int,Sfdouble_t),int);
H A Dregress.h55 extern void sh_regress_init(Shell_t*);
H A Dshnodes.h212 extern void sh_freeup(Shell_t*);
214 extern Sfio_t *sh_subshell(Shell_t*,Shnode_t*, volatile int, int);
219 extern Shnode_t *sh_trestore(Shell_t*, Sfio_t*);
H A Dshlex.h37 Shell_t *sh; /* pointer to the interpreter */
162 extern Lex_t *sh_lexopen(Lex_t*, Shell_t*, int);
/ast/src/cmd/ksh93/sh/
H A Ddefs.c32 Shell_t sh = {0};
35 Shell_t *_imp__sh = &sh;
H A Dtrestore.c35 static struct dolnod *r_comlist(Shell_t*);
36 static struct argnod *r_arg(Shell_t*);
37 static struct ionod *r_redirect(Shell_t*);
38 static struct regnod *r_switch(Shell_t*);
39 static Shnode_t *r_tree(Shell_t*);
41 static void r_comarg(Shell_t*,struct comnod*);
47 Shnode_t *sh_trestore(Shell_t *shp,Sfio_t *in)
57 static Shnode_t *r_tree(Shell_t *shp)
177 static struct argnod *r_arg(Shell_t *shp)
232 static struct ionod *r_redirect(Shell_t* sh
[all...]
H A Dpath.c54 static int canexecute(Shell_t*,char*,int);
55 static void funload(Shell_t*,int,const char*);
56 static void exscript(Shell_t*,char*, char*[], char**);
57 static int path_chkpaths(Shell_t*,Pathcomp_t*,Pathcomp_t*,Pathcomp_t*,int);
58 static void path_checkdup(Shell_t *shp,register Pathcomp_t*);
77 int path_xattr(Shell_t *shp, const char *path, char *rpath)
103 static pid_t path_pfexecve(Shell_t *shp,const char *path, char *argv[],char *const envp[],int spawn)
134 static pid_t _spawnveg(Shell_t *shp,const char *path, char* const argv[], char* const envp[], pid_t pgid)
152 static pid_t path_xargs(Shell_t *shp,const char *path, char *argv[],char *const envp[], int spawn)
235 char *path_pwd(Shell_t *sh
[all...]
H A Dmacro.c68 Shell_t *shp; /* pointer to shell interpreter */
113 static void tilde_expand2(Shell_t*,int);
114 static char *sh_tilde(Shell_t*,const char*);
115 static char *special(Shell_t *,int);
124 void *sh_macopen(Shell_t *shp)
135 char *sh_mactry(Shell_t *shp,register char *string)
160 char *sh_mactrim(Shell_t *shp, char *str, register int mode)
202 int sh_macexpand(Shell_t* shp, register struct argnod *argp, struct argnod **arghead,int flag)
269 void sh_machere(Shell_t *shp,Sfio_t *infile, Sfio_t *outfile, char *string)
414 char *sh_macpat(Shell_t *sh
[all...]
H A Dinit.c125 extern void bash_init(Shell_t*,int);
150 Shell_t *sh;
156 Shell_t *sh;
183 Shell_t *sh;
221 static void env_init(Shell_t*);
222 static Init_t *nv_init(Shell_t*);
223 static Dt_t *inittree(Shell_t*,const struct shtable2*);
259 Shell_t *shp = nv_shell(np);
286 Shell_t *shp = nv_shell(np);
310 Shell_t *sh
[all...]
H A Dio.c335 Shell_t *sh;
346 static int io_prompt(Shell_t*,Sfio_t*,int);
347 static int io_heredoc(Shell_t*,register struct ionod*, const char*, int);
351 static Sfio_t *subopen(Shell_t *,Sfio_t*, off_t, long);
406 int sh_iovalidfd(Shell_t *shp, int fd)
440 int sh_inuse(Shell_t *shp, int fd)
445 void sh_ioinit(Shell_t *shp)
474 Shell_t *shp = ((struct Iodisc*)handle)->sh;
517 Sfio_t *sh_iostream(Shell_t *shp, register int fd)
593 static void io_preserve(Shell_t* sh
[all...]
H A Dargs.c86 Shell_t *sh;
95 static int arg_expand(Shell_t*,struct argnod*,struct argnod**,int);
101 void *sh_argopen(Shell_t *shp)
140 Shell_t *shp = (Shell_t*)context;
385 void sh_applyopts(Shell_t* shp,Shopt_t newflags)
481 struct dolnod *sh_argfree(Shell_t *shp, struct dolnod *blk,int flag)
546 struct dolnod *sh_argnew(Shell_t *shp,char *argi[], struct dolnod **savargfor)
560 void sh_argreset(Shell_t *shp,struct dolnod *blk, struct dolnod *afor)
575 struct dolnod *sh_arguse(Shell_t* sh
[all...]
/ast/src/lib/libast/include/
H A Dshcmd.h43 # define Shell_t void macro
61 Shell_t* shp;
81 # undef Shell_t macro
/ast/src/cmd/tksh/
H A Duinit.c28 static void tksh_userinit(Shell_t* shp, int subshell)
/ast/src/cmd/ksh93/bltins/
H A Dcflow.c49 register Shell_t *shp = context->shp;
89 register Shell_t *shp = context->shp;
H A Dalarm.c47 Shell_t *sh;
129 void sh_timetraps(Shell_t *shp)
187 Shell_t *shp = tp->sh;
238 register Shell_t *shp = context->shp;
H A Dgetopts.c38 Shell_t *shp = *(Shell_t**)(dp+1);
62 register Shell_t *shp = context->shp;
69 Shell_t *sh;
H A Dwhence.c45 static int whence(Shell_t *,char**, int);
55 register Shell_t *shp = context->shp;
98 register Shell_t *shp = context->shp;
133 static int whence(Shell_t *shp,char **argv, register int flags)
H A Dtrap.c41 static int sig_number(Shell_t*,const char*);
42 static void sig_list(Shell_t*,int);
48 register Shell_t *shp = context->shp;
171 register Shell_t *shp = context->shp;
240 static int sig_number(Shell_t *shp,const char *string)
318 static char* sig_name(Shell_t *shp,int sig, char* buf, int pfx)
360 static void sig_list(register Shell_t *shp,register int flag)
H A Dmisc.c55 Shell_t *sh;
102 register Shell_t *shp;
163 Shell_t *shp = context->shp;
185 register Shell_t *shp = context->shp;
212 register Shell_t *shp = context->shp;
347 register Shell_t *shp = context->shp;
373 register Shell_t *shp = context->shp;
399 register Shell_t *shp = context->shp;
433 register Shell_t *shp = context->shp;
516 register Shell_t *sh
[all...]

Completed in 40 milliseconds

123