/illumos-gate/usr/src/uts/sun4/os/ |
H A D | machdep.c | 75 kfpu_t *fp; in thread_stk_init() local 82 fp = (kfpu_t *)stk; in thread_stk_init() 83 fp->fpu_fprs = 0; in thread_stk_init() 129 kfpu_t *fp; in lwp_stk_init() local 135 fp = (kfpu_t *)stk; in lwp_stk_init() 267 if ((fp->fpu_en) || (fp->fpu_fprs & FPRS_FEF)) in lwp_freeregs() 321 save_gsr(fp); in xregs_getfpfiller() 323 gsr = get_gsr(fp); in xregs_getfpfiller() 389 if ((fp->fpu_en) || (fp->fpu_fprs & FPRS_FEF)) { in getfpasrs() 395 save_gsr(fp); in getfpasrs() [all …]
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | linux.c | 95 struct preloaded_file *fp; in linux_loadkernel() local 108 if (fp != NULL) in linux_loadkernel() 144 fp = file_alloc(); in linux_loadkernel() 145 if (fp == NULL) { in linux_loadkernel() 150 bios_addsmapdata(fp); in linux_loadkernel() 162 file_discard(fp); in linux_loadkernel() 196 file_discard(fp); in linux_loadkernel() 208 file_discard(fp); in linux_loadkernel() 223 file_discard(fp); in linux_loadkernel() 268 *result = fp; in linux_loadkernel() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rw.c | 80 file_t *fp; in read() local 97 vp = fp->f_vnode; in read() 216 file_t *fp; in write() local 342 file_t *fp; in pread() local 482 file_t *fp; in pwrite() local 617 file_t *fp; in readv() local 810 file_t *fp; in writev() local 994 file_t *fp; in preadv() local 1204 file_t *fp; in pwritev() local 1422 file_t *fp; in pread64() local [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | myfopen.c | 61 getnode(FILE *fp) in getnode() argument 69 newnode->fp = fp; in getnode() 75 search(FILE *fp) in search() argument 80 if (tmp->fp == fp) in search() 86 append(FILE *fp) in append() argument 90 if ((newnode = getnode(fp)) == (NODE *)NULL) in append() 127 FILE *fp; in my_fopen() local 129 if ((fp = fopen(file, mode)) == (FILE *)NULL) { in my_fopen() 131 return(fp); in my_fopen() 133 curptr = append(fp); in my_fopen() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | devcache.c | 483 kfile_t *fp; in kfcreate() local 492 fp->kf_fpos = 0; in kfcreate() 493 fp->kf_state = 0; in kfcreate() 506 *kfilep = fp; in kfcreate() 536 err = vn_rdwr(UIO_READ, fp->kf_vp, buf, bufsiz, fp->kf_fpos, in kfread() 551 fp->kf_fpos += n; in kfread() 573 err = vn_rdwr(UIO_WRITE, fp->kf_vp, buf, len, fp->kf_fpos, in kfwrite() 613 kfclose(kfile_t *fp) in kfclose() argument 619 if ((fp->kf_vnflags & FWRITE) && fp->kf_state == 0) { in kfclose() 628 rval = VOP_CLOSE(fp->kf_vp, fp->kf_vnflags, 1, in kfclose() [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_config.c | 58 r = fgets(p, (int)real_bufsize, fp); in super_fgets() 59 if (feof(fp) && !r) in super_fgets() 95 FILE *fp; in slp_readConfig() local 99 fp = NULL; in slp_readConfig() 101 fp = fopen(cfile, "rF"); in slp_readConfig() 102 if (!fp) in slp_readConfig() 111 (void) fclose(fp); in slp_readConfig() 115 while (!feof(fp)) { in slp_readConfig() 125 ferror(fp)); in slp_readConfig() 126 (void) fclose(fp); in slp_readConfig() [all …]
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipfstat.c | 745 fp->f_st[0].fr_bad, fp->f_st[1].fr_bad); 765 fp->f_st[0].fr_pkl, fp->f_st[1].fr_pkl); 769 fp->f_st[0].fr_nfr, fp->f_st[0].fr_bnfr, 772 fp->f_st[1].fr_nfr, fp->f_st[1].fr_bnfr, 775 fp->f_st[0].fr_ads, fp->f_st[0].fr_bads); 779 fp->f_st[0].fr_ret, fp->f_st[1].fr_ret); 788 fp->f_froute[0], fp->f_froute[1]); 850 fp->fr_data = (char *)fp + sizeof(*fp); 871 binprint(fp, sizeof(*fp)); 873 binprint(fp->fr_data, fp->fr_dsize); [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_pr.c | 80 FILE * fp; member 137 if (pvt->fp) in pr_close() 178 if (pvt->fp) { in pr_rewind() 181 (void)fclose(pvt->fp); in pr_rewind() 186 (void)fclose(pvt->fp); in pr_rewind() 187 pvt->fp = NULL; in pr_rewind() 198 if (!pvt->fp) in pr_next() 200 if (!pvt->fp) in pr_next() 234 ungetc(c, pvt->fp); in pr_next() 282 if (pvt->fp != NULL) { in pr_minimize() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | walkstack.c | 134 #define CHECK_FOR_SIGFRAME(fp, oldctx) ((fp) + SA(sizeof (struct frame)) \ argument 140 #define CHECK_FOR_SIGFRAME(fp, oldctx) ((((fp) + sizeof (struct frame)) + \ argument 142 (((struct frame *)fp)->fr_savpc == (greg_t)-1)) 147 #define CHECK_FOR_SIGFRAME(fp, oldctx) ((((fp) + sizeof (struct frame)) + \ argument 166 if ((uintptr_t)fp & (sizeof (void *) - 1)) in read_safe() 170 (off_t)&fp->fr_savfp) != sizeof (fp->fr_savfp)) || in read_safe() 172 (off_t)&fp->fr_savpc) != sizeof (fp->fr_savpc)) in read_safe() 208 struct frame *fp = (struct frame *) in walkcontext() local 241 while (fp != NULL) { in walkcontext() 306 signo = fp->fr_arg[0]; in walkcontext() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | asru.c | 33 asru_short(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in asru_short() argument 37 fmdump_printf(fp, "%-20s %-32s\n", in asru_short() 45 asru_verb1(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in asru_verb1() argument 66 fmdump_printf(fp, "%-20s %-36s %s\n", in asru_verb1() 96 fmdump_printf(fp, "%-20s.%9.9llu %-36s %s\n", in asru_verb23_cmn() 102 nvlist_print(fp, rp->rec_nvl); in asru_verb23_cmn() 104 fmdump_printf(fp, "\n"); in asru_verb23_cmn() 110 asru_verb2(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in asru_verb2() argument 112 return (asru_verb23_cmn(lp, rp, fp, NULL)); in asru_verb2() 122 nvlist_prtctl_setdest(pctl, fp); in asru_pretty() [all …]
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_diff.c | 198 stream_bytes(fp, file); in print_cmn() 212 (void) fprintf(fp, "\t"); in print_rename() 214 print_cmn(fp, di, old); in print_rename() 216 (void) fprintf(fp, "\t"); in print_rename() 219 print_cmn(fp, di, new); in print_rename() 220 (void) fprintf(fp, "\n"); in print_rename() 234 (void) fprintf(fp, "\t"); in print_link_change() 236 print_cmn(fp, di, file); in print_link_change() 238 (void) fprintf(fp, "\n"); in print_link_change() 254 print_cmn(fp, di, file); in print_file() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | printlog.c | 14 void printlog(fp) in printlog() argument 15 frentry_t *fp; in printlog() 20 if (fp->fr_flags & FR_LOGBODY) 22 if (fp->fr_flags & FR_LOGFIRST) 24 if (fp->fr_flags & FR_LOGORBLOCK) 26 if (fp->fr_loglevel != 0xffff) { 28 if (fp->fr_loglevel & LOG_FACMASK) { 29 s = fac_toname(fp->fr_loglevel); 34 u = pri_toname(fp->fr_loglevel);
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | sendsig.c | 139 caddr_t fp; in sendsig() local 222 fp = (caddr_t)((uintptr_t)fp & ~(STACK_ENTRY_ALIGN - 1ul)); in sendsig() 235 sp = fp - minstacksz; in sendsig() 238 minstacksz = fp - sp; in sendsig() 428 caddr_t fp; in sendsig32() local 476 fp = (caddr_t)rp->r_sp; in sendsig32() 478 fp = (caddr_t)rp->r_sp; in sendsig32() 485 fp = (caddr_t)((uintptr_t)fp & ~(STACK_ALIGN32 - 1)); in sendsig32() 486 sp = fp - minstacksz; in sendsig32() 551 uc = (ucontext32_t *)fp; in sendsig32() [all …]
|
H A D | fpu.c | 1068 fp_save(fp); in fp_new_lwp() 1177 if (!fp || fp->fpu_flags & FPU_VALID || in fp_save() 1190 xsavep(fp->fpu_regs.kfpu_u.kfpu_xs, fp->fpu_xsave_mask); in fp_save() 1228 xrestore(fp->fpu_regs.kfpu_u.kfpu_xs, fp->fpu_xsave_mask); in fp_restore() 1261 fp->fpu_flags = FPU_EN; in fp_exec() 1295 fp_restore(fp); in fp_seed() 1298 fp->fpu_flags = FPU_EN; in fp_seed() 1316 fp->fpu_signal = NULL; in fp_lwp_init() 1408 fp_save(fp); in fpexterrflt() 1487 fp->fpu_regs.kfpu_status = fp->fpu_regs.kfpu_u.kfpu_fx->fx_fsw; in fpsimderrflt() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/ctf/ |
H A D | check-merge-static.c | 87 ctf_errmsg(ctf_errno(fp))); in check_global() 93 name, symid, ctf_errmsg(ctf_errno(fp))); in check_global() 120 ctf_errmsg(ctf_errno(fp))); in check_mumble() 124 if (ctf_func_info(fp, symid, &fi) != 0) { in check_mumble() 126 name, symid, ctf_errmsg(ctf_errno(fp))); in check_mumble() 148 if (ctf_func_args(fp, symid, 1, &args) != 0) { in check_mumble() 150 name, symid, ctf_errmsg(ctf_errno(fp))); in check_mumble() 255 ctf_file_t *fp; in main() local 271 if ((fp = ctf_open(argv[i], &ret)) == NULL) { in main() 280 if (check_merge_static(argv[i], fp, elf) != 0) { in main() [all …]
|
H A D | check-merge-forward.c | 68 ctf_file_t *fp = arg; in ctf_merge_forward_cb() local 71 if (ctf_type_kind(fp, id) != CTF_K_FORWARD) in ctf_merge_forward_cb() 74 if (ctf_type_name(fp, id, buf, sizeof (buf)) == NULL) { in ctf_merge_forward_cb() 76 ctf_errmsg(ctf_errno(fp))); in ctf_merge_forward_cb() 103 ctf_file_t *fp; in main() local 106 if ((fp = ctf_open(argv[i], &ret)) == NULL) { in main() 113 if (!ctftest_check_symbols(fp, check_syms)) in main() 117 if (!ctftest_check_members(members[j].cmt_type, fp, in main() 124 if (ctf_type_iter(fp, B_TRUE, ctf_merge_forward_cb, fp) != 0) { in main() 128 ctf_close(fp); in main()
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | fputws.c | 39 _fputws_impl(const wchar_t *_RESTRICT_KYWD ws, FILE *_RESTRICT_KYWD fp, in _fputws_impl() argument 57 FLOCKFILE(lk, fp); in _fputws_impl() 58 if (orient && GET_NO_MODE(fp)) in _fputws_impl() 59 _setorientation(fp, _WC_MODE); in _fputws_impl() 68 fp->_flag |= _IOERR; in _fputws_impl() 78 if (fputs(buf, fp) < nbytes) { in _fputws_impl() 89 fputws(const wchar_t *_RESTRICT_KYWD ws, FILE *_RESTRICT_KYWD fp) in fputws() argument 91 return (_fputws_impl(ws, fp, 0)); in fputws() 95 __fputws_xpg5(const wchar_t *ws, FILE *fp) in __fputws_xpg5() argument 97 return (_fputws_impl(ws, fp, 1)); in __fputws_xpg5()
|
/illumos-gate/usr/src/cmd/zonecfg/ |
H A D | zonecfg.c | 1056 fp = newfp; in usage() 1307 (void) fprintf(fp, in usage() 1315 (void) fprintf(fp, in usage() 1317 (void) fprintf(fp, in usage() 1319 (void) fprintf(fp, in usage() 1324 (void) fprintf(fp, in usage() 1326 (void) fprintf(fp, in usage() 5477 output_pcap(fp); in info_pcap() 5654 fp = stdout; in info_func() 5747 info_pcap(fp); in info_func() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/ |
H A D | psvcobj.c | 1667 close(fp); in i_psvc_get_temperature_11_2() 1697 close(fp); in i_psvc_get_temperature_11_4() 1725 close(fp); in i_psvc_get_temperature_11_6() 1753 close(fp); in i_psvc_get_fanspeed_11_7() 1781 close(fp); in i_psvc_get_input_11_6() 1809 close(fp); in i_psvc_get_output_11_3() 1837 close(fp); in i_psvc_get_output_11_6() 1867 close(fp); in i_psvc_get_output_11_8() 1895 close(fp); in i_psvc_set_output_11_3() 1923 close(fp); in i_psvc_set_output_11_6() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_input.c | 2792 fp->sf_rto = fp->sf_srtt + 4 * fp->sf_rttvar; in sctp_got_sack() 2816 fp->sf_rto = fp->sf_srtt + 4 * fp->sf_rttvar; in sctp_got_sack() 3108 (fp->sf_acked + fp->sf_suna > fp->sf_cwnd - fp->sf_pmss)) { in sctp_got_sack() 3114 fp->sf_cwnd += fp->sf_pmss; in sctp_got_sack() 3124 fp->sf_pba += fp->sf_acked; in sctp_got_sack() 3126 fp->sf_pba -= fp->sf_cwnd; in sctp_got_sack() 3127 fp->sf_cwnd += fp->sf_pmss; in sctp_got_sack() 3144 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) { in sctp_got_sack() 3146 (fp->sf_acked + fp->sf_suna > fp->sf_cwnd - fp->sf_pmss)) { in sctp_got_sack() 3156 fp->sf_pba += fp->sf_acked; in sctp_got_sack() [all …]
|
/illumos-gate/usr/src/cmd/ctfconvert/ |
H A D | ctfconvert.c | 160 ctfconvert_fixup_genunix(ctf_file_t *fp) in ctfconvert_fixup_genunix() argument 177 model = ctf_getmodel(fp); in ctfconvert_fixup_genunix() 217 ctf_errmsg(ctf_errno(fp))); in ctfconvert_fixup_genunix() 225 if (ctf_update(fp) == CTF_ERR) { in ctfconvert_fixup_genunix() 227 ctf_errmsg(ctf_errno(fp))); in ctfconvert_fixup_genunix() 232 ctf_errmsg(ctf_errno(fp))); in ctfconvert_fixup_genunix() 235 if (ctf_update(fp) == CTF_ERR) { in ctfconvert_fixup_genunix() 237 ctf_errmsg(ctf_errno(fp))); in ctfconvert_fixup_genunix() 382 FILE *fp; in main() local 403 if (cnt == -1 && ferror(fp) != 0) { in main() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_pr.c | 166 __memp_dump_region(dbmp, area, fp) in __memp_dump_region() argument 169 FILE *fp; 181 if (fp == NULL) 182 fp = stderr; 235 (void)fprintf(fp, 254 __memp_pbh(dbmp, bhp, fmap, fp); 263 (void)fflush(fp); 271 __memp_pbh(dbmp, bhp, fmap, fp) in __memp_pbh() argument 275 FILE *fp; 301 __db_prflags(bhp->flags, fn, fp); [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 446 FILE *fp; in check_device() local 453 if (! fp) in check_device() 516 fclose (fp); in check_device() 668 if (fp) in init_device_map() 696 if (fp) in init_device_map() 736 if (fp) in init_device_map() 737 fclose (fp); in init_device_map() 755 if (fp) in init_device_map() 795 if (fp) in init_device_map() 824 if (fp) in init_device_map() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | addbib.c | 57 FILE *fp, *fopen(); in main() local 117 putc('\n', fp); in addbib() 136 fprintf(fp, "%s %s", in addbib() 146 fputs(line, fp); in addbib() 151 fputs(line, fp); in addbib() 162 fprintf(fp, "%%X "); in addbib() 165 fputs(line, fp); in addbib() 170 if (ferror(fp)) { in addbib() 178 bibedit(fp, line, argv); in addbib() 205 fclose(fp); in bibedit() [all …]
|
/illumos-gate/usr/src/uts/sparc/fpu/ |
H A D | fpu_simulator.c | 547 } fp; in fpu_vis_sim() local 551 fp.i = inst; in fpu_vis_sim() 570 if ((fp.inst.hibits == 2) && (fp.inst.op3 == 0x36)) { in fpu_vis_sim() 575 ((fp.inst.op3 == 0x34) || (fp.inst.op3 == 0x35) || in fpu_vis_sim() 605 } fp; in fpu_simulator() local 607 fp.i = inst; in fpu_simulator() 634 } fp; in fp_emulator() local 654 ((fp.inst.op3 == 0x34) || (fp.inst.op3 == 0x35) || in fp_emulator() 694 ((fp.inst.op3 == 0x34) || (fp.inst.op3 == 0x35) || in fp_emulator() 724 ((fp.inst.hibits == 0) && (((fp.i>>22) & 0x7) == 5)) || in fp_emulator() [all …]
|