Home
last modified time | relevance | path

Searched refs:fptr (Results 1 – 25 of 66) sorted by last modified time

123

/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_kvm.c809 int (*fptr)(uintptr_t, struct as *, physaddr_t *); in kt_vtop() local
833 fptr = (int (*)(uintptr_t, struct as *, physaddr_t *)) in kt_vtop()
836 if ((fptr != NULL) && ((*fptr)(va, asp, pap) == 0)) in kt_vtop()
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_kvm.c308 int (*fptr)(uintptr_t, struct as *, physaddr_t *); in kmt_vtop() local
310 fptr = (int (*)(uintptr_t, struct as *, physaddr_t *)) in kmt_vtop()
313 if ((fptr != NULL) && ((*fptr)(va, asp, pap) == 0)) in kmt_vtop()
/illumos-gate/usr/src/cmd/mail/
H A Ddoopen.c38 FILE *fptr; in doopen() local
42 (fptr = fopen(file, type)) == NULL) { in doopen()
51 return(fptr); in doopen()
/illumos-gate/usr/src/cmd/cxgbetool/
H A Dcxgbetool.c285 FILE *fptr = NULL; in read_input_file() local
289 fptr = fopen(in_file, "rb"); in read_input_file()
290 if (!fptr) { in read_input_file()
295 rc = fseek(fptr, 0, SEEK_END); in read_input_file()
301 *buf_size = ftell(fptr); in read_input_file()
302 rc = fseek(fptr, 0, SEEK_SET); in read_input_file()
315 count = fread(*buf, 1, *buf_size, fptr); in read_input_file()
322 if (fptr) in read_input_file()
323 fclose(fptr); in read_input_file()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_xioctl.c3154 while ((fptr != NULL) && (fptr->buf != NULL) && (types != 0)) { in ql_get_fcache()
3158 cpsize = (fptr->buflen < 100 ? fptr->buflen : 100); in ql_get_fcache()
3241 for (fptr = ha->fcache; fptr != NULL; fptr = fptr->next) { in ql_get_fcache_ex()
3257 while ((fptr != NULL) && (fptr->buf != NULL)) { in ql_get_fcache_ex()
3261 (fptr->buflen < FBUFSIZE ? fptr->buflen : FBUFSIZE), in ql_get_fcache_ex()
3269 fptr = fptr->next; in ql_get_fcache_ex()
7097 fptr = fptr->next; in ql_get_fbuf()
7099 return (fptr); in ql_get_fbuf()
7330 fptr->sig[2] != 'L' || fptr->sig[3] != 'T') { in ql_flash_layout_table()
7333 fptr->sig[1], fptr->sig[2], fptr->sig[3]); in ql_flash_layout_table()
[all …]
H A Dql_hba_fru.c266 ql_fcache_t *fptr = ha->fcache; in ql_populate_hba_fru_details() local
269 while ((fptr != NULL) && (types != 0)) { in ql_populate_hba_fru_details()
271 if ((fptr = ql_get_fbuf(ha->fcache, types)) != NULL) { in ql_populate_hba_fru_details()
273 switch (fptr->type) { in ql_populate_hba_fru_details()
277 "%s fcode: %s;", orv, fptr->verstr); in ql_populate_hba_fru_details()
282 "%s BIOS: %s;", orv, fptr->verstr); in ql_populate_hba_fru_details()
287 "%s EFI: %s;", orv, fptr->verstr); in ql_populate_hba_fru_details()
291 fptr->type); in ql_populate_hba_fru_details()
294 types &= ~(fptr->type); in ql_populate_hba_fru_details()
H A Dql_api.c17387 void *fptr = (void *)&ddi_intr_get_supported_types; in ql_setup_interrupts() local
17389 if (fptr == NULL) { in ql_setup_interrupts()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c1540 fptr = fmt; in _glh_show_history()
1541 while(*fptr) { in _glh_show_history()
1545 const char *start = fptr; in _glh_show_history()
1546 while(*fptr && *fptr != '%') in _glh_show_history()
1547 fptr++; in _glh_show_history()
1551 if(fptr > start) { in _glh_show_history()
1552 len = (int) (fptr - start); in _glh_show_history()
1559 if(*fptr) { in _glh_show_history()
1563 switch(*++fptr) { in _glh_show_history()
1605 if(*fptr) in _glh_show_history()
[all …]
H A Dexpand.c812 const char *fptr = file; /* The pointer used to scan the filename string */ in ef_string_matches_pattern() local
845 for( ; *fptr; fptr++) { in ef_string_matches_pattern()
846 if(ef_string_matches_pattern(fptr, pptr, 0, nextp)) in ef_string_matches_pattern()
859 if(!xplicit && *fptr) { in ef_string_matches_pattern()
860 fptr++; in ef_string_matches_pattern()
875 if(xplicit || !ef_matches_range(*fptr++, ++pptr, &pptr)) in ef_string_matches_pattern()
890 if(*fptr == *pptr) { in ef_string_matches_pattern()
891 fptr++; in ef_string_matches_pattern()
909 return *fptr == '\0'; in ef_string_matches_pattern()
H A Dpcache.c512 char **fptr; /* A pointer into pc->abs_mem->files[] */ in pca_scan_path() local
557 fptr = pc->abs_mem->files; in pca_scan_path()
559 node->files = fptr; in pca_scan_path()
560 fptr += node->nfile; in pca_scan_path()
/illumos-gate/usr/src/cmd/ldap/common/
H A Dconvutf8.c68 const char *fptr; in ldaptool_convert() local
96 fptr = src; in ldaptool_convert()
99 ret = iconv(cd, &fptr, &ileft, &tptr, &oleft); in ldaptool_convert()
106 if (fptr == NULL) /* already in initial state */ in ldaptool_convert()
108 fptr = NULL; in ldaptool_convert()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dexternal.c437 int (*fptr)(int); in rt_bind_guard() local
441 return ((*fptr)(flags)); in rt_bind_guard()
455 int (*fptr)(int); in rt_bind_clear() local
459 return ((*fptr)(flags)); in rt_bind_clear()
478 int (*fptr)(void); in rt_thr_init() local
484 (void) (*fptr)(); in rt_thr_init()
506 thread_t (*fptr)(void); in rt_thr_self() local
509 return ((*fptr)()); in rt_thr_self()
534 int (*fptr)(void); in rt_critical() local
536 if ((fptr = glcs[CI_CRITICAL].lc_un.lc_func) != NULL) in rt_critical()
[all …]
H A Dutil.c121 void (*fptr)(Lm_list *); in rd_event() local
125 fptr = rtld_db_preinit; in rd_event()
128 fptr = rtld_db_postinit; in rd_event()
151 fptr = rtld_db_dlactivity; in rd_event()
169 fptr(lml); in rd_event()
684 void (*fptr)(void) = (void(*)())array[ndx]; in call_array() local
690 (*fptr)(); in call_array()
814 void (*fptr)(void) = FINI(lmp); in call_fini() local
816 if (FINIARRAY(lmp) || fptr) in call_fini()
822 if (fptr) { in call_fini()
[all …]
H A Dtls.c123 int (*fptr)(TLS_modinfo *); in tls_modaddrem() local
126 fptr = lml->lm_lcs[CI_TLS_MODADD].lc_un.lc_func; in tls_modaddrem()
128 fptr = lml->lm_lcs[CI_TLS_MODREM].lc_un.lc_func; in tls_modaddrem()
150 (void) (*fptr)(&tmi); in tls_modaddrem()
261 int (*fptr)(TLS_modinfo **, ulong_t); in tls_statmod() local
263 fptr = lml->lm_lcs[CI_TLS_STATMOD].lc_un.lc_func; in tls_statmod()
288 if (fptr != NULL) in tls_statmod()
289 (void) (*fptr)(tlsmodlist, tls_static_resv); in tls_statmod()
333 (void) (*fptr)(tlsmodlist, (tls_static_size + tls_static_resv)); in tls_statmod()
H A Danalyze.c1723 Fct *fptr = NULL; in map_obj() local
1726 fptr = elf_verify((mpp->mr_addr + mpp->mr_offset), in map_obj()
1729 if (fptr) { in map_obj()
1735 return (fptr); in map_obj()
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit.c317 if (state.pager.fptr != NULL) { in elfedit_msg()
320 stream = state.pager.fptr; in elfedit_msg()
429 if (state.pager.fptr == NULL) { in elfedit_pager_init()
453 if (state.pager.fptr != NULL) { in elfedit_pager_cleanup()
457 state.pager.fptr = NULL; in elfedit_pager_cleanup()
472 FILE *fptr; in elfedit_printf() local
481 fptr = pager ? state.pager.fptr : stdout; in elfedit_printf()
524 FILE *fptr; in dbg_print() local
541 fptr = pager ? state.pager.fptr : stdout; in dbg_print()
580 FILE *fptr; in elfedit_write() local
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A DPgcore.c576 if (fptr->file_elf == NULL || fptr->file_shstrsz <= 1) { in count_debug()
597 file_info_t *fptr; in count_sections() local
605 for (fptr = list_head(&P->file_head); fptr != NULL; in count_sections()
606 fptr = list_next(&P->file_head, fptr)) { in count_sections()
617 if (fptr->file_ctf_dyn) { in count_sections()
702 sym_tbl_t *sym = dynsym ? &fptr->file_dynsym : &fptr->file_symtab; in dump_symtab()
743 if (fptr->file_elf == NULL || fptr->file_shstrsz <= 1) { in dump_debug()
784 file_info_t *fptr; in dump_sections() local
792 for (fptr = list_head(&P->file_head); fptr != NULL; in dump_sections()
793 fptr = list_next(&P->file_head, fptr)) { in dump_sections()
[all …]
H A DPcontrol.c1679 file_info_t *fptr = list_head(&P->file_head); in Prelease() local
1681 (void *)P, fptr->file_pname); in Prelease()
H A DPsymtab.c373 fptr->file_lo->rl_plt_base = fptr->file_plt_base; in map_iter()
389 fptr->file_lbase = basename(fptr->file_lname); in map_iter()
397 fptr->file_rbase = basename(fptr->file_rname); in map_iter()
432 fptr->file_lbase = basename(fptr->file_lname); in map_set()
436 fptr->file_rbase = basename(fptr->file_rname); in map_set()
597 fptr = list_next(&P->file_head, fptr)) { in Pupdate_syms()
647 if (fptr != NULL && fptr->file_lo != NULL && in Paddr_to_text_map()
760 symp = fptr->file_ctf_dyn ? &fptr->file_dynsym : &fptr->file_symtab; in Pbuild_file_ctf()
775 if (pread(fptr->file_fd, fptr->file_ctf_buf, in Pbuild_file_ctf()
1005 fptr = list_next(&P->file_head, fptr)) { in build_map_symtab()
[all …]
H A DPsymtab_machelf.h34 extern Elf *fake_elf32(struct ps_prochandle *P, file_info_t *fptr,
37 extern Elf *fake_elf64(struct ps_prochandle *P, file_info_t *fptr,
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/
H A Dfcip.c934 bzero(fptr->fcip_dest, sizeof (fptr->fcip_dest)); in fcip_port_attach()
935 bzero(fptr->fcip_rtable, sizeof (fptr->fcip_rtable)); in fcip_port_attach()
968 fptr->fcip_sendup_head = fptr->fcip_sendup_tail = NULL; in fcip_port_attach()
1133 fptr->fcip_timeout_id = timeout(fcip_timeout, fptr, in fcip_port_attach_handler()
1243 fptr->fcip_timeout_id = timeout(fcip_timeout, fptr, in fcip_handle_resume()
2102 fptr->fcip_kstatp->ks_private = (void *) fptr; in fcip_kstat_init()
2352 fptr->fcip_mark_offline = fptr->fcip_timeout_ticks + in fcip_statec_cb()
2388 cv_wait(&fptr->fcip_ub_cv, &fptr->fcip_mutex); in fcip_statec_cb()
2392 fptr->fcip_mark_offline = fptr->fcip_timeout_ticks + in fcip_statec_cb()
3135 if (fptr->fcip_ipq && canputnext(fptr->fcip_ipq)) { in fcip_sendup_thr()
[all …]
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp.c678 for (fptr = http->fields[field]; *fptr;) in httpGetSubField()
685 fptr ++; in httpGetSubField()
689 fptr ++; in httpGetSubField()
698 *fptr && *fptr != '=' && !isspace(*fptr & 255) && ptr < (temp + sizeof(temp) - 1); in httpGetSubField()
710 fptr ++; in httpGetSubField()
712 if (!*fptr) in httpGetSubField()
722 fptr ++; in httpGetSubField()
725 fptr ++; in httpGetSubField()
739 while (*fptr && *fptr != '\"') in httpGetSubField()
752 *fptr && !isspace(*fptr & 255) && *fptr != ',' && ptr < (value + HTTP_MAX_VALUE - 1); in httpGetSubField()
[all …]
/illumos-gate/usr/src/lib/librsm/common/
H A Drsmlib.c288 rsm_attach_entry_t fptr; in _rsm_modload() local
307 fptr = (rsm_attach_entry_t)dlsym(dlh, clib); /* lint !e611 */ in _rsm_modload()
308 if (fptr != NULL) { in _rsm_modload()
313 error = fptr(unit, &p->cntr_segops); in _rsm_modload()
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_sec_mechs.c351 get_secfile_ent(FILE *fptr) in get_secfile_ent() argument
558 FILE *fptr; in __nis_get_mechanisms() local
580 while (mp = get_secfile_ent(fptr)) { in __nis_get_mechanisms()
596 (void) fclose(fptr); in __nis_get_mechanisms()
609 (void) fclose(fptr); in __nis_get_mechanisms()
614 (void) fclose(fptr); in __nis_get_mechanisms()
919 get_mechfile_ent(FILE *fptr) in get_mechfile_ent() argument
1006 FILE *fptr; in mf_get_mechs() local
1026 while (mp = get_mechfile_ent(fptr)) { in mf_get_mechs()
1031 (void) fclose(fptr); in mf_get_mechs()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_cto.c47 static int (*fptr)() = 0; in socket() local
51 if (fptr == 0) { in socket()
52 fptr = (int (*)())dlsym(RTLD_NEXT, "socket"); in socket()
53 if (fptr == 0) { in socket()
61 ret = (*fptr) (domain, type, protocol); in socket()

123