Searched defs:shp (Results 1 - 25 of 109) 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 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 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
166 Shell_t *shp = &sh; local
[all...]
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/common/os/
H A Dsmb_subr.c63 smb_dprintf(smbios_hdl_t *shp, const char *format, ...) argument
67 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);
H A Dkobj_reloc.c284 Shdr *shp, *rshp; local
312 shp = (Shdr *)
319 if (!(shp->sh_flags & SHF_ALLOC))
330 nreloc, rshp->sh_entsize, shp->sh_addr) < 0) {
/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/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/cmd/fm/fmd/common/
H A Dfmd_scheme.c255 fmd_scheme_hash_t *shp; local
259 shp = fmd_alloc(sizeof (fmd_scheme_hash_t), FMD_SLEEP);
261 shp->sch_dirpath = fmd_strdup(path, FMD_SLEEP);
262 (void) pthread_rwlock_init(&shp->sch_rwlock, NULL);
263 shp->sch_hashlen = fmd.d_str_buckets;
264 shp->sch_hash = fmd_zalloc(sizeof (fmd_scheme_t *) *
265 shp->sch_hashlen, FMD_SLEEP);
270 shp->sch_hash[fmd_strhash(sp->sch_name) % shp->sch_hashlen] = sp;
272 return (shp);
276 fmd_scheme_hash_destroy(fmd_scheme_hash_t *shp) argument
295 fmd_scheme_hash_trygc(fmd_scheme_hash_t *shp) argument
330 fmd_scheme_hash_xlookup(fmd_scheme_hash_t *shp, const char *name, uint_t h) argument
351 fmd_scheme_hash_lookup(fmd_scheme_hash_t *shp, const char *name) argument
437 fmd_scheme_hash_release(fmd_scheme_hash_t *shp, fmd_scheme_t *sp) argument
[all...]
H A Dfmd_serd.c58 fmd_serd_hash_create(fmd_serd_hash_t *shp) argument
60 shp->sh_hashlen = fmd.d_str_buckets;
61 shp->sh_hash = fmd_zalloc(sizeof (void *) * shp->sh_hashlen, FMD_SLEEP);
62 shp->sh_count = 0;
66 fmd_serd_hash_destroy(fmd_serd_hash_t *shp) argument
71 for (i = 0; i < shp->sh_hashlen; i++) {
72 for (sgp = shp->sh_hash[i]; sgp != NULL; sgp = ngp) {
78 fmd_free(shp->sh_hash, sizeof (void *) * shp
83 fmd_serd_hash_apply(fmd_serd_hash_t *shp, fmd_serd_eng_f *func, void *arg) argument
95 fmd_serd_hash_count(fmd_serd_hash_t *shp) argument
101 fmd_serd_hash_contains(fmd_serd_hash_t *shp, fmd_event_t *ep) argument
119 fmd_serd_eng_insert(fmd_serd_hash_t *shp, const char *name, uint_t n, hrtime_t t) argument
133 fmd_serd_eng_lookup(fmd_serd_hash_t *shp, const char *name) argument
147 fmd_serd_eng_delete(fmd_serd_hash_t *shp, const char *name) argument
[all...]

Completed in 234 milliseconds

12345