/illumos-gate/usr/src/lib/libsmbios/common/ |
H A D | smb_subr.c | 37 smb_open_error(smbios_hdl_t *shp, int *errp, int err) in smb_open_error() argument 39 if (shp != NULL) in smb_open_error() 40 smbios_close(shp); in smb_open_error() 80 smb_dprintf(smbios_hdl_t *shp, const char *format, ...) in smb_dprintf() argument 84 if (!(shp->sh_flags & SMB_FL_DEBUG)) in smb_dprintf()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/ |
H A D | Makefile.com | 26 LIBRARY= shp.a 28 OBJECTS= shp.o pci_strings.o 42 SRCS= ../common/shp.c $(SRC)/common/pci/pci_strings.c 83 pics/shp.o: ../common/shp.c 84 $(COMPILE.c) -o $@ ../common/shp.c
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | sysevent.c | 66 static sysevent_handle_t *shp; variable 94 shp = sysevent_bind_handle(sysevent_dev_handler); in sysevent_init() 95 if (shp == NULL) { in sysevent_init() 103 if (sysevent_subscribe_event(shp, EC_DEV_ADD, subcl, 3) != 0) { in sysevent_init() 105 sysevent_unbind_handle(shp); in sysevent_init() 108 if (sysevent_subscribe_event(shp, EC_DEV_REMOVE, subcl, 3) != 0) { in sysevent_init() 110 sysevent_unbind_handle(shp); in sysevent_init() 115 if (sysevent_subscribe_event(shp, EC_DEV_BRANCH, subcl, 1) != 0) { in sysevent_init() 117 sysevent_unbind_handle(shp); in sysevent_init() 127 if (sysevent_subscribe_event(shp, EC_PWRCTL, subcl, 6) != 0) { in sysevent_init() [all …]
|
/illumos-gate/usr/src/uts/sparc/krtld/ |
H A D | kobj_reloc.c | 139 Shdr * shp; in do_relocate() local 140 shp = (Shdr *)mp->shdrs; in do_relocate() 141 for (i = 0; i < mp->hdr.e_shnum; i++, shp++) { in do_relocate() 142 if (shp->sh_addr == baseaddr) { in do_relocate() 143 if ((shp->sh_flags & SHF_ALLOC) && in do_relocate() 144 !(shp->sh_flags & SHF_WRITE)) in do_relocate() 288 Shdr *shp, *rshp; in do_relocations() local 315 shp = (Shdr *) in do_relocations() 321 if (!(shp->sh_flags & SHF_ALLOC)) in do_relocations() 331 rshp->sh_entsize, shp->sh_addr) < 0) { in do_relocations()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | lex.c | 146 register Shell_t *shp = lp->sh; in refvar() local 147 register Stk_t *stkp = shp->stk; in refvar() 178 sfprintf(lp->kiatmp,"p;%..64d;v;%..64d;%d;%d;r;\n",lp->current,r,shp->inlineno,shp->inlineno); in refvar() 189 register Shell_t *shp = lp->sh; in lex_advance() local 190 register Sfio_t *log= shp->funlog; in lex_advance() 191 Stk_t *stkp = shp->stk; in lex_advance() 196 if(sh_isstate(SH_HISTORY) && shp->gd->hist_ptr) in lex_advance() 197 log = shp->gd->hist_ptr->histfp; in lex_advance() 208 sfwrite(shp->strbuf,lp->lexd.docend,n); in lex_advance() 297 Shell_t *shp = lp->sh; in sh_lex() local [all …]
|
H A D | nvtree.c | 570 Shell_t *shp; member 698 register Namval_t *np, *nq, *last_table=wp->shp->last_table; in outval() 705 wp->shp->last_table = last_table; in outval() 709 wp->shp->last_table = last_table; in outval() 982 Shell_t *shp = sh_getinterp(); in walk_tree() local 984 walk.shp = shp; in walk_tree() 987 shp->last_root = shp->prev_root; in walk_tree() 988 shp->last_table = shp->prev_table; in walk_tree() 990 if(shp->last_table) in walk_tree() 991 shp->last_root = nv_dict(shp->last_table); in walk_tree() [all …]
|
H A D | parse.c | 332 void *sh_parse(Shell_t *shp, Sfio_t *iop, int flag) in sh_parse() argument 335 Lex_t *lexp = (Lex_t*)shp->lex_context; in sh_parse() 338 int sav_prompt = shp->nextprompt; in sh_parse() 339 if(shp->binscript && (sffileno(iop)==shp->infd || (flag&SH_FUNEVAL))) in sh_parse() 340 return((void*)sh_trestore(shp,iop)); in sh_parse() 342 shp->st.staklist = 0; in sh_parse() 345 lexp->inlineno = shp->inlineno; in sh_parse() 346 lexp->firstline = shp->st.firstline; in sh_parse() 347 shp->nextprompt = 1; in sh_parse() 354 sh_lexopen(lexp,shp,0); in sh_parse() [all …]
|
H A D | shcomp.c | 73 Shell_t *shp; in main() local 97 shp = sh_init(argc,argv,(Shinit_f)0); in main() 98 shp->shcomp = 1; in main() 131 shp->inlineno = 1; in main() 138 if(t = (Shnode_t*)sh_parse(shp,in,0)) in main()
|
H A D | streval.c | 68 Shell_t *shp; member 167 Shell_t *shp = ep->shp; in arith_exec() local 168 node.shp = shp; in arith_exec() 437 num = sh_mathfun(shp,(void*)fun,1,arg); in arith_exec() 458 num = sh_mathfun(shp,(void*)fun,2,arg); in arith_exec() 483 num = sh_mathfun(shp,(void*)fun,3,arg); in arith_exec() 526 if(vp->shp->decomma && (c=peekchr(vp))>='0' && c<='9') in gettok() 589 lvalue.shp = vp->shp; in expr() 907 Arith_t *arith_compile(Shell_t *shp,const char *string,char **last,Sfdouble_t(*fun)(const char**,st… in arith_compile() argument 913 cur.shp = shp; in arith_compile() [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_elfread.c | 278 struct generic_shdr *shp = 0; in _dwarf_get_elf_flags_func_nl() local 289 shp = ep->f_shdr + section_index; in _dwarf_get_elf_flags_func_nl() 290 *flags_out = shp->gh_flags; in _dwarf_get_elf_flags_func_nl() 291 *addralign_out = shp->gh_addralign; in _dwarf_get_elf_flags_func_nl() 544 struct generic_shdr *shp = 0; in _dwarf_destruct_elf_nlaccess() local 550 shp = ep->f_shdr; in _dwarf_destruct_elf_nlaccess() 552 for(i = 0; i < shcount; ++i,++shp) { in _dwarf_destruct_elf_nlaccess() 553 free(shp->gh_rels); in _dwarf_destruct_elf_nlaccess() 554 shp->gh_rels = 0; in _dwarf_destruct_elf_nlaccess() 555 free(shp->gh_content); in _dwarf_destruct_elf_nlaccess() [all …]
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_hio.c | 1554 nxge_share_handle_t *shp; in nxge_hio_share_alloc() local 1572 shp = &nxge->shares[vr->region]; in nxge_hio_share_alloc() 1573 shp->nxgep = nxge; in nxge_hio_share_alloc() 1574 shp->index = vr->region; in nxge_hio_share_alloc() 1575 shp->vrp = (void *)vr; in nxge_hio_share_alloc() 1576 shp->tmap = shp->rmap = 0; /* to be assigned by ms_sbind */ in nxge_hio_share_alloc() 1577 shp->rxgroup = 0; /* to be assigned by ms_sadd */ in nxge_hio_share_alloc() 1578 shp->active = B_FALSE; /* not bound yet */ in nxge_hio_share_alloc() 1580 *shandle = (mac_share_handle_t)shp; in nxge_hio_share_alloc() 1590 nxge_share_handle_t *shp = (nxge_share_handle_t *)shandle; in nxge_hio_share_free() local [all …]
|
/illumos-gate/usr/src/common/smbios/ |
H A D | smb_error.c | 70 smbios_errno(smbios_hdl_t *shp) in smbios_errno() argument 72 return (shp->sh_err); in smbios_errno() 76 smb_set_errno(smbios_hdl_t *shp, int error) in smb_set_errno() argument 78 shp->sh_err = error; in smb_set_errno()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | exportlist.c | 75 struct sh_list *shp; in export() local 93 for (shp = share_list; shp; shp = shp->shl_next) { in export() 98 sh = shp->shl_sh; in export()
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj.c | 886 Shdr *shp; in load_linker() local 908 shp = (Shdr *)(mp->shdrs + (i * mp->hdr.e_shentsize)); in load_linker() 910 if (shp->sh_flags & SHF_ALLOC) { in load_linker() 911 if (shp->sh_flags & SHF_WRITE) { in load_linker() 913 mp->data = (char *)shp->sh_addr; in load_linker() 915 mp->text = (char *)shp->sh_addr; in load_linker() 918 if (shp->sh_type == SHT_SYMTAB) { in load_linker() 920 mp->symhdr = shp; in load_linker() 921 mp->symspace = mp->symtbl = (char *)shp->sh_addr; in load_linker() 1599 Shdr *shp; in kobj_export_ksyms() local [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_chassis.c | 48 smbios_hdl_t *shp; in x86pi_gen_chassis() local 50 shp = topo_mod_smbios(mod); in x86pi_gen_chassis() 51 if (shp == NULL) { in x86pi_gen_chassis() 60 rv = smbios_info_common(shp, smb_id, &ip); in x86pi_gen_chassis() 66 rv = smbios_info_chassis(shp, smb_id, &ch); in x86pi_gen_chassis()
|
H A D | x86pi_bay.c | 79 smbios_hdl_t *shp; in bay_bdf() local 81 shp = topo_mod_smbios(mod); in bay_bdf() 82 if (shp == NULL) { in bay_bdf() 95 (void) smbios_info_slot(shp, dev_id, &slot); in bay_bdf() 100 (void) smbios_info_obdevs_ext(shp, dev_id, &ob); in bay_bdf() 281 smbios_hdl_t *shp; in x86pi_gen_bay() local 283 shp = topo_mod_smbios(mod); in x86pi_gen_bay() 284 if (shp == NULL) { in x86pi_gen_bay() 294 rv = smbios_info_port(shp, port_id, &smb_port); in x86pi_gen_bay()
|
H A D | x86pi.c | 175 smbios_hdl_t *shp; in x86pi_enum_start() local 181 shp = x86pi_smb_open(mod); in x86pi_enum_start() 182 if (shp == NULL) { in x86pi_enum_start() 201 x86pi->priv = (void *)shp; in x86pi_enum_start() 272 smbios_hdl_t *shp; in x86pi_enum_gentopo() local 274 shp = topo_mod_smbios(mod); in x86pi_enum_gentopo() 275 if (shp == NULL) { in x86pi_enum_gentopo() 348 if (smbios_info_extport(shp, smbc->ids[i].id, in x86pi_enum_gentopo() 506 if (smbios_info_pciexrc(shp, smbc->ids[i].id, in x86pi_enum_gentopo()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | poll_solaris.c | 39 #define sh_contexttoshell(context) ((context)?(sh_contexttoshb(context)->shp):(NULL)) 243 Shell_t *shp = context->shp; in b_poll() local 287 array_np = nv_open(varname, shp->var_tree, NV_NOFAIL|NV_NOADD); in b_poll() 324 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].fd", varname, subname); in b_poll() 333 np = nv_open_fmt(shp->var_tree, NV_NOFAIL|NV_NOADD, "%s[%s].events", varname, subname); in b_poll() 355 np = nv_open_fmt(shp->var_tree, NV_VARNAME|NV_ARRAY|NV_NOFAIL, "%s", eventarrayname); in b_poll() 369 np = nv_open_fmt(shp->var_tree, NV_NOFAIL, "%s[%s].revents", varname, subname); in b_poll()
|
H A D | shiocmd_solaris.c | 36 #define sh_contexttoshell(context) ((context)?(sh_contexttoshb(context)->shp):(NULL)) 494 Shell_t *shp = context->shp; in b_open() local 579 np = nv_open(argv[0], shp->var_tree, NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_open() 665 Shell_t *shp = context->shp; in b_tmpfile() local 702 np = nv_open(argv[0], shp->var_tree, NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_tmpfile() 741 Shell_t *shp = context->shp; in b_dup() local 777 np = nv_open(argv[0],shp->var_tree,NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_dup() 816 Shell_t *shp = context->shp; in b_stat() local 849 np = nv_open(argv[0],shp->var_tree,NV_ARRAY|NV_VARNAME|NV_NOASSIGN); in b_stat() 880 Shell_t *shp = context->shp; in b_rewind() local
|
H A D | enum.c | 195 Shell_t *shp = context->shp; in enum_create() local 230 tp = nv_open(stakptr(n), shp->var_tree, NV_VARNAME); in enum_create() 276 Shell_t *shp = ((Shbltin_t*)context)->shp; in lib_init() local 281 mp = nv_search("typeset",shp->bltin_tree,0); in lib_init()
|
/illumos-gate/usr/src/cmd/ast/ksh/builtins/ |
H A D | alias.c | 182 Shell_t *shp; in script_builtin_main() local 202 shp = sh_init(argc + 1, xargv, 0); in script_builtin_main() 203 if (!shp) in script_builtin_main() 205 if (setjmp(*shp->jmplist) == 0) in script_builtin_main() 208 np = nv_open("exitval", shp->var_tree, 0); in script_builtin_main()
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 590 const GElf_Shdr *shp = &sp[i]; in ctf_fdcreate_int() local 591 const GElf_Shdr *lhp = &sp[shp->sh_link]; in ctf_fdcreate_int() 593 if (shp->sh_link >= shnum) in ctf_fdcreate_int() 596 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdcreate_int() 600 if (shp->sh_type == SHT_PROGBITS && in ctf_fdcreate_int() 601 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0 && in ctf_fdcreate_int() 603 ctfsect.cts_name = strs + shp->sh_name; in ctf_fdcreate_int() 604 ctfsect.cts_type = shp->sh_type; in ctf_fdcreate_int() 605 ctfsect.cts_flags = shp->sh_flags; in ctf_fdcreate_int() 606 ctfsect.cts_size = shp->sh_size; in ctf_fdcreate_int() [all …]
|
/illumos-gate/usr/src/cmd/hal/addons/storage/ |
H A D | addon-storage.c | 44 static sysevent_handle_t *shp = NULL; variable 61 shp = sysevent_bind_handle (sysevent_dev_handler); in sysevent_init() 62 if (shp == NULL) { in sysevent_init() 68 if (sysevent_subscribe_event (shp, EC_DEV_STATUS, subcl, 1) != 0) { in sysevent_init() 70 sysevent_unbind_handle (shp); in sysevent_init() 78 if (shp != NULL) { in sysevent_fini() 79 sysevent_unbind_handle (shp); in sysevent_fini() 80 shp = NULL; in sysevent_fini()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | io.h | 84 extern int sh_get_unused_fd(Shell_t* shp, int min_fd); 96 #define VALIDATE_FD(shp, fd) \ argument 97 (((fd) >= (shp)->gd->lim.open_max) ? sh_iovalidfd(shp, fd) : 1)
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 967 Shdr *shp; in xkb_build_ksyms() local 1011 shp = &hdr->kh_shdr[XKB_SHDR_SYMTAB]; in xkb_build_ksyms() 1012 shp->sh_name = 1; /* xkb_shstrtab[1] = ".symtab" */ in xkb_build_ksyms() 1013 shp->sh_type = SHT_SYMTAB; in xkb_build_ksyms() 1014 shp->sh_offset = sizeof (xkb_namelist_t); in xkb_build_ksyms() 1015 shp->sh_size = sizes[XKB_WALK_LOCAL] + sizes[XKB_WALK_GLOBAL]; in xkb_build_ksyms() 1016 shp->sh_link = XKB_SHDR_STRTAB; in xkb_build_ksyms() 1017 shp->sh_info = sizes[XKB_WALK_LOCAL] / sizeof (Sym); in xkb_build_ksyms() 1018 shp->sh_addralign = sizeof (Addr); in xkb_build_ksyms() 1019 shp->sh_entsize = sizeof (Sym); in xkb_build_ksyms() [all …]
|