Searched defs:shp (Results 1 - 25 of 112) sorted by relevance

12345

/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dcflow.c49 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
50 struct checkpt *pp = (struct checkpt*)shp->jmplist;
67 n = (((arg= *argv)?(int)strtol(arg, (char**)0, 10)&SH_EXITMASK:shp->oldexit));
69 if(shp->fn_depth==0 && shp->dot_depth==0 && !sh_isstate(SH_PROFILE))
71 sh_exit(shp->savexit=n);
87 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
107 if(shp
[all...]
H A Dcd_pwd.c57 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
84 oldpwd = (char*)shp->pwd;
85 opwdnod = (shp->subshell?sh_assignok(OLDPWDNOD,1):OLDPWDNOD);
86 pwdnod = (shp->subshell?sh_assignok(PWDNOD,1):PWDNOD);
101 if(!(cdpath = (Pathcomp_t*)shp->cdpathlist) && (dp=(CDPNOD)->nvalue.cp))
105 shp->cdpathlist = (void*)cdpath;
106 cdpath->shp = shp;
202 shp
214 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
[all...]
H A Dulimit.c73 Shell_t *shp = ((Shbltin_t*)extra)->shp; local
135 if(shp->subshell && !shp->subshare)
H A Dwhence.c55 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
71 shp->xargexit = 1;
89 return(whence(shp,argv, flags));
98 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
130 return(whence(shp, argv, flags));
133 static int whence(Shell_t *shp,char **argv, register int flags) argument
167 if((np=nv_search(name,shp->alias_tree,0))
187 root = (flags&F_FLAG)?shp
[all...]
H A Dsleep.c49 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
53 if(!(shp->sigflag[SIGALRM]&(SH_SIGFAULT|SH_SIGOFF)))
106 shp->lastsig=0;
108 if(sflag || tloc==0 || errno!=EINTR || shp->lastsig)
114 if(shp->sigflag[SIGALRM]&SH_SIGTRAP)
128 Shell_t *shp = &sh; local
132 shp->lastsig = 0;
136 if(!shp->waitevent || (*shp
163 Shell_t *shp = sh_getinterp(); local
[all...]
H A Dgetopts.c38 Shell_t *shp = *(Shell_t**)(dp+1); local
39 Stk_t *stkp = shp->stk;
47 sfputr(sp,sh_mactry(shp,stkfreeze(stkp,1)),-1);
58 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
69 disc.sh = shp;
91 np = nv_open(argv[1],shp->var_tree,NV_NOASSIGN|NV_VARNAME);
99 argv = shp->st.dolv;
100 argc = shp->st.dolc;
102 opt_info.index = shp
[all...]
H A Dpoll_solaris.c39 #define sh_contexttoshell(context) ((context)?(sh_contexttoshb(context)->shp):(NULL))
243 Shell_t *shp = sh_contexttoshell(extra); local
287 array_np = nv_open(varname, shp->var_tree, NV_NOFAIL|NV_NOADD);
324 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].fd", varname, subname);
333 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].events", varname, subname);
355 np = nv_open_fmt(shp->var_tree, NV_VARNAME|NV_ARRAY|NV_NOFAIL, "%s", eventarrayname);
369 np = nv_open_fmt(shp->var_tree, NV_NOFAIL, "%s[%s].revents", varname, subname);
H A Dregress.c125 void sh_regress_init(Shell_t* shp) argument
129 shp->regress = &state;
264 register Shell_t* shp = ((Shbltin_t*)extra)->shp; local
H A Dtrap.c48 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
113 if(arg=shp->st.trap[sig])
117 if(shp->st.trap[sig])
118 free(shp->st.trap[sig]);
119 shp->st.trap[sig] = 0;
121 shp->st.trap[sig] = strdup(action);
124 if(shp->st.trap[sig])
125 shp->trapnote |= SH_SIGTRAP;
127 shp
169 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
354 sig_list(register Shell_t *shp,register int flag) argument
[all...]
/illumos-gate/usr/src/common/smbios/
H A Dsmb_error.c69 smbios_errno(smbios_hdl_t *shp) argument
71 return (shp->sh_err);
75 smb_set_errno(smbios_hdl_t *shp, int error) argument
77 shp->sh_err = error;
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_chassis.c48 smbios_hdl_t *shp; local
50 shp = topo_mod_smbios(mod);
51 if (shp == NULL) {
60 rv = smbios_info_common(shp, smb_id, &ip);
66 rv = smbios_info_chassis(shp, smb_id, &ch);
/illumos-gate/usr/src/lib/libsmbios/common/
H A Dsmb_subr.c39 smb_open_error(smbios_hdl_t *shp, int *errp, int err) argument
41 if (shp != NULL)
42 smbios_close(shp);
82 smb_dprintf(smbios_hdl_t *shp, const char *format, ...) argument
86 if (!(shp->sh_flags & SMB_FL_DEBUG))
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_isa.c89 Shdr *shp; local
96 shp = (Shdr *)(mp->shdrs + shn * mp->hdr.e_shentsize);
97 if (!(shp->sh_flags & SHF_ALLOC))
99 if (shp->sh_addr != 0) {
105 pp = (shp->sh_flags & SHF_WRITE)? dp : tp;
107 if (shp->sh_addralign > pp->align)
108 pp->align = shp->sh_addralign;
109 pp->size = ALIGN(pp->size, shp->sh_addralign);
110 pp->size += ALIGN(shp->sh_size, 8);
/illumos-gate/usr/src/uts/common/os/
H A Dsmb_subr.c65 smb_dprintf(smbios_hdl_t *shp, const char *format, ...) argument
69 if (!(shp->sh_flags & SMB_FL_DEBUG))
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dshcomp.c73 Shell_t *shp; local
97 shp = sh_init(argc,argv,(Shinit_f)0);
98 shp->shcomp = 1;
131 shp->inlineno = 1;
138 if(t = (Shnode_t*)sh_parse(shp,in,0))
H A Dtrestore.c47 Shnode_t *sh_trestore(Shell_t *shp,Sfio_t *in) argument
51 t = r_tree(shp);
57 static Shnode_t *r_tree(Shell_t *shp) argument
69 t = getnode(shp->stk,parnod);
70 t->par.partre = r_tree(shp);
73 t = getnode(shp->stk,comnod);
75 r_comarg(shp,(struct comnod*)t);
79 t = getnode(shp->stk,forknod);
81 t->fork.forktre = r_tree(shp);
82 t->fork.forkio = r_redirect(shp);
177 r_arg(Shell_t *shp) argument
228 r_redirect(Shell_t* shp) argument
265 r_comarg(Shell_t *shp,struct comnod *com) argument
296 r_comlist(Shell_t *shp) argument
312 r_switch(Shell_t *shp) argument
[all...]
/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_isa.c105 Shdr *shp; local
112 shp = (Shdr *)(mp->shdrs + shn * mp->hdr.e_shentsize);
113 if (!(shp->sh_flags & SHF_ALLOC))
115 if (shp->sh_addr != 0) {
121 pp = (shp->sh_flags & SHF_WRITE)? dp : tp;
123 if (shp->sh_addralign > pp->align)
124 pp->align = shp->sh_addralign;
125 pp->size = ALIGN(pp->size, shp->sh_addralign);
126 pp->size += ALIGN(shp->sh_size, 8);
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dsharetab.c60 getshare(FILE *fd, share_t **shp) argument
100 *shp = sh;
/illumos-gate/usr/src/cmd/ksh/builtins/
H A Dalias.c196 Shell_t *shp; local
215 shp = sh_init(argc+1, xargv, 0);
216 if (!shp)
220 np = nv_open("exitval", shp->var_tree, 0);
/illumos-gate/usr/src/cmd/mdb/intel/modules/smbios/
H A Dsmbios.c40 smbios_hdl_t shp, *hdl; local
45 if (mdb_vread(&shp, sizeof (shp), addr) != sizeof (shp)) {
50 buf = mdb_alloc(shp.sh_buflen, UM_NOSLEEP | UM_GC);
53 "data buffer", shp.sh_buflen);
57 if (mdb_vread(buf, shp.sh_buflen, (uintptr_t)shp.sh_buf) !=
58 shp.sh_buflen) {
59 mdb_warn("failed to copy smbios data at %p", shp
[all...]
/illumos-gate/usr/src/lib/libshell/common/include/
H A Dpath.h65 Shell_t *shp; member in struct:pathcomp
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c77 struct sh_list *shp; local
95 for (shp = share_list; shp; shp = shp->shl_next) {
100 sh = shp->shl_sh;
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_tcp.c181 struct sctp_hdr *shp; local
189 shp = (struct sctp_hdr *)(mp->b_rptr + off);
190 dport = shp->sh_dport;
191 sport = shp->sh_sport;
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dshcmd.h55 Shell_t *shp; member in struct:Shbltin_s
/illumos-gate/usr/src/lib/libast/common/include/
H A Dshcmd.h46 Shell_t *shp; member in struct:Shbltin_s

Completed in 83 milliseconds

12345