Home
last modified time | relevance | path

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

12345678

/minix/external/bsd/llvm/dist/llvm/test/Transforms/InstCombine/
H A Dfwrite-1.ll1 ; Test that the fwrite library call simplifier works correctly.
12 declare i64 @fwrite(i8*, i64, i64, %FILE *)
14 ; Check fwrite(S, 1, 1, fp) -> fputc(S[0], fp).
19 call i64 @fwrite(i8* %str, i64 1, i64 1, %FILE* %fp)
28 call i64 @fwrite(i8* %str, i64 1, i64 0, %FILE* %fp)
36 call i64 @fwrite(i8* %str, i64 0, i64 1, %FILE* %fp)
44 %ret = call i64 @fwrite(i8* %str, i64 1, i64 1, %FILE* %fp)
45 ; CHECK-NEXT: call i64 @fwrite
53 call i64 @fwrite(i8* %str, i64 %size, i64 1, %FILE* %fp)
54 ; CHECK-NEXT: call i64 @fwrite
H A Derr-rep-cold.ll42 …%1 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8]* @.str1, i64 0, i64 0), i64 8, i64…
45 ; CHECK: tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8]* @.str1, i64 0, i64 0), i64 8, …
52 declare i64 @fwrite(i8* nocapture, i64, i64, %struct._IO_FILE* nocapture) #1
62 …%1 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8]* @.str1, i64 0, i64 0), i64 8, i64…
65 ; CHECK-NOT: tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8]* @.str1, i64 0, i64 0), i64…
H A Dfputs-1.ll15 ; Check fputs(str, fp) --> fwrite(str, 1, strlen(s), fp).
25 ; NOTE: The fwrite simplifier simplifies this further to fputc.
40 ; CHECK-NEXT: call i32 @fwrite(i8* getelementptr inbounds ([7 x i8]* @hello, i32 0, i32 0), i32 6, …
H A Dosx-names.ll3 ; On OSX x86-32, fwrite and fputs aren't called fwrite and fputs.
18 ; CHECK: call i32 @"fwrite$UNIX2003"
H A Dfprintf-1.ll18 ; Check fprintf(fp, "foo") -> fwrite("foo", 3, 1, fp).
24 ; CHECK-NEXT: call i32 @fwrite(i8* getelementptr inbounds ([13 x i8]* @hello_world, i32 0, i32 0), …
41 ; NOTE: The fputs simplifier simplifies this further to fwrite.
48 ; CHECK-NEXT: call i32 @fwrite(i8* getelementptr inbounds ([13 x i8]* @hello_world, i32 0, i32 0), …
/minix/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c498 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
501 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
502 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()
506 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
509 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
510 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
511 fwrite(&val, sizeof(val), 1, fd); in cd9660_write_mbr_partition_entry()
515 fwrite(&lba, sizeof(lba), 1, fd); in cd9660_write_mbr_partition_entry()
517 fwrite(&lba, sizeof(lba), 1, fd); in cd9660_write_mbr_partition_entry()
[all …]
H A Dcd9660_write.c336 (void)fwrite(&temp_record, 1, in cd9660_write_file()
348 fwrite(temp->su_tail_data, 1, in cd9660_write_file()
399 success = fwrite(buf, diskStructure->sectorSize * numsecs, 1, fd); in cd9660_write_filedata()
453 fwrite(buf,1,bytes_read,fd); in cd9660_copy_file()
481 fwrite(&(myattr->attr), CD9660_SUSP_ENTRY_SIZE(myattr), 1, fd); in cd9660_write_rr()
/minix/common/dist/zlib/contrib/minizip/
H A Dmztools.c69 if (fwrite(header, 1, 30, fpOut) == 30) {
79 if (fwrite(filename, 1, fnsize, fpOut) == fnsize) {
97 if (fwrite(extra, 1, extsize, fpOut) == extsize) {
119 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) {
162 if (fwrite(header, 1, 46, fpOutCD) == 46) {
167 if (fwrite(filename, 1, fnsize, fpOutCD) == fnsize) {
180 if (fwrite(extra, 1, extsize, fpOutCD) == extsize) {
190 if ((int)fwrite(comment, 1, comsize, fpOutCD) == comsize) {
232 if (fwrite(header, 1, 22, fpOutCD) == 22) {
236 if ((int)fwrite(comment, 1, comsize, fpOutCD) != comsize) {
[all …]
/minix/lib/libcurses/
H A Dfileio.c61 if (fwrite(&n, sizeof(int), 1, fp) != 1) in __putnsp()
63 if (fwrite(&nsp->ch, sizeof(wchar_t), 1, fp) != 1) in __putnsp()
67 if (fwrite(&n, sizeof(int), 1, fp) != 1) in __putnsp()
98 if (fwrite(&major, sizeof(int), 1, fp) != 1) in putwin()
100 if (fwrite(&minor, sizeof(int), 1, fp) != 1) in putwin()
104 if (fwrite(win, sizeof(WINDOW), 1, fp) != 1) in putwin()
116 if (fwrite(&sp->ch, sizeof(wchar_t), 1, fp) != 1) in putwin()
118 if (fwrite(&sp->attr, sizeof(attr_t), 1, fp) != 1) in putwin()
/minix/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/etc/
H A Dpprime.c44 r = 3; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
45 r = 5; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
46 r = 7; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
47 r = 11; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
48 r = 13; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
49 r = 17; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
50 r = 19; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
51 r = 23; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
52 r = 29; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
53 r = 31; fwrite(&r, 1, sizeof(mp_digit), out); in gen_prime()
[all …]
/minix/external/bsd/llvm/dist/clang/test/CodeGen/
H A D2006-09-18-fwrite-cast-crash.c5 unsigned fwrite(signed char *, unsigned , unsigned , signed char *);
11 struct l_struct_2E_FILE *))(void*)fwrite)((&(str301[0u])), 38u, 1u, ltmp_6202_16); in Usage()
/minix/external/bsd/libarchive/dist/tar/test/
H A Dtest_option_T_upper.c82 fwrite("\0", 1, 1, f); in DEFINE_TEST()
84 fwrite("\0", 1, 1, f); in DEFINE_TEST()
87 fwrite("\0", 1, 1, f); in DEFINE_TEST()
H A Dtest_option_r.c43 assertEqualInt(3, fwrite("abc", 1, 3, f)); in DEFINE_TEST()
73 assertEqualInt(3, fwrite("123", 1, 3, f)); in DEFINE_TEST()
/minix/usr.bin/asa/
H A Dasa.c89 (void)fwrite(buf + 1, 1, len - 1, stdout); in asa()
112 (void)fwrite(buf + 1, 1, len - 1, stdout); in asa()
/minix/common/dist/zlib/examples/
H A Dgzjoin.c268 fwrite("\x1f\x8b\x08\0\0\0\0\0\0\xff", 1, 10, out); in gzinit()
321 fwrite(start, 1, strm.next_in - start, out); in gzcopy()
362 fwrite(start, 1, strm.next_in - start, out); in gzcopy()
380 fwrite(start, 1, in->next - start - 1, out); in gzcopy()
393 fwrite("\0\0\xff\xff", 1, 4, out); in gzcopy()
H A Dzpipe.c62 if (fwrite(out, 1, have, dest) != have || ferror(dest)) { in def()
128 if (fwrite(out, 1, have, dest) != have || ferror(dest)) { in inf()
/minix/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Dexample_evp_cipher.c132 fwrite(obuf, 1, olen, out); in main()
144 fwrite(obuf, 1, olen, out); in main()
/minix/lib/libc/rpc/
H A Dxdr_stdio.c132 if (fwrite(&mycopy, sizeof(int32_t), 1, (FILE *)xdrs->x_private) != 1) in xdrstdio_putlong()
150 if ((len != 0) && (fwrite(addr, (size_t)len, 1, in xdrstdio_putbytes()
/minix/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()
352 ATF_REQUIRE(fwrite("garbage", 1, 7, f) == 7); in ATF_TC_BODY()
406 ATF_REQUIRE(fwrite("garbage", 1, 7, f) == 7); in ATF_TC_BODY()
/minix/external/gpl3/gcc/files/
H A Dgcov-minix-fs-wrapper.h26 #define fwrite(...) _gcov_fwrite(__VA_ARGS__) macro
/minix/external/bsd/flex/dist/
H A Dtables.c275 rv = fwrite (v, 1, len, wr->out); in yytbl_writen()
294 rv = fwrite (&vnet, bytes, 1, wr->out); in yytbl_write32()
313 rv = fwrite (&vnet, bytes, 1, wr->out); in yytbl_write16()
330 rv = fwrite (&v, bytes, 1, wr->out); in yytbl_write8()
/minix/external/bsd/libc++/dist/libcxx/include/
H A D__std_stream270 if (fwrite(&__1buf, sizeof(char_type), 1, __file_) != 1)
290 if (fwrite(pbase, 1, 1, __file_) != 1)
296 if (fwrite(__extbuf, 1, __nmemb, __file_) != __nmemb)
316 return fwrite(__s, sizeof(char_type), __n, __file_);
337 if (fwrite(__extbuf, 1, __nmemb, __file_) != __nmemb)
/minix/crypto/external/bsd/openssl/dist/crypto/des/
H A Ddes.c510 j = fwrite(obuf, 1, (unsigned int)l - i, DES_OUT); in doencryption()
585 j = fwrite(obuf, 1, (unsigned int)l - i, DES_OUT); in doencryption()
650 fwrite(b, 1, (unsigned int)j, fp); in uufwrite()
659 fwrite(b, 1, (unsigned int)j, fp); in uufwrite()
665 fwrite(b, 1, (unsigned int)j, fp); in uufwrite()
685 fwrite(b, 1, (unsigned int)j, fp); in uufwriteEnd()
687 fwrite(end, 1, strlen(end), fp); in uufwriteEnd()
/minix/crypto/external/bsd/heimdal/dist/lib/asn1/
H A Dasn1_gen.c124 if (fwrite(p + sizeof(p) - sz , sz, 1, fout) != 1) in doit()
137 if (fwrite(pdata, datalen, 1, fout) != 1) in doit()
/minix/sys/external/bsd/compiler_rt/dist/test/profile/
H A Dinstrprof-without-libc.c44 if (fwrite(Buffer, 1, Size, File) != Size) in main()

12345678