Searched refs:fd1 (Results 1 - 6 of 6) sorted by relevance
/base/startup/init/services/begetctl/ |
H A D | misc_daemon.cpp | 160 int fd1 = open(MISC_DEVICE_NODE, O_RDWR | O_CLOEXEC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in WriteLogoToMisc() local 161 if (fd1 < 0) { in WriteLogoToMisc() 164 if (lseek(fd1, addrOffset * BLOCK_SZIE_1, SEEK_SET) < 0) { in WriteLogoToMisc() 166 close(fd1); in WriteLogoToMisc() 172 if (read(fd1, &magic, sizeof(uint32_t)) != sizeof(uint32_t)) { in WriteLogoToMisc() 174 close(fd1); in WriteLogoToMisc() 177 if (read(fd1, &size, sizeof(uint32_t)) != sizeof(uint32_t)) { in WriteLogoToMisc() 179 close(fd1); in WriteLogoToMisc() 183 close(fd1); in WriteLogoToMisc()
|
/base/web/webview/test/fuzztest/ohos_adapter/flowbufferadapter_fuzzer/ |
H A D | flowbufferadapter_fuzzer.cpp | 41 int fd1 = 1; in FlowBufferAdapterFuzzTest() local 43 flowbufferAdapter1->CreateAshmemWithFd(fd1, scriptLength1, PROT_READ); in FlowBufferAdapterFuzzTest() 45 close(fd1); in FlowBufferAdapterFuzzTest()
|
H A D | flowbufferadapterimpl_fuzzer.cpp | 41 int fd1; in ApplyFlowBufferAdapterImplFuzzTest() local 43 flowbufferAdapter1->CreateAshmem(scriptLength1, PROT_READ | PROT_WRITE, fd1); in ApplyFlowBufferAdapterImplFuzzTest() 44 auto ashmem1 = flowbufferAdapter->CreateAshmemWithFd(fd1, scriptLength1, PROT_READ); in ApplyFlowBufferAdapterImplFuzzTest()
|
/base/hiviewdfx/hiview/plugins/sysevent_source/test/unittest/common/ |
H A D | sys_event_stat_test.cpp | 76 int fd1 = OpenTestFile("./fd1.txt"); in HWTEST_F() local 77 ASSERT_FALSE(fd1 == -1); in HWTEST_F() 78 sysEventStat_.StatSummary(fd1); in HWTEST_F() 79 close(fd1); in HWTEST_F() 80 std::string result1 = GetFileContent("./fd1.txt"); in HWTEST_F()
|
/base/tee/tee_client/services/tlogcat/src/ |
H A D | tlogcat.c | 229 int32_t fd1 = open(logName, O_WRONLY); in LogFilesOpen() local 230 if (fd1 < 0) { in LogFilesOpen() 236 file = fdopen(fd1, "w"); in LogFilesOpen() 241 CloseFileFd(&fd1); in LogFilesOpen()
|
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/ |
H A D | event_logger_catcher_test.cpp | 571 auto fd1 = open("/data/test/peerTestFile", O_CREAT | O_WRONLY | O_TRUNC, DEFAULT_MODE); in HWTEST_F() local 572 if (fd1 < 0) { in HWTEST_F() 576 peerBinderCatcher->BinderInfoParser(fin, fd1, 1); in HWTEST_F()
|
Completed in 5 milliseconds