/arkcompiler/runtime_core/libpandabase/os/ |
H A D | unique_fd.h | 62 int fd = fd_; 63 fd_ = -1; 69 if (fd_ != -1) { in Reset() 70 ASSERT(new_fd != fd_); in Reset() 71 DefaultCloser(fd_); in Reset() 73 fd_ = new_fd; in Reset() 78 return fd_; 83 return fd_ != -1; 92 int fd_ = -1; member in panda::os::unique_fd::UniqueFd
|
H A D | debug_info.cpp | 197 close(fd_); in Destroy() 198 fd_ = INVALID_FD; in Destroy() 206 fd_ = open(filename, O_RDONLY | O_CLOEXEC); in ReadFromFile() 207 int res = dwarf_init(fd_, DW_DLC_READ, DwarfErrorHandler, nullptr, &dbg_, &err); in ReadFromFile() 214 close(fd_); in ReadFromFile() 215 fd_ = INVALID_FD; in ReadFromFile()
|
H A D | debug_info.h | 174 int fd_ {INVALID_FD};
|
/arkcompiler/runtime_core/static_core/libpandabase/os/ |
H A D | unique_fd.h | 62 int fd = fd_; 63 fd_ = -1; 69 if (fd_ != -1) { in Reset() 70 ASSERT(newFd != fd_); in Reset() 71 DefaultCloser(fd_); in Reset() 73 fd_ = newFd; in Reset() 78 return fd_; 83 return fd_ != -1; 92 int fd_ = -1; member in ark::os::unique_fd::UniqueFd
|
H A D | debug_info.cpp | 277 close(fd_); in Destroy() 278 fd_ = INVALID_FD; in Destroy() 286 fd_ = open(filename, O_RDONLY | O_CLOEXEC); in ReadFromFile() 287 int res = dwarf_init(fd_, DW_DLC_READ, DwarfErrorHandler, nullptr, &dbg_, &err); in ReadFromFile() 298 close(fd_); in ReadFromFile() 299 fd_ = INVALID_FD; in ReadFromFile()
|
H A D | debug_info.h | 175 int fd_ {INVALID_FD};
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | file.h | 35 explicit File(int fd) : fd_(fd) {} in File() 42 auto res = _read(fd_, buf, n); in Read() 61 auto res = _write(fd_, buf, n); in Write() 80 return _close(fd_); in Close() 86 auto r = _fstat64(fd_, &st); in GetFileSize() 95 return fd_ != -1; in IsValid() 100 return fd_; in GetFd() 139 auto rc = _chsize(fd_, 0); in ClearData() 148 auto rc = _lseek(fd_, 0, SEEK_SET); in ClearData() 159 return _lseek(fd_, in Reset() 180 int fd_; global() member in ark::os::windows::file::File [all...] |
/arkcompiler/runtime_core/platforms/unix/libpandabase/ |
H A D | file.h | 46 explicit File(int fd) : fd_(fd) {} in File() 53 ssize_t res = read(fd_, buf, n); in Read() 72 ssize_t res = write(fd_, buf, n); in Write() 91 return close(fd_); in Close() 99 int r = fstat(fd_, &st); in GetFileSize() 103 int r = fstat64(fd_, &st); in GetFileSize() 113 return fd_ != -1; in IsValid() 118 return fd_; in GetFd() 191 int rc = ftruncate(fd_, 0); in ClearData() 200 off_t rc = lseek(fd_, in ClearData() 225 int fd_; global() member in panda::os::unix::file::File [all...] |
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
H A D | file.h | 39 explicit File(int fd) : fd_(fd) {} in File() 46 auto res = _read(fd_, buf, n); in Read() 65 auto res = _write(fd_, buf, n); in Write() 84 return _close(fd_); in Close() 91 auto r = _fstat64(fd_, &st); in GetFileSize() 100 return fd_ != -1; in IsValid() 105 return fd_; in GetFd() 163 auto rc = _chsize(fd_, 0); in ClearData() 172 auto rc = _lseek(fd_, 0, SEEK_SET); in ClearData() 183 return _lseek(fd_, in Reset() 197 int fd_; global() member in panda::os::windows::file::File [all...] |
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | file.h | 43 explicit File(int fd) : fd_(fd) {} in File() 50 ssize_t res = read(fd_, buf, n); in Read() 69 ssize_t res = write(fd_, buf, n); in Write() 88 return close(fd_); in Close() 95 int r = fstat(fd_, &st); in GetFileSize() 98 int r = fstat64(fd_, &st); in GetFileSize() 108 return fd_ != -1; in IsValid() 113 return fd_; in GetFd() 181 int rc = ftruncate(fd_, 0); in ClearData() 190 off_t rc = lseek(fd_, in ClearData() 222 int fd_; global() member in ark::os::unix::file::File [all...] |
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
H A D | file_stream.cpp | 97 close(fd_); in EndOfStream() 103 return fd_ > 0; in Good() 109 if (fd_ < 0) { in WriteChunk() 114 int ret = dprintf(fd_, "%s", str.c_str()); in WriteChunk() 119 ret = fsync(fd_); in WriteChunk() 129 if (fd_ < 0) { in WriteBinBlock() 132 ssize_t written = write(fd_, data, size); in WriteBinBlock()
|
H A D | file_stream.h | 65 explicit FileDescriptorStream(int32_t fd): fd_(fd) {} in FileDescriptorStream() 89 int32_t fd_; member in panda::ecmascript::FileDescriptorStream
|
/arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
H A D | zip_file_reader.cpp | 54 if (fd_ >= 0 && closable_) { in ~ZipFileReader() 55 close(fd_); in ~ZipFileReader() 56 fd_ = -1; in ~ZipFileReader() 79 fd_ = open(filePath_.c_str(), O_RDONLY); in init() 80 if (fd_ < 0) { in init()
|
H A D | zip_file_reader_io.cpp | 26 if (fd_ < 0 || startPos + bufferSize > fileLen_) { in ReadBuffer() 40 if (dst == nullptr || fd_ < 0 || startPos + bufferSize > fileLen_) { in ReadBuffer() 44 auto const readCount = pread(fd_, dst, bufferSize, startPos); in ReadBuffer()
|
H A D | zip_file_reader.h | 44 return fd_; in GetFd() 58 int fd_ = -1; member in panda::ecmascript::ZipFileReader
|
H A D | zip_file_reader_mem.cpp | 29 posix_fadvise(fd_, 0, 0, POSIX_FADV_SEQUENTIAL); in init() 34 auto const readCount = read(fd_, fileContent_.data() + pos, fileContent_.size() - pos); in init()
|