Home
last modified time | relevance | path

Searched refs:srcFd (Results 1 - 4 of 4) sorted by relevance

/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
H A Devent_log_catcher.cpp93 int srcFd = open(path, O_RDONLY); in AppendFile() local
94 if (srcFd < 0) { in AppendFile()
101 int rn = read(srcFd, buf, sizeof(buf)); in AppendFile()
113 close(srcFd); in AppendFile()
/base/hiviewdfx/hiview/service/
H A Dhiview_service.cpp236 int srcFd = open(srcFilePath.c_str(), O_RDONLY); in CopyFile() local
237 if (srcFd == -1) { in CopyFile()
242 if (fstat(srcFd, &st) == -1) { in CopyFile()
244 close(srcFd); in CopyFile()
250 close(srcFd); in CopyFile()
257 ssize_t ret = sendfile(destFd, srcFd, &offset, count); in CopyFile()
266 close(srcFd); in CopyFile()
271 close(srcFd); in CopyFile()
/base/startup/init/services/init/
H A Dinit_common_cmds.c261 int srcFd = -1; in DoCopy() local
273 srcFd = open(realPath1, O_RDONLY); in DoCopy()
274 if (srcFd < 0) { in DoCopy()
296 while ((rdLen = read(srcFd, buf, sizeof(buf) - 1)) > 0) { in DoCopy()
305 INIT_CHECK(srcFd < 0, close(srcFd)); in DoCopy()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
H A Dhitrace_dump.cpp546 int srcFd = open(srcPath.c_str(), O_RDONLY | O_NONBLOCK); in WriteFile() local
547 if (srcFd < 0) { in WriteFile()
572 ssize_t readBytes = TEMP_FAILURE_RETRY(read(srcFd, g_buffer + bytes, PAGE_SIZE)); in WriteFile()
637 close(srcFd); in WriteFile()
656 int srcFd = open(srcSpecPath.c_str(), O_RDONLY); in WriteEventFile() local
657 if (srcFd < 0) { in WriteEventFile()
663 int64_t len = read(srcFd, buffer, PAGE_SIZE); in WriteEventFile()
670 close(srcFd); in WriteEventFile()

Completed in 6 milliseconds