Home
last modified time | relevance | path

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

12345678910>>...50

/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/
H A Dprintfr.c94 printifname("on ", fp->fr_ifname, fp->fr_ifa);
149 printaddr(fp->fr_v, fp->fr_satype, fp->fr_ifname,
150 &fp->fr_src.s_addr, &fp->fr_smsk.s_addr);
155 printaddr(fp->fr_v, fp->fr_datype, fp->fr_ifname,
156 &fp->fr_dst.s_addr, &fp->fr_dmsk.s_addr);
179 (fp->fr_tcpf || fp->fr_tcpfm)) {
220 fp->fr_optbits || fp->fr_optmask ||
221 fp->fr_secbits || fp->fr_secmask)) {
225 if (fp->fr_optbits || fp->fr_optmask ||
226 fp->fr_secbits || fp->fr_secmask) {
[all …]
/illumos-gate/usr/src/cmd/smbios/
H A Dsmbios.c231 oprintf(fp, "\n"); in u128_print()
243 oprintf(fp, header); in str_print_label()
245 oprintf(fp, ": "); in str_print_label()
256 oprintf(fp, "\n"); in str_print_label()
323 oprintf(fp, "\n"); in print_smbios_21()
456 oprintf(fp, "-"); in print_system()
458 oprintf(fp, "\n"); in print_system()
498 oprintf(fp, "\n"); in print_bboard()
549 oprintf(fp, "\n"); in print_chassis()
1024 oprintf(fp, "\n"); in print_bytes()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dungetc.c56 if (fp->f_ub.smb_base == fp->f_ubuf)
145 if (fp->f_r >= fp->f_ub.smb_size)
148 fp->f_r++;
159 if (fp->f_bf.smb_base != NULL && fp->f_p > fp->f_bf.smb_base &&
162 fp->f_p--;
172 fp->f_ur = fp->f_r;
173 fp->f_up = fp->f_p;
174 fp->f_ub.smb_base = fp->f_ubuf;
175 fp->f_ub.smb_size = sizeof(fp->f_ubuf);
176 fp->f_ubuf[sizeof(fp->f_ubuf) - 1] = c;
[all …]
H A Dfseek.c164 else if (fp->f_flags & SMWR && fp->f_p != NULL)
165 curoff += fp->f_p - fp->f_bf.smb_base;
200 fp->f_file < 0 || fstat(fp->f_file, &st) ||
249 n = fp->f_up - fp->f_bf.smb_base;
255 n = fp->f_p - fp->f_bf.smb_base;
271 fp->f_p = fp->f_bf.smb_base + o;
292 fp->f_r = 0;
293 fp->f_p = fp->f_bf.smb_base;
295 FREEUB(fp);
330 FREEUB(fp);
[all …]
H A Drefill.c118 SM_FILE_T *fp; in sm_lflush()
190 fp->f_w = 0;
206 FREEUB(fp);
207 if ((fp->f_r = fp->f_ur) != 0)
209 fp->f_p = fp->f_up;
234 (*fp->f_getinfo)(fp, SM_IO_IS_READABLE, NULL) <= 0)
237 fp->f_p = fp->f_bf.smb_base;
249 r = (*fp->f_read)(fp, (char *)fp->f_p, fp->f_bf.smb_size);
269 fp->f_r = 0;
272 fp->f_r = r;
[all …]
H A Dfindfp.c164 fp = oldfp;
170 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++)
181 fp->f_flags = flags;
188 fp->f_cookie = fp; /* default: *open* overrides cookie setting */
207 return fp;
284 SM_FILE_T *fp; in sm_io_setinfo()
323 return (*fp->f_setinfo)(fp, what, valp);
357 SM_FILE_T *fp; in sm_io_getinfo()
405 if (fp->f_r > 0)
417 return fp->f_file;
[all …]
H A Dfvwrite.c93 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
134 size_t blen = fp->f_p - fp->f_bf.smb_base;
151 fp->f_w += tsize - fp->f_bf.smb_size;
156 w = fp->f_w;
163 fp->f_w -= w;
167 else if (fp->f_p > fp->f_bf.smb_base
179 w = (*fp->f_write)(fp, p, w);
204 if ((fp->f_flags & SMNOW) != 0 && sm_flush(fp, &timeout))
229 w = fp->f_w + fp->f_bf.smb_size;
231 if (fp->f_p > fp->f_bf.smb_base && s > w)
[all …]
H A Dsmstdio.c51 SM_FILE_T *fp; in sm_stdioopen()
113 setup(fp) in setup() argument
114 SM_FILE_T *fp; in setup()
150 SM_FILE_T *fp; in sm_stdioread()
157 setup(fp);
176 SM_FILE_T *fp; in sm_stdiowrite()
183 setup(fp);
202 SM_FILE_T *fp; in sm_stdioseek()
209 setup(fp);
231 setup(fp);
[all …]
H A Dstdio.c61 SM_FILE_T *fp; in sm_stdopen()
103 (void) (*fp->f_seek)((void *)fp, (off_t)0, SEEK_END);
126 SM_FILE_T *fp; in sm_stdread()
155 SM_FILE_T *fp; in sm_stdwrite()
180 SM_FILE_T *fp; in sm_stdseek()
204 sm_stdclose(fp) in sm_stdclose() argument
205 SM_FILE_T *fp; in sm_stdclose()
226 SM_FILE_T *fp; in sm_stdsetmode()
247 fp->f_flags = fp->f_flags & ~SMMODEMASK;
449 (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.c126 for (fp = bp->b_files; fp; fp = fp->f_next) in analyze()
149 for (fp = bp->b_files; fp; fp = fp->f_next) in analyze()
196 for (fp = changes; fp; fp = fp->f_rnext) in analyze()
272 for (fp = bp->b_files; fp; fp = fp->f_next) in prune()
316 for (fp = changes; fp; fp = fp->f_rnext) { in summary()
322 fp->f_problem ? fp->f_problem : "???"); in summary()
361 fp->f_info[OPT_BASE].f_ino = fp->f_s_inum; in check_file()
362 fp->f_info[OPT_BASE].f_d_maj = fp->f_s_maj; in check_file()
392 if (fp->f_srcdiffs || fp->f_dstdiffs || fp->f_flags & F_STAT_ERROR) { in check_file()
989 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.c145 for (fp = bp->b_files; fp; fp = fp->f_next) in evaluate()
203 for (fp = bp->b_files; fp; fp = fp->f_next) in evaluate()
340 dp = fp; in add_file_arg()
377 showflags(fileflags, fp->f_flags), fp->f_name); in eval_file()
614 for (fp = fp->f_files; fp; fp = fp->f_next) { in walker()
750 do_update(&fp->f_info[ OPT_BASE ], &fp->f_info[ which ]); in update_info()
755 which, fp->f_name, fp->f_info[ which ].f_modtime, in update_info()
831 fp->f_s_maj, fp->f_s_min, fp->f_s_inum, in check_inum()
844 fp->f_d_maj, fp->f_d_min, fp->f_d_inum, in check_inum()
945 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/libsa/
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 …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dtputcfent.c45 tputcfent(struct cfent *ept, FILE *fp) in tputcfent() argument
143 (void) fprintf(fp, in tputcfent()
146 (void) fprintf(fp, in tputcfent()
154 (void) fputs(timeb, fp); in tputcfent()
156 (void) fprintf(fp, in tputcfent()
160 (void) fputc('\n', fp); in tputcfent()
166 (void) fprintf(fp, in tputcfent()
179 (void) fputc('\n', fp); in tputcfent()
180 (void) fputc('\t', fp); in tputcfent()
185 (void) fputc('\n', fp); in tputcfent()
[all …]

12345678910>>...50