Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 - 6 of 6) sorted by relevance

/base/startup/init/services/begetctl/
H A Dmisc_daemon.cpp160 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 Dflowbufferadapter_fuzzer.cpp41 int fd1 = 1; in FlowBufferAdapterFuzzTest() local
43 flowbufferAdapter1->CreateAshmemWithFd(fd1, scriptLength1, PROT_READ); in FlowBufferAdapterFuzzTest()
45 close(fd1); in FlowBufferAdapterFuzzTest()
H A Dflowbufferadapterimpl_fuzzer.cpp41 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 Dsys_event_stat_test.cpp76 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 Dtlogcat.c229 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 Devent_logger_catcher_test.cpp571 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