Home
last modified time | relevance | path

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

12

/dragonfly/sbin/dhclient/
H A Derrwarn.c54 static char fbuf[1024]; variable
66 do_percentm(fbuf, sizeof(fbuf), fmt); in error()
69 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in error()
96 do_percentm(fbuf, sizeof(fbuf), fmt); in warning()
99 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in warning()
122 do_percentm(fbuf, sizeof(fbuf), fmt); in note()
125 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in note()
149 do_percentm(fbuf, sizeof(fbuf), fmt); in debug()
152 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in debug()
214 snprintf(fbuf, sizeof(fbuf), "%s line %d: %s", tlname, lexline, mbuf); in parse_warn()
[all …]
/dragonfly/usr.bin/mail/
H A Dquit.c179 Fclose(fbuf); in quit()
185 Fclose(fbuf); in quit()
206 Fclose(fbuf); in quit()
213 Fclose(fbuf); in quit()
226 Fclose(fbuf); in quit()
234 Fclose(fbuf); in quit()
278 Fclose(fbuf); in quit()
294 Fclose(fbuf); in quit()
314 Fclose(fbuf); in quit()
318 Fclose(fbuf); in quit()
[all …]
H A Dcollect.c71 FILE *fbuf; in collect() local
346 (fbuf = Fdopen(tempfd, "w+")) == NULL) { in collect()
361 Fclose(fbuf); in collect()
365 if (fsize(fbuf) == 0) { in collect()
369 Fclose(fbuf); in collect()
373 rewind(fbuf); in collect()
377 } else if ((fbuf = Fopen(cp, "r")) == NULL) { in collect()
390 Fclose(fbuf); in collect()
395 Fclose(fbuf); in collect()
432 while ((t = getc(fbuf)) != EOF) in collect()
[all …]
/dragonfly/usr.sbin/zic/
H A Dscheck.c11 char *fbuf; in scheck() local
21 fbuf = malloc(2 * strlen(format) + 4); in scheck()
22 if (fbuf == NULL) in scheck()
25 tp = fbuf; in scheck()
58 if (sscanf(string, fbuf, &dummy) != 1) in scheck()
60 free(fbuf); in scheck()
/dragonfly/usr.sbin/sensorsd/
H A Dsensorsd.c610 char *fbuf; in print_sensor() local
612 fbuf = rfbuf[idx++]; in print_sensor()
618 snprintf(fbuf, RFBUFSIZ, "%.2f degC", in print_sensor()
622 snprintf(fbuf, RFBUFSIZ, "%"PRId64" RPM", value); in print_sensor()
640 snprintf(fbuf, RFBUFSIZ, "%"PRId64" Hz", value); in print_sensor()
644 snprintf(fbuf, RFBUFSIZ, "%"PRId64, value); in print_sensor()
647 snprintf(fbuf, RFBUFSIZ, "%.2f%%", value / 1000.0); in print_sensor()
654 snprintf(fbuf, RFBUFSIZ, "%s", drvstat[value]); in print_sensor()
656 snprintf(fbuf, RFBUFSIZ, "%"PRId64" ???", value); in print_sensor()
662 snprintf(fbuf, RFBUFSIZ, "%"PRId64" ???", value); in print_sensor()
[all …]
/dragonfly/contrib/tcsh-6/
H A Dsh.lex.c1575 if (fbuf) { in balloc()
1576 (void) blkcpy(nfbuf, fbuf); in balloc()
1577 xfree(fbuf); in balloc()
1579 fbuf = nfbuf; in balloc()
1669 c = wide_read(SHIN, fbuf[0], BUFSIZE, 1); in bgetc()
1679 ch = fbuf[0][fseekp - fbobp]; in bgetc()
1683 ch = fbuf[0][fseekp - fbobp]; in bgetc()
1755 xfree(fbuf[i]); in bfree()
1756 (void) blkcpy(fbuf, &fbuf[sb]); in bfree()
1880 fbuf = xcalloc(2, sizeof(Char **)); in settell()
[all …]
H A Dsh.c1652 fbuf = NULL; in st_save()
1688 Char** nfbuf = fbuf; in st_restore()
1692 fbuf = NULL; in st_restore()
/dragonfly/contrib/tcp_wrappers/
H A Dmyvsyslog.c28 char fbuf[BUFSIZ]; local
31 vsprintf(obuf, percent_m(fbuf, format), ap);
/dragonfly/usr.bin/pr/
H A Dpr.c775 FILE **fbuf; in mulfile() local
793 if ((fbuf = (FILE **)malloc((unsigned)clcnt*sizeof(FILE *))) == NULL) { in mulfile()
816 if ((fbuf[j] = nxtfile(argc, argv, &fname, ohbuf, 1)) == NULL) in mulfile()
818 if (pgnm && (inskip(fbuf[j], pgnm, lines))) in mulfile()
819 fbuf[j] = NULL; in mulfile()
892 if (fbuf[j] == NULL) { in mulfile()
897 } else if ((cnt = inln(fbuf[j], ptbf, colwd, in mulfile()
902 if (fbuf[j] != stdin) in mulfile()
903 (void)fclose(fbuf[j]); in mulfile()
904 fbuf[j] = NULL; in mulfile()
/dragonfly/contrib/dhcpcd/src/
H A Darp.c127 char fbuf[HWADDR_LEN * 3]; in arp_report_conflicted() local
144 hwaddr_ntoa(amsg->fsha, astate->iface->hwlen, fbuf, sizeof(fbuf)), in arp_report_conflicted()
310 char fbuf[HWADDR_LEN * 3]; in arp_packet() local
312 hwaddr_ntoa(&arm.fsha, falen, fbuf, sizeof(fbuf)); in arp_packet()
314 ifp->name, abuf, fbuf); in arp_packet()
/dragonfly/games/phantasia/
H A Dsetup.c59 struct stat fbuf; /* for getting files statistics */ in main() local
85 if (stat(*filename, &fbuf) == 0) { in main()
/dragonfly/usr.sbin/makefs/
H A Dffs.c938 char *fbuf, *p; in ffs_write_file() local
952 fbuf = NULL; in ffs_write_file()
985 fbuf = emalloc(ffs_opts->bsize); in ffs_write_file()
998 else if ((nread = read(ffd, fbuf, chunk)) == -1) in ffs_write_file()
1008 p = fbuf; in ffs_write_file()
1040 if (fbuf) in ffs_write_file()
1041 free(fbuf); in ffs_write_file()
/dragonfly/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.c135 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 Dsoftmagic.c257 switch (mget(ms, m, b, CAST(const unsigned char *, bb.fbuf), in match()
368 bb.fbuf), bb.flen, offset, in match()
1524 buffer_init(bb, -1, NULL, b->fbuf, b->flen); in msetoffset()
1535 bb->fbuf, bb->flen, bb->elen, ms->offset, b->fbuf, in msetoffset()
1857 bb.fbuf = s + offset; in mget()
H A Dis_json.c424 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_json()
H A Dfile.h179 const void *fbuf; member
H A Dreadcdf.c544 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_trycdf()
H A Dencoding.c79 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_encoding()
H A Dcompress.c258 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_zmagic()
/dragonfly/contrib/bmake/
H A Djob.c1838 bool fbuf; /* true if our buffer filled up */ in CollectOutput() local
1847 fbuf = false; in CollectOutput()
1894 fbuf = true; in CollectOutput()
1898 if (gotNL || fbuf) { in CollectOutput()
/dragonfly/contrib/lvm2/dist/tools/
H A Ddmsetup.c2747 struct stat fbuf; in _loop_table() local
2766 if (fstat(fd, &fbuf)) in _loop_table()
2769 size = (fbuf.st_size - off); in _loop_table()
/dragonfly/sys/kern/
H A Dvfs_syscalls.c5399 char *fbuf; in sys___realpath() local
5410 fbuf = NULL; in sys___realpath()
5441 error = cache_fullpath(curproc, &nd.nl_nch, NULL, &rbuf, &fbuf, 0); in sys___realpath()
5455 if (fbuf) in sys___realpath()
5456 kfree(fbuf, M_TEMP); in sys___realpath()

12