Home
last modified time | relevance | path

Searched refs:fwrite (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/freebsd-12.1/contrib/libarchive/cpio/test/
H A Dtest_option_0.c43 assertEqualInt(fwrite("file1\x0a", 1, 6, filelist), 6); in DEFINE_TEST()
44 assertEqualInt(fwrite("file2\x0d", 1, 6, filelist), 6); in DEFINE_TEST()
45 assertEqualInt(fwrite("file3\x0a\x0d", 1, 7, filelist), 7); in DEFINE_TEST()
46 assertEqualInt(fwrite("file4", 1, 5, filelist), 5); in DEFINE_TEST()
51 assertEqualInt(fwrite("file1\0", 1, 6, filelist), 6); in DEFINE_TEST()
52 assertEqualInt(fwrite("file2\0", 1, 6, filelist), 6); in DEFINE_TEST()
53 assertEqualInt(fwrite("file3\0", 1, 6, filelist), 6); in DEFINE_TEST()
54 assertEqualInt(fwrite("file4", 1, 5, filelist), 5); in DEFINE_TEST()
/freebsd-12.1/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c543 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
546 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
547 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
548 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
551 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
554 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
555 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
556 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
560 fwrite(&lba, sizeof(lba), 1, fd); in cd9660_write_mbr_partition_entry()
562 fwrite(&lba, sizeof(lba), 1, fd); in cd9660_write_mbr_partition_entry()
[all …]
H A Dcd9660_write.c342 (void)fwrite(&temp_record, 1, in cd9660_write_file()
354 fwrite(temp->su_tail_data, 1, in cd9660_write_file()
404 success = fwrite(buf, diskStructure->sectorSize * numsecs, 1, fd); in cd9660_write_filedata()
458 fwrite(buf,1,bytes_read,fd); in cd9660_copy_file()
486 fwrite(&(myattr->attr), CD9660_SUSP_ENTRY_SIZE(myattr), 1, fd); in cd9660_write_rr()
/freebsd-12.1/lib/libc/tests/stdio/
H A Dfmemopen2_test.c59 nofw = fwrite(str, 1, sizeof(str), fp); in ATF_TC_BODY()
93 nofw = fwrite(str2, 1, sizeof(str2), fp); in ATF_TC_BODY()
119 nofw = fwrite("a", 1, 1, fp); in ATF_TC_BODY()
128 nofw = fwrite("a", 1, 1, fp); in ATF_TC_BODY()
165 nofw = fwrite(str, 1, sizeof(str), fp); in ATF_TC_BODY()
183 nofw = fwrite(str2, 1, sizeof(str2), fp); in ATF_TC_BODY()
229 nofw = fwrite(str, 1, strlen(str), fp); in ATF_TC_BODY()
/freebsd-12.1/contrib/gcc/
H A Dc-pch.c149 if (fwrite (partial_pch, IDENT_LENGTH, 1, f) != 1 in pch_init()
150 || fwrite (executable_checksum, 16, 1, f) != 1 in pch_init()
151 || fwrite (&v, sizeof (v), 1, f) != 1 in pch_init()
152 || fwrite (target_validity, v.target_data_length, 1, f) != 1) in pch_init()
187 if (fwrite (&h, sizeof (h), 1, pch_outfile) != 1) in c_common_write_pch()
202 if (fwrite (buf, size, 1, pch_outfile) != 1) in c_common_write_pch()
216 || fwrite (get_ident (), IDENT_LENGTH, 1, pch_outfile) != 1) in c_common_write_pch()
396 || fwrite (buf, size, 1, asm_out_file) != 1) in c_common_read_pch()
/freebsd-12.1/contrib/opie/libmissing/
H A Dpututline.c40 fwrite(utmp, sizeof(struct utmp), 1, f);
51 fwrite(utmp, sizeof(struct utmp), 1, f);
60 fwrite(utmp, sizeof(struct utmp), 1, f);
/freebsd-12.1/contrib/dma/
H A Dmail.c113 if (fwrite(line, 1, pos, bounceq.mailf) != pos) in bounce()
122 if (fwrite(line, strlen(line), 1, bounceq.mailf) != 1) in bounce()
358 if (fwrite(line, len, 1, queue->mailf) != 1) in writeline()
364 if (fwrite("\n", 1, 1, queue->mailf) != 1) in writeline()
470 if (fwrite(newline, strlen(newline), 1, queue->mailf) != 1) in readmail()
479 if (fwrite(newline, strlen(newline), 1, queue->mailf) != 1) in readmail()
/freebsd-12.1/contrib/libarchive/tar/test/
H A Dtest_option_T_upper.c74 assertEqualInt(1, fwrite("\0", 1, 1, f)); in DEFINE_TEST()
76 assertEqualInt(1, fwrite("\0", 1, 1, f)); in DEFINE_TEST()
79 assertEqualInt(1, fwrite("\0", 1, 1, f)); in DEFINE_TEST()
/freebsd-12.1/sys/contrib/zstd/contrib/pzstd/test/
H A DPzstdTest.cpp40 auto written = std::fwrite(buf, 1, len, fd); in TEST()
75 auto written = std::fwrite(buf.get(), 1, len, fd); in TEST()
114 auto written = std::fwrite(buf.get(), 1, kLength, fd); in TEST()
139 auto written = std::fwrite(buf.get(), 1, 10000, fd); in TEST()
/freebsd-12.1/contrib/diff/lib/
H A Dunlocked-io.h92 # undef fwrite
93 # define fwrite(w,x,y,z) fwrite_unlocked (w,x,y,z) macro
95 # define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z)
/freebsd-12.1/usr.bin/colldef/
H A Dparse.y156 if (fwrite(__collate_version, sizeof(__collate_version), 1, fp) != 1)
161 if (fwrite(&u32, sizeof(u32), 1, fp) != 1)
165 if (fwrite(__collate_substitute_table,
176 if (fwrite(__collate_char_pri_table,
187 if (fwrite(__collate_chain_pri_table,
/freebsd-12.1/usr.sbin/fdread/
H A Dfdread.c196 fwrite(trackbuf, sizeof(unsigned char), rv, of); in doread()
211 fwrite(trackbuf, sizeof(unsigned char), in doread()
272 fwrite(trackbuf, sizeof(unsigned char), in doread()
287 fwrite(trackbuf, sizeof(unsigned char), rv, of); in doread()
/freebsd-12.1/usr.bin/mail/
H A Dsend.c176 (void)fwrite(prefix, sizeof(*prefix), in sendmessage()
179 (void)fwrite(line, sizeof(*line), length, obuf); in sendmessage()
203 (void)fwrite(prefix, sizeof(*prefix), in sendmessage()
205 (void)fwrite(line, sizeof(*line), c, obuf); in sendmessage()
215 if (fwrite(line, sizeof(*line), c, obuf) != c) in sendmessage()
584 (void)fwrite(buf, 1, i, fo); in savemail()
/freebsd-12.1/contrib/mandoc/
H A Ddba_write.c101 if (nmemb - fwrite(&out, sizeof(out[0]), nmemb, ofp)) in dba_skip()
125 if (fwrite(&i, sizeof(i), 1, ofp) != 1) in dba_int_write()
/freebsd-12.1/sys/contrib/xz-embedded/userspace/
H A Dxzminidec.c70 if (fwrite(out, 1, b.out_pos, stdout) != b.out_pos) { in main()
91 if (fwrite(out, 1, b.out_pos, stdout) != b.out_pos in main()
H A Dbytetest.c62 if (fwrite(out, 1, b.out_pos, stdout) != b.out_pos) { in main()
91 if (fwrite(out, 1, b.out_pos, stdout) != b.out_pos in main()
/freebsd-12.1/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_fopen.c221 ATF_REQUIRE(fwrite("garbage", 1, 7, f) == 7); in ATF_TC_BODY()
226 ATF_REQUIRE(fwrite("garbage", 1, 7, f) == 7); in ATF_TC_BODY()
354 ATF_REQUIRE(fwrite("garbage", 1, 7, f) == 7); in ATF_TC_BODY()
408 ATF_REQUIRE(fwrite("garbage", 1, 7, f) == 7); in ATF_TC_BODY()
/freebsd-12.1/lib/libc/gen/
H A Dpututxline.c131 else if (fwrite(fu, sizeof(*fu), 1, fp) < 1) in utx_active_add()
167 else if (fwrite(fu, sizeof(*fu), 1, fp) < 1) in utx_active_remove()
227 else if (fwrite(fu, sizeof *fu, 1, fp) < 1) { in utx_lastlogin_add()
/freebsd-12.1/contrib/gcclibs/libcpp/
H A Dpch.c80 if (fwrite (&s, sizeof (s), 1, f) != 1 in write_macdef()
81 || fwrite (defn, 1, s.definition_length, f) != s.definition_length) in write_macdef()
329 if (fwrite (&z, sizeof (z), 1, f) != 1 in cpp_write_pch_deps()
330 || fwrite (ss->definedstrs, ss->hashsize, 1, f) != 1) in cpp_write_pch_deps()
342 if (fwrite (&r->counter, sizeof (r->counter), 1, f) != 1) in cpp_write_pch_deps()
375 if (fwrite (&r->counter, sizeof (r->counter), 1, f) != 1) in cpp_write_pch_state()
/freebsd-12.1/contrib/flex/
H A Dtables.c272 rv = fwrite (v, 1, len, wr->out); in yytbl_writen()
291 rv = fwrite (&vnet, bytes, 1, wr->out); in yytbl_write32()
310 rv = fwrite (&vnet, bytes, 1, wr->out); in yytbl_write16()
327 rv = fwrite (&v, bytes, 1, wr->out); in yytbl_write8()
/freebsd-12.1/lib/libc/xdr/
H A Dxdr_stdio.c125 if (fwrite(&mycopy, sizeof(int32_t), 1, (FILE *)xdrs->x_private) != 1) in xdrstdio_putlong()
143 if ((len != 0) && (fwrite(addr, (size_t)len, 1, in xdrstdio_putbytes()
/freebsd-12.1/usr.bin/head/
H A Dhead.c141 error = fwrite(cp, sizeof(char), readlen, stdout); in head()
162 if (fwrite(buf, sizeof(char), readlen, stdout) != readlen) in head_bytes()
/freebsd-12.1/contrib/libc++/include/
H A D__std_stream272 if (fwrite(&__1buf, sizeof(char_type), 1, __file_) != 1)
292 if (fwrite(pbase, 1, 1, __file_) != 1)
298 if (fwrite(__extbuf, 1, __nmemb, __file_) != __nmemb)
318 return fwrite(__s, sizeof(char_type), __n, __file_);
339 if (fwrite(__extbuf, 1, __nmemb, __file_) != __nmemb)
/freebsd-12.1/usr.bin/compress/
H A Dzopen.c257 if (fwrite(magic_header, in zwrite()
261 if (fwrite(&tmp, sizeof(char), sizeof(tmp), fp) != sizeof(tmp)) in zwrite()
405 if (fwrite(bp, sizeof(char), bits, fp) != bits) in output()
421 if (fwrite(buf, 1, n_bits, fp) != n_bits) in output()
442 if (fwrite(buf, 1, offset, fp) != offset) in output()
/freebsd-12.1/contrib/pf/pflogd/
H A Dpflogd.c383 if (fwrite((char *)&hdr, sizeof(hdr), 1, fp) != 1) { in try_reset_dump()
497 if (fwrite((char *)&sh, sizeof(sh), 1, f) != 1) {
499 if (fwrite((char *)h, sizeof(*h), 1, f) != 1) {
519 if (fwrite((char *)sp, h->caplen, 1, f) != 1)
547 if (fwrite(buffer, len, 1, f) != 1) {

12345678910>>...13