Home
last modified time | relevance | path

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

12345678910>>...22

/external/selinux/libselinux/utils/
Dsefcontext_compile.c115 len = fwrite(&magic, sizeof(uint32_t), 1, bin_file); in write_binary_file()
121 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
130 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
133 len = fwrite(reg_version, sizeof(char), section_len, bin_file); in write_binary_file()
142 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
145 len = fwrite(reg_arch, sizeof(char), section_len, bin_file); in write_binary_file()
151 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
160 len = fwrite(&stem_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
166 len = fwrite(stem, sizeof(char), stem_len, bin_file); in write_binary_file()
173 len = fwrite(&section_len, sizeof(uint32_t), 1, bin_file); in write_binary_file()
[all …]
/external/llvm/test/Transforms/InstCombine/
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
Derr-rep-cold.ll42 …%1 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str1, i64 0, i64 0), …
45 ; CHECK: tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str1, i64 0, i64 0…
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], [9 x i8]* @.str1, i64 0, i64 0), …
65 ; CHECK-NOT: tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str1, i64 0, i…
/external/swiftshader/third_party/LLVM/runtime/libprofile/
DGCDAProfiling.c42 fwrite(&i, 4, 1, output_file); in write_int32()
61 fwrite(s, strlen(s), 1, output_file); in write_string()
62 fwrite("\0\0\0\0", 4 - (strlen(s) % 4), 1, output_file); in write_string()
118 fwrite("adcg*204MVLL", 12, 1, output_file); in llvm_gcda_start_file()
120 fwrite("adcg*404MVLL", 12, 1, output_file); in llvm_gcda_start_file()
160 fwrite("\0\0\0\1", 4, 1, output_file); in llvm_gcda_emit_function()
171 fwrite("\0\0\xa1\1", 4, 1, output_file); in llvm_gcda_emit_arcs()
187 fwrite("\0\0\0\0\0\0\0\0", 8, 1, output_file); in llvm_gcda_end_file()
/external/zlib/src/contrib/minizip/
Dmztools.c67 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 …]
/external/webrtc/webrtc/modules/audio_coding/test/
DRTPFile.cc144 EXPECT_EQ(1u, fwrite(&dummy_variable, 4, 1, _rtpFile)); in WriteHeader()
145 EXPECT_EQ(1u, fwrite(&dummy_variable, 4, 1, _rtpFile)); in WriteHeader()
146 EXPECT_EQ(1u, fwrite(&dummy_variable, 4, 1, _rtpFile)); in WriteHeader()
147 EXPECT_EQ(1u, fwrite(&dummy_variable, 2, 1, _rtpFile)); in WriteHeader()
148 EXPECT_EQ(1u, fwrite(&dummy_variable, 2, 1, _rtpFile)); in WriteHeader()
182 EXPECT_EQ(1u, fwrite(&lengthBytes, 2, 1, _rtpFile)); in Write()
183 EXPECT_EQ(1u, fwrite(&plen, 2, 1, _rtpFile)); in Write()
184 EXPECT_EQ(1u, fwrite(&offsetMs, 4, 1, _rtpFile)); in Write()
185 EXPECT_EQ(1u, fwrite(&rtpHeader, 12, 1, _rtpFile)); in Write()
186 EXPECT_EQ(payloadSize, fwrite(payloadData, 1, payloadSize, _rtpFile)); in Write()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/common/
Drdtsc_buckets_shared.h116 fwrite(&data, sizeof(VIZ_START_DATA), 1, f); in Serialize()
127 fwrite(&data, sizeof(VIZ_STOP_DATA), 1, f); in Serialize()
141 fwrite(&length, sizeof(length), 1, f); in Serialize()
142 fwrite(string.c_str(), string.size(), 1, f); in Serialize()
159 fwrite(&desc.enableThreadViz, sizeof(desc.enableThreadViz), 1, f); in Serialize()
160 fwrite(&desc.color, sizeof(desc.color), 1, f); in Serialize()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DPathProfileVerifier.cpp188 fwrite(&type,sizeof(unsigned),1,edgeFile); in runOnModule()
189 fwrite(&num,sizeof(unsigned),1,edgeFile); in runOnModule()
190 fwrite(pathProfileInfo.argList.c_str(),1,num,edgeFile); in runOnModule()
192 fwrite(&zeros, 1, 4-(num&3), edgeFile); in runOnModule()
196 fwrite(&type,sizeof(unsigned),1,edgeFile); in runOnModule()
197 fwrite(&num,sizeof(unsigned),1,edgeFile); in runOnModule()
202 fwrite(&*s, sizeof (unsigned), 1, edgeFile); in runOnModule()
/external/syslinux/efi/
Dwrapper.c80 fwrite(&hdr, sizeof(hdr), 1, f); in write_header()
91 fwrite(&c_hdr, sizeof(c_hdr), 1, f); in write_header()
99 fwrite(&o_hdr, sizeof(o_hdr), 1, f); in write_header()
107 fwrite(&e_hdr, sizeof(e_hdr), 1, f); in write_header()
114 fwrite(&c_hdr, sizeof(c_hdr), 1, f); in write_header()
122 fwrite(&o_hdr_pe32p, sizeof(o_hdr_pe32p), 1, f); in write_header()
130 fwrite(&e_hdr_pe32p, sizeof(e_hdr_pe32p), 1, f); in write_header()
142 fwrite(&t_sec, sizeof(t_sec), 1, f); in write_header()
288 fwrite(buf, datasz, rv, f_out); in main()
/external/libopus/src/
Drepacketizer_demo.c164 if(fwrite(int_field, 1, 4, fout)!=4){ in main()
169 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
173 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { in main()
189 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
197 if (fwrite(int_field, 1, 4, fout)!=4) { in main()
201 if (fwrite(output_packet, 1, err, fout)!=(unsigned)err) { in main()
/external/webrtc/webrtc/test/
Drtp_file_writer.cc48 return fwrite(packet->data, sizeof(uint8_t), packet->length, file_) == in WritePacket()
69 if (fwrite(&tmp, sizeof(uint8_t), 1, file_) != 1) in WriteUint32()
78 if (fwrite(&tmp, sizeof(uint8_t), 1, file_) != 1) in WriteUint16()
82 if (fwrite(&tmp, sizeof(uint8_t), 1, file_) != 1) in WriteUint16()
/external/webrtc/webrtc/modules/video_processing/test/
DwriteYUV420file.m13 fwrite(fid,uint8(Y(:,:,k).'), 'uchar');
16 fwrite(fid,uint8(U(:,:,k).'), 'uchar');
19 fwrite(fid,uint8(V(:,:,k).'), 'uchar');
/external/mesa3d/src/gallium/auxiliary/util/
Du_debug_image.c84 fwrite(rgb8, 1, height * width * 3, f); in debug_dump_image()
269 fwrite(&bmfh, 14, 1, stream); in debug_dump_float_rgba_bmp()
270 fwrite(&bmih, 40, 1, stream); in debug_dump_float_rgba_bmp()
281 fwrite(&pixel, 1, 4, stream); in debug_dump_float_rgba_bmp()
327 fwrite(&bmfh, 14, 1, stream); in debug_dump_ubyte_rgba_bmp()
328 fwrite(&bmih, 40, 1, stream); in debug_dump_ubyte_rgba_bmp()
339 fwrite(&pixel, 1, 4, stream); in debug_dump_ubyte_rgba_bmp()
/external/autotest/frontend/tko/preconfigs/metrics/
Dperf42 name[4]: iozone (32768-4096-fwrite)
47 seriesFilters[4][0][condition]: = '32768-4096-fwrite'
93 name[4]: iozone (32768-4096-fwrite)
98 seriesFilters[4][0][condition]: = '32768-4096-fwrite'
144 name[4]: iozone (32768-4096-fwrite)
149 seriesFilters[4][0][condition]: = '32768-4096-fwrite'
/external/libvpx/libvpx/
Divfenc.c34 fwrite(header, 1, 32, outfile); in ivf_write_file_header()
43 fwrite(header, 1, 12, outfile); in ivf_write_frame_header()
50 fwrite(header, 1, 4, outfile); in ivf_write_frame_size()
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
DNETEQTEST_DummyRTPpacket.cc155 if (fwrite(&length, 2, 1, fp) != 1) in writeToFile()
162 if (fwrite(&plen, 2, 1, fp) != 1) in writeToFile()
169 if (fwrite(&offset, 4, 1, fp) != 1) in writeToFile()
189 if (fwrite((unsigned short *) _datagram, 1, headerLen, fp) != in writeToFile()
DRTPencode.cc585 if (fwrite(&dummy_variable, 4, 1, out_file) != 1) { in main()
588 if (fwrite(&dummy_variable, 4, 1, out_file) != 1) { in main()
591 if (fwrite(&dummy_variable, 4, 1, out_file) != 1) { in main()
594 if (fwrite(&dummy_variable, 2, 1, out_file) != 1) { in main()
597 if (fwrite(&dummy_variable, 2, 1, out_file) != 1) { in main()
648 if (fwrite(&length, 2, 1, out_file) != 1) { in main()
651 if (fwrite(&plen, 2, 1, out_file) != 1) { in main()
654 if (fwrite(&offset, 4, 1, out_file) != 1) { in main()
657 if (fwrite(rtp_data, 12 + enc_len, 1, out_file) != 1) { in main()
738 if (fwrite(&length, 2, 1, out_file) != 1) { in main()
[all …]
/external/webrtc/webrtc/modules/audio_processing/logging/
Daec_logging.h43 (void) fwrite(data, data_size, 1, file); \
50 (void) fwrite(&value_to_store, sizeof(value_to_store), 1, file); \
57 (void) fwrite(&value_to_store, sizeof(value_to_store), 1, file); \
/external/webrtc/webrtc/tools/frame_editing/
Dframe_editing_lib.cc61 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
70 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
75 fwrite(temp_buffer.get(), 1, frame_length, out_fid); in EditFrames()
/external/boringssl/src/tool/
Drand.cc80 if (fwrite(hex_buf, todo*2, 1, stdout) != 1) { in Rand()
84 if (fwrite(buf, todo, 1, stdout) != 1) { in Rand()
91 if (hex && fwrite("\n", 1, 1, stdout) != 1) { in Rand()
/external/swiftshader/third_party/PowerVR_SDK/Shell/
DPVRShell.cpp738 fwrite(&bfType , 1, sizeof(bfType) , fpDumpfile); in PVRShellWriteBMPFile()
739 fwrite(&bfSize , 1, sizeof(bfSize) , fpDumpfile); in PVRShellWriteBMPFile()
740 fwrite(&bfReserved1 , 1, sizeof(bfReserved1), fpDumpfile); in PVRShellWriteBMPFile()
741 fwrite(&bfReserved2 , 1, sizeof(bfReserved2), fpDumpfile); in PVRShellWriteBMPFile()
742 fwrite(&bfOffBits , 1, sizeof(bfOffBits) , fpDumpfile); in PVRShellWriteBMPFile()
745 fwrite(&biSize , 1, sizeof(biSize) , fpDumpfile); in PVRShellWriteBMPFile()
746 fwrite(&biWidth , 1, sizeof(biWidth) , fpDumpfile); in PVRShellWriteBMPFile()
747 fwrite(&biHeight , 1, sizeof(biHeight) , fpDumpfile); in PVRShellWriteBMPFile()
748 fwrite(&biPlanes , 1, sizeof(biPlanes) , fpDumpfile); in PVRShellWriteBMPFile()
749 fwrite(&biBitCount , 1, sizeof(biBitCount) , fpDumpfile); in PVRShellWriteBMPFile()
[all …]
/external/vboot_reference/utility/
Dbmpblk_font.c162 if (1 != fwrite(&header, sizeof(header), 1, ofp)) { in main()
204 if (1 != fwrite(&entry, sizeof(entry), 1, ofp)) { in main()
208 if (1 != fwrite(imgdata, imgsize, 1, ofp)) { in main()
212 if (diff && 1 != fwrite("\0\0\0\0\0\0\0\0", diff, 1, ofp)) { in main()
/external/clang/test/CodeGen/
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()
/external/libcups/cups/
Dlangprintf.c87 fwrite(output, 1, (size_t)bytes, stderr); in _cupsLangPrintError()
144 return ((int)fwrite(output, 1, (size_t)bytes, fp)); in _cupsLangPrintFilter()
201 return ((int)fwrite(output, 1, (size_t)bytes, fp)); in _cupsLangPrintf()
247 return ((int)fwrite(output, 1, (size_t)bytes, fp)); in _cupsLangPuts()
/external/fio/
Dlog.c21 return fwrite(buf, len, 1, f_out); in log_info_buf()
92 ret = fwrite(buffer, len, 1, stderr); in log_err()
95 return fwrite(buffer, len, 1, f_err); in log_err()

12345678910>>...22