/netbsd/games/battlestar/ |
H A D | save.c | 113 fwrite(&tmp, sizeof tmp, 1, fp); in save() 118 fwrite(inven, sizeof inven, 1, fp); in save() 119 fwrite(wear, sizeof wear, 1, fp); in save() 121 fwrite(notes, sizeof notes, 1, fp); in save() 125 fwrite(&fuel, sizeof fuel, 1, fp); in save() 126 fwrite(&torps, sizeof torps, 1, fp); in save() 131 fwrite(&ate, sizeof ate, 1, fp); in save() 136 fwrite(&win, sizeof win, 1, fp); in save() 140 fwrite(&loved, sizeof loved, 1, fp); in save() 142 fwrite(&power, sizeof power, 1, fp); in save() [all …]
|
/netbsd/external/bsd/libarchive/dist/cpio/test/ |
H A D | test_option_0.c | 43 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()
|
/netbsd/external/gpl3/gdb/dist/binutils/testsuite/ |
H A D | gentestdlls.c | 64 fwrite (buffer, 1, 128, file); in write_dos_header_and_stub() 76 fwrite (buffer, 1, 4, file); in write_pe_signature() 89 fwrite (buffer, 2, 1, file); in write_coff_header() 92 fwrite (buffer, 2, 1, file); in write_coff_header() 94 fwrite (buffer, 4, 1, file); in write_coff_header() 96 fwrite (buffer, 4, 1, file); in write_coff_header() 98 fwrite (buffer, 4, 1, file); in write_coff_header() 100 fwrite (buffer, 2, 1, file); in write_coff_header() 104 fwrite (buffer, 2, 1, file); in write_coff_header()
|
/netbsd/external/gpl3/gdb.old/dist/binutils/testsuite/ |
H A D | gentestdlls.c | 64 fwrite (buffer, 1, 128, file); in write_dos_header_and_stub() 76 fwrite (buffer, 1, 4, file); in write_pe_signature() 89 fwrite (buffer, 2, 1, file); in write_coff_header() 92 fwrite (buffer, 2, 1, file); in write_coff_header() 94 fwrite (buffer, 4, 1, file); in write_coff_header() 96 fwrite (buffer, 4, 1, file); in write_coff_header() 98 fwrite (buffer, 4, 1, file); in write_coff_header() 100 fwrite (buffer, 2, 1, file); in write_coff_header() 104 fwrite (buffer, 2, 1, file); in write_coff_header()
|
/netbsd/usr.sbin/makefs/cd9660/ |
H A D | cd9660_eltorito.c | 552 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() 557 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry() 560 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry() 563 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry() 564 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry() 565 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry() 569 fwrite(&lba, sizeof(lba), 1, fd); in cd9660_write_mbr_partition_entry() 571 fwrite(&lba, sizeof(lba), 1, fd); in cd9660_write_mbr_partition_entry() [all …]
|
/netbsd/external/gpl3/gdb/dist/zlib/contrib/minizip/ |
H A D | mztools.c | 67 if (fwrite(header, 1, 30, fpOut) == 30) { 78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) { 101 if (fwrite(extra, 1, extsize, fpOut) == extsize) { 127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) { 170 if (fwrite(header, 1, 46, fpOutCD) == 46) { 175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) { 188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) { 198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) { 240 if (fwrite(header, 1, 22, fpOutCD) == 22) { 244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) { [all …]
|
/netbsd/external/gpl3/binutils/dist/zlib/contrib/minizip/ |
H A D | mztools.c | 67 if (fwrite(header, 1, 30, fpOut) == 30) { 78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) { 101 if (fwrite(extra, 1, extsize, fpOut) == extsize) { 127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) { 170 if (fwrite(header, 1, 46, fpOutCD) == 46) { 175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) { 188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) { 198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) { 240 if (fwrite(header, 1, 22, fpOutCD) == 22) { 244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) { [all …]
|
/netbsd/external/gpl3/binutils.old/dist/zlib/contrib/minizip/ |
H A D | mztools.c | 67 if (fwrite(header, 1, 30, fpOut) == 30) { 78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) { 101 if (fwrite(extra, 1, extsize, fpOut) == extsize) { 127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) { 170 if (fwrite(header, 1, 46, fpOutCD) == 46) { 175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) { 188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) { 198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) { 240 if (fwrite(header, 1, 22, fpOutCD) == 22) { 244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) { [all …]
|
/netbsd/external/gpl3/gdb.old/dist/zlib/contrib/minizip/ |
H A D | mztools.c | 67 if (fwrite(header, 1, 30, fpOut) == 30) { 78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) { 101 if (fwrite(extra, 1, extsize, fpOut) == extsize) { 127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) { 170 if (fwrite(header, 1, 46, fpOutCD) == 46) { 175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) { 188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) { 198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) { 240 if (fwrite(header, 1, 22, fpOutCD) == 22) { 244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) { [all …]
|
/netbsd/common/dist/zlib/contrib/minizip/ |
H A D | mztools.c | 67 if (fwrite(header, 1, 30, fpOut) == 30) { 78 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) { 101 if (fwrite(extra, 1, extsize, fpOut) == extsize) { 127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) { 170 if (fwrite(header, 1, 46, fpOutCD) == 46) { 175 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) { 188 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) { 198 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) { 240 if (fwrite(header, 1, 22, fpOutCD) == 22) { 244 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) { [all …]
|
/netbsd/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ |
H A D | ucgendat.c | 1394 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata() 1399 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata() 1472 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata() 1543 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata() 1549 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata() 1620 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata() 1627 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata() 1713 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata() 1720 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata() 1797 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata() [all …]
|
/netbsd/lib/libcurses/ |
H A D | fileio.c | 62 if (fwrite(&n, sizeof(int), 1, fp) != 1) in __putnsp() 64 if (fwrite(&nsp->ch, sizeof(wchar_t), 1, fp) != 1) in __putnsp() 68 if (fwrite(&n, sizeof(int), 1, fp) != 1) in __putnsp() 97 if (fwrite(&major, sizeof(int), 1, fp) != 1) in putwin() 99 if (fwrite(&minor, sizeof(int), 1, fp) != 1) in putwin() 103 if (fwrite(win, sizeof(WINDOW), 1, fp) != 1) in putwin() 115 if (fwrite(&sp->ch, sizeof(wchar_t), 1, fp) != 1) in putwin() 117 if (fwrite(&sp->attr, sizeof(attr_t), 1, fp) != 1) in putwin()
|
/netbsd/external/gpl3/gdb/dist/gprof/ |
H A D | bb_exit_func.c | 74 fwrite (&ghdr, sizeof (ghdr), 1, fp); in __bb_exit_func() 83 fwrite (&tag, sizeof (tag), 1, fp); in __bb_exit_func() 84 fwrite (&ncounts, sizeof (ncounts), 1, fp); in __bb_exit_func() 88 fwrite (&ptr->addresses[i], sizeof (ptr->addresses[0]), 1, fp); in __bb_exit_func() 89 fwrite (&ptr->counts[i], sizeof (ptr->counts[0]), 1, fp); in __bb_exit_func()
|
/netbsd/external/gpl3/binutils/dist/gprof/ |
H A D | bb_exit_func.c | 74 fwrite (&ghdr, sizeof (ghdr), 1, fp); in __bb_exit_func() 83 fwrite (&tag, sizeof (tag), 1, fp); in __bb_exit_func() 84 fwrite (&ncounts, sizeof (ncounts), 1, fp); in __bb_exit_func() 88 fwrite (&ptr->addresses[i], sizeof (ptr->addresses[0]), 1, fp); in __bb_exit_func() 89 fwrite (&ptr->counts[i], sizeof (ptr->counts[0]), 1, fp); in __bb_exit_func()
|
/netbsd/external/gpl3/binutils.old/dist/gprof/ |
H A D | bb_exit_func.c | 74 fwrite (&ghdr, sizeof (ghdr), 1, fp); in __bb_exit_func() 83 fwrite (&tag, sizeof (tag), 1, fp); in __bb_exit_func() 84 fwrite (&ncounts, sizeof (ncounts), 1, fp); in __bb_exit_func() 88 fwrite (&ptr->addresses[i], sizeof (ptr->addresses[0]), 1, fp); in __bb_exit_func() 89 fwrite (&ptr->counts[i], sizeof (ptr->counts[0]), 1, fp); in __bb_exit_func()
|
/netbsd/external/gpl3/gdb.old/dist/gprof/ |
H A D | bb_exit_func.c | 74 fwrite (&ghdr, sizeof (ghdr), 1, fp); in __bb_exit_func() 83 fwrite (&tag, sizeof (tag), 1, fp); in __bb_exit_func() 84 fwrite (&ncounts, sizeof (ncounts), 1, fp); in __bb_exit_func() 88 fwrite (&ptr->addresses[i], sizeof (ptr->addresses[0]), 1, fp); in __bb_exit_func() 89 fwrite (&ptr->counts[i], sizeof (ptr->counts[0]), 1, fp); in __bb_exit_func()
|
/netbsd/external/gpl2/gettext/dist/gettext-tools/src/ |
H A D | write-mo.c | 507 fwrite (&header, header_size, 1, output_file); in write_table() 621 fwrite (sysdep_segments_tab, in write_table() 648 fwrite (sysdep_tab, n_sysdep_strings * sizeof (nls_uint32), 1, in write_table() 689 fwrite (str, in write_table() 721 fwrite (msg_arr[j].id_plural, msg_arr[j].id_plural_len, 1, in write_table() 743 fwrite (null, roundup (offset, alignment) - offset, 1, output_file); in write_table() 746 fwrite (sysdep_segments[i].pointer, sysdep_segments[i].length, 1, in write_table() 748 fwrite (null, 1, 1, output_file); in write_table() 758 fwrite (null, roundup (offset, alignment) - offset, 1, in write_table() 764 fwrite (pre->segments[i].segptr, pre->segments[i].segsize, 1, in write_table() [all …]
|
/netbsd/external/gpl3/gcc/dist/libcpp/ |
H A D | pch.c | 86 if (fwrite (&s, sizeof (s), 1, f) != 1 in write_macdef() 339 if (fwrite (&z, sizeof (z), 1, f) != 1 in cpp_write_pch_deps() 340 || fwrite (ss->definedstrs, ss->hashsize, 1, f) != 1) in cpp_write_pch_deps() 354 if (fwrite (&r->counter, sizeof (r->counter), 1, f) != 1) in cpp_write_pch_deps() 387 if (fwrite (&r->counter, sizeof (r->counter), 1, f) != 1) in cpp_write_pch_state() 489 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1 in _cpp_save_pushed_macros() 490 || fwrite (pp[i]->name, defnlen, 1, f) != 1) in _cpp_save_pushed_macros() 495 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1) in _cpp_save_pushed_macros() 501 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1 in _cpp_save_pushed_macros() 502 || fwrite (pp[i]->definition, defnlen, 1, f) != 1) in _cpp_save_pushed_macros() [all …]
|
H A D | pch.cc | 86 if (fwrite (&s, sizeof (s), 1, f) != 1 in write_macdef() 339 if (fwrite (&z, sizeof (z), 1, f) != 1 in cpp_write_pch_deps() 340 || fwrite (ss->definedstrs, ss->hashsize, 1, f) != 1) in cpp_write_pch_deps() 354 if (fwrite (&r->counter, sizeof (r->counter), 1, f) != 1) in cpp_write_pch_deps() 387 if (fwrite (&r->counter, sizeof (r->counter), 1, f) != 1) in cpp_write_pch_state() 489 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1 in _cpp_save_pushed_macros() 490 || fwrite (pp[i]->name, defnlen, 1, f) != 1) in _cpp_save_pushed_macros() 495 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1) in _cpp_save_pushed_macros() 501 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1 in _cpp_save_pushed_macros() 502 || fwrite (pp[i]->definition, defnlen, 1, f) != 1) in _cpp_save_pushed_macros() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libcpp/ |
H A D | pch.c | 86 if (fwrite (&s, sizeof (s), 1, f) != 1 in write_macdef() 339 if (fwrite (&z, sizeof (z), 1, f) != 1 in cpp_write_pch_deps() 340 || fwrite (ss->definedstrs, ss->hashsize, 1, f) != 1) in cpp_write_pch_deps() 354 if (fwrite (&r->counter, sizeof (r->counter), 1, f) != 1) in cpp_write_pch_deps() 387 if (fwrite (&r->counter, sizeof (r->counter), 1, f) != 1) in cpp_write_pch_state() 489 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1 in _cpp_save_pushed_macros() 490 || fwrite (pp[i]->name, defnlen, 1, f) != 1) in _cpp_save_pushed_macros() 495 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1) in _cpp_save_pushed_macros() 501 if (fwrite (&defnlen, sizeof (size_t), 1, f) != 1 in _cpp_save_pushed_macros() 502 || fwrite (pp[i]->definition, defnlen, 1, f) != 1) in _cpp_save_pushed_macros() [all …]
|
/netbsd/external/gpl3/gcc/dist/libgomp/config/nvptx/ |
H A D | error.c | 46 #undef fwrite 48 # define fwrite(ptr, size, nmemb, stream) \ 52 # define fwrite(ptr, size, nmemb, stream) \ macro
|
/netbsd/external/bsd/libarchive/dist/tar/test/ |
H A D | test_option_T_upper.c | 74 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()
|
/netbsd/external/gpl3/gcc/dist/gcc/c-family/ |
H A D | c-pch.cc | 121 if (fwrite (partial_pch, IDENT_LENGTH, 1, f) != 1 in pch_init() 122 || fwrite (executable_checksum, 16, 1, f) != 1 in pch_init() 123 || fwrite (&v, sizeof (v), 1, f) != 1 in pch_init() 124 || fwrite (target_validity, v.target_data_length, 1, f) != 1) in pch_init() 182 || fwrite (get_ident (), IDENT_LENGTH, 1, pch_outfile) != 1) in c_common_write_pch()
|
H A D | c-pch.c | 123 if (fwrite (partial_pch, IDENT_LENGTH, 1, f) != 1 in pch_init() 124 || fwrite (executable_checksum, 16, 1, f) != 1 in pch_init() 125 || fwrite (&v, sizeof (v), 1, f) != 1 in pch_init() 126 || fwrite (target_validity, v.target_data_length, 1, f) != 1) in pch_init() 184 || fwrite (get_ident (), IDENT_LENGTH, 1, pch_outfile) != 1) in c_common_write_pch()
|
/netbsd/external/gpl3/gcc.old/dist/gcc/c-family/ |
H A D | c-pch.c | 123 if (fwrite (partial_pch, IDENT_LENGTH, 1, f) != 1 in pch_init() 124 || fwrite (executable_checksum, 16, 1, f) != 1 in pch_init() 125 || fwrite (&v, sizeof (v), 1, f) != 1 in pch_init() 126 || fwrite (target_validity, v.target_data_length, 1, f) != 1) in pch_init() 184 || fwrite (get_ident (), IDENT_LENGTH, 1, pch_outfile) != 1) in c_common_write_pch()
|