Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/contrib/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*,const char*,Pathcomp_t*);
[all …]
H A Ddefs.h392 extern Shell_t *nv_shell(Namval_t*);
393 extern void sh_applyopts(Shell_t*,Shopt_t);
394 extern char **sh_argbuild(Shell_t*,int*,const struct comnod*,int);
395 extern struct dolnod *sh_argfree(Shell_t *, struct dolnod*,int);
396 extern struct dolnod *sh_argnew(Shell_t*,char*[],struct dolnod**);
397 extern void *sh_argopen(Shell_t*);
398 extern struct argnod *sh_argprocsub(Shell_t*,struct argnod*);
399 extern void sh_argreset(Shell_t*,struct dolnod*,struct dolnod*);
401 extern struct dolnod *sh_arguse(Shell_t*);
403 extern void sh_chktrap(Shell_t*);
[all …]
H A Dio.h71 extern int sh_iocheckfd(Shell_t*,int);
72 extern void sh_ioinit(Shell_t*);
74 extern int sh_iorenumber(Shell_t*,int,int);
77 extern void sh_iorestore(Shell_t*,int,int);
81 extern Sfio_t *sh_iostream(Shell_t*,int);
82 extern int sh_redirect(Shell_t*,struct ionod*,int);
83 extern void sh_iosave(Shell_t *, int,int,char*);
84 extern int sh_get_unused_fd(Shell_t* shp, int min_fd);
85 extern int sh_iovalidfd(Shell_t*, int);
86 extern int sh_inuse(Shell_t*, int);
[all …]
H A Dshell.h50 typedef struct Shell_s Shell_t; typedef
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 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 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,Sf…
205 extern Arith_t *arith_compile(Shell_t *,const char*,char**,Sfdouble_t(*)(const char**,struct lval*,…
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 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);
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/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) in sh_trestore()
57 static Shnode_t *r_tree(Shell_t *shp) in r_tree()
177 static struct argnod *r_arg(Shell_t *shp) in r_arg()
232 static struct ionod *r_redirect(Shell_t* shp) in r_redirect()
[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) in sh_iovalidfd()
440 int sh_inuse(Shell_t *shp, int fd) in sh_inuse()
445 void sh_ioinit(Shell_t *shp) in sh_ioinit()
474 Shell_t *shp = ((struct Iodisc*)handle)->sh; in outexcept()
517 Sfio_t *sh_iostream(Shell_t *shp, register int fd) in sh_iostream()
593 static void io_preserve(Shell_t* shp, register Sfio_t *sp, register int f2) in io_preserve()
[all …]
H A Dpath.c57 static int canexecute(Shell_t*,char*,int);
58 static void funload(Shell_t*,int,const char*);
59 static void exscript(Shell_t*,char*, char*[], char**);
60 static int path_chkpaths(Shell_t*,Pathcomp_t*,Pathcomp_t*,Pathcomp_t*,int);
61 static void path_checkdup(Shell_t *shp,register Pathcomp_t*);
80 int path_xattr(Shell_t *shp, const char *path, char *rpath) in path_xattr()
106 static pid_t path_pfexecve(Shell_t *shp,const char *path, char *argv[],char *const envp[],int spawn) in path_pfexecve()
137 static pid_t _spawnveg(Shell_t *shp,const char *path, char* const argv[], char* const envp[], pid_t… in _spawnveg()
155 static pid_t path_xargs(Shell_t *shp,const char *path, char *argv[],char *const envp[], int spawn) in path_xargs()
238 char *path_pwd(Shell_t *shp,int flag) in path_pwd()
[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); in put_ed()
286 Shell_t *shp = nv_shell(np); in put_history()
313 Shell_t *shp = nv_shell(np); in put_optindex()
[all …]
H A Dargs.c89 Shell_t *sh;
98 static int arg_expand(Shell_t*,struct argnod*,struct argnod**,int);
104 void *sh_argopen(Shell_t *shp) in sh_argopen()
143 Shell_t *shp = (Shell_t*)context; in sh_argopts()
394 void sh_applyopts(Shell_t* shp,Shopt_t newflags) in sh_applyopts()
490 struct dolnod *sh_argfree(Shell_t *shp, struct dolnod *blk,int flag) in sh_argfree()
555 struct dolnod *sh_argnew(Shell_t *shp,char *argi[], struct dolnod **savargfor) in sh_argnew()
569 void sh_argreset(Shell_t *shp,struct dolnod *blk, struct dolnod *afor) in sh_argreset()
584 struct dolnod *sh_arguse(Shell_t* shp) in sh_arguse()
708 char **sh_argbuild(Shell_t *shp,int *nargs, const struct comnod *comptr,int flag) in sh_argbuild()
[all …]
H A Ddefs.c32 Shell_t sh = {0};
35 Shell_t *_imp__sh = &sh;
H A Dfault.c65 register Shell_t *shp = sh_getinterp(); in sh_fault()
227 Shell_t *shp = (Shell_t*)ptr; in sh_siginit()
387 void sh_chktrap(Shell_t* shp) in sh_chktrap()
448 Shell_t *shp = sh_getinterp(); in sh_trap()
512 Shell_t *shp = sh_getinterp(); in sh_exit()
605 Shell_t *shp = (Shell_t*)ptr; in sh_done()
H A Dexpand.c80 Shell_t *shp = sh_getinterp(); in nextdir()
93 int path_expand(Shell_t *shp,const char *pattern, struct argnod **arghead) in path_expand()
249 int path_complete(Shell_t *shp,const char *name,register const char *suffix, struct argnod **arghea… in path_complete()
265 int path_generate(Shell_t *shp,struct argnod *todo, struct argnod **arghead) in path_generate()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dmisc.c55 Shell_t *sh;
102 register Shell_t *shp; in B_login()
163 Shell_t *shp = context->shp; in b_let()
185 register Shell_t *shp = context->shp; in b_eval()
212 register Shell_t *shp = context->shp; in b_dot_cmd()
347 register Shell_t *shp = context->shp; in b_shift()
373 register Shell_t *shp = context->shp; in b_wait()
399 register Shell_t *shp = context->shp; in b_bg()
433 register Shell_t *shp = context->shp; in b_jobs()
516 register Shell_t *shp = context->shp; in b_vpath()
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; in b_trap()
189 register Shell_t *shp = context->shp; in b_kill()
259 static int sig_number(Shell_t *shp,const char *string) in sig_number()
337 static char* sig_name(Shell_t *shp,int sig, char* buf, int pfx) in sig_name()
379 static void sig_list(register Shell_t *shp,register int flag) in sig_list()
H A Dgetopts.c38 Shell_t *shp = *(Shell_t**)(dp+1); in infof()
62 register Shell_t *shp = context->shp; in b_getopts()
69 Shell_t *sh; in b_getopts()
H A Dwhence.c45 static int whence(Shell_t *,char**, int);
55 register Shell_t *shp = context->shp; in b_command()
98 register Shell_t *shp = context->shp; in b_whence()
133 static int whence(Shell_t *shp,char **argv, register int flags) in whence()
H A Dsleep.c49 register Shell_t *shp = context->shp; in b_sleep()
138 Shell_t *shp = sh_getinterp(); in sleep()
173 Shell_t *shp = sh_getinterp(); in sh_delay()
H A Dalarm.c47 Shell_t *sh;
129 void sh_timetraps(Shell_t *shp) in sh_timetraps()
187 Shell_t *shp = tp->sh; in putval()
238 register Shell_t *shp = context->shp; in b_alarm()
H A Dcflow.c49 register Shell_t *shp = context->shp; in b_return()
89 register Shell_t *shp = context->shp; in b_break()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dshcmd.h43 # define Shell_t void macro
61 Shell_t* shp;
81 # undef Shell_t

123