Home
last modified time | relevance | path

Searched refs:fbuf (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/sbin/dhclient/
H A Derrwarn.c53 static char fbuf[1024]; variable
65 do_percentm(fbuf, sizeof(fbuf), fmt); in error()
68 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in error()
99 do_percentm(fbuf, sizeof(fbuf), fmt); in warning()
102 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in warning()
125 do_percentm(fbuf, sizeof(fbuf), fmt); in note()
128 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in note()
151 do_percentm(fbuf, sizeof(fbuf), fmt); in debug()
154 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in debug()
214 snprintf(fbuf, sizeof(fbuf), "%s line %d: %s", tlname, lexline, mbuf); in parse_warn()
[all …]
/freebsd/usr.bin/mail/
H A Dquit.c98 if (fbuf == NULL) in quit()
116 c = getc(fbuf); in quit()
174 (void)Fclose(fbuf); in quit()
180 (void)Fclose(fbuf); in quit()
201 (void)Fclose(fbuf); in quit()
274 (void)Fclose(fbuf); in quit()
290 (void)Fclose(fbuf); in quit()
310 (void)Fclose(fbuf); in quit()
314 (void)Fclose(fbuf); in quit()
319 if (fbuf != NULL) in quit()
[all …]
H A Dcollect.c69 FILE *fbuf; in collect() local
344 (fbuf = Fdopen(tempfd, "w+")) == NULL) { in collect()
359 (void)Fclose(fbuf); in collect()
363 if (fsize(fbuf) == 0) { in collect()
367 (void)Fclose(fbuf); in collect()
371 rewind(fbuf); in collect()
375 } else if ((fbuf = Fopen(cp, "r")) == NULL) { in collect()
388 (void)Fclose(fbuf); in collect()
393 (void)Fclose(fbuf); in collect()
430 while ((t = getc(fbuf)) != EOF) in collect()
[all …]
/freebsd/contrib/ntp/sntp/
H A Dkod_management.c188 char fbuf[254+10+4+2+1+1]; in kod_init_kod_db() local
212 while (!feof(db_s) && NULL != fgets(fbuf, sizeof(fbuf), db_s)) { in kod_init_kod_db()
215 if ('\n' == fbuf[0]) in kod_init_kod_db()
219 len = strlen(fbuf); in kod_init_kod_db()
221 if (' ' == fbuf[a]) in kod_init_kod_db()
224 if ('\n' == fbuf[a]) { in kod_init_kod_db()
257 str_ptr = fgets(fbuf, sizeof(fbuf), db_s); in kod_init_kod_db()
264 if ('\n' == fbuf[0]) { in kod_init_kod_db()
272 if (3 != sscanf(fbuf, "%llx %4s %254s", &ull, in kod_init_kod_db()
/freebsd/lib/libsecureboot/
H A Dveta.c73 char fbuf[MAXPATHLEN]; in trust_dir_add() local
85 sz = snprintf(fbuf, sizeof(fbuf), "%s/%s", trust, de->d_name); in trust_dir_add()
86 if (sz >= (ssize_t)sizeof(fbuf)) in trust_dir_add()
88 if (stat(fbuf, &st) < 0 || S_ISDIR(st.st_mode)) in trust_dir_add()
90 num += trust_file_add(fbuf); in trust_dir_add()
/freebsd/contrib/sendmail/src/
H A Dmime.c1103 fbufp = fbuf;
1153 if (!putxline((char *) fbuf, fbufp - fbuf, mci, pxflags)) \
1156 fbufp = fbuf; \
1180 fbufp = fbuf;
1185 &fbuf[MAXLINE] - fbufp);
1190 if (fbufp - fbuf > 0)
1192 if (!putxline((char *) fbuf, fbufp - fbuf - 1,
1196 fbufp = fbuf;
1201 &fbuf[MAXLINE] - fbufp);
1208 if (fbufp > fbuf)
[all …]
/freebsd/sys/dev/hid/
H A Dhconf.c138 uint8_t *fbuf; in hconf_set_feature_control() local
148 fbuf = malloc(fc->rlen, M_TEMP, M_WAITOK | M_ZERO); in hconf_set_feature_control()
155 bzero(fbuf + 1, fc->rlen - 1); in hconf_set_feature_control()
165 hid_put_udata(fbuf + 1, ofc->rlen - 1, &ofc->loc, in hconf_set_feature_control()
169 fbuf[0] = fc->rid; in hconf_set_feature_control()
171 error = hid_set_report(sc->dev, fbuf, fc->rlen, in hconf_set_feature_control()
177 free(fbuf, M_TEMP); in hconf_set_feature_control()
H A Dhmt.c300 uint8_t *fbuf = NULL; in hmt_attach() local
318 fbuf = malloc(fsize, M_TEMP, M_WAITOK | M_ZERO); in hmt_attach()
322 err = hid_get_report(dev, fbuf, sc->cont_max_rlen, &rsize, in hmt_attach()
326 cont_count_max = hid_get_udata(fbuf + 1, in hmt_attach()
342 bzero(fbuf, fsize); in hmt_attach()
343 err = hid_get_report(dev, fbuf, sc->btn_type_rlen, &rsize, in hmt_attach()
350 sc->is_clickpad = hid_get_udata(fbuf + 1, sc->btn_type_rlen - 1, in hmt_attach()
357 (void)hid_get_report(dev, fbuf, sc->thqa_cert_rlen, NULL, in hmt_attach()
360 free(fbuf, M_TEMP); in hmt_attach()
/freebsd/sys/net/
H A Dbpf_buffer.c162 caddr_t fbuf, sbuf; in bpf_buffer_ioctl_sblen() local
171 fbuf = (caddr_t)malloc(size, M_BPF, M_WAITOK); in bpf_buffer_ioctl_sblen()
178 free(fbuf, M_BPF); in bpf_buffer_ioctl_sblen()
191 d->bd_fbuf = fbuf; in bpf_buffer_ioctl_sblen()
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_humanize_number.c208 char fbuf[128]; in ATF_TC_BODY() local
234 w_printf("%s,", formatflags(fbuf, sizeof(fbuf), scale_flags, in ATF_TC_BODY()
237 w_printf("%s)", formatflags(fbuf, sizeof(fbuf), normal_flags, in ATF_TC_BODY()
/freebsd/contrib/tcp_wrappers/
H A Dmyvsyslog.c23 char fbuf[BUFSIZ]; in myvsyslog() local
26 vsprintf(obuf, percent_m(fbuf, format), ap); in myvsyslog()
/freebsd/usr.bin/ktrdump/
H A Dktrdump.c80 static char fbuf[PATH_MAX]; variable
338 if (kvm_read(kd, (u_long)buf[i].ktr_file, fbuf, in main()
339 sizeof(fbuf)) == -1) in main()
340 strcpy(fbuf, "(null)"); in main()
341 snprintf(obuf, sizeof(obuf), "%s:%d", fbuf, in main()
/freebsd/contrib/tcsh/
H A Dsh.lex.c1552 if (fbuf) { in balloc()
1553 (void) blkcpy(nfbuf, fbuf); in balloc()
1554 xfree(fbuf); in balloc()
1556 fbuf = nfbuf; in balloc()
1646 c = wide_read(SHIN, fbuf[0], BUFSIZE, 1); in bgetc()
1656 ch = fbuf[0][fseekp - fbobp]; in bgetc()
1660 ch = fbuf[0][fseekp - fbobp]; in bgetc()
1732 xfree(fbuf[i]); in bfree()
1733 (void) blkcpy(fbuf, &fbuf[sb]); in bfree()
1857 fbuf = xcalloc(2, sizeof(Char **)); in settell()
[all …]
/freebsd/usr.bin/pr/
H A Dpr.c801 FILE **fbuf = NULL; in mulfile() local
820 if ((fbuf = (FILE **)malloc((unsigned)clcnt*sizeof(FILE *))) == NULL) { in mulfile()
843 if ((fbuf[j] = nxtfile(argc, argv, &fname, ohbuf, 1)) == NULL) in mulfile()
845 if (pgnm && (inskip(fbuf[j], pgnm, lines))) in mulfile()
846 fbuf[j] = NULL; in mulfile()
919 if (fbuf[j] == NULL) { in mulfile()
924 } else if ((cnt = inln(fbuf[j], ptbf, colwd, in mulfile()
929 if (fbuf[j] != stdin) in mulfile()
930 (void)fclose(fbuf[j]); in mulfile()
931 fbuf[j] = NULL; in mulfile()
[all …]
/freebsd/sys/security/audit/
H A Daudit_bsm_klib.c424 char *rbuf, *fbuf, *copy; in audit_canon_path_vp() local
462 error = vn_fullpath_global(vp, &rbuf, &fbuf); in audit_canon_path_vp()
475 free(fbuf, M_TEMP); in audit_canon_path_vp()
/freebsd/contrib/sendmail/libsmutil/
H A Dsafefile.c60 char fbuf[MAXPATHLEN]; variable
66 if (sm_strlcpy(fbuf, fn, sizeof fbuf) >= sizeof fbuf)
72 fn = fbuf;
/freebsd/usr.sbin/makefs/
H A Dffs.c910 char *fbuf, *p; in ffs_write_file() local
924 fbuf = NULL; in ffs_write_file()
955 fbuf = emalloc(ffs_opts->bsize); in ffs_write_file()
968 else if ((nread = read(ffd, fbuf, chunk)) == -1) in ffs_write_file()
978 p = fbuf; in ffs_write_file()
1010 if (fbuf) in ffs_write_file()
1011 free(fbuf); in ffs_write_file()
/freebsd/contrib/file/src/
H A Dascmagic.c83 bb.flen = trim_nuls(CAST(const unsigned char *, b->fbuf), b->flen); in file_ascmagic()
110 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_ascmagic_with_encoding()
H A Dbuffer.c48 b->fbuf = data; in buffer_init()
H A Dis_csv.c136 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_csv()
H A Dis_tar.c65 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_is_tar()
H A Dis_simh.c151 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_simh()
/freebsd/tests/sys/fs/fusefs/
H A Dcopy_file_range.cc333 uint8_t *wbuf, *fbuf; in TEST_F() local
346 fbuf = new uint8_t[fsize](); in TEST_F()
353 expect_read(ino, 0, fsize, fsize, fbuf, -1, fh); in TEST_F()
387 delete[] fbuf; in TEST_F()
/freebsd/sys/cam/ctl/
H A Dctl_tpc.c782 uint8_t fbuf[4 + 64]; in tpc_set_io_error_sense() local
792 fbuf[0] = 0x0c; in tpc_set_io_error_sense()
793 fbuf[2] = list->fwd_target; in tpc_set_io_error_sense()
797 fbuf[2] |= SSD_FORWARDED_FSDT; in tpc_set_io_error_sense()
799 fbuf[1] = 2 + flen; in tpc_set_io_error_sense()
800 fbuf[3] = list->fwd_scsi_status; in tpc_set_io_error_sense()
801 bcopy(&list->fwd_sense_data, &fbuf[4], flen); in tpc_set_io_error_sense()
810 flen ? SSD_ELEM_DESC : SSD_ELEM_SKIP, flen, fbuf, in tpc_set_io_error_sense()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c2218 char fbuf[6]; in log_data() local
2219 snprintf(fbuf, sizeof(fbuf), "\\%03o", uch); in log_data()
2220 dptr = add_string(dptr, dtop, fbuf); in log_data()

12