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

12

/freebsd-current/contrib/tcp_wrappers/
H A Dmyvsyslog.c23 char fbuf[BUFSIZ]; local
26 vsprintf(obuf, percent_m(fbuf, format), ap);
/freebsd-current/sbin/dhclient/
H A Derrwarn.c53 static char fbuf[1024]; variable
65 do_percentm(fbuf, sizeof(fbuf), fmt);
68 vsnprintf(mbuf, sizeof(mbuf), fbuf, list);
99 do_percentm(fbuf, sizeof(fbuf), fmt);
102 vsnprintf(mbuf, sizeof(mbuf), fbuf, list);
125 do_percentm(fbuf, sizeof(fbuf), fmt);
128 vsnprintf(mbuf, sizeof(mbuf), fbuf, lis
[all...]
/freebsd-current/lib/libsecureboot/
H A Dveta.c73 char fbuf[MAXPATHLEN]; local
85 sz = snprintf(fbuf, sizeof(fbuf), "%s/%s", trust, de->d_name);
86 if (sz >= (ssize_t)sizeof(fbuf))
88 if (stat(fbuf, &st) < 0 || S_ISDIR(st.st_mode))
90 num += trust_file_add(fbuf);
/freebsd-current/usr.bin/mail/
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; local
97 fbuf = Fopen(mailname, "r");
98 if (fbuf == NULL)
100 (void)flock(fileno(fbuf), LOCK_EX);
102 if (fstat(fileno(fbuf), &minfo) >= 0 && minfo.st_size > mailsize) {
110 (void)fseeko(fbuf, mailsize, SEEK_SET);
111 while ((c = getc(fbuf)) != EOF)
116 c = getc(fbuf);
174 (void)Fclose(fbuf);
180 (void)Fclose(fbuf);
[all...]
H A Dcollect.c69 FILE *fbuf; local
344 (fbuf = Fdopen(tempfd, "w+")) == NULL) {
353 rc = run_command(sh, 0, nullfd, fileno(fbuf),
359 (void)Fclose(fbuf);
363 if (fsize(fbuf) == 0) {
367 (void)Fclose(fbuf);
371 rewind(fbuf);
375 } else if ((fbuf = Fopen(cp, "r")) == NULL) {
383 while ((rc = readline(fbuf, linebuf, LINESIZE)) >= 0) {
388 (void)Fclose(fbuf);
[all...]
/freebsd-current/contrib/ntp/sntp/
H A Dkod_management.c188 char fbuf[254+10+4+2+1+1]; local
212 while (!feof(db_s) && NULL != fgets(fbuf, sizeof(fbuf), db_s)) {
215 if ('\n' == fbuf[0])
219 len = strlen(fbuf);
221 if (' ' == fbuf[a])
224 if ('\n' == fbuf[a]) {
257 str_ptr = fgets(fbuf, sizeof(fbuf), db_s);
264 if ('\n' == fbuf[
[all...]
/freebsd-current/sys/dev/hid/
H A Dhconf.c138 uint8_t *fbuf; local
148 fbuf = malloc(fc->rlen, M_TEMP, M_WAITOK | M_ZERO);
155 bzero(fbuf + 1, fc->rlen - 1);
165 hid_put_udata(fbuf + 1, ofc->rlen - 1, &ofc->loc,
169 fbuf[0] = fc->rid;
171 error = hid_set_report(sc->dev, fbuf, fc->rlen,
177 free(fbuf, M_TEMP);
H A Dhmt.c300 uint8_t *fbuf = NULL; local
318 fbuf = malloc(fsize, M_TEMP, M_WAITOK | M_ZERO);
322 err = hid_get_report(dev, fbuf, sc->cont_max_rlen, &rsize,
326 cont_count_max = hid_get_udata(fbuf + 1,
342 bzero(fbuf, fsize);
343 err = hid_get_report(dev, fbuf, sc->btn_type_rlen, &rsize,
350 sc->is_clickpad = hid_get_udata(fbuf + 1, sc->btn_type_rlen - 1,
357 (void)hid_get_report(dev, fbuf, sc->thqa_cert_rlen, NULL,
360 free(fbuf, M_TEMP);
/freebsd-current/sys/net/
H A Dbpf_buffer.c162 caddr_t fbuf, sbuf; local
171 fbuf = (caddr_t)malloc(size, M_BPF, M_WAITOK);
178 free(fbuf, M_BPF);
191 d->bd_fbuf = fbuf;
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/
H A Dt_humanize_number.c208 char fbuf[128]; local
234 w_printf("%s,", formatflags(fbuf, sizeof(fbuf), scale_flags,
237 w_printf("%s)", formatflags(fbuf, sizeof(fbuf), normal_flags,
/freebsd-current/contrib/sendmail/src/
H A Dmime.c1044 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[MAXLIN
[all...]
/freebsd-current/contrib/tcsh/
H A Dsh.lex.c1552 if (fbuf) {
1553 (void) blkcpy(nfbuf, fbuf);
1554 xfree(fbuf);
1556 fbuf = nfbuf;
1557 fbuf[fblocks] = xcalloc(BUFSIZE, sizeof(Char));
1646 c = wide_read(SHIN, fbuf[0], BUFSIZE, 1);
1656 ch = fbuf[0][fseekp - fbobp];
1660 ch = fbuf[0][fseekp - fbobp];
1687 (void) memcpy(fbuf[buf] + off, InputBuf + c - numleft,
1697 c = wide_read(SHIN, fbuf[bu
[all...]
/freebsd-current/contrib/file/src/
H A Dbuffer.c48 b->fbuf = data;
H A Dis_tar.c65 const unsigned char *buf = CAST(const unsigned char *, b->fbuf);
H A Dis_csv.c136 const unsigned char *uc = CAST(const unsigned char *, b->fbuf);
H A Dascmagic.c83 bb.flen = trim_nuls(CAST(const unsigned char *, b->fbuf), b->flen);
110 const unsigned char *buf = CAST(const unsigned char *, b->fbuf);
H A Dis_simh.c151 const unsigned char *uc = CAST(const unsigned char *, b->fbuf);
H A Dis_json.c424 const unsigned char *uc = CAST(const unsigned char *, b->fbuf);
/freebsd-current/usr.bin/pr/
H A Dpr.c801 FILE **fbuf = NULL; local
820 if ((fbuf = (FILE **)malloc((unsigned)clcnt*sizeof(FILE *))) == NULL) {
843 if ((fbuf[j] = nxtfile(argc, argv, &fname, ohbuf, 1)) == NULL)
845 if (pgnm && (inskip(fbuf[j], pgnm, lines)))
846 fbuf[j] = NULL;
919 if (fbuf[j] == NULL) {
924 } else if ((cnt = inln(fbuf[j], ptbf, colwd,
929 if (fbuf[j] != stdin)
930 (void)fclose(fbuf[j]);
931 fbuf[
[all...]
/freebsd-current/sys/security/audit/
H A Daudit_bsm_klib.c424 char *rbuf, *fbuf, *copy; local
462 error = vn_fullpath_global(vp, &rbuf, &fbuf);
475 free(fbuf, M_TEMP);
/freebsd-current/contrib/sendmail/libsmutil/
H A Dsafefile.c60 char fbuf[MAXPATHLEN]; local
66 if (sm_strlcpy(fbuf, fn, sizeof fbuf) >= sizeof fbuf)
72 fn = fbuf;
/freebsd-current/usr.sbin/makefs/
H A Dffs.c910 char *fbuf, *p; local
924 fbuf = NULL;
955 fbuf = emalloc(ffs_opts->bsize);
968 else if ((nread = read(ffd, fbuf, chunk)) == -1)
978 p = fbuf;
1010 if (fbuf)
1011 free(fbuf);
/freebsd-current/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,
339 sizeof(fbuf)) == -1)
340 strcpy(fbuf, "(null)");
341 snprintf(obuf, sizeof(obuf), "%s:%d", fbuf,
/freebsd-current/tests/sys/fs/fusefs/
H A Dcopy_file_range.cc333 uint8_t *wbuf, *fbuf; local
346 fbuf = new uint8_t[fsize]();
353 expect_read(ino, 0, fsize, fsize, fbuf, -1, fh);
387 delete[] fbuf;
/freebsd-current/contrib/tzcode/
H A Dzdump.c1085 char fbuf[100]; local
1086 bool oversized = sizeof fbuf <= (size_t)f_prefix_copy_size;
1087 char *f_prefix_copy = oversized ? xmalloc(f_prefix_copy_size) : fbuf;

Completed in 368 milliseconds

12