Home
last modified time | relevance | path

Searched refs:fout (Results 1 – 7 of 7) sorted by relevance

/base/security/selinux_adapter/test/unittest/common/
Dtest_common.cpp117 std::ofstream fout(des, std::ofstream::out || std::ofstream::binary); in CopyFile() local
118 if (!fout) { in CopyFile()
122 fout << fin.rdbuf(); in CopyFile()
123 if (!fout) { in CopyFile()
125 fout.close(); in CopyFile()
129 fout.close(); in CopyFile()
135 std::ofstream fout(file, std::ofstream::out || std::ofstream::app); in WriteFile() local
136 if (!fout) { in WriteFile()
140 fout << i << std::endl; in WriteFile()
142 if (!fout) { in WriteFile()
[all …]
/base/hiviewdfx/hisysevent/adapter/native/idl/src/
Dfile_util.cpp92 std::ofstream fout(des, std::ios::binary); in CopyFile() local
96 if (!fout.is_open()) { in CopyFile()
99 fout << fin.rdbuf(); in CopyFile()
100 if (fout.fail()) { in CopyFile()
101 fout.clear(); in CopyFile()
103 fout.flush(); in CopyFile()
/base/hiviewdfx/hiview/base/utility/
Dfile_util.cpp232 std::ofstream fout(path); in CreateFile() local
233 if (!fout.is_open()) { in CreateFile()
236 fout.flush(); in CreateFile()
237 fout.close(); in CreateFile()
248 std::ofstream fout(des, ios::binary); in CopyFile() local
252 if (!fout.is_open()) { in CopyFile()
255 fout << fin.rdbuf(); in CopyFile()
256 if (fout.fail()) { in CopyFile()
257 fout.clear(); in CopyFile()
259 fout.flush(); in CopyFile()
/base/security/code_signature/test/unittest/
Dmulti_thread_local_sign_test.cpp60 int32_t fout = open(path.c_str(), O_CREAT | O_RDWR | O_TRUNC, 0777); in DupFile() local
61 if (fout < 0) { in DupFile()
74 write(fout, buffer, len); in DupFile()
77 close(fout); in DupFile()
/base/hiviewdfx/hidumper/frameworks/native/
Ddump_utils.cpp214 std::ofstream fout(des); in CopyFile() local
215 if ((!fin.is_open()) || (!fout.is_open())) { in CopyFile()
218 fout << fin.rdbuf(); in CopyFile()
219 if (fout.fail()) { in CopyFile()
220 fout.clear(); in CopyFile()
222 fout.flush(); in CopyFile()
/base/hiviewdfx/faultloggerd/tools/crasher_cpp/
Ddfx_crasher.cpp278 std::ofstream fout; in StackTop() local
279 fout.open("/data/sp"); in StackTop()
280 fout << std::hex << stackTop << std::endl; in StackTop()
281 fout.close(); in StackTop()
/base/update/updater/utils/
Dutils.cpp370 std::ofstream fout(dest, mode); in CopyFile() local
371 if (!fin.is_open() || !fout.is_open()) { in CopyFile()
375 fout << fin.rdbuf(); in CopyFile()
376 if (fout.fail()) { in CopyFile()
377 fout.clear(); in CopyFile()
380 fout.flush(); in CopyFile()