Home
last modified time | relevance | path

Searched refs:fptr (Results 1 – 25 of 67) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/
H A Dfcip.c951 bzero(fptr->fcip_dest, sizeof (fptr->fcip_dest)); in fcip_port_attach()
952 bzero(fptr->fcip_rtable, sizeof (fptr->fcip_rtable)); in fcip_port_attach()
1153 fptr->fcip_timeout_id = timeout(fcip_timeout, fptr, in fcip_port_attach_handler()
1263 fptr->fcip_timeout_id = timeout(fcip_timeout, fptr, in fcip_handle_resume()
2160 fptr->fcip_kstatp->ks_private = (void *) fptr; in fcip_kstat_init()
2415 fptr->fcip_mark_offline = fptr->fcip_timeout_ticks + in fcip_statec_cb()
2451 cv_wait(&fptr->fcip_ub_cv, &fptr->fcip_mutex); in fcip_statec_cb()
2455 fptr->fcip_mark_offline = fptr->fcip_timeout_ticks + in fcip_statec_cb()
3214 if (fptr->fcip_ipq && canputnext(fptr->fcip_ipq)) { in fcip_sendup_thr()
7108 tnf_opaque, fptr, fptr)); in fcip_get_broadcast_did()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
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 DPgcore.c611 if (fptr->file_elf == NULL || fptr->file_shstrsz <= 1) { in count_debug()
632 file_info_t *fptr; in count_sections() local
640 for (fptr = list_head(&P->file_head); fptr != NULL; in count_sections()
641 fptr = list_next(&P->file_head, fptr)) { in count_sections()
652 if (fptr->file_ctf_dyn) { in count_sections()
737 sym_tbl_t *sym = dynsym ? &fptr->file_dynsym : &fptr->file_symtab; in dump_symtab()
778 if (fptr->file_elf == NULL || fptr->file_shstrsz <= 1) { in dump_debug()
819 file_info_t *fptr; in dump_sections() local
827 for (fptr = list_head(&P->file_head); fptr != NULL; in dump_sections()
828 fptr = list_next(&P->file_head, fptr)) { in dump_sections()
[all …]
H A DPzone.c775 file_info_t *fptr = mptr->map_file; in Pfindmap() local
780 if ((fptr != NULL) && (fptr->file_rname != NULL)) { in Pfindmap()
781 (void) strlcpy(s, fptr->file_rname, n); in Pfindmap()
788 ((fptr != NULL) && (fptr->file_lname != NULL) && in Pfindmap()
789 (strcmp(fptr->file_lname, "a.out") == 0))) { in Pfindmap()
817 fptr = mptr->map_file; in Pfindmap()
818 if ((fptr != NULL) && (fptr->file_lname != NULL)) { in Pfindmap()
819 (void) strlcpy(buf, fptr->file_lname, sizeof (buf)); in Pfindmap()
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c476 ARFILE *fptr; in mksymtab() local
488 for (fptr = listhead; fptr; fptr = fptr->ar_next) { in mksymtab()
983 (void) snprintf(fptr->ar_name, sizeof (fptr->ar_name), in savelongname()
1040 for (fptr = listhead; fptr; fptr = fptr->ar_next) { in require64()
1240 for (fptr = listhead; fptr; fptr = fptr->ar_next) { in writefile()
1260 fptr->ar_longname = fptr->ar_rawname; in writefile()
1265 trimslash(fptr->ar_longname) : fptr->ar_name, in writefile()
1266 EC_WORD(fptr->ar_date), fptr->ar_uid, fptr->ar_gid, in writefile()
1267 fptr->ar_mode, fptr->ar_size + fptr->ar_padding); in writefile()
1372 for (fptr = listhead; fptr; fptr = fptr->ar_next) { in mklong_tab()
[all …]
H A Dcmd.c247 ARFILE *fptr; in dcmd() local
250 for (fptr = getfile(cmd_info); fptr; fptr = getfile(cmd_info)) { in dcmd()
251 if (match(fptr->ar_longname, cmd_info) != NULL) { in dcmd()
261 mesg('d', fptr->ar_longname, cmd_info); in dcmd()
274 mesg('u', fptr->ar_longname, cmd_info); in dcmd()
275 backptr = fptr; in dcmd()
519 ARFILE *fptr; in qcmd() local
525 for (fptr = getfile(cmd_info); fptr; fptr = getfile(cmd_info)) in qcmd()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Ddebug.c58 FILE *fptr; /* File to send debug output */ member
73 (void) fclose(dbg_ofile.fptr); in dbg_cleanup()
75 dbg_ofile.fptr = stderr; in dbg_cleanup()
109 FILE *fptr = fopen(ofile, MSG_ORIG(MSG_DBG_FOPEN_MODE)); in dbg_setup() local
110 if (fptr == NULL) { in dbg_setup()
118 dbg_ofile.fptr = fptr; in dbg_setup()
207 dbg_ofile.fptr); in dbg_print()
209 (void) fputs(MSG_INTL(MSG_DBG_DFLT_FMT), dbg_ofile.fptr); in dbg_print()
228 (void) vfprintf(dbg_ofile.fptr, format, args); in dbg_print()
229 (void) fprintf(dbg_ofile.fptr, MSG_ORIG(MSG_STR_NL)); in dbg_print()
/illumos-gate/usr/src/cmd/oamuser/user/
H A Duserdefs.c54 (void) fprintf(fptr, "\n"); \
228 dispusrdef(FILE *fptr, unsigned flags, char *usertype) in dispusrdef() argument
236 outcount += fprintf(fptr, "group=%s,%ld ", in dispusrdef()
242 outcount += fprintf(fptr, "project=%s,%ld ", in dispusrdef()
253 outcount += fprintf(fptr, "rid=%ld ", deflts->defrid); in dispusrdef()
258 outcount += fprintf(fptr, "skel=%s ", deflts->defskel); in dispusrdef()
278 outcount += fprintf(fptr, "auths=%s ", deflts->defauth); in dispusrdef()
299 outcount += fprintf(fptr, "defaultpriv=%s ", in dispusrdef()
305 outcount += fprintf(fptr, "lock_after_retries=%s ", in dispusrdef()
311 outcount += fprintf(fptr, "roleauth=%s ", in dispusrdef()
[all …]
/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 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()
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_cto.c49 static int (*fptr)() = 0; in socket() local
53 if (fptr == 0) { in socket()
54 fptr = (int (*)())dlsym(RTLD_NEXT, "socket"); in socket()
55 if (fptr == 0) { in socket()
63 ret = (*fptr) (domain, type, protocol); in socket()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Drandom.c179 static long int *fptr = &randtbl[SEP_3 + 1]; variable
218 fptr = &state[rand_sep]; in srandom()
333 fptr = &state[(rear + rand_sep) % rand_deg]; in setstate()
362 *fptr += *rptr; in random()
364 i = (*fptr >> 1) & LONG_MAX; in random()
365 ++fptr; in random()
366 if (fptr >= end_ptr) in random()
368 fptr = state; in random()
/illumos-gate/usr/src/lib/libc/port/unwind/
H A Dunwind.c76 void (*fptr)(void (*func)(void *), void *arg); in _t_cancel() local
84 fptr = NULL; in _t_cancel()
86 fptr = (void (*)())self->ul_ex_unwind; in _t_cancel()
100 if (fptr != NULL && self->ul_unwind) { in _t_cancel()
102 (*fptr)(_thrp_unwind, NULL); in _t_cancel()
/illumos-gate/usr/src/lib/libc/amd64/unwind/
H A Dthrp_unwind.c92 void (*fptr)(_Unwind_Stop_Fn, void *); in _thrp_unwind() local
100 fptr = NULL; in _thrp_unwind()
102 fptr = (void (*)())self->ul_ex_unwind; in _thrp_unwind()
108 if (fptr != NULL) in _thrp_unwind()
109 (*fptr)(posix_stop_func, headp); in _thrp_unwind()
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Ddemangle.c63 static char *(*fptr)() = 0; in conv_demangle_name() local
77 if (fptr == 0) { in conv_demangle_name()
82 !(fptr = (char *(*)())dlsym(hdl, MSG_ORIG(MSG_DEM_SYM)))) in conv_demangle_name()
87 if ((d = fptr(name, SYSDEM_LANG_AUTO, NULL)) == NULL) in conv_demangle_name()
/illumos-gate/usr/src/cmd/pwck/
H A Dpwck.c69 FILE *fptr; in main() local
90 if ((fptr = fopen(pw_file, "r")) == NULL) { in main()
95 if (fstat(fileno(fptr), &stat_buf) < 0) { in main()
98 (void) fclose(fptr); in main()
104 (void) fclose(fptr); in main()
108 while (fgets(buf, sizeof (buf), fptr) != NULL) { in main()
217 (void) fclose(fptr); in main()
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp.c680 for (fptr = http->fields[field]; *fptr;) in httpGetSubField()
687 fptr ++; in httpGetSubField()
691 fptr ++; in httpGetSubField()
700 *fptr && *fptr != '=' && !isspace(*fptr & 255) && ptr < (temp + sizeof(temp) - 1); in httpGetSubField()
712 fptr ++; in httpGetSubField()
714 if (!*fptr) in httpGetSubField()
724 fptr ++; in httpGetSubField()
727 fptr ++; in httpGetSubField()
741 while (*fptr && *fptr != '\"') in httpGetSubField()
754 *fptr && !isspace(*fptr & 255) && *fptr != ',' && ptr < (value + HTTP_MAX_VALUE - 1); in httpGetSubField()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_hba_fru.c270 ql_fcache_t *fptr = ha->fcache; in ql_populate_hba_fru_details() local
273 while ((fptr != NULL) && (types != 0)) { in ql_populate_hba_fru_details()
275 if ((fptr = ql_get_fbuf(ha->fcache, types)) != NULL) { in ql_populate_hba_fru_details()
277 switch (fptr->type) { in ql_populate_hba_fru_details()
281 "%s fcode: %s;", orv, fptr->verstr); in ql_populate_hba_fru_details()
286 "%s BIOS: %s;", orv, fptr->verstr); in ql_populate_hba_fru_details()
291 "%s EFI: %s;", orv, fptr->verstr); in ql_populate_hba_fru_details()
295 fptr->type); in ql_populate_hba_fru_details()
298 types &= ~(fptr->type); in ql_populate_hba_fru_details()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Drandom.c144 unsigned int *fptr, *rptr; member
336 rp->fptr = &rp->state[ (rear + rp->rand_sep)%rp->rand_deg ]; in setstate()
370 *rp->fptr += *rp->rptr; in random()
371 i = (*rp->fptr >> 1)&0x7fffffff; /* chucking least random bit */ in random()
372 if (++rp->fptr >= rp->end_ptr) { in random()
373 rp->fptr = rp->state; in random()
410 rp->fptr = &rp->state[ rp->rand_sep ]; in srandom()
/illumos-gate/usr/src/cmd/tic/
H A Dtic_parse.c115 struct use_item *fptr, *bptr; member
218 ptr = ptr->fptr) { in compile()
257 for (ptr = use_list.head; ptr != NULL; ptr = ptr->fptr) { in dump_list()
261 ptr, ptr->offset, ptr->bptr, ptr->fptr, line); in dump_list()
452 use_list.tail->fptr = item; in enqueue()
453 item->fptr = NULL; in enqueue()
457 item->fptr = item->bptr = NULL; in enqueue()
473 if (ptr->fptr == NULL) in dequeue()
476 (ptr->fptr)->bptr = ptr->bptr; in dequeue()
479 use_list.head = ptr->fptr; in dequeue()
[all …]
/illumos-gate/usr/src/cmd/mail/
H A Ddoopen.c41 FILE *fptr; local
45 (fptr = fopen(file, type)) == NULL) {
54 return(fptr);
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_sec_mechs.c353 get_secfile_ent(FILE *fptr) in get_secfile_ent() argument
560 FILE *fptr; in __nis_get_mechanisms() local
582 while (mp = get_secfile_ent(fptr)) { in __nis_get_mechanisms()
598 (void) fclose(fptr); in __nis_get_mechanisms()
611 (void) fclose(fptr); in __nis_get_mechanisms()
616 (void) fclose(fptr); in __nis_get_mechanisms()
921 get_mechfile_ent(FILE *fptr) in get_mechfile_ent() argument
1008 FILE *fptr; in mf_get_mechs() local
1028 while (mp = get_mechfile_ent(fptr)) { in mf_get_mechs()
1033 (void) fclose(fptr); in mf_get_mechs()
[all …]
/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c356 static char *fptr; in getfile() local
364 if (fptr == 0) in getfile()
365 for (fptr = file; *fptr != '\0'; fptr++) in getfile()
367 (void) sprintf(fptr, "%.*d", fiwidth, ctr++); in getfile()
370 if (strlen(fptr) > fiwidth) { in getfile()
399 (void) sprintf(fptr, "%.*d", fiwidth, (ctr-2)); in getfile()
/illumos-gate/usr/src/cmd/format/
H A Dmenu_defect.c534 FILE *fptr; in d_dump() local
562 if ((fptr = fopen(str, "w+")) == NULL) { in d_dump()
570 (void) fprintf(fptr, "0x%08x%8d 0x%08x\n", in d_dump()
579 (void) fprintf(fptr, "%4d%8d%7d%8d%8d%8d\n", in d_dump()
587 (void) fclose(fptr); in d_dump()
609 FILE *fptr; in d_load() local
651 if ((fptr = fopen(filename, "r")) == NULL) { in d_load()
659 items = fscanf(fptr, "0x%x%d 0x%x\n", &magicno, in d_load()
701 items = fscanf(fptr, "%*d%hd%hd%d%hd%hd\n", &dptr->cyl, in d_load()
732 (void) fclose(fptr); in d_load()
/illumos-gate/usr/src/cmd/cxgbetool/
H A Dcxgbetool.c281 FILE *fptr = NULL; in read_input_file() local
285 fptr = fopen(in_file, "rb"); in read_input_file()
286 if (!fptr) { in read_input_file()
291 rc = fseek(fptr, 0, SEEK_END); in read_input_file()
297 *buf_size = ftell(fptr); in read_input_file()
298 rc = fseek(fptr, 0, SEEK_SET); in read_input_file()
311 count = fread(*buf, 1, *buf_size, fptr); in read_input_file()
318 if (fptr) in read_input_file()
319 fclose(fptr); in read_input_file()

123