/freebsd/sbin/dhclient/ |
H A D | errwarn.c | 53 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 D | quit.c | 66 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; in quit() local 97 fbuf = Fopen(mailname, "r"); in quit() 98 if (fbuf == NULL) in quit() 100 (void)flock(fileno(fbuf), LOCK_EX); in quit() 102 if (fstat(fileno(fbuf), &minfo) >= 0 && minfo.st_size > mailsize) { in quit() 110 (void)fseeko(fbuf, mailsize, SEEK_SET); in quit() 111 while ((c = getc(fbuf)) != EOF) in quit() 116 c = getc(fbuf); in quit() 174 (void)Fclose(fbuf); in quit() 180 (void)Fclose(fbuf); in quit() [all …]
|
H A D | collect.c | 69 FILE *fbuf; in collect() local 344 (fbuf = Fdopen(tempfd, "w+")) == NULL) { in collect() 353 rc = run_command(sh, 0, nullfd, fileno(fbuf), 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() 383 while ((rc = readline(fbuf, linebuf, LINESIZE)) >= 0) { in collect() 388 (void)Fclose(fbuf); in collect() [all …]
|
/freebsd/contrib/ntp/sntp/ |
H A D | kod_management.c | 188 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 D | veta.c | 73 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 D | mime.c | 1044 unsigned char fbuf[MAXLINE + 1]; local 1103 fbufp = fbuf; 1137 # define CHK_EOL if (*--fbufp != '\n' || (fbufp > fbuf && *--fbufp != '\r')) \ 1140 # define CHK_EOL if (*--fbufp != '\n' || (fbufp > fbuf && *--fbufp != '\r')) \ 1150 if (*fbufp++ == '\n' || fbufp >= &fbuf[MAXLINE]) \ 1153 if (!putxline((char *) fbuf, fbufp - fbuf, mci, pxflags)) \ 1156 fbufp = fbuf; \ 1180 fbufp = fbuf; 1185 &fbuf[MAXLINE] - fbufp); 1190 if (fbufp - fbuf > 0) [all …]
|
/freebsd/sys/dev/hid/ |
H A D | hconf.c | 138 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 D | hmt.c | 300 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 D | bpf_buffer.c | 162 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 D | t_humanize_number.c | 208 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 D | myvsyslog.c | 23 char fbuf[BUFSIZ]; in myvsyslog() local 26 vsprintf(obuf, percent_m(fbuf, format), ap); in myvsyslog()
|
/freebsd/usr.bin/ktrdump/ |
H A D | ktrdump.c | 80 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 D | sh.lex.c | 1552 if (fbuf) { in balloc() 1553 (void) blkcpy(nfbuf, fbuf); in balloc() 1554 xfree(fbuf); in balloc() 1556 fbuf = nfbuf; in balloc() 1557 fbuf[fblocks] = xcalloc(BUFSIZE, sizeof(Char)); 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() 1687 (void) memcpy(fbuf[buf] + off, InputBuf + c - numleft, in bgetc() 1697 c = wide_read(SHIN, fbuf[buf] + off, roomleft, 0); in bgetc() [all …]
|
/freebsd/usr.bin/pr/ |
H A D | pr.c | 801 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 D | audit_bsm_klib.c | 424 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 D | safefile.c | 60 char fbuf[MAXPATHLEN]; variable 66 if (sm_strlcpy(fbuf, fn, sizeof fbuf) >= sizeof fbuf) 72 fn = fbuf;
|
/freebsd/usr.sbin/makefs/ |
H A D | ffs.c | 910 char *fbuf, *p; in ffs_write_file() 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() 907 char *fbuf, *p; ffs_write_file() local
|
H A D | ffs.c | 910 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 D | ascmagic.c | 83 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 D | buffer.c | 48 b->fbuf = data; in buffer_init()
|
H A D | is_csv.c | 137 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_csv()
|
H A D | is_tar.c | 65 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_is_tar()
|
H A D | is_simh.c | 151 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_simh()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | copy_file_range.cc | 333 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 D | ctl_tpc.c | 782 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()
|