/titanic_51/usr/src/lib/libshell/common/include/ |
H A D | path.h | 66 } Pathcomp_t; typedef 73 extern void path_newdir(Pathcomp_t*); 74 extern Pathcomp_t *path_dirfind(Pathcomp_t*,const char*,int); 75 extern Pathcomp_t *path_unsetfpath(Pathcomp_t*); 76 extern Pathcomp_t *path_addpath(Pathcomp_t*,const char*,int); 77 extern Pathcomp_t *path_dup(Pathcomp_t*); 78 extern void path_delete(Pathcomp_t*); 79 extern void path_alias(Namval_t*,Pathcomp_t*); 80 extern Pathcomp_t *path_absolute(const char*, Pathcomp_t*); 85 extern pid_t path_spawn(const char*,char*[],char*[],Pathcomp_t*,int); [all …]
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | path.h | 67 } Pathcomp_t; typedef 74 extern void path_newdir(Shell_t*,Pathcomp_t*); 75 extern Pathcomp_t *path_dirfind(Pathcomp_t*,const char*,int); 76 extern Pathcomp_t *path_unsetfpath(Shell_t*); 77 extern Pathcomp_t *path_addpath(Shell_t*,Pathcomp_t*,const char*,int); 78 extern Pathcomp_t *path_dup(Pathcomp_t*); 79 extern void path_delete(Pathcomp_t*); [all...] |
/titanic_51/usr/src/lib/libshell/common/sh/ |
H A D | path.c | 57 static int path_chkpaths(Pathcomp_t*,Pathcomp_t*,Pathcomp_t*,int); 58 static void path_checkdup(register Pathcomp_t*); 285 register Pathcomp_t *pp= (Pathcomp_t*)data; in free_bltin() 305 void path_delete(Pathcomp_t *first) in path_delete() 307 register Pathcomp_t *pp=first, *old=0, *ppnext; in path_delete() 339 static char *path_lib(Pathcomp_t *pp, char *path) in path_lib() 353 Pathcomp_t pcomp; in path_lib() 365 if(path_chkpaths((Pathcomp_t*)0,(Pathcomp_t*)0,&pcomp,PATH_OFFSET)) in path_lib() 373 void path_dump(register Pathcomp_t *pp) 388 static void path_checkdup(register Pathcomp_t *pp) in path_checkdup() [all …]
|
H A D | expand.c | 80 Pathcomp_t *pp = (Pathcomp_t*)gp->gl_handle; in nextdir()
|
H A D | init.c | 286 Pathcomp_t *pp; in put_restricted() 299 shp->pathlist = (void*)path_unsetfpath((Pathcomp_t*)shp->pathlist); in put_restricted() 306 pp = (void*)path_addpath((Pathcomp_t*)shp->pathlist,val,PATH_PATH); in put_restricted() 308 pp = (void*)path_addpath((Pathcomp_t*)shp->pathlist,val,PATH_FPATH); in put_restricted() 321 path_dump((Pathcomp_t*)shp->pathlist); in put_restricted() 328 Pathcomp_t *pp; in put_cdpath() 334 pp = (void*)path_addpath((Pathcomp_t*)shp->cdpathlist,val,PATH_CDPATH); in put_cdpath()
|
H A D | subshell.c | 67 Pathcomp_t *pathlist; /* for PATH variable */ 509 sp->pathlist = path_dup((Pathcomp_t*)shp->pathlist); in sh_subshell() 654 path_delete((Pathcomp_t*)shp->pathlist); in sh_subshell()
|
H A D | main.c | 101 #define PATHCOMP NIL(Pathcomp_t*) 324 if(path_absolute(name,NIL(Pathcomp_t*))) in sh_main()
|
H A D | xec.c | 888 if(path_search(com0,NIL(Pathcomp_t**),1)) in sh_exec() 1100 indx = path_search(com0,NIL(Pathcomp_t**),0); in sh_exec() 2986 Pathcomp_t *pp; in sh_ntfork() 3150 else if(path_absolute(path,NIL(Pathcomp_t*))) in sh_ntfork()
|
H A D | io.c | 2404 n = path_open(cp,(Pathcomp_t*)0); in sh_pathopen()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | path.c | 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*); 293 * delete current Pathcomp_t structure 295 void path_delete(Pathcomp_t *first) in path_delete() 297 register Pathcomp_t *pp=first, *old=0, *ppnext; in path_delete() 321 static char *path_lib(Shell_t *shp,Pathcomp_t *pp, char *path) in path_lib() 335 Pathcomp_t pcomp; in path_lib() 347 if(path_chkpaths(shp,(Pathcomp_t*) in path_lib() [all...] |
H A D | expand.c | 81 Pathcomp_t *pp = (Pathcomp_t*)gp->gl_handle; in nextdir()
|
H A D | subshell.c | 75 Pathcomp_t *pathlist; /* for PATH variable */ 526 sp->pathlist = path_dup((Pathcomp_t*)shp->pathlist); in sh_subshell() 707 path_delete((Pathcomp_t*)shp->pathlist); in sh_subshell()
|
H A D | main.c | 87 #define PATHCOMP NIL(Pathcomp_t*) 310 if(path_absolute(shp,name,NIL(Pathcomp_t*))) in sh_main()
|
H A D | init.c | 340 Pathcomp_t *pp; in put_restricted() 360 pp = (void*)path_addpath(shp,(Pathcomp_t*)shp->pathlist,val,PATH_PATH); in put_restricted() 362 pp = (void*)path_addpath(shp,(Pathcomp_t*)shp->pathlist,val,PATH_FPATH); in put_restricted() 375 path_dump((Pathcomp_t*)shp->pathlist); in put_restricted() 382 Pathcomp_t *pp; in put_cdpath() 388 pp = (void*)path_addpath(shp,(Pathcomp_t*)shp->cdpathlist,val,PATH_CDPATH); in put_cdpath()
|
H A D | xec.c | 1277 if(path_search(shp,com0,NIL(Pathcomp_t**),1)) in sh_exec() 1504 indx = path_search(shp,com0,NIL(Pathcomp_t**),0); in sh_exec() 3783 Pathcomp_t *pp; in sh_ntfork() 3954 else if(path_absolute(shp,path,NIL(Pathcomp_t*))) in sh_ntfork()
|
/titanic_51/usr/src/lib/libshell/common/bltins/ |
H A D | cd_pwd.c | 46 Pathcomp_t *pp = (Pathcomp_t*)np->nvalue.cp; in rehash() 55 Pathcomp_t *cdpath = 0; in b_cd() 101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=(CDPNOD)->nvalue.cp)) in b_cd() 103 if(cdpath=path_addpath((Pathcomp_t*)0,dp,PATH_CDPATH)) in b_cd()
|
H A D | whence.c | 144 Pathcomp_t *pp=0; in whence()
|
H A D | typeset.c | 512 path_alias(np,path_absolute(nv_name(np),NIL(Pathcomp_t*))); in b_common() 793 path_absolute(argv[0],NIL(Pathcomp_t*)); in b_builtin()
|
H A D | misc.c | 243 path_search(script,NIL(Pathcomp_t**),0); in b_dot_cmd()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | cd_pwd.c | 46 Pathcomp_t *pp = (Pathcomp_t*)np->nvalue.cp; in rehash() 55 Pathcomp_t *cdpath = 0; in b_cd() 101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=sh_scoped(shp,CDPNOD)->nvalue.cp)) in b_cd() 103 if(cdpath=path_addpath(shp,(Pathcomp_t*)0,dp,PATH_CDPATH)) in b_cd()
|
H A D | typeset.c | 638 path_alias(np,path_absolute(shp,nv_name(np),NIL(Pathcomp_t*))); in setall() 901 int sh_addlib(Shell_t* shp, void* dll, char* name, Pathcomp_t* pp) in sh_addlib() 938 Shbltin_f sh_getlib(Shell_t* shp, char* sym, Pathcomp_t* pp) in sh_getlib() 950 int sh_addlib(Shell_t* shp, void* library, char* name, Pathcomp_t* pp) in sh_addlib() 955 Shbltin_f sh_getlib(Shell_t* shp, char* name, Pathcomp_t* pp) in sh_getlib() 987 path_absolute(tdata.sh,argv[0],NIL(Pathcomp_t*)); in b_builtin()
|
H A D | whence.c | 144 Pathcomp_t *pp=0; in whence()
|
H A D | misc.c | 244 path_search(shp,script,NIL(Pathcomp_t**),0); in b_dot_cmd()
|
/titanic_51/usr/src/lib/libshell/common/edit/ |
H A D | completion.c | 415 Pathcomp_t *pp; in ed_expand()
|
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | completion.c | 433 Pathcomp_t *pp; in ed_expand()
|