Searched refs:shp (Results 1 - 25 of 114) 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 Dmisc.c67 logdata.sh = ((Shbltin_t*)extra)->shp;
103 register Shell_t *shp; local
106 shp = ((Shbltin_t*)extra)->shp;
110 shp = logp->sh;
112 pp = (struct checkpt*)shp->jmplist;
117 register struct argnod *arg=shp->envlist;
120 if(shp->subshell && !shp->subshare)
125 env_close(shp
186 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
213 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
347 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
373 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
399 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
433 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
513 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
[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 Dread.c65 register Shell_t *shp = ((Shbltin_t*)extra)->shp; local
66 long timeout = 1000*shp->st.tmout;
108 if((fd = shp->cpipe[0])<=0)
144 if(!((r=shp->fdstatus[fd])&IOREAD) || !(r&(IOSEEK|IONOSEEK)))
145 r = sh_iocheckfd(shp,fd);
164 shp->prompt = default_prompt;
165 if(r && (shp->prompt=(char*)sfreserve(sfstderr,r,SF_LOCKR)))
167 memcpy(shp->prompt,name,r);
168 sfwrite(sfstderr,shp
204 sh_readline(register Shell_t *shp,char **names, int fd, int flags,long timeout) argument
[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;
H A Dsmb_open.c45 smb_strip(smbios_hdl_t *shp) argument
49 for (i = 0; i < shp->sh_nstructs; i++) {
50 const smb_header_t *hp = shp->sh_structs[i].smbst_hdr;
66 if (smbios_info_common(shp, hp->smbh_hdl, &info) != SMB_ERR) {
76 smbios_bufopen_21(smbios_hdl_t *shp, const smbios_21_entry_t *ep, size_t len, argument
85 smb_dprintf(shp, "opening SMBIOS version %u.%u bcdrev 0x%x\n",
114 smb_dprintf(shp, "bad cksum: e=%x i=%x\n", esum, isum);
124 shp->sh_ent_type = SMBIOS_ENTRY_POINT_21;
125 bcopy(ep, &shp->sh_ent, sizeof (smbios_entry_t));
126 shp
135 smbios_bufopen_30(smbios_hdl_t *shp, const smbios_30_entry_t *ep, size_t len, int flags) argument
217 smbios_hdl_t *shp = smb_zalloc(sizeof (smbios_hdl_t)); local
350 smbios_close(smbios_hdl_t *shp) argument
375 smbios_checksum(smbios_hdl_t *shp, smbios_entry_t *ep) argument
409 smbios_buf(smbios_hdl_t *shp) argument
415 smbios_buflen(smbios_hdl_t *shp) argument
434 smbios_lookup_id(smbios_hdl_t *shp, id_t id, smbios_struct_t *sp) argument
448 smbios_lookup_type(smbios_hdl_t *shp, uint_t type, smbios_struct_t *sp) argument
462 smbios_iter(smbios_hdl_t *shp, smbios_struct_f *func, void *data) argument
478 smb_lookup_type(smbios_hdl_t *shp, uint_t type) argument
492 smb_lookup_id(smbios_hdl_t *shp, uint_t id) argument
526 smb_libgteq(smbios_hdl_t *shp, int version) argument
534 smb_gteq(smbios_hdl_t *shp, int version) argument
542 smbios_truncated(smbios_hdl_t *shp) argument
[all...]
H A Dsmb_info.c36 * stp = smb_lookup_type(shp, foo);
245 smbios_info_smbios(smbios_hdl_t *shp, smbios_entry_t *ep) argument
247 bcopy(&shp->sh_ent, ep, sizeof (smbios_entry_t));
248 return (shp->sh_ent_type);
252 smbios_info_smbios_version(smbios_hdl_t *shp, smbios_version_t *v) argument
254 v->smbv_major = SMB_MAJOR(shp->sh_smbvers);
255 v->smbv_minor = SMB_MINOR(shp->sh_smbvers);
264 smbios_info_common(smbios_hdl_t *shp, id_t id, smbios_info_t *ip) argument
266 const smb_struct_t *stp = smb_lookup_id(shp, id);
317 return (n ? 0 : smb_set_errno(shp, ESMB_NOINF
327 smbios_info_contains(smbios_hdl_t *shp, id_t id, uint_t idc, id_t *idv) argument
365 smbios_info_bios(smbios_hdl_t *shp, smbios_bios_t *bp) argument
460 smbios_info_system(smbios_hdl_t *shp, smbios_system_t *sip) argument
481 smbios_info_bboard(smbios_hdl_t *shp, id_t id, smbios_bboard_t *bbp) argument
504 smbios_info_chassis(smbios_hdl_t *shp, id_t id, smbios_chassis_t *chp) argument
544 smbios_info_processor(smbios_hdl_t *shp, id_t id, smbios_processor_t *pp) argument
599 smbios_info_cache(smbios_hdl_t *shp, id_t id, smbios_cache_t *cap) argument
648 smbios_info_port(smbios_hdl_t *shp, id_t id, smbios_port_t *pop) argument
673 smbios_info_slot(smbios_hdl_t *shp, id_t id, smbios_slot_t *sp) argument
708 smbios_info_slot_peers_free(smbios_hdl_t *shp, uint_t npeers, smbios_slot_peer_t *peer) argument
722 smbios_info_slot_peers(smbios_hdl_t *shp, id_t id, uint_t *npeers, smbios_slot_peer_t **peerp) argument
776 smbios_info_obdevs_ext(smbios_hdl_t *shp, id_t id, smbios_obdev_ext_t *oep) argument
801 smbios_info_obdevs(smbios_hdl_t *shp, id_t id, int obc, smbios_obdev_t *obp) argument
833 smbios_info_strtab(smbios_hdl_t *shp, id_t id, int argc, const char *argv[]) argument
857 smbios_info_lang(smbios_hdl_t *shp, smbios_lang_t *lp) argument
876 smbios_info_eventlog(smbios_hdl_t *shp, smbios_evlog_t *evp) argument
913 smbios_info_memarray(smbios_hdl_t *shp, id_t id, smbios_memarray_t *map) argument
944 smbios_info_memarrmap(smbios_hdl_t *shp, id_t id, smbios_memarrmap_t *map) argument
974 smbios_info_memdevice(smbios_hdl_t *shp, id_t id, smbios_memdevice_t *mdp) argument
1060 smbios_info_memdevmap(smbios_hdl_t *shp, id_t id, smbios_memdevmap_t *mdp) argument
1093 smbios_info_hwsec(smbios_hdl_t *shp, smbios_hwsec_t *hsp) argument
1113 smbios_info_boot(smbios_hdl_t *shp, smbios_boot_t *bp) argument
1133 smbios_info_ipmi(smbios_hdl_t *shp, smbios_ipmi_t *ip) argument
1189 smbios_has_oemstr(smbios_hdl_t *shp, const char *oemstr) argument
1233 smb_get_sn(smbios_hdl_t *shp, const char **psnp, const char **csnp) argument
1270 smbios_psn(smbios_hdl_t *shp) argument
1278 smbios_csn(smbios_hdl_t *shp) argument
1286 smbios_info_extprocessor(smbios_hdl_t *shp, id_t id, smbios_processor_ext_t *epp) argument
1310 smbios_info_extport(smbios_hdl_t *shp, id_t id, smbios_port_ext_t *eportp) argument
1334 smbios_info_pciexrc(smbios_hdl_t *shp, id_t id, smbios_pciexrc_t *rcp) argument
1356 smbios_info_extmemarray(smbios_hdl_t *shp, id_t id, smbios_memarray_ext_t *emap) argument
1378 smbios_info_extmemdevice(smbios_hdl_t *shp, id_t id, smbios_memdevice_ext_t *emdp) argument
1402 smbios_info_powersup(smbios_hdl_t *shp, id_t id, smbios_powersup_t *psup) argument
1455 smbios_info_vprobe(smbios_hdl_t *shp, id_t id, smbios_vprobe_t *vprobe) argument
1490 smbios_info_cooldev(smbios_hdl_t *shp, id_t id, smbios_cooldev_t *cooldev) argument
1537 smbios_info_tprobe(smbios_hdl_t *shp, id_t id, smbios_tprobe_t *tprobe) argument
1572 smbios_info_iprobe(smbios_hdl_t *shp, id_t id, smbios_iprobe_t *iprobe) argument
1607 smbios_info_processor_info(smbios_hdl_t *shp, id_t id, smbios_processor_info_t *proc) argument
1635 smbios_info_processor_riscv(smbios_hdl_t *shp, id_t id, smbios_processor_info_riscv_t *riscv) argument
1696 smbios_info_pointdev(smbios_hdl_t *shp, id_t id, smbios_pointdev_t *pd) argument
1720 smbios_info_battery(smbios_hdl_t *shp, id_t id, smbios_battery_t *bp) argument
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dmain.c56 static void chkmail(Shell_t *shp, char*);
88 Shell_t *shp = (Shell_t*)context; local
91 if(shp->trapnote&SH_SIGSET)
111 int sh_source(Shell_t *shp, Sfio_t *iop, const char *file) argument
124 shp->st.filename = path_fullname(stakptr(PATH_OFFSET));
126 exfile(shp, iop, fd);
143 register Shell_t *shp; local
157 shp = sh_init(ac,av,userinit);
162 fts_notify(fts_sigcheck,(void*)shp);
164 if(sigsetjmp(*((sigjmp_buf*)shp
383 exfile(register Shell_t *shp, register Sfio_t *iop,register int fno) argument
631 chkmail(Shell_t *shp, char *files) argument
[all...]
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...]
H A Dfault.c63 register Shell_t *shp = sh_getinterp(); local
66 register struct checkpt *pp = (struct checkpt*)shp->jmplist;
82 shp->winch++;
85 if(shp->savesig)
88 shp->savesig = sig;
91 trap = shp->st.trapcom[sig];
92 if(sig==SIGALRM && shp->bltinfun==b_sleep)
96 shp->trapnote |= SH_SIGTRAP;
97 shp->sigflag[sig] |= SH_SIGTRAP;
101 if(shp
216 Shell_t *shp = (Shell_t*)ptr; local
437 Shell_t *shp = sh_getinterp(); local
501 Shell_t *shp = &sh; local
589 Shell_t *shp = (Shell_t*)ptr; local
[all...]
H A Dxec.c105 static int p_time(Shell_t *shp, Sfio_t *out, const char *format, clock_t *tm) argument
110 Stk_t *stkp = shp->stk;
395 int sh_debug(Shell_t *shp, const char *trap, const char *name, const char *subscript, char *const argv[], int flags) argument
397 Stk_t *stkp=shp->stk;
405 if(shp->indebug)
407 shp->indebug = 1;
438 shp->st.lineno = error_info.line;
439 level = shp->fn_depth+shp->dot_depth;
444 savst = shp
467 Shell_t *shp = sh_getinterp(); local
531 pipe_exec(Shell_t* shp,int pv[], Shnode_t *t, int errorflg) argument
611 set_instance(Shell_t *shp,Namval_t *nq, Namval_t *node, struct Namref *nr) argument
655 register Shell_t *shp = &sh; local
2302 Shell_t *shp = &sh; local
2377 Shell_t *shp = &sh; local
2557 register Shell_t *shp = &sh; local
2695 sh_funct(Shell_t *shp,Namval_t *np,int argn, char *argv[],struct argnod *envlist,int execflg) argument
2755 Shell_t *shp = &sh; local
2829 coproc_init(Shell_t *shp, int pipes[]) argument
2978 sh_ntfork(Shell_t *shp,const Shnode_t *t,char *argv[],int *jobid,int flag) argument
[all...]
H A Dinit.c208 Shell_t *shp = nv_shell(np); local
209 if(*name=='E' && nv_getval(sh_scoped(shp,VISINOD)))
211 if(!(cp=val) && (*name=='E' || !(cp=nv_getval(sh_scoped(shp,EDITNOD)))))
235 Shell_t *shp = nv_shell(np); local
236 void *histopen = shp->hist_ptr;
244 hist_close(shp->hist_ptr);
250 sh_histinit(shp);
259 Shell_t *shp = nv_shell(np); local
260 shp->st.opterror = shp
284 Shell_t *shp = nv_shell(np); local
329 Shell_t *shp = nv_shell(np); local
361 Shell_t *shp = nv_shell(np); local
463 Shell_t *shp; local
486 register Shell_t *shp = nv_shell(np); local
565 Shell_t *shp = nv_shell(np); local
649 Shell_t *shp = nv_shell(np); local
673 Shell_t *shp = nv_shell(np); local
683 Shell_t *shp = nv_shell(np); local
1025 Shell_t *shp = &sh; local
1345 Shell_t *shp = &sh; local
1456 Shell_t *shp = sp->sh; local
1489 Shell_t *shp = sh_getinterp(); local
1505 stat_init(Shell_t *shp) argument
1536 nv_init(Shell_t *shp) argument
1660 inittree(Shell_t *shp,const struct shtable2 *name_vals) argument
1719 env_init(Shell_t *shp) argument
[all...]
H A Dsubshell.c60 Shell_t *shp; /* shell interpreter */ member in struct:subshell
102 Shell_t *shp = &sh; local
105 register struct checkpt *pp = (struct checkpt*)shp->jmplist;
114 shp->fdstatus[fd] = shp->fdstatus[1]|IOCLEX;
116 shp->fdstatus[1] = IOCLOSE;
120 ((struct checkpt*)shp->jmplist)->mode = SH_JMPERREXIT;
121 shp->toomany = 1;
124 if(shp->subshare || !pflag)
129 shp
190 Shell_t *shp = sp->shp; local
252 Shell_t *shp = sp->shp; local
471 Shell_t *shp = &sh; local
[all...]
H A Dio.c385 void sh_ioinit(Shell_t *shp) argument
391 n = shp->lim.open_max+2;
393 n = shp->lim.open_max;
395 shp->fdstatus = (unsigned char*)malloc((unsigned)n);
396 memset((char*)shp->fdstatus,0,n);
397 shp->fdptrs = (int**)malloc(n*sizeof(int*));
398 memset((char*)shp->fdptrs,0,n*sizeof(int*));
399 shp->sftable = (Sfio_t**)malloc(n*sizeof(Sfio_t*));
400 memset((char*)shp->sftable,0,n*sizeof(Sfio_t*));
401 shp
468 sh_iostream(Shell_t *shp, register int fd) argument
540 io_preserve(Shell_t* shp, register Sfio_t *sp, register int f2) argument
578 sh_iorenumber(Shell_t *shp, register int f1,register int f2) argument
667 Shell_t *shp = &sh; local
836 io_patseek(Shell_t *shp, regex_t *rp, Sfio_t* sp, int flags) argument
873 file_offset(Shell_t *shp, int fn, char *fname) argument
960 sh_redirect(Shell_t *shp,struct ionod *iop, int flag) argument
1351 io_heredoc(Shell_t *shp,register struct ionod *iop, const char *name, int traceon) argument
1419 sh_iosave(Shell_t *shp, register int origfd, int oldtop, char *name) argument
1503 sh_iounsave(Shell_t* shp) argument
1522 sh_iorestore(Shell_t *shp, int last, int jmpval) argument
1589 Shell_t *shp = &sh; local
1794 sh_iocheckfd(Shell_t *shp, register int fd) argument
1861 Shell_t *shp = &sh; local
1948 Shell_t *shp = &sh; local
2112 subopen(Shell_t *shp,Sfio_t* sp, off_t offset, long size) argument
2178 Shell_t *shp = &sh; local
2329 Shell_t *shp = &sh; local
2382 Shell_t *shp = &sh; local
2400 Shell_t *shp = &sh; local
[all...]
/illumos-gate/usr/src/lib/libsysevent/
H A Dlibsysevent.c65 static int cleanup_id(sysevent_handle_t *shp, uint32_t id, int type);
761 sysevent_handle_t *shp = arg; local
765 sub_info = (subscriber_priv_t *)SH_PRIV_DATA(shp);
773 while (sub_info->sp_evq_head == NULL && SH_BOUND(shp)) {
786 if (!SH_BOUND(shp)) {
818 sysevent_handle_t *shp; local
832 shp = (sysevent_handle_t *)cookie;
833 if (shp == NULL) {
842 if (mutex_trylock(SH_LOCK(shp)) != 0) {
847 if (!SH_BOUND(shp)) {
991 update_kernel_registration(sysevent_handle_t *shp, int update_type, int update_op, uint32_t *sub_id, size_t datasz, uchar_t *data) argument
1077 dealloc_subscribers(sysevent_handle_t *shp) argument
1094 alloc_subscriber(sysevent_handle_t *shp, uint32_t sub_id, int oflag) argument
1173 cache_find_class(sysevent_handle_t *shp, char *class) argument
1228 cache_insert_class(sysevent_handle_t *shp, char *class, char **subclass_names, int subclass_num, uint32_t sub_id) argument
1282 cache_remove_all_class(sysevent_handle_t *shp, uint32_t sub_id) argument
1302 cache_remove_class(sysevent_handle_t *shp, char *class, uint32_t sub_id) argument
1324 free_cached_registration(sysevent_handle_t *shp) argument
1350 create_cached_registration(sysevent_handle_t *shp, class_lst_t **class_hash) argument
1488 sysevent_handle_t *shp; local
1592 sysevent_send_event(sysevent_handle_t *shp, sysevent_t *ev) argument
1741 sysevent_handle_t *shp; local
1889 sysevent_close_channel(sysevent_handle_t *shp) argument
1921 sysevent_bind_publisher(sysevent_handle_t *shp) argument
2098 sysevent_bind_subscriber_cmn(sysevent_handle_t *shp, void (*event_handler)(sysevent_t *ev), sysevent_subattr_t *subattr) argument
2284 sysevent_bind_subscriber(sysevent_handle_t *shp, void (*event_handler)(sysevent_t *ev)) argument
2295 sysevent_bind_xsubscriber(sysevent_handle_t *shp, void (*event_handler)(sysevent_t *ev), sysevent_subattr_t *subattr) argument
2306 sysevent_register_event(sysevent_handle_t *shp, const char *ev_class, const char **ev_subclass, int subclass_num) argument
2376 sysevent_unregister_event(sysevent_handle_t *shp, const char *class) argument
2400 cleanup_id(sysevent_handle_t *shp, uint32_t id, int type) argument
2420 sysevent_cleanup_subscribers(sysevent_handle_t *shp) argument
2466 sysevent_cleanup_publishers(sysevent_handle_t *shp) argument
2475 sysevent_unbind_subscriber(sysevent_handle_t *shp) argument
2525 sysevent_unbind_publisher(sysevent_handle_t *shp) argument
2563 sysevent_handle_t *shp; local
2643 sysevent_unbind_handle(sysevent_handle_t *shp) argument
2654 sysevent_subscribe_event(sysevent_handle_t *shp, const char *event_class, const char **event_subclass_list, int num_subclasses) argument
2662 sysevent_unsubscribe_event(sysevent_handle_t *shp, const char *event_class) argument
[all...]
H A Dlibsysevent.h94 int sysevent_send_event(sysevent_handle_t *shp, sysevent_t *ev);
97 void sysevent_close_channel(sysevent_handle_t *shp);
98 int sysevent_bind_subscriber(sysevent_handle_t *shp,
100 int sysevent_bind_xsubscriber(sysevent_handle_t *shp,
102 void sysevent_unbind_subscriber(sysevent_handle_t *shp);
103 int sysevent_bind_publisher(sysevent_handle_t *shp);
104 void sysevent_unbind_publisher(sysevent_handle_t *shp);
105 int sysevent_register_event(sysevent_handle_t *shp, const char *event_class,
107 void sysevent_unregister_event(sysevent_handle_t *shp,
109 void sysevent_cleanup_subscribers(sysevent_handle_t *shp);
[all...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_serd.c56 fmd_serd_hash_create(fmd_serd_hash_t *shp) argument
58 shp->sh_hashlen = fmd.d_str_buckets;
59 shp->sh_hash = fmd_zalloc(sizeof (void *) * shp->sh_hashlen, FMD_SLEEP);
60 shp->sh_count = 0;
64 fmd_serd_hash_destroy(fmd_serd_hash_t *shp) argument
69 for (i = 0; i < shp->sh_hashlen; i++) {
70 for (sgp = shp->sh_hash[i]; sgp != NULL; sgp = ngp) {
76 fmd_free(shp->sh_hash, sizeof (void *) * shp
81 fmd_serd_hash_apply(fmd_serd_hash_t *shp, fmd_serd_eng_f *func, void *arg) argument
93 fmd_serd_hash_count(fmd_serd_hash_t *shp) argument
99 fmd_serd_hash_contains(fmd_serd_hash_t *shp, fmd_event_t *ep) argument
117 fmd_serd_eng_insert(fmd_serd_hash_t *shp, const char *name, uint_t n, hrtime_t t) argument
131 fmd_serd_eng_lookup(fmd_serd_hash_t *shp, const char *name) argument
145 fmd_serd_eng_delete(fmd_serd_hash_t *shp, const char *name) argument
[all...]
H A Dfmd_scheme.c272 fmd_scheme_hash_t *shp; local
276 shp = fmd_alloc(sizeof (fmd_scheme_hash_t), FMD_SLEEP);
278 shp->sch_dirpath = fmd_strdup(path, FMD_SLEEP);
279 (void) pthread_rwlock_init(&shp->sch_rwlock, NULL);
280 shp->sch_hashlen = fmd.d_str_buckets;
281 shp->sch_hash = fmd_zalloc(sizeof (fmd_scheme_t *) *
282 shp->sch_hashlen, FMD_SLEEP);
287 shp->sch_hash[fmd_strhash(sp->sch_name) % shp->sch_hashlen] = sp;
289 return (shp);
293 fmd_scheme_hash_destroy(fmd_scheme_hash_t *shp) argument
312 fmd_scheme_hash_trygc(fmd_scheme_hash_t *shp) argument
347 fmd_scheme_hash_xlookup(fmd_scheme_hash_t *shp, const char *name, uint_t h) argument
368 fmd_scheme_hash_lookup(fmd_scheme_hash_t *shp, const char *name) argument
454 fmd_scheme_hash_release(fmd_scheme_hash_t *shp, fmd_scheme_t *sp) argument
[all...]
/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))
H A Dsmb_lib.c56 smbios_hdl_t *shp = NULL; local
63 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOHDR));
74 return (smb_open_error(shp, errp, ESMB_HEADER));
78 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOHDR));
90 return (smb_open_error(shp, errp, ESMB_NOMEM));
94 return (smb_open_error(shp, errp, n < 0 ? errno : ESMB_NOSTAB));
97 shp = smbios_bufopen(ep, stbuf, smbe_stlen, version, flags, errp);
99 if (shp != NULL)
100 shp->sh_flags |= SMB_FL_BUFALLOC;
104 return (shp);
112 smbios_hdl_t *shp = NULL; local
252 smbios_hdl_t *shp; local
268 smbios_xwrite(smbios_hdl_t *shp, int fd, const void *buf, size_t buflen) argument
284 smbios_write(smbios_hdl_t *shp, int fd) 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/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 Dksyms_snapshot.c135 Shdr *shp; local
167 shp = &hdr.shdr[KSHDR_SYMTAB];
168 shp->sh_name = 1; /* ksyms_shstrtab[1] = ".symtab" */
169 shp->sh_type = SHT_SYMTAB;
170 shp->sh_offset = kw.kw_size[KW_HEADER];
171 shp->sh_size = kw.kw_size[KW_LOCALS] + kw.kw_size[KW_GLOBALS];
172 shp->sh_link = KSHDR_STRTAB;
173 shp->sh_info = kw.kw_size[KW_LOCALS] / sizeof (Sym);
174 shp->sh_addralign = sizeof (Addr);
175 shp
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_smbios.c103 smbios_hdl_t *shp; local
105 shp = topo_mod_smbios(mod);
106 if (shp == NULL)
111 (void) smbios_info_extmemdevice(shp,
126 (void) smbios_info_extmemdevice(shp,
128 (void) smbios_info_memdevice(shp,
212 smbios_hdl_t *shp; local
214 shp = topo_mod_smbios(mod);
215 if (shp == NULL)
227 if (shp !
339 smbios_hdl_t *shp; local
501 smbios_hdl_t *shp; local
588 smbios_hdl_t *shp; local
608 smbios_hdl_t *shp; local
627 smbios_hdl_t *shp; local
[all...]

Completed in 116 milliseconds

12345