/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | path.h | 66 Shell_t *shp; 74 extern void path_newdir(Shell_t*,Pathcomp_t*); 76 extern Pathcomp_t *path_unsetfpath(Shell_t*); 83 extern char *path_fullname(Shell_t*,const char*); 90 extern int path_open(Shell_t*,const char*,Pathcomp_t*); 91 extern Pathcomp_t *path_get(Shell_t*,const char*); 93 extern char *path_pwd(Shell_t*,int); 96 extern char *path_relative(Shell_t*,const char*); 101 extern int path_xattr(Shell_t*, const char*, char*); 104 extern int sh_addlib(Shell_t*,void*,char*,Pathcomp_t*); [all …]
|
H A D | defs.h | 392 extern Shell_t *nv_shell(Namval_t*); 397 extern void *sh_argopen(Shell_t*); 401 extern struct dolnod *sh_arguse(Shell_t*); 403 extern void sh_chktrap(Shell_t*); 415 extern pid_t sh_fork(Shell_t*,int,int*); 421 extern void *sh_macopen(Shell_t*); 424 extern int sh_outtype(Shell_t*, Sfio_t*); 425 extern char *sh_mactry(Shell_t*,char*); 437 extern void sh_subtmpfile(Shell_t*); 439 extern void sh_timetraps(Shell_t*); [all …]
|
H A D | io.h | 71 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*); 85 extern int sh_iovalidfd(Shell_t*, int); 86 extern int sh_inuse(Shell_t*, int); 87 extern void sh_iounsave(Shell_t*); [all …]
|
H A D | shell.h | 50 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 D | jobs.h | 50 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 D | streval.h | 73 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 D | test.h | 60 extern int test_unop(Shell_t*,int, const char*); 62 extern int test_binop(Shell_t*,int, const char*, const char*);
|
H A D | shnodes.h | 212 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 D | shlex.h | 37 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 D | trestore.c | 35 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 D | io.c | 335 Shell_t *sh; 445 void sh_ioinit(Shell_t *shp) in sh_ioinit() 691 Shell_t *shp = sh_getinterp(); in sh_close() 723 Shell_t* sh = (Shell_t*)handle; in onintr() 878 Shell_t *shp = sh_getinterp(); in sh_iomovefd() 897 Shell_t *shp = sh_getinterp(); in sh_pipe() 920 Shell_t *shp = sh_getinterp(); in sh_rpipe() 1760 void sh_iounsave(Shell_t* shp) in sh_iounsave() 1859 Shell_t *shp = sh_getinterp(); in sh_ioaccess() 1944 Shell_t *shp = (Shell_t*)handle; in time_grace() [all …]
|
H A D | path.c | 57 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**); 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() 238 char *path_pwd(Shell_t *shp,int flag) in path_pwd() 454 static Pathcomp_t* defpath_init(Shell_t *shp) in defpath_init() 460 static void path_init(Shell_t *shp) in path_init() 567 char *path_fullname(Shell_t *shp,const char *name) in path_fullname() 1657 void path_newdir(Shell_t *shp,Pathcomp_t *first) in path_newdir() [all …]
|
H A D | init.c | 150 Shell_t *sh; 156 Shell_t *sh; 183 Shell_t *sh; 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() 338 Shell_t *shp = nv_shell(np); in put_restricted() 1266 Shell_t *shp; in sh_init() 1610 Shell_t *sh; in sh_reinit() 1718 Shell_t *sh; [all …]
|
H A D | args.c | 89 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 D | defs.c | 32 Shell_t sh = {0}; 35 Shell_t *_imp__sh = &sh;
|
H A D | fault.c | 65 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 D | expand.c | 80 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 D | misc.c | 55 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 D | trap.c | 41 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 D | getopts.c | 38 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 D | whence.c | 45 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 D | sleep.c | 49 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 D | alarm.c | 47 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 D | cflow.c | 49 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 D | shcmd.h | 43 # define Shell_t void macro 61 Shell_t* shp; 81 # undef Shell_t
|