Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 1274) sorted by relevance

12345678910>>...51

/illumos-gate/usr/src/cmd/bhyve/
H A Dacpi.c132 FILE *fp; member
160 EFFLUSH(fp); in basl_fwrite_rsdp()
196 EFFLUSH(fp); in basl_fwrite_rsdt()
232 EFFLUSH(fp); in basl_fwrite_xsdt()
328 EFFLUSH(fp); in basl_fwrite_madt()
431 EFPRINTF(fp, in basl_fwrite_fadt()
449 EFPRINTF(fp, in basl_fwrite_fadt()
459 EFPRINTF(fp, in basl_fwrite_fadt()
464 EFPRINTF(fp, in basl_fwrite_fadt()
469 EFPRINTF(fp, in basl_fwrite_fadt()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dfastfind.c388 if (fp->fp) in findopen()
398 if (!fp->fp) in findopen()
667 if (fp->fp) in findopen()
853 n = (*fp->verifyf)(fp, fp->decode.path, n, fp->disc); in findread()
1050 fp->fp = 0; in finddone()
1184 fp->fp = sp; in findsync()
1225 if (sfmove(fp->fp, sp, SF_UNBOUND, -1) < 0 || !sfeof(fp->fp)) in findsync()
1233 fp->fp = sp; in findsync()
1244 if (fp->fp) in findsync()
1247 fp->fp = 0; in findsync()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintfr.c96 printifname("on ", fp->fr_ifname, fp->fr_ifa);
151 printaddr(fp->fr_v, fp->fr_satype, fp->fr_ifname,
152 &fp->fr_src.s_addr, &fp->fr_smsk.s_addr);
157 printaddr(fp->fr_v, fp->fr_datype, fp->fr_ifname,
158 &fp->fr_dst.s_addr, &fp->fr_dmsk.s_addr);
181 (fp->fr_tcpf || fp->fr_tcpfm)) {
222 fp->fr_optbits || fp->fr_optmask ||
223 fp->fr_secbits || fp->fr_secmask)) {
227 if (fp->fr_optbits || fp->fr_optmask ||
228 fp->fr_secbits || fp->fr_secmask) {
[all …]
/illumos-gate/usr/src/cmd/smbios/
H A Dsmbios.c213 oprintf(fp, "\n"); in u128_print()
268 oprintf(fp, "\n"); in print_smbios_21()
395 oprintf(fp, "-"); in print_system()
397 oprintf(fp, "\n"); in print_system()
434 oprintf(fp, "\n"); in print_bboard()
484 oprintf(fp, "\n"); in print_chassis()
542 oprintf(fp, "\n"); in print_processor()
904 oprintf(fp, "\n"); in print_bytes()
1683 oprintf(fp, "\n"); in print_struct()
1876 usage(FILE *fp) in usage() argument
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dungetc.c58 if (fp->f_ub.smb_base == fp->f_ubuf)
147 if (fp->f_r >= fp->f_ub.smb_size)
150 fp->f_r++;
161 if (fp->f_bf.smb_base != NULL && fp->f_p > fp->f_bf.smb_base &&
164 fp->f_p--;
174 fp->f_ur = fp->f_r;
175 fp->f_up = fp->f_p;
176 fp->f_ub.smb_base = fp->f_ubuf;
177 fp->f_ub.smb_size = sizeof(fp->f_ubuf);
178 fp->f_ubuf[sizeof(fp->f_ubuf) - 1] = c;
[all …]
H A Dfseek.c166 else if (fp->f_flags & SMWR && fp->f_p != NULL)
167 curoff += fp->f_p - fp->f_bf.smb_base;
202 fp->f_file < 0 || fstat(fp->f_file, &st) ||
251 n = fp->f_up - fp->f_bf.smb_base;
257 n = fp->f_p - fp->f_bf.smb_base;
273 fp->f_p = fp->f_bf.smb_base + o;
294 fp->f_r = 0;
295 fp->f_p = fp->f_bf.smb_base;
297 FREEUB(fp);
332 FREEUB(fp);
[all …]
H A Drefill.c120 SM_FILE_T *fp; in sm_lflush()
192 fp->f_w = 0;
208 FREEUB(fp);
209 if ((fp->f_r = fp->f_ur) != 0)
211 fp->f_p = fp->f_up;
236 (*fp->f_getinfo)(fp, SM_IO_IS_READABLE, NULL) <= 0)
239 fp->f_p = fp->f_bf.smb_base;
251 r = (*fp->f_read)(fp, (char *)fp->f_p, fp->f_bf.smb_size);
271 fp->f_r = 0;
274 fp->f_r = r;
[all …]
H A Dfindfp.c166 fp = oldfp;
172 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++)
183 fp->f_flags = flags;
190 fp->f_cookie = fp; /* default: *open* overrides cookie setting */
209 return fp;
286 SM_FILE_T *fp; in sm_io_setinfo()
325 return (*fp->f_setinfo)(fp, what, valp);
359 SM_FILE_T *fp; in sm_io_getinfo()
407 if (fp->f_r > 0)
419 return fp->f_file;
[all …]
H A Dfvwrite.c95 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
136 size_t blen = fp->f_p - fp->f_bf.smb_base;
153 fp->f_w += tsize - fp->f_bf.smb_size;
158 w = fp->f_w;
165 fp->f_w -= w;
169 else if (fp->f_p > fp->f_bf.smb_base
181 w = (*fp->f_write)(fp, p, w);
206 if ((fp->f_flags & SMNOW) != 0 && sm_flush(fp, &timeout))
231 w = fp->f_w + fp->f_bf.smb_size;
233 if (fp->f_p > fp->f_bf.smb_base && s > w)
[all …]
H A Dsmstdio.c53 SM_FILE_T *fp; in sm_stdioopen()
115 setup(fp) in setup() argument
116 SM_FILE_T *fp; in setup()
152 SM_FILE_T *fp; in sm_stdioread()
159 setup(fp);
178 SM_FILE_T *fp; in sm_stdiowrite()
185 setup(fp);
204 SM_FILE_T *fp; in sm_stdioseek()
211 setup(fp);
233 setup(fp);
[all …]
H A Dstdio.c63 SM_FILE_T *fp; in sm_stdopen()
105 (void) (*fp->f_seek)((void *)fp, (off_t)0, SEEK_END);
128 SM_FILE_T *fp; in sm_stdread()
157 SM_FILE_T *fp; in sm_stdwrite()
182 SM_FILE_T *fp; in sm_stdseek()
206 sm_stdclose(fp) in sm_stdclose() argument
207 SM_FILE_T *fp; in sm_stdclose()
228 SM_FILE_T *fp; in sm_stdsetmode()
249 fp->f_flags = fp->f_flags & ~SMMODEMASK;
451 (void) (*fp->f_seek)(fp, (off_t)0, SEEK_END);
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dfmt.c128 fp->indent += fp->nextdent; in outline()
129 fp->endbuf -= fp->nextdent; in outline()
160 fp->outp = fp->outbuf+prefix; in split()
164 if (fp->prefix < prefix && !isoption(fp, 'c')) in split()
166 if (!fp->outp || prefix < fp->prefix) in split()
199 if (fp->nwords > 0 && &fp->outp[n] >= fp->endbuf && !fp->retain && !q) in split()
205 memset(fp->outbuf, ' ', fp->prefix); in split()
206 fp->outp = &fp->outbuf[fp->prefix]; in split()
225 …plice && !fp->retain && (!fp->quote || (fp->outp - fp->outbuf) < 2 || fp->outp[-2] != '\\' || fp->… in split()
453 if (fp->endbuf > (fp->outbuf + fp->indent + 2*INDENT)) in dofmt()
[all …]
/illumos-gate/usr/src/cmd/filesync/
H A Danal.c127 for (fp = bp->b_files; fp; fp = fp->f_next) in analyze()
150 for (fp = bp->b_files; fp; fp = fp->f_next) in analyze()
197 for (fp = changes; fp; fp = fp->f_rnext) in analyze()
273 for (fp = bp->b_files; fp; fp = fp->f_next) in prune()
317 for (fp = changes; fp; fp = fp->f_rnext) { in summary()
323 fp->f_problem ? fp->f_problem : "???"); in summary()
362 fp->f_info[OPT_BASE].f_ino = fp->f_s_inum; in check_file()
363 fp->f_info[OPT_BASE].f_d_maj = fp->f_s_maj; in check_file()
393 if (fp->f_srcdiffs || fp->f_dstdiffs || fp->f_flags & F_STAT_ERROR) { in check_file()
990 fp->f_modtime = TIME_LONG - fp->f_depth; in queue_file()
[all …]
H A Drecon.c130 fp->f_modtime, fp->f_modns); in reconcile()
159 if ((fp->f_srcdiffs|fp->f_dstdiffs) & D_RENAME_FROM) in reconcile()
162 if ((fp->f_srcdiffs|fp->f_dstdiffs) & D_RENAME_TO) { in reconcile()
166 fp->f_previous->f_fullname, fp->f_name); in reconcile()
183 if ((fp->f_srcdiffs | fp->f_dstdiffs) == 0) in reconcile()
354 if (fp->f_dstdiffs == 0 || fp->f_srcdiffs == 0) { in reconcile()
379 errs = do_copy(fp, newer(fp)); in reconcile()
384 errs = do_copy(fp, older(fp)); in reconcile()
410 diffmask = fp->f_srcdiffs & fp->f_dstdiffs; in reconcile()
420 errs |= do_like(fp, (fp->f_srcdiffs&D_ADMIN) ? in reconcile()
[all …]
H A Deval.c147 for (fp = bp->b_files; fp; fp = fp->f_next) in evaluate()
205 for (fp = bp->b_files; fp; fp = fp->f_next) in evaluate()
342 dp = fp; in add_file_arg()
379 showflags(fileflags, fp->f_flags), fp->f_name); in eval_file()
616 for (fp = fp->f_files; fp; fp = fp->f_next) { in walker()
752 do_update(&fp->f_info[ OPT_BASE ], &fp->f_info[ which ]); in update_info()
757 which, fp->f_name, fp->f_info[ which ].f_modtime, in update_info()
833 fp->f_s_maj, fp->f_s_min, fp->f_s_inum, in check_inum()
846 fp->f_d_maj, fp->f_d_min, fp->f_d_inum, in check_inum()
947 FILE *fp; in add_run() local
[all …]
/illumos-gate/usr/src/common/ctf/
H A Dctf_open.c369 if ((hep = ctf_hash_lookup(&fp->ctf_names, fp, in init_types()
371 err = ctf_hash_insert(&fp->ctf_names, fp, in init_types()
391 err = ctf_hash_insert(&fp->ctf_names, fp, in init_types()
399 err = ctf_hash_define(&fp->ctf_structs, fp, in init_types()
415 err = ctf_hash_define(&fp->ctf_unions, fp, in init_types()
431 err = ctf_hash_define(&fp->ctf_enums, fp, in init_types()
441 err = ctf_hash_insert(&fp->ctf_names, fp, in init_types()
492 err = ctf_hash_insert(&fp->ctf_names, fp, in init_types()
770 fp->ctf_lookups[2].ctl_hash = &fp->ctf_enums; in ctf_bufopen()
773 fp->ctf_lookups[3].ctl_hash = &fp->ctf_names; in ctf_bufopen()
[all …]
H A Dctf_types.c77 ctf_file_t *ofp = fp; in ctf_member_iter()
128 ctf_file_t *ofp = fp; in ctf_enum_iter()
190 ctf_file_t *ofp = fp; in ctf_type_resolve()
636 ctf_file_t *ofp = fp; in ctf_type_reference()
664 ctf_file_t *ofp = fp; in ctf_type_pointer()
691 ctf_file_t *ofp = fp; in ctf_type_encoding()
815 ctf_file_t *ofp = fp; in ctf_member_info()
865 ctf_file_t *ofp = fp; in ctf_array_info()
893 ctf_file_t *ofp = fp; in ctf_enum_name()
930 ctf_file_t *ofp = fp; in ctf_enum_value()
[all …]
H A Dctf_lookup.c170 if (fp->ctf_parent != NULL && in ctf_lookup_by_name()
190 if (symidx >= fp->ctf_nsyms) in ctf_lookup_by_symbol()
206 type = *(ushort_t *)((uintptr_t)fp->ctf_buf + fp->ctf_sxlate[symidx]); in ctf_lookup_by_symbol()
224 (fp = fp->ctf_parent) == NULL) { in ctf_lookup_by_id()
253 if (symidx >= fp->ctf_nsyms) in ctf_func_info()
269 dp = (ushort_t *)((uintptr_t)fp->ctf_buf + fp->ctf_sxlate[symidx]); in ctf_func_info()
272 kind = LCTF_INFO_KIND(fp, info); in ctf_func_info()
273 n = LCTF_INFO_VLEN(fp, info); in ctf_func_info()
310 dp = (ushort_t *)((uintptr_t)fp->ctf_buf + fp->ctf_sxlate[symidx]) + 2; in ctf_func_args()
327 ctf_file_t **fpp = &fp; in ctf_dyn_lookup_by_id()
[all …]
H A Dctf_create.c95 return (fp); in ctf_create()
716 fp->ctf_lookups[0].ctl_hash = &fp->ctf_structs; in ctf_update()
717 fp->ctf_lookups[1].ctl_hash = &fp->ctf_unions; in ctf_update()
718 fp->ctf_lookups[2].ctl_hash = &fp->ctf_enums; in ctf_update()
719 fp->ctf_lookups[3].ctl_hash = &fp->ctf_names; in ctf_update()
946 fp->ctf_dtnextid = fp->ctf_dtoldid + 1; in ctf_discard()
1071 fpd = fp; in ctf_add_array()
1079 fpd = fp; in ctf_add_array()
1110 fpd = fp; in ctf_set_array()
1115 fpd = fp; in ctf_set_array()
[all …]
/illumos-gate/usr/src/lib/libnvpair/
H A Dnvpair_json.c55 FPRINTF(fp, "\""); in nvlist_print_json_string()
62 FPRINTF(fp, "\\n"); in nvlist_print_json_string()
65 FPRINTF(fp, "\\r"); in nvlist_print_json_string()
71 FPRINTF(fp, "\\f"); in nvlist_print_json_string()
74 FPRINTF(fp, "\\t"); in nvlist_print_json_string()
108 FPRINTF(fp, "\""); in nvlist_print_json_string()
123 FPRINTF(fp, "{"); in nvlist_print_json()
130 FPRINTF(fp, ","); in nvlist_print_json()
136 FPRINTF(fp, ":"); in nvlist_print_json()
229 FPRINTF(fp, "["); in nvlist_print_json()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_common.c236 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) { in sctp_update_dce()
558 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) { in sctp_lookup_faddr()
569 for (; fp; fp = fp->sf_next) { in sctp_lookup_faddr_nosctp()
615 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) { in sctp_redo_faddr_srcs()
669 for (fp = sctp->sctp_faddrs; fp; fp = fp->sf_next) { in sctp_is_a_faddr_clean()
706 for (fp = fp->sf_next; fp != NULL; fp = fp->sf_next) { in sctp_faddr_dead()
714 for (fp = sctp->sctp_faddrs; fp != ofp; fp = fp->sf_next) { in sctp_faddr_dead()
1099 for (fp = sctp->sctp_faddrs; fp; fp = fp->sf_next) { in sctp_set_hdraddrs()
1648 for (fp = fphead; fp; fp = fp->sf_next) { in sctp_secure_restart_check()
1678 for (fp = fphead; fp; fp = fp->sf_next) { in sctp_secure_restart_check()
[all …]
H A Dsctp_timer.c436 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) { in sctp_heartbeat_timer()
462 fp->sf_hb_expiry = now + SET_HB_INTVL(fp); in sctp_heartbeat_timer()
473 if (!fp->sf_hb_enabled && fp->sf_state != in sctp_heartbeat_timer()
546 fp->sf_hb_expiry = now + fp->sf_rto; in sctp_heartbeat_timer()
720 SCTP_FADDR_TIMER_RESTART(sctp, fp, fp->sf_rto); in sctp_rexmit_timer()
752 fp->sf_rttvar = fp->sf_rttvar != 0 ? fp->sf_rttvar : 1; in sctp_update_rtt()
754 fp->sf_srtt = (7 * fp->sf_srtt + rtt) >> 3; in sctp_update_rtt()
755 fp->sf_rto = fp->sf_srtt + 4 * fp->sf_rttvar; in sctp_update_rtt()
759 fp->sf_srtt, fp->sf_rttvar, fp->sf_rto)); in sctp_update_rtt()
778 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) { in sctp_free_faddr_timers()
[all …]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dufs.c132 (fp)->f_di.di1.field : (fp)->f_di.di2.field)
330 if (*size_p > DIP(fp, di_size) - fp->f_seekp) in buf_write_file()
331 *size_p = DIP(fp, di_size) - fp->f_seekp; in buf_write_file()
348 block_size, fp->f_buf, &fp->f_buf_size); in buf_write_file()
367 block_size, fp->f_buf, &fp->f_buf_size); in buf_write_file()
425 *size_p = DIP(fp, di_size) - fp->f_seekp; in buf_read_file()
448 while (fp->f_seekp < DIP(fp, di_size)) { in search_directory()
715 if (fp->f_seekp >= DIP(fp, di_size)) in ufs_read()
752 if (fp->f_seekp >= DIP(fp, di_size)) in ufs_write()
783 fp->f_seekp = DIP(fp, di_size) - offset; in ufs_seek()
[all …]
/illumos-gate/usr/src/uts/sparc/v9/fpu/
H A Dfpu.c61 if ((fp->fpu_en) || (fp->fpu_fprs & FPRS_FEF)) { in fp_prsave()
76 fp_fksave(fp); in fp_prsave()
136 fp->fpu_en = 0; in fp_free()
154 kfpu_t *fp; in fp_enable() local
176 fp_restore(fp); in fp_enable()
178 fp->fpu_en = 1; in fp_enable()
188 fp->fpu_en = 1; in fp_enable()
211 kfpu_t *fp; in fp_disabled() local
382 fp->fpu_qcnt--; in fp_runq()
427 save_gsr(fp); in fp_precise()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsftable.c137 if(fp && fp[n].ft.fmt == 0)
192 if(fp && fp[n].ft.fmt == 0)
230 if(fp && fp[n].ft.fmt == 0)
317 if(fp && fp[argp].ft.fmt == 0)
362 fp[n].ft.width = fp[v].argv.i;
366 fp[n].ft.base = fp[v].argv.i;
368 fp[n].ft.t_str = fp[v].argv.s;
370 fp[n].ft.size = fp[v].argv.i;
388 fp[n].argv.i = fp[n].argv.h;
393 fp[n].argv.i = fp[n].argv.c;
[all …]

12345678910>>...51