Symbol: fread
bin/ed/buf.c
67
if ((ct = fread(sfbuf, sizeof(char), len, sfp)) < 0 || ct != len) {
bin/ed/cbc.c
66
#define READ(buf, n, fp) fread(buf, sizeof(char), n, fp)
crypto/libressl/crypto/bio/bss_file.c
191
ret = fread(out, 1, outl, (FILE *)b->ptr);
games/adventure/save.c
143
result = fread(data, 1, len, sf->f);
games/adventure/save.c
534
fread(&sum, sizeof(sum), 1, in); /* Get the seed */
games/adventure/save.c
537
fread(p->address, p->width, 1, in);
games/battlestar/save.c
47
fread(&WEIGHT, sizeof WEIGHT, 1, fp);
games/battlestar/save.c
48
fread(&CUMBER, sizeof CUMBER, 1, fp);
games/battlestar/save.c
49
fread(&ourclock, sizeof ourclock, 1, fp);
games/battlestar/save.c
50
fread(&tmp, sizeof tmp, 1, fp);
games/battlestar/save.c
53
fread(location[n].link, sizeof location[n].link, 1, fp);
games/battlestar/save.c
54
fread(location[n].objects, sizeof location[n].objects, 1, fp);
games/battlestar/save.c
56
fread(inven, sizeof inven, 1, fp);
games/battlestar/save.c
57
fread(wear, sizeof wear, 1, fp);
games/battlestar/save.c
58
fread(injuries, sizeof injuries, 1, fp);
games/battlestar/save.c
59
fread(notes, sizeof notes, 1, fp);
games/battlestar/save.c
60
fread(&direction, sizeof direction, 1, fp);
games/battlestar/save.c
61
fread(&position, sizeof position, 1, fp);
games/battlestar/save.c
62
fread(&ourtime, sizeof ourtime, 1, fp);
games/battlestar/save.c
63
fread(&fuel, sizeof fuel, 1, fp);
games/battlestar/save.c
64
fread(&torps, sizeof torps, 1, fp);
games/battlestar/save.c
65
fread(&carrying, sizeof carrying, 1, fp);
games/battlestar/save.c
66
fread(&encumber, sizeof encumber, 1, fp);
games/battlestar/save.c
67
fread(&rythmn, sizeof rythmn, 1, fp);
games/battlestar/save.c
68
fread(&followfight, sizeof followfight, 1, fp);
games/battlestar/save.c
69
fread(&ate, sizeof ate, 1, fp);
games/battlestar/save.c
70
fread(&snooze, sizeof snooze, 1, fp);
games/battlestar/save.c
71
fread(&meetgirl, sizeof meetgirl, 1, fp);
games/battlestar/save.c
72
fread(&followgod, sizeof followgod, 1, fp);
games/battlestar/save.c
73
fread(&godready, sizeof godready, 1, fp);
games/battlestar/save.c
74
fread(&win, sizeof win, 1, fp);
games/battlestar/save.c
75
fread(&wintime, sizeof wintime, 1, fp);
games/battlestar/save.c
76
fread(&matchlight, sizeof matchlight, 1, fp);
games/battlestar/save.c
77
fread(&matchcount, sizeof matchcount, 1, fp);
games/battlestar/save.c
78
fread(&loved, sizeof loved, 1, fp);
games/battlestar/save.c
79
fread(&pleasure, sizeof pleasure, 1, fp);
games/battlestar/save.c
80
fread(&power, sizeof power, 1, fp);
games/battlestar/save.c
82
if (fread(&ego, sizeof ego, 1, fp) < 1)
games/boggle/boggle/word.c
150
while (n > 0 && (st = fread(p, 1, BUFSIZ, fp)) > 0) {
games/phantasia/fight.c
917
fread((char *)&Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp);
games/phantasia/fight.c
948
fread(&Othermonster, SZ_MONSTERSTRUCT, 1, Monstfp);
games/phantasia/gamesupport.c
476
while (fread((char *)&Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp) == 1)
games/phantasia/gamesupport.c
497
while (fread((char *)&sbuf, SZ_SCORESTRUCT, 1, fp) == 1)
games/phantasia/gamesupport.c
519
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
games/phantasia/gamesupport.c
549
if (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) != 1)
games/phantasia/gamesupport.c
586
while (fread((char *)&sbuf, SZ_SCORESTRUCT, 1, fp) == 1)
games/phantasia/interplayer.c
38
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) {
games/phantasia/interplayer.c
410
while (fread((char *)&Enrgyvoid, SZ_VOIDSTRUCT, 1, Energyvoidfp) == 1)
games/phantasia/interplayer.c
571
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
games/phantasia/interplayer.c
627
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) {
games/phantasia/interplayer.c
700
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
games/phantasia/interplayer.c
732
fread((char *)&Enrgyvoid, SZ_VOIDSTRUCT, 1, Energyvoidfp);
games/phantasia/interplayer.c
816
fread((char *)&temp1, sizeof(double), 1, fp);
games/phantasia/interplayer.c
866
fread((char *)&Enrgyvoid, SZ_VOIDSTRUCT, 1, Energyvoidfp);
games/phantasia/interplayer.c
998
while (fread((char *)&Enrgyvoid, SZ_VOIDSTRUCT, 1, Energyvoidfp) == 1)
games/phantasia/main.c
673
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
games/phantasia/main.c
689
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
games/phantasia/main.c
701
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
games/phantasia/main.c
720
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1)
games/phantasia/misc.c
1312
fread((char *)&dtemp, sizeof(double), 1, fp);
games/phantasia/misc.c
590
while (fread((char *)playerp, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) {
games/phantasia/misc.c
622
while (fread((char *)&Other, SZ_PLAYERSTRUCT, 1, Playersfp) == 1) {
games/phantasia/misc.c
757
fread((char *)&Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp);
games/phantasia/misc.c
943
fread((char *)playerp, SZ_PLAYERSTRUCT, 1, Playersfp);
games/rogue/save.c
237
if (fread(buf, sizeof(char), 1, fp) > 0) {
games/rogue/save.c
380
if (fread(buf, sizeof(char), n, fp) != (unsigned)n) {
games/rogue/score.c
218
if (((n = fread(scores[i], sizeof(char), 80, fp)) < 80) && (n != 0)) {
games/rogue/score.c
222
if ((n = fread(n_names[i], sizeof(char), 30, fp)) < 30) {
games/sail/lo_main.c
100
while (fread(&log, sizeof log, 1, fp) == 1 &&
games/sail/lo_main.c
134
switch (fread(&npeople, sizeof npeople, 1, fp)) {
games/sail/lo_main.c
143
while (fread(&log, sizeof log, 1, fp) == 1 &&
games/sail/lo_main.c
85
switch (fread(&npeople, sizeof npeople, 1, fp)) {
games/sail/misc.c
217
n = fread(log, sizeof(struct logs), NLOG, fp);
games/snake/snscore/snscore.c
73
if (fread(&whoallbest, sizeof(short), 1, fd) == 0) {
games/snake/snscore/snscore.c
77
fread(&allbest, sizeof(short), 1, fd);
games/snake/snscore/snscore.c
80
if(fread(&score, sizeof(short), 1, fd) == 0)
games/tetris/scores.c
130
nscores = fread(scores, sizeof(scores[0]), MAXHISCORES, sf);
include/stdio.h
227
size_t fread(void * __restrict, size_t, size_t, FILE * __restrict);
lib/libc/gen/utmpx.c
169
if (fread(&ut, sizeof(ut), 1, fp) != 1)
lib/libc/gen/utmpx.c
92
if (fread(&ut, sizeof(ut), 1, fp) != 1)
lib/libc/stdio/getw.c
44
return (fread((void *)&x, sizeof(x), 1, fp) == 1 ? x : EOF);
lib/libc/xdr/xdr_stdio.c
109
if (fread(&temp, sizeof(int32_t), 1, (FILE *)xdrs->x_private) != 1)
lib/libc/xdr/xdr_stdio.c
129
if ((len != 0) && (fread(addr, (size_t)len, 1, (FILE *)xdrs->x_private) != 1))
lib/libevtr/evtr.c
1457
if (fread(buf, size, 1, evtr->f) != 1) {
lib/libevtr/ktrfmt.yy.c
666
while ( (result = fread(buf, 1, max_size, __ktrfmtin))==0 && ferror(__ktrfmtin)) \
lib/libvgl/text.c
61
fread(&VGLTextFont->Width, 1 , 1, fd);
lib/libvgl/text.c
62
fread(&VGLTextFont->Height, 1 , 1, fd);
lib/libvgl/text.c
65
fread(VGLTextFont->BitmapArray, 1,
libexec/diff3prog/diff3prog.c
561
r = fread(block, 1, j, fp[2]);
libexec/dma/mail.c
113
while ((pos = fread(line, 1, sizeof(line), it->mailf)) > 0) {
sbin/cryptdisks/cryptdisks.c
247
if ((fread(buf, 1, keymem_len, fd)) == 0)
sbin/gpt/label.c
158
len = fread(name, 1, maxlen - 1, f);
sbin/hammer/cmd_cleanup.c
583
n = fread(config->config.text, 1, sizeof(config->config.text) - 1, fp);
sbin/md5/md5.c
588
while ((len = fread(buffer, 1, BUFSIZ, stdin))) {
sbin/quotacheck/quotacheck.c
331
if (fread((char *)&dqbuf, sizeof(struct ufs_dqblk), 1, qfi) == 0)
sbin/rconfig/server.c
189
n = fread(buf, 1, n, fp);
sbin/rconfig/subs.c
215
n = fread(*bufp + rc, 1, n, *pfi);
sbin/restore/dirs.c
596
fread((char *)&node, 1, sizeof(struct modeinfo), mfl);
usr.bin/bdes/bdes.c
101
#define READ(buf, n) fread(buf, sizeof(char), n, stdin)
usr.bin/compress/compress.c
213
while ((nr = fread(buf, 1, sizeof(buf), ifp)) != 0)
usr.bin/compress/compress.c
304
while ((nr = fread(buf, 1, sizeof(buf), ifp)) != 0)
usr.bin/compress/zopen.c
476
if (fread(header,
usr.bin/compress/zopen.c
585
size = fread(gbuf, 1, n_bits, fp);
usr.bin/csplit/csplit.c
331
if ((nread = fread(buf, 1, sizeof(buf), ofp)) == 0)
usr.bin/diff/diffreg.c
1240
cnt = fread(buf, 1, sizeof(buf), f);
usr.bin/diff/diffreg.c
1260
nc = fread(buf, 1, nc, fp);
usr.bin/diff/diffreg.c
436
i = fread(buf1, 1, sizeof(buf1), f1);
usr.bin/diff/diffreg.c
437
j = fread(buf2, 1, sizeof(buf2), f2);
usr.bin/fetch/fetch.c
782
readcnt = fread(buf, 1, size, f);
usr.bin/gzip/zuncompress.c
148
while ((bin = fread(buf, 1, BUFSIZE, in)) != 0) {
usr.bin/gzip/zuncompress.c
238
if (fread(header + i, 1, sizeof(header) - i, zs->zs_fp) !=
usr.bin/gzip/zuncompress.c
359
zs->u.r.zs_size = fread(zs->u.r.zs_gbuf + i, 1, zs->zs_n_bits - i, zs->zs_fp);
usr.bin/head/head.c
146
readlen = fread(buf, sizeof(char), readlen, fp);
usr.bin/hexdump/display.c
267
n = fread((char *)curp + nread, sizeof(u_char),
usr.bin/iconv/iconv.c
107
ret = fread(inbuf + inbytes, 1,
usr.bin/iconv/iconv.c
88
while ((inbytes = fread(inbuf, 1, INBUFSIZE, fp)) > 0) {
usr.bin/kdump/kdump.c
203
while ((i = fread(buf, size, num, stdin)) == 0 && tail) {
usr.bin/lastcomm/lastcomm.c
146
if ((rv = fread(&ab, sizeof(struct acct), 1, fp)) != 1) {
usr.bin/m4/manual_tokenizer.c
616
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
usr.bin/mail/send.c
205
if ((c = fread(line, sizeof(*line), c, ibuf)) <= 0)
usr.bin/mail/send.c
569
while ((i = fread(buf, 1, sizeof(buf), fi)) > 0)
usr.bin/msgs/msgs.c
782
while ((n = fread(inbuf, 1, sizeof inbuf, cpfrom)))
usr.bin/patch/pch.c
113
while ((nr = fread(buf, 1, buf_size, stdin)) > 0) {
usr.bin/rwall/rwall.c
178
if (fread(mbuf, sizeof(*mbuf), mbufsize, fp) != (u_int)mbufsize)
usr.bin/script/script.c
369
if (fread(buf, sizeof(char), l, fp) != l)
usr.bin/script/script.c
403
if (fread(&stamp, sizeof(stamp), 1, fp) != 1) {
usr.bin/script/script.c
451
if (fread(buf, sizeof(char), l, fp) != l)
usr.bin/sdiff/edit.c
177
nread = fread(buf, sizeof(*buf), sizeof(buf), file);
usr.bin/sed/process.c
575
while ((count = fread(buf, sizeof(char), sizeof(buf), f)))
usr.bin/sort/file.c
676
ret->bsz = fread(ret->buffer, 1, ret->cbsz, ret->file);
usr.bin/sort/file.c
749
bsz1 = fread(fr->buffer + fr->bsz, 1,
usr.bin/sort/file.c
765
bsz1 = fread(fr->buffer + remsz, 1,
usr.bin/sort/sort.c
976
while (size > 0 && (bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
usr.bin/tail/reverse.c
215
len += fread(p, 1, BSZ - len, fp);
usr.bin/undo/undo.c
503
while ((n = fread(buf, 1, 8192, fi)) > 0)
usr.bin/unstr/unstr.c
115
fread(&pos, 1, sizeof(pos), Dataf);
usr.bin/unstr/unstr.c
86
if (fread((char *)&tbl, sizeof(tbl), 1, Dataf) != 1) {
usr.bin/uuencode/uuencode.c
146
while ((n = fread(buf, 1, sizeof(buf), stdin))) {
usr.bin/uuencode/uuencode.c
169
while ((n = fread(buf, 1, 45, stdin))) {
usr.bin/wall/wall.c
273
if ((int)fread(mbuf, sizeof(*mbuf), mbufsize, fp) != mbufsize)
usr.bin/wtmpcvt/wtmpcvt.c
127
while (fread(&ui, sizeof ui, 1, in) == 1) {
usr.sbin/fstyp/fstyp.c
109
nread = fread(buf, len, 1, fp);
usr.sbin/installer/libdfui/conn_npipe.c
235
fread(&length, 4, 1, T_NPIPE(c)->in);
usr.sbin/installer/libdfui/conn_npipe.c
240
fread(buf, length, 1, T_NPIPE(c)->in);
usr.sbin/installer/libdfui/conn_npipe.c
364
fread(&length, 4, 1, T_NPIPE(c)->in);
usr.sbin/installer/libdfui/conn_npipe.c
366
fread(buf, length, 1, T_NPIPE(c)->in);
usr.sbin/installer/libdfui/conn_tcp.c
441
if ((br = fread(buf, 1, n - bcount, f)) > 0) {
usr.sbin/lpr/common_source/rmjob.c
169
for (i = 1; (n = fread(current, sizeof(char), sizeof(current), fp)) <= 0; i++) {
usr.sbin/makefs/cd9660/cd9660_debug.c
204
fread(&pttemp, 1, 8, fd);
usr.sbin/makefs/cd9660/cd9660_debug.c
207
fread(((unsigned char*)&pttemp) + 8, 1, pttemp.length[0], fd);
usr.sbin/makefs/cd9660/cd9660_debug.c
237
fread(buf, 1, CD9660_SECTOR_SIZE, fd);
usr.sbin/makefs/cd9660/cd9660_write.c
447
bytes_read = fread(buf,1,buf_size,rf);
usr.sbin/ngctl/write.c
76
if ((len = fread(buf, 1, sizeof(buf), fp)) == 0) {
usr.sbin/nscd/nscd.c
679
fread(pidbuf, sizeof(pidbuf) - 1, 1, pidfin);
usr.sbin/pflogd/pflogd.c
395
if (fread((char *)&hdr, sizeof(hdr), 1, fp) != 1) {
usr.sbin/pflogd/pflogd.c
411
off_t len = fread((char *)&ph, 1, sizeof(ph), fp);
usr.sbin/repquota/repquota.c
203
fread(&dqbuf, sizeof(struct ufs_dqblk), 1, qf);
usr.sbin/uefisign/child.c
73
nread = fread(buf, len, 1, x->x_fp);
usr.sbin/vidcontrol/vidcontrol.c
267
if (fread(&scrnmap, 1, size, fd) != (size_t)size) {
usr.sbin/vidcontrol/vidcontrol.c
445
fread(fontmap, 1, size, fd) != (size_t)size) {