Searched refs:fd_ (Results 1 – 6 of 6) sorted by relevance
/device/google/cuttlefish/guest/commands/vsoc_input_service/ |
D | virtual_device_base.cpp | 52 if (fd_ >= 0) { in ~VirtualDeviceBase() 53 close(fd_); in ~VirtualDeviceBase() 54 fd_ = -1; in ~VirtualDeviceBase() 59 fd_ = open("/dev/uinput", O_WRONLY | O_NONBLOCK); in SetUp() 60 if (fd_ < 0) { in SetUp() 72 if (!DoIoctl(fd_, UI_SET_EVBIT, evt_type)) { in SetUp() 79 if (!DoIoctl(fd_, UI_SET_KEYBIT, key)) { in SetUp() 86 if (!DoIoctl(fd_, UI_SET_PROPBIT, property)) { in SetUp() 93 if (!DoIoctl(fd_, UI_SET_ABSBIT, abs)) { in SetUp() 99 if (write(fd_, &dev_, sizeof(dev_)) < 0) { in SetUp() [all …]
|
D | virtual_device_base.h | 48 int fd_ = -1; variable
|
/device/google/cuttlefish/common/libs/fs/ |
D | shared_fd.h | 191 int rval = bind(fd_, addr, addrlen); in Bind() 198 int rval = connect(fd_, addr, addrlen); in Connect() 213 int rval = TEMP_FAILURE_RETRY(dup(fd_)); in UNMANAGED_Dup() 220 int rval = TEMP_FAILURE_RETRY(dup2(fd_, newfd)); in UNMANAGED_Dup2() 227 int rval = TEMP_FAILURE_RETRY(fcntl(fd_, command, value)); in Fcntl() 236 int rval = TEMP_FAILURE_RETRY(getsockname(fd_, addr, addrlen)); in GetSockName() 252 int rval = TEMP_FAILURE_RETRY(ioctl(fd_, request, val)); 257 bool IsOpen() const { return fd_ != -1; } in IsOpen() 273 name += std::to_string(fd_); in LinkAtCwd() 283 int rval = listen(fd_, backlog); in Listen() [all …]
|
D | shared_fd.cpp | 106 if (fd_ == -1) { in Close() 108 } else if (close(fd_) == -1) { in Close() 122 fd_ = -1; in Close() 126 if (IsOpen() && FD_ISSET(fd_, in)) { in IsSet() 144 if (fd_ >= *max_index) { in Set() 145 *max_index = fd_ + 1; in Set() 147 FD_SET(fd_, dest); in Set()
|
/device/google/cuttlefish/common/libs/tcp_socket/ |
D | tcp_socket.h | 37 ClientSocket(ClientSocket&& other) : fd_{other.fd_} {} in ClientSocket() 40 fd_ = other.fd_; 66 explicit ClientSocket(SharedFD fd) : fd_(fd) {} in ClientSocket() 68 SharedFD fd_; variable 84 SharedFD fd_;
|
D | tcp_socket.cpp | 30 : fd_(SharedFD::SocketLocalClient(port, SOCK_STREAM)) {} in ClientSocket() 34 auto read_count = fd_->Read(buf.data(), buf.size()); in RecvAny() 51 auto just_read = fd_->Read(&buf[total_read], buf.size() - total_read); in Recv() 72 if (!fd_->IsOpen()) { in SendNoSignal() 75 auto just_written = fd_->Send(data + written, size - written, MSG_NOSIGNAL); in SendNoSignal() 94 : fd_{SharedFD::SocketLocalServer(port, SOCK_STREAM)} { in ServerSocket() 95 if (!fd_->IsOpen()) { 101 SharedFD client = SharedFD::Accept(*fd_); in Accept()
|