Searched refs:fd_ (Results 1 – 9 of 9) sorted by relevance
/arkcompiler/runtime_core/libpandabase/os/ |
D | unique_fd.h | 62 int fd = fd_; in Release() 63 fd_ = -1; in Release() 69 if (fd_ != -1) { 70 ASSERT(new_fd != fd_); 71 DefaultCloser(fd_); 73 fd_ = new_fd; 78 return fd_; in Get() 83 return fd_ != -1; in IsValid() 92 int fd_ = -1; variable
|
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()
|
D | debug_info.h | 174 int fd_ {INVALID_FD};
|
/arkcompiler/toolchain/websocket/ |
D | websocket.cpp | 299 fd_ = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in InitTcpWebSocket() 300 if (fd_ < SOCKET_SUCCESS) { in InitTcpWebSocket() 306 if ((setsockopt(fd_, SOL_SOCKET, SO_REUSEADDR, in InitTcpWebSocket() 309 close(fd_); in InitTcpWebSocket() 310 fd_ = -1; in InitTcpWebSocket() 315 if (!SetWebSocketTimeOut(fd_, timeoutLimit)) { in InitTcpWebSocket() 317 close(fd_); in InitTcpWebSocket() 318 fd_ = -1; in InitTcpWebSocket() 326 … if (bind(fd_, reinterpret_cast<struct sockaddr*>(&addr_sin), sizeof(addr_sin)) < SOCKET_SUCCESS) { in InitTcpWebSocket() 328 close(fd_); in InitTcpWebSocket() [all …]
|
D | websocket.h | 78 int32_t fd_ {-1};
|
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
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_, 0L, SEEK_SET) == 0; in Reset() [all …]
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/ |
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_, 0, SEEK_SET); in ClearData() [all …]
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
D | file_stream.cpp | 101 close(fd_); in EndOfStream() 107 return fd_ > 0; in Good() 113 if (fd_ < 0) { in WriteChunk() 122 int ret = dprintf(fd_, "%s", str.c_str()); in WriteChunk() 127 ret = fsync(fd_); in WriteChunk()
|
D | file_stream.h | 61 explicit FileDescriptorStream(int32_t fd): fd_(fd) {} in FileDescriptorStream() 84 int32_t fd_;
|