/system/connectivity/shill/net/ |
netlink_socket.cc | 38 NetlinkSocket::NetlinkSocket() : sequence_number_(0), file_descriptor_(-1) {} 41 if (sockets_ && (file_descriptor_ >= 0)) { 42 sockets_->Close(file_descriptor_); 58 file_descriptor_ = sockets_->Socket(PF_NETLINK, SOCK_DGRAM, NETLINK_GENERIC); 59 if (file_descriptor_ < 0) { 64 if (sockets_->SetReceiveBuffer(file_descriptor_, kReceiveBufferSize)) { 72 if (sockets_->Bind(file_descriptor_, 75 sockets_->Close(file_descriptor_); 76 file_descriptor_ = -1; 96 file_descriptor_, [all...] |
netlink_socket.h | 69 virtual int file_descriptor() const { return file_descriptor_; } 98 int file_descriptor_; member in class:shill::NetlinkSocket
|
/external/ceres-solver/examples/ |
libmv_bundle_adjuster.cc | 263 EndianAwareFileReader(void) : file_descriptor_(-1) { 274 if (file_descriptor_ > 0) { 275 close(file_descriptor_); 280 file_descriptor_ = open(file_name.c_str(), O_RDONLY | O_BINARY); 281 if (file_descriptor_ < 0) { 300 CHECK_GT(read(file_descriptor_, &value, sizeof(value)), 0); 330 int file_descriptor_; member in class:__anon6789::EndianAwareFileReader
|