Home
last modified time | relevance | path

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

123

/titanic_44/usr/src/lib/libshell/common/include/
H A Ddefs.h355 extern Shell_t *nv_shell(Namval_t*);
357 extern void sh_applyopts(Shell_t*,Shopt_t);
358 extern char **sh_argbuild(Shell_t*,int*,const struct comnod*,int);
359 extern struct dolnod *sh_argfree(Shell_t *, struct dolnod*,int);
360 extern struct dolnod *sh_argnew(Shell_t*,char*[],struct dolnod**);
361 extern void *sh_argopen(Shell_t*);
362 extern struct argnod *sh_argprocsub(Shell_t*,struct argnod*);
363 extern void sh_argreset(Shell_t*,struct dolnod*,struct dolnod*);
365 extern struct dolnod *sh_arguse(Shell_t*);
367 extern int sh_debug(Shell_t *shp,const char*,const char*,const char*,char *const[],int);
[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);
73 extern void sh_iorestore(Shell_t*,int,int);
77 extern Sfio_t *sh_iostream(Shell_t*,int);
78 extern int sh_redirect(Shell_t*,struct ionod*,int);
79 extern void sh_iosave(Shell_t *, int,int,char*);
80 extern void sh_iounsave(Shell_t*);
84 extern int sh_source(Shell_t*, Sfio_t*, const char*);
H A Dshell.h50 typedef struct Shell_s Shell_t; typedef
52 typedef void (*Shinit_f)(Shell_t*, int);
170 extern Shell_t *sh_init(int,char*[],Shinit_f);
174 extern void *sh_parse(Shell_t*, Sfio_t*,int);
193 extern Shell_t *sh_getinterp(void);
220 extern __IMPORT__ Shell_t sh;
222 extern Shell_t sh;
H A Djobs.h168 extern void job_chldtrap(Shell_t*, const char*,int);
171 extern void job_init(Shell_t*,int);
172 extern int job_close(Shell_t*);
/titanic_44/usr/src/lib/libshell/common/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()
228 static struct ionod *r_redirect(Shell_t* shp) in r_redirect()
[all …]
H A Ddefs.c32 Shell_t sh = {0};
34 Shell_t *_imp__sh = &sh;
H A Dinit.c85 extern void bash_init(Shell_t*,int);
110 Shell_t *sh;
138 Shell_t *sh;
170 static void env_init(Shell_t*);
171 static Init_t *nv_init(Shell_t*);
172 static Dt_t *inittree(Shell_t*,const struct shtable2*);
208 Shell_t *shp = nv_shell(np); in put_ed()
235 Shell_t *shp = nv_shell(np); in put_history()
259 Shell_t *shp = nv_shell(np); in put_optindex()
284 Shell_t *shp = nv_shell(np); in put_restricted()
[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) in sh_argopen()
140 Shell_t *shp = (Shell_t*)context; in sh_argopts()
385 void sh_applyopts(Shell_t* shp,Shopt_t newflags) in sh_applyopts()
481 struct dolnod *sh_argfree(Shell_t *shp, struct dolnod *blk,int flag) in sh_argfree()
546 struct dolnod *sh_argnew(Shell_t *shp,char *argi[], struct dolnod **savargfor) in sh_argnew()
560 void sh_argreset(Shell_t *shp,struct dolnod *blk, struct dolnod *afor) in sh_argreset()
575 struct dolnod *sh_arguse(Shell_t* shp) in sh_arguse()
699 char **sh_argbuild(Shell_t *shp,int *nargs, const struct comnod *comptr,int flag) in sh_argbuild()
[all …]
H A Dio.c328 static int io_heredoc(Shell_t*,register struct ionod*, const char*, int);
332 static Sfio_t *subopen(Shell_t *,Sfio_t*, off_t, long);
385 void sh_ioinit(Shell_t *shp) in sh_ioinit()
468 Sfio_t *sh_iostream(Shell_t *shp, register int fd) in sh_iostream()
540 static void io_preserve(Shell_t* shp, register Sfio_t *sp, register int f2) in io_preserve()
578 int sh_iorenumber(Shell_t *shp, register int f1,register int f2) in sh_iorenumber()
647 Shell_t* sh = (Shell_t*)handle; in onintr()
667 Shell_t *shp = &sh; in sh_open()
836 static int io_patseek(Shell_t *shp, regex_t *rp, Sfio_t* sp, int flags) in io_patseek()
873 static Sfoff_t file_offset(Shell_t *shp, int fn, char *fname) in file_offset()
[all …]
H A Dmain.c55 static void exfile(Shell_t*, Sfio_t*,int);
56 static void chkmail(Shell_t *shp, char*);
88 Shell_t *shp = (Shell_t*)context; in fts_sigcheck()
111 int sh_source(Shell_t *shp, Sfio_t *iop, const char *file) in sh_source()
143 register Shell_t *shp; in sh_main()
383 static void exfile(register Shell_t *shp, register Sfio_t *iop,register int fno) in exfile()
631 static void chkmail(Shell_t *shp, char *files) in chkmail()
H A Dfault.c63 register Shell_t *shp = sh_getinterp(); in sh_fault()
216 Shell_t *shp = (Shell_t*)ptr; in sh_siginit()
437 Shell_t *shp = sh_getinterp(); in sh_trap()
501 Shell_t *shp = &sh; in sh_exit()
589 Shell_t *shp = (Shell_t*)ptr; in sh_done()
/titanic_44/usr/src/lib/libshell/amd64/include/ast/
H A Dshell.h59 typedef struct Shell_s Shell_t; typedef
61 typedef void (*Shinit_f) __PROTO__((Shell_t*, int));
180 extern __MANGLE__ Shell_t *sh_init __PROTO__((int,char*[],Shinit_f));
184 extern __MANGLE__ __V_ *sh_parse __PROTO__((Shell_t*, Sfio_t*,int));
203 extern __MANGLE__ Shell_t *sh_getinterp __PROTO__((void));
230 extern __MANGLE__ __IMPORT__ Shell_t sh;
232 extern __MANGLE__ Shell_t sh;
/titanic_44/usr/src/lib/libshell/i386/include/ast/
H A Dshell.h59 typedef struct Shell_s Shell_t; typedef
61 typedef void (*Shinit_f) __PROTO__((Shell_t*, int));
180 extern __MANGLE__ Shell_t *sh_init __PROTO__((int,char*[],Shinit_f));
184 extern __MANGLE__ __V_ *sh_parse __PROTO__((Shell_t*, Sfio_t*,int));
203 extern __MANGLE__ Shell_t *sh_getinterp __PROTO__((void));
230 extern __MANGLE__ __IMPORT__ Shell_t sh;
232 extern __MANGLE__ Shell_t sh;
/titanic_44/usr/src/lib/libshell/sparc/include/ast/
H A Dshell.h59 typedef struct Shell_s Shell_t; typedef
61 typedef void (*Shinit_f) __PROTO__((Shell_t*, int));
180 extern __MANGLE__ Shell_t *sh_init __PROTO__((int,char*[],Shinit_f));
184 extern __MANGLE__ __V_ *sh_parse __PROTO__((Shell_t*, Sfio_t*,int));
203 extern __MANGLE__ Shell_t *sh_getinterp __PROTO__((void));
230 extern __MANGLE__ __IMPORT__ Shell_t sh;
232 extern __MANGLE__ Shell_t sh;
/titanic_44/usr/src/lib/libshell/sparcv9/include/ast/
H A Dshell.h59 typedef struct Shell_s Shell_t; typedef
61 typedef void (*Shinit_f) __PROTO__((Shell_t*, int));
180 extern __MANGLE__ Shell_t *sh_init __PROTO__((int,char*[],Shinit_f));
184 extern __MANGLE__ __V_ *sh_parse __PROTO__((Shell_t*, Sfio_t*,int));
203 extern __MANGLE__ Shell_t *sh_getinterp __PROTO__((void));
230 extern __MANGLE__ __IMPORT__ Shell_t sh;
232 extern __MANGLE__ Shell_t sh;
/titanic_44/usr/src/lib/libast/common/include/
H A Dshcmd.h32 # define Shell_t void macro
46 Shell_t *shp;
66 # undef Shell_t
/titanic_44/usr/src/lib/libast/amd64/include/ast/
H A Dshcmd.h41 # define Shell_t void macro
55 Shell_t *shp;
75 # undef Shell_t
/titanic_44/usr/src/lib/libast/i386/include/ast/
H A Dshcmd.h41 # define Shell_t void macro
55 Shell_t *shp;
75 # undef Shell_t
/titanic_44/usr/src/lib/libast/sparcv9/include/ast/
H A Dshcmd.h41 # define Shell_t void macro
55 Shell_t *shp;
75 # undef Shell_t
/titanic_44/usr/src/lib/libast/sparc/include/ast/
H A Dshcmd.h41 # define Shell_t void macro
55 Shell_t *shp;
75 # undef Shell_t
/titanic_44/usr/src/lib/libshell/common/bltins/
H A Dmisc.c55 Shell_t *sh;
102 register Shell_t *shp; in B_login()
185 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_eval()
212 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_dot_cmd()
346 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_shift()
372 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_wait()
398 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_bg()
432 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_jobs()
512 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_vpath()
H A Dgetopts.c38 Shell_t *shp = *(Shell_t**)(dp+1); in infof()
58 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_getopts()
64 Shell_t *sh; in b_getopts()
H A Dwhence.c45 static int whence(Shell_t *,char**, int);
55 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_command()
98 register Shell_t *shp = ((Shbltin_t*)extra)->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 = ((Shbltin_t*)extra)->shp; in b_sleep()
128 Shell_t *shp = &sh; in sleep()
163 Shell_t *shp = sh_getinterp(); in sh_delay()
H A Dcflow.c49 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_return()
87 register Shell_t *shp = ((Shbltin_t*)extra)->shp; in b_break()

123