Home
last modified time | relevance | path

Searched refs:fp (Results 51 – 75 of 1263) sorted by relevance

12345678910>>...51

/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_dis.c50 dif_instr_t in, FILE *fp) in dt_dis_branch() argument
66 dif_instr_t in, FILE *fp) in dt_dis_store() argument
76 (void) fprintf(fp, "%s", name); in dt_dis_str()
83 (void) fprintf(fp, "%-4s %%r%u, %%r%u", name, in dt_dis_r1rd()
91 (void) fprintf(fp, "%-4s %%r%u, %%r%u", name, in dt_dis_cmp()
149 (void) fprintf(fp, "%-4s DT_VAR(%u), %%r%u", in dt_dis_ldv()
191 (void) fprintf(fp, "\t\t! 0x%llx", in dt_dis_setx()
357 dt_dis(const dtrace_difo_t *dp, FILE *fp) in dt_dis() argument
454 (void) fprintf(fp, "%-3s %-8s %s\n", in dt_dis()
466 op->op_func(dp, op->op_name, instr, fp); in dt_dis()
[all …]
H A Ddt_print.c159 FILE *fp = pap->pa_file; in print_bitfield() local
254 FILE *fp = pap->pa_file; in dt_print_int() local
304 FILE *fp = pap->pa_file; in dt_print_float() local
335 FILE *fp = pap->pa_file; in dt_print_ptr() local
387 FILE *fp = pap->pa_file; in dt_print_array() local
435 (void) fprintf(fp, "[ "); in dt_print_array()
475 (void) fprintf(fp, "]"); in dt_print_array()
497 FILE *fp = pap->pa_file; in dt_print_enum() local
569 FILE *fp = pap->pa_file; in dt_print_member() local
647 (void) fprintf(fp, " "); in dt_print_member()
[all …]
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dscratchops.c86 FILE *fp; in zonecfg_open_scratch() local
122 return (fp); in zonecfg_open_scratch()
134 if (fflush(fp) != 0) in zonecfg_lock_scratch()
142 (void) fclose(fp); in zonecfg_close_scratch()
187 rewind(fp); in zonecfg_find_scratch()
202 rewind(fp); in zonecfg_reverse_scratch()
219 if (fflush(fp) != 0) in zonecfg_add_scratch()
238 rewind(fp); in zonecfg_delete_scratch()
245 roffs = ftell(fp); in zonecfg_delete_scratch()
249 roffs = ftell(fp); in zonecfg_delete_scratch()
[all …]
/illumos-gate/usr/src/cmd/zic/
H A Dscheck.c13 register const char *fp; local
25 fp = format;
30 if (*fp == '%') {
31 *tp++ = *fp++;
35 if (*fp == '*')
36 ++fp;
38 *tp++ = *fp++;
39 if (*fp == 'l' || *fp == 'h')
40 *tp++ = *fp++;
42 do *tp++ = *fp++;
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppsearch.c74 status = fp->guard; in ppmultiple()
102 fp->guard = test; in ppmultiple()
125 else if ((prefix = strrchr(fp->name, '/')) && prefix > fp->name) in search()
133 fp->name, in search()
149 …!(fp->flags & INC_MEMBER(INC_PREFIX)) && fp->bound[INC_PREFIX] ? fp->bound[INC_PREFIX]->name : NiL, in search()
150 !(fp->flags & INC_MEMBER(INC_LOCAL)) && fp->bound[INC_LOCAL] ? fp->bound[INC_LOCAL]->name : NiL, in search()
151 …!(fp->flags & INC_MEMBER(INC_VENDOR)) && fp->bound[INC_VENDOR] ? fp->bound[INC_VENDOR]->name : NiL, in search()
646 fp = xp; in ppsearch()
653 if (type == T_HEADER && strneq(fp->name, "...", 3) && (!fp->name[3] || fp->name[3] == '/')) in ppsearch()
730 if ((s = strchr(fp->name, '/')) && (fp->name[0] in ppsearch()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfpos.c70 sm_io_tell(fp, timeout) in sm_io_tell() argument
71 register SM_FILE_T *fp; in sm_io_tell()
78 if (fp->f_seek == NULL)
117 pos = fp->f_lseekoff;
121 pos = (*fp->f_seek)(fp, (off_t) 0, SM_IO_SEEK_CUR);
125 if (fp->f_flags & SMRD)
133 pos -= fp->f_r;
134 if (HASUB(fp))
135 pos -= fp->f_ur;
137 else if (fp->f_flags & SMWR && fp->f_p != NULL)
[all …]
H A Dwbuf.c41 sm_wbuf(fp, timeout, c)
42 register SM_FILE_T *fp;
56 fp->f_w = fp->f_lbfsize;
57 if (cantwrite(fp))
75 n = fp->f_p - fp->f_bf.smb_base;
76 if (n >= fp->f_bf.smb_size)
78 if (sm_io_flush(fp, timeout))
82 fp->f_w--;
83 *fp->f_p++ = c;
84 if (++n == fp->f_bf.smb_size || (fp->f_flags & SMLBF && c == '\n'))
[all …]
H A Dfread.c41 sm_io_read(fp, timeout, buf, size)
42 SM_FILE_T *fp;
51 SM_REQUIRE_ISA(fp, SmFileMagic);
53 if (fp->f_read == NULL)
67 if (fp->f_r < 0)
68 fp->f_r = 0;
73 fp->f_p += r;
87 fp->f_r -= r;
90 if (sm_refill(fp, timeout) != 0)
97 fp->f_r -= resid;
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfgetwc.c62 statep = _getmbstate(fp); in _fgetwc_unlocked_l()
64 fp->_flag = _IOERR; in _fgetwc_unlocked_l()
93 fp->_flag |= _IOERR; in _fgetwc_unlocked_l()
99 _fgetwc_unlocked(FILE *fp) in _fgetwc_unlocked() argument
111 fgetwc(FILE *fp) in fgetwc() argument
117 FLOCKFILE(l, fp); in fgetwc()
130 __fgetwc_xpg5(FILE *fp) in __fgetwc_xpg5() argument
136 FLOCKFILE(l, fp); in __fgetwc_xpg5()
137 if (GET_NO_MODE(fp)) in __fgetwc_xpg5()
151 FLOCKFILE(l, fp); in fgetwc_l()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_deleg.c961 rfs4_file_t *fp; member
969 rfs4_file_t *fp = map->fp; in do_recall_file() local
1033 cv_wait(fp->rf_dinfo.rd_recall_cv, fp->rf_dinfo.rd_recall_lock); in do_recall_file()
1038 rfs4_file_rele(fp); in do_recall_file()
1075 args->fp = fp; in rfs4_recall_file()
1521 rfs4_file_t *fp; in rfs4_check_delegated() local
1531 if (fp != NULL) { in rfs4_check_delegated()
1634 vp = fp->rf_vp; in rfs4_deleg_state()
1673 (void *)fp); in rfs4_deleg_state()
1714 (void *)fp); in rfs4_deleg_state()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_fio.c58 file_t *fp; in getf() local
66 fp->f_count++; in getf()
68 return (fp); in getf()
71 fp = kmem_zalloc(sizeof (*fp), KM_SLEEP); in getf()
74 fp->f_vnode = vp; in getf()
75 fp->f_count = 1; in getf()
76 ftab[fd] = fp; in getf()
80 return (fp); in getf()
86 file_t *fp; in releasef() local
94 fp->f_count--; in releasef()
[all …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_elfwrite.c67 ret = ctf_set_errno(fp, EINVAL); in ctf_write_elf()
72 ret = ctf_set_errno(fp, ECTF_ELF); in ctf_write_elf()
76 ret = ctf_set_errno(fp, ECTF_ELF); in ctf_write_elf()
81 ret = ctf_set_errno(fp, ECTF_ELF); in ctf_write_elf()
261 ret = ctf_set_errno(fp, in ctf_write_elf()
295 shdr.sh_size = fp->ctf_size; in ctf_write_elf()
317 ret = ctf_set_errno(fp, err); in ctf_write_elf()
322 ret = ctf_set_errno(fp, err); in ctf_write_elf()
329 ddata->d_size = fp->ctf_size; in ctf_write_elf()
417 ret = ctf_set_errno(fp, errno); in ctf_elfwrite()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dsfsasl.c29 SM_FILE_T *fp; member
35 SM_FILE_T *fp; member
57 SM_FILE_T *fp; in sasl_getinfo()
102 SM_FILE_T *fp; in sasl_open()
116 so->fp = si->fp;
148 sasl_close(fp) in sasl_close() argument
149 SM_FILE_T *fp; in sasl_close()
187 SM_FILE_T *fp; in sasl_read()
507 so->fp = ti->fp;
518 fp->f_file = sm_io_getinfo(so->fp, SM_IO_WHAT_FD, NULL);
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dstr_conf.c142 fp->f_next = p; in i_fmodsw_hash_insert()
143 *pp = fp; in i_fmodsw_hash_insert()
207 fmodsw_impl_t *fp; in fmodsw_register() local
225 fp->f_str = str; in fmodsw_register()
226 fp->f_qflag = qflag; in fmodsw_register()
227 fp->f_sqtype = sqtype; in fmodsw_register()
244 rele_dm(fp->f_dmp); in fmodsw_register()
252 fmodsw_impl_t *fp; in fmodsw_unregister() local
263 rele_dm(fp->f_dmp); in fmodsw_unregister()
278 fmodsw_impl_t *fp; in fmodsw_find() local
[all …]
/illumos-gate/usr/src/test/util-tests/tests/ctf/
H A Dcheck-common.c63 clc.clc_fp = fp; in ctftest_lookup_type()
89 clc.clc_fp = fp; in ctftest_lookup_symbol()
212 ctf_file_t *fp = cb->csc_fp; in ctftest_check_symbol_cb() local
246 cb.csc_fp = fp; in ctftest_check_symbols()
305 kind = ctf_type_kind(fp, base); in ctftest_check_descent()
438 ctf_errmsg(ctf_errno(fp))); in ctftest_check_enum()
476 ctf_file_t *fp = cmc->cmc_fp; in ctftest_check_members_cb() local
526 ctf_kind_name(fp, ctf_type_kind(fp, base)), in ctftest_check_members()
527 ctf_kind_name(fp, kind)); in ctftest_check_members()
559 cmc.cmc_fp = fp; in ctftest_check_members()
[all …]
/illumos-gate/usr/src/cmd/vtfontcvt/
H A Dvtfontcvt.c536 FILE *fp; in parse_file() local
541 if (fp == NULL) { in parse_file()
552 (void) fclose(fp); in parse_file()
697 FILE *fp; in write_fnt() local
703 if (fp == NULL) { in write_fnt()
717 (void) fclose(fp); in write_fnt()
727 (void) fclose(fp); in write_fnt()
731 (void) fclose(fp); in write_fnt()
738 FILE *fp; in write_fnt_source() local
745 if (fp == NULL) { in write_fnt_source()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dinst_sync.c224 File *fp; in in_fvpopen() local
227 fp->vp = vp; in in_fvpopen()
228 fp->ptr = fp->buf; in in_fvpopen()
230 return (fp); in in_fvpopen()
239 VN_RELE(fp->vp); in in_fclose()
249 if (fp->count) in in_fflush()
250 error = in_write(fp->vp, &fp->voffset, fp->buf, fp->count); in in_fflush()
264 error = in_write(fp->vp, &fp->voffset, fp->buf, in in_fputs()
265 fp->count); in in_fputs()
268 fp->count = 0; in in_fputs()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Derr.c97 FLOCKFILE(lk, fp); in warncore()
113 (void) fputc('\n', fp); in warnfinish()
114 (void) fflush(fp); in warnfinish()
125 (void) fputc(':', fp); in vwarnfp()
126 (void) fputc(' ', fp); in vwarnfp()
129 warnfinish(fp, lk); in vwarnfp()
247 warnfinish(fp, lk); in _vwarnxfp()
262 _vwarnfp(fp, fmt, args); in _warnfp()
272 _vwarnxfp(fp, fmt, args); in _warnxfp()
282 _vwarnfp(fp, fmt, args); in _errfp()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/stdio/
H A Dopen_memstreamtest.c43 FILE *fp; in main() local
54 off = ftello(fp); in main()
60 if (fflush(fp) != 0) { in main()
80 if (fprintf(fp, hello) == EOF) { in main()
85 if (fflush(fp) == EOF) { in main()
101 if (fprintf(fp, start) == EOF) { in main()
106 if (fflush(fp) == EOF) { in main()
140 if (fflush(fp) == EOF) { in main()
161 if (ftell(fp) != 8) { in main()
172 if (ftell(fp) != 7) { in main()
[all …]
/illumos-gate/usr/src/cmd/filesync/
H A Drename.c89 find_renames(struct file *fp) in find_renames() argument
95 if (fp->f_files == 0) in find_renames()
107 rp = find_oldname(fp, np, side); in find_renames()
143 { struct file *fp; in find_oldname() local
159 for (fp = dirp->f_files; fp; fp = fp->f_next) { in find_oldname()
161 if (fp->f_info[side].f_type != 0) in find_oldname()
165 if (fp->f_info[otherside].f_type == 0) in find_oldname()
171 if (((side == OPT_SRC) ? fp->f_s_inum : fp->f_d_inum) != inum) in find_oldname()
173 if (((side == OPT_SRC) ? fp->f_s_maj : fp->f_d_maj) != maj) in find_oldname()
175 if (((side == OPT_SRC) ? fp->f_s_min : fp->f_d_min) != min) in find_oldname()
[all …]
/illumos-gate/usr/src/lib/libumem/common/
H A Dvmem_sbrk.c106 fp->sf_base = pos; in vmem_sbrk_extend_alloc()
107 fp->sf_size = size; in vmem_sbrk_extend_alloc()
112 fnext->sf_prev = fp; in vmem_sbrk_extend_alloc()
113 fprev->sf_next = fp; in vmem_sbrk_extend_alloc()
125 sbrk_fail_t *fp; in vmem_sbrk_tryfail() local
128 for (fp = sbrk_fails.sf_next; fp != &sbrk_fails; fp = fp->sf_next) { in vmem_sbrk_tryfail()
130 fp->sf_next->sf_prev = fp->sf_prev; in vmem_sbrk_tryfail()
131 fp->sf_prev->sf_next = fp->sf_next; in vmem_sbrk_tryfail()
132 fp->sf_next = fp->sf_prev = NULL; in vmem_sbrk_tryfail()
139 ASSERT(fp->sf_base == (void *)fp); in vmem_sbrk_tryfail()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.h33 if ((fp)->sf_rc_timer_mp == NULL) { \
34 (fp)->sf_rc_timer_mp = sctp_timer_alloc((sctp), \
37 if ((fp)->sf_rc_timer_mp != NULL) { \
38 ((sctpt_t *)((fp)->sf_rc_timer_mp->b_rptr))->sctpt_faddr = fp;\
40 (void *)(fp), SCTP_PRINTADDR((fp)->sf_faddr), \
42 sctp_timer((sctp), (fp)->sf_rc_timer_mp, (intvl)); \
43 (fp)->sf_rc_timer_running = 1; \
46 #define SCTP_FADDR_RC_TIMER_STOP(fp) \ argument
47 if ((fp)->sf_rc_timer_running && (fp)->sf_rc_timer_mp != NULL) { \
48 sctp_timer_stop((fp)->sf_rc_timer_mp); \
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dppkgmap.c43 ppkgmap(struct cfent *ept, FILE *fp) in ppkgmap() argument
49 if (fprintf(fp, "%d ", ept->volno) < 0) in ppkgmap()
63 if (fprintf(fp, "=%s", ept->ainfo.local) < 0) in ppkgmap()
69 if (fprintf(fp, " ?") < 0) in ppkgmap()
72 if (fprintf(fp, " %ld", ept->ainfo.major) < 0) in ppkgmap()
76 if (fprintf(fp, " ?") < 0) in ppkgmap()
79 if (fprintf(fp, " %ld", ept->ainfo.minor) < 0) in ppkgmap()
93 if (fputc('\n', fp) == EOF) in ppkgmap()
105 if (fprintf(fp, in ppkgmap()
112 if (fputc('\n', fp) == EOF) in ppkgmap()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastconf.c334 if (fp) in synthesize()
385 if (!fp) in synthesize()
483 if (!(fp->value = newof(fp->value, char, n, 1))) in synthesize()
672 state.std = streq(fp->value, fp->std); in format()
674 …"state.std=%d %s [%s] std=%s ast=%s value=%s", state.std, fp->name, value, fp->std, fp->ast, fp->v… in format()
679 initialize(fp, path, NiL, fp->std, fp->value); in format()
681 …"state.std=%d %s [%s] std=%s ast=%s value=%s", state.std, fp->name, value, fp->std, fp->ast, fp->v… in format()
691 …"state.std=%d %s [%s] std=%s ast=%s value=%s", state.std, fp->name, value, fp->std, fp->ast, fp->v… in format()
819 for (fp = state.features; fp && !streq(fp->name, name); fp = fp->next); in feature()
1363 for (fp = state.features; fp; fp = fp->next) in print()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.c97 traceonfp(FILE *fp) in traceonfp() argument
101 ftrace = fp; in traceonfp()
163 if (fp == NULL) in traceaction()
179 (void) fprintf(fp, " if %s", in traceaction()
183 (void) fprintf(fp, " state"); in traceaction()
195 (void) fprintf(fp, " 0"); in traceaction()
210 (void) putc('\n', fp); in traceaction()
212 dumpif(fp, rt->rt_ifp); in traceaction()
213 (void) fflush(fp); in traceaction()
226 (void) fflush(fp); in dumpif()
[all …]

12345678910>>...51