Home
last modified time | relevance | path

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

12345678910>>...13

/openbsd-src/games/battlestar/
H A Dsave.c104 fwrite(&WEIGHT, sizeof WEIGHT, 1, fp); in save()
105 fwrite(&CUMBER, sizeof CUMBER, 1, fp); in save()
106 fwrite(&ourclock, sizeof ourclock, 1, fp); in save()
108 fwrite(&tmp, sizeof tmp, 1, fp); in save()
110 fwrite(location[n].link, sizeof location[n].link, 1, fp); in save()
111 fwrite(location[n].objects, sizeof location[n].objects, 1, fp); in save()
113 fwrite(inven, sizeof inven, 1, fp); in save()
114 fwrite(wear, sizeof wear, 1, fp); in save()
115 fwrite(injuries, sizeof injuries, 1, fp); in save()
116 fwrite(notes, sizeof notes, 1, fp); in save()
[all …]
/openbsd-src/games/monop/
H A Dinitdeck.c94 fwrite(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, outf); in main()
95 fwrite(&deck[0].top_card, sizeof(deck[0].top_card), 1, outf); in main()
96 fwrite(&deck[0].gojf_used, sizeof(deck[0].gojf_used), 1, outf); in main()
98 fwrite(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, outf); in main()
99 fwrite(&deck[0].top_card, sizeof(deck[0].top_card), 1, outf); in main()
100 fwrite(&deck[0].gojf_used, sizeof(deck[0].gojf_used), 1, outf); in main()
102 fwrite(CC_D.offsets, sizeof(CC_D.offsets[0]), CC_D.num_cards, outf); in main()
103 fwrite(CH_D.offsets, sizeof(CH_D.offsets[0]), CH_D.num_cards, outf); in main()
110 fwrite(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, outf); in main()
112 fwrite(&deck[0].top_card, sizeof(deck[0].top_card), 1, outf); in main()
[all …]
/openbsd-src/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c492 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
495 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
496 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
497 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
500 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
503 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
504 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
505 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
509 fwrite(&lba, sizeof(lba), 1, fd); in cd9660_write_mbr_partition_entry()
511 fwrite(&lba, sizeof(lba), 1, fd); in cd9660_write_mbr_partition_entry()
[all …]
H A Dcd9660_write.c306 (void)fwrite(&temp_record, 1, in cd9660_write_file()
318 fwrite(temp->su_tail_data, 1, in cd9660_write_file()
364 success = fwrite(buf, diskStructure->sectorSize * numsecs, 1, fd); in cd9660_write_filedata()
415 fwrite(buf,1,bytes_read,fd); in cd9660_copy_file()
443 fwrite(&(myattr->attr), CD9660_SUSP_ENTRY_SIZE(myattr), 1, fd); in cd9660_write_rr()
/openbsd-src/gnu/usr.bin/binutils-2.17/gprof/
H A Dbb_exit_func.c74 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()
H A Dgmon_io.c174 if (fwrite (buf, 1, 4, ofp) != 4) in gmon_io_write_32()
186 if (fwrite (buf, 1, 8, ofp) != 8) in gmon_io_write_64()
219 if (fwrite (buf, 1, 1, ofp) != 1) in gmon_io_write_8()
227 if (fwrite (buf, 1, n, ofp) != n) in gmon_io_write()
617 if (fwrite (&ghdr, sizeof (ghdr), 1, ofp) != 1) in gmon_out_write()
710 && fwrite (pad, 1, padsize, ofp) != padsize) in gmon_out_write()
721 if (fwrite (&raw_bin_count[0], sizeof (raw_bin_count), 1, ofp) != 1) in gmon_out_write()
/openbsd-src/gnu/usr.bin/binutils/gprof/
H A Dbb_exit_func.c74 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()
H A Dgmon_io.c184 if (fwrite (buf, 1, 4, ofp) != 4)
198 if (fwrite (buf, 1, 8, ofp) != 8)
235 if (fwrite (buf, 1, 1, ofp) != 1)
246 if (fwrite (buf, 1, n, ofp) != n)
642 if (fwrite (&ghdr, sizeof (ghdr), 1, ofp) != 1)
735 && fwrite (pad, 1, padsize, ofp) != padsize)
746 if (fwrite (&raw_bin_count[0], sizeof (raw_bin_count), 1, ofp) != 1)
/openbsd-src/gnu/usr.sbin/mkhybrid/src/
H A Dapple_driver.c138 fwrite(Block0, 1, HFS_BLOCKSZ, stdout); in main()
139 fwrite(block, 1, HFS_BLOCKSZ, stdout); in main()
140 fwrite(pmBlock512, 1, HFS_BLOCKSZ, stdout); in main()
142 fwrite(block, 1, HFS_BLOCKSZ, stdout); in main()
151 fwrite(block, 1, sbBlkSize, stdout); in main()
156 fwrite(bootb, 2, HFS_BLOCKSZ, stdout); in main()
/openbsd-src/gnu/gcc/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()
/openbsd-src/games/fortune/strfile/
H A Dstrfile.c232 (void) fwrite(&Tbl.str_version, sizeof(Tbl.str_version), 1, outf); in main()
233 (void) fwrite(&Tbl.str_numstr, sizeof(Tbl.str_numstr), 1, outf); in main()
234 (void) fwrite(&Tbl.str_longlen, sizeof(Tbl.str_longlen), 1, outf); in main()
235 (void) fwrite(&Tbl.str_shortlen, sizeof(Tbl.str_shortlen), 1, outf); in main()
236 (void) fwrite(&Tbl.str_flags, sizeof(Tbl.str_flags), 1, outf); in main()
237 (void) fwrite( Tbl.stuff, sizeof(Tbl.stuff), 1, outf); in main()
241 (void) fwrite(p, sizeof(*p), 1, outf); in main()
323 fwrite(&net, 1, sizeof net, fp); in add_offset()
/openbsd-src/usr.sbin/smtpd/
H A Dcrypto.c79 if (fwrite(&version, 1, sizeof version, out) != sizeof version) in crypto_encrypt_file()
85 if (fwrite(iv, 1, sizeof iv, out) != sizeof iv) in crypto_encrypt_file()
98 if (len && fwrite(obuf, len, 1, out) != 1) in crypto_encrypt_file()
107 if (len && fwrite(obuf, len, 1, out) != 1) in crypto_encrypt_file()
112 if (fwrite(tag, sizeof tag, 1, out) != 1) in crypto_encrypt_file()
189 if (len && fwrite(obuf, len, 1, out) != 1) in crypto_decrypt_file()
199 if (len && fwrite(obuf, len, 1, out) != 1) in crypto_decrypt_file()
/openbsd-src/usr.bin/mail/
H A Dsend.c190 (void)fwrite(prefix, sizeof(*prefix), in sendmessage()
195 (void)fwrite(visline, sizeof(*visline), length, obuf); in sendmessage()
197 (void)fwrite(line, sizeof(*line), length, obuf); in sendmessage()
223 (void)fwrite(prefix, sizeof(*prefix), in sendmessage()
233 (void)fwrite(">", 1, 1, obuf); /* '>' before 'From ' */ in sendmessage()
236 (void)fwrite(visline, sizeof(*visline), length, obuf); in sendmessage()
238 (void)fwrite(line, sizeof(*line), c, obuf); in sendmessage()
595 (void)fwrite(">", 1, 1, fo); /* '>' before 'From ' */ in savemail()
596 (void)fwrite(buf, 1, strlen(buf), fo); in savemail()
/openbsd-src/gnu/usr.bin/perl/
H A Dfakesdio.h40 #undef fwrite
89 #define fwrite(b,s,c,f) PerlIO_write(f,b,(s*c))
92 #define fwrite(b,s,c,f) _CANNOT fwrite macro
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dgcov-io.h161 return fwrite(c, 1, bytes, file) != bytes;
175 return fwrite(c, 1, bytes, file) != bytes;
234 if (fwrite (string, temp, 1, file) != 1)
245 if (fwrite (c, sizeof (char), 4 - temp, file) != 4 - temp)
/openbsd-src/sys/dev/microcode/udl/
H A Dbuild.c44 if (fwrite(&bit_count, sizeof(bit_count), 1, file) != 1) in main()
46 if (fwrite(&bit_pattern, sizeof(bit_pattern), 1, file) != 1) in main()
/openbsd-src/bin/ls/
H A Dutf8.c46 fwrite(mbs, 1, len, stdout); in mbsprint()
51 fwrite(mbs, 1, len, stdout); in mbsprint()
/openbsd-src/gnu/gcc/fixincludes/
H A Dfixfixes.c136 fwrite (text, rm[0].rm_so, 1, stdout); in emit_gnu_type()
225 fwrite(text + pRM->rm_so, len, 1, stdout); in format_write()
285 fwrite( text, rm[0].rm_so, 1, stdout ); in FIX_PROC_HEAD()
372 fwrite (text, 1, p - text, stdout); in FIX_PROC_HEAD()
468 fwrite (text, 1, p - text, stdout); in FIX_PROC_HEAD()
574 fwrite (text, 1, p - text, stdout); in FIX_PROC_HEAD()
575 fwrite (scratch, 1, len, stdout); in FIX_PROC_HEAD()
/openbsd-src/gnu/usr.bin/gcc/gcc/fixinc/
H A Dfixfixes.c142 fwrite (text, rm[0].rm_so, 1, stdout);
235 fwrite(text + pRM->rm_so, len, 1, stdout);
295 fwrite( text, rm[0].rm_so, 1, stdout ); in FIX_PROC_HEAD()
382 fwrite (text, 1, p - text, stdout); in FIX_PROC_HEAD()
478 fwrite (text, 1, p - text, stdout); in FIX_PROC_HEAD()
583 fwrite (text, 1, p - text, stdout); in FIX_PROC_HEAD()
584 fwrite (scratch, 1, len, stdout); in FIX_PROC_HEAD()
/openbsd-src/usr.sbin/unbound/testcode/
H A Dchecklocks.c253 if(fwrite(info, 4*sizeof(int), 1, thr->order_info) != 1 || in ordercheck_locklock()
254 fwrite(lock->holder_file, strlen(lock->holder_file)+1, 1, in ordercheck_locklock()
256 fwrite(&lock->holder_line, sizeof(int), 1, in ordercheck_locklock()
269 if( fwrite(&cmd, sizeof(int), 1, thr->order_info) != 1 || in ordercheck_lockcreate()
270 fwrite(&lock->create_thread, sizeof(int), 1, in ordercheck_lockcreate()
272 fwrite(&lock->create_instance, sizeof(int), 1, in ordercheck_lockcreate()
274 fwrite(lock->create_file, strlen(lock->create_file)+1, 1, in ordercheck_lockcreate()
276 fwrite(&lock->create_line, sizeof(int), 1, in ordercheck_lockcreate()
691 if(fwrite(&t, sizeof(t), 1, thr->order_info) != 1 || in open_lockorder()
692 fwrite(&thr->num, sizeof(thr->num), 1, thr->order_info) != 1 || in open_lockorder()
[all …]
/openbsd-src/lib/libc/stdio/
H A Dfwrite.c48 fwrite(const void *buf, size_t size, size_t count, FILE *fp) in fwrite() function
89 DEF_STRONG(fwrite);
/openbsd-src/gnu/usr.bin/gcc/gcc/fixinc/tests/base/
H A Dstdio.h47 extern unsigned int fread(), fwrite();
70 extern size_t fwrite( const void *__ptr, size_t, size_t, FILE *);
/openbsd-src/gnu/usr.bin/perl/win32/
H A Dperlglob.c62 if (i > 1) fwrite("\0", sizeof(char), 1, stdout); in main()
63 fwrite(argv[i], sizeof(char), len, stdout); in main()
/openbsd-src/usr.bin/fold/
H A Dfold.c189 fwrite(buf, 1, ++cp - buf, stdout); in fold()
242 fwrite(buf, 1, cp - buf, stdout); in fold()
256 fwrite(buf, 1, np - buf, stdout); in fold()
/openbsd-src/gnu/gcc/fixincludes/tests/base/
H A Dstdio.h60 extern unsigned int fread(), fwrite();
83 extern size_t fwrite( const void *__ptr, size_t, size_t, FILE *);

12345678910>>...13