/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcip.c | 134 static void fcip_setipq(struct fcip *fptr); 142 static int fcip_start(queue_t *wq, mblk_t *mp, struct fcip *fptr, 144 static void fcip_sendup(struct fcip *fptr, mblk_t *mp, 146 static struct fcipstr *fcip_accept(struct fcipstr *slp, struct fcip *fptr, 148 static mblk_t *fcip_addudind(struct fcip *fptr, mblk_t *mp, 150 static int fcip_setup_mac_addr(struct fcip *fptr); 151 static void fcip_kstat_init(struct fcip *fptr); 174 static int fcip_port_attach_handler(struct fcip *fptr); 197 static void fcip_handle_topology(struct fcip *fptr); 198 static int fcip_init_port(struct fcip *fptr); [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab.c | 193 file_info_t *fptr; in file_info_new() local 198 if ((fptr = calloc(1, sizeof (file_info_t))) == NULL) in file_info_new() 201 list_insert_tail(&P->file_head, fptr); in file_info_new() 202 (void) strcpy(fptr->file_pname, mptr->map_pmap.pr_mapname); in file_info_new() 203 mptr->map_file = fptr; in file_info_new() 204 fptr->file_ref = 1; in file_info_new() 205 fptr->file_fd = -1; in file_info_new() 206 fptr->file_dbgfile = -1; in file_info_new() 217 if ((fptr->file_saddrs = get_saddrs(P, mptr->map_pmap.pr_vaddr, in file_info_new() 218 &fptr->file_nsaddrs)) == NULL) in file_info_new() [all …]
|
H A D | Pgcore.c | 557 is_debug_section(file_info_t *fptr, GElf_Shdr *shdr) in is_debug_section() argument 559 if (shdr->sh_name == 0 || shdr->sh_name > fptr->file_shstrsz) in is_debug_section() 562 if (strncmp(fptr->file_shstrs + shdr->sh_name, ".debug_", in is_debug_section() 571 count_debug(file_info_t *fptr) in count_debug() argument 576 if (fptr->file_elf == NULL || fptr->file_shstrsz <= 1) { in count_debug() 580 while ((scn = elf_nextscn(fptr->file_elf, scn)) != NULL) { in count_debug() 586 if (is_debug_section(fptr, &shdr)) 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() [all …]
|
H A D | Pzone.c | 775 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 D | file.c | 476 ARFILE *fptr; in mksymtab() local 488 for (fptr = listhead; fptr; fptr = fptr->ar_next) { in mksymtab() 490 if ((fptr->ar_elf != NULL) && (fptr->ar_pathname == NULL)) { in mksymtab() 494 elf = fptr->ar_elf; in mksymtab() 495 } else if ((fptr->ar_elf == NULL) && in mksymtab() 496 (fptr->ar_pathname != NULL)) { in mksymtab() 520 if (fptr->ar_size > 0xffffffff) { in mksymtab() 523 fptr->ar_pathname); in mksymtab() 529 open(fptr->ar_pathname, O_RDONLY)) == -1) { in mksymtab() 532 fptr->ar_pathname, strerror(err)); in mksymtab() [all …]
|
H A D | cmd.c | 247 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 D | debug.c | 58 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 D | userdefs.c | 54 (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() 248 outcount += fprintf(fptr, "basedir=%s ", deflts->defparent); in dispusrdef() 253 outcount += fprintf(fptr, "rid=%ld ", deflts->defrid); in dispusrdef() 258 outcount += fprintf(fptr, "skel=%s ", deflts->defskel); in dispusrdef() 263 outcount += fprintf(fptr, "shell=%s ", deflts->defshell); in dispusrdef() 268 outcount += fprintf(fptr, "inactive=%d ", deflts->definact); in dispusrdef() 273 outcount += fprintf(fptr, "expire=%s ", deflts->defexpire); in dispusrdef() [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | external.c | 440 int (*fptr)(int); in rt_bind_guard() 443 if ((fptr = glcs[CI_BIND_GUARD].lc_un.lc_func) != NULL) { in rt_bind_guard() 444 return ((*fptr)(flags)); in rt_bind_guard() 458 int (*fptr)(int); in rt_bind_clear() 461 if ((fptr = glcs[CI_BIND_CLEAR].lc_un.lc_func) != NULL) { in rt_bind_clear() 462 return ((*fptr)(flags)); in rt_bind_clear() 481 int (*fptr)(void); in rt_thr_init() 483 if ((fptr = lml->lm_lcs[CI_THRINIT].lc_un.lc_func) != NULL) { in rt_thr_init() 487 (void) (*fptr)(); in rt_thr_init() 509 thread_t (*fptr)(voi in rt_thr_self() 438 int (*fptr)(int); rt_bind_guard() local 456 int (*fptr)(int); rt_bind_clear() local 479 int (*fptr)(void); rt_thr_init() local 507 thread_t (*fptr)(void); rt_thr_self() local 535 int (*fptr)(void); rt_critical() local [all...] |
H A D | tls.c | 123 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 D | ldap_cto.c | 47 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()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
H A D | random.c | 179 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 D | unwind.c | 76 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/cmd/pwck/ |
H A D | pwck.c | 69 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/libc/amd64/unwind/ |
H A D | thrp_unwind.c | 87 void (*fptr)(_Unwind_Stop_Fn, void *); in _thrp_unwind() local 95 fptr = NULL; in _thrp_unwind() 97 fptr = (void (*)())self->ul_ex_unwind; in _thrp_unwind() 103 if (fptr != NULL) in _thrp_unwind() 104 (*fptr)(posix_stop_func, headp); in _thrp_unwind()
|
/illumos-gate/usr/src/lib/print/libhttp-core/common/ |
H A D | http.c | 664 const char *fptr; /* Pointer into field */ in httpGetSubField() local 678 for (fptr = http->fields[field]; *fptr;) in httpGetSubField() 684 while (isspace(*fptr & 255)) in httpGetSubField() 685 fptr ++; in httpGetSubField() 687 if (*fptr == ',') in httpGetSubField() 689 fptr ++; in httpGetSubField() 698 *fptr && *fptr != '=' && !isspace(*fptr & 255) && ptr < (temp + sizeof(temp) - 1); in httpGetSubField() 699 *ptr++ = *fptr++); in httpGetSubField() 709 while (isspace(*fptr & 255)) in httpGetSubField() 710 fptr ++; in httpGetSubField() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | demangle.c | 63 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/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_hba_fru.c | 266 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()
|
/illumos-gate/usr/src/cmd/tic/ |
H A D | tic_parse.c | 115 struct use_item *fptr, *bptr; member 218 ptr = ptr->fptr) { in compile() 240 for (ptr = use_list.head; ptr != NULL; 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() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | random.c | 142 unsigned int *fptr, *rptr; member 334 rp->fptr = &rp->state[ (rear + rp->rand_sep)%rp->rand_deg ]; in setstate() 368 *rp->fptr += *rp->rptr; in random() 369 i = (*rp->fptr >> 1)&0x7fffffff; /* chucking least random bit */ in random() 370 if (++rp->fptr >= rp->end_ptr) { in random() 371 rp->fptr = rp->state; in random() 408 rp->fptr = &rp->state[ rp->rand_sep ]; in srandom()
|
/illumos-gate/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_sec_mechs.c | 351 get_secfile_ent(FILE *fptr) in get_secfile_ent() argument 377 while (((cp = nextline(fptr, line)) != NULL) && in get_secfile_ent() 558 FILE *fptr; in __nis_get_mechanisms() local 575 if (!(fptr = fopen(NIS_SEC_CF_PATHNAME, "rF"))) { in __nis_get_mechanisms() 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 928 while (((cp = nextline(fptr, line)) != NULL) && in get_mechfile_ent() [all …]
|
/illumos-gate/usr/src/cmd/csplit/ |
H A D | csplit.c | 356 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/mail/ |
H A D | doopen.c | 38 FILE *fptr; in doopen() local 42 (fptr = fopen(file, type)) == NULL) { in doopen() 51 return(fptr); in doopen()
|
/illumos-gate/usr/src/cmd/format/ |
H A D | menu_defect.c | 534 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/lib/gss_mechs/mech_krb5/support/ |
H A D | errors.c | 28 static const char *(KRB5_CALLCONV *fptr)(long); /* = &error_message */ 93 if (fptr == NULL) { in krb5int_get_error() 129 r = (char *) fptr(code); in krb5int_get_error() 164 fptr = f; in krb5int_set_error_info_callout_fn()
|