Home
last modified time | relevance | path

Searched refs:FileInstance (Results 1 – 3 of 3) sorted by relevance

/device/google/cuttlefish/common/libs/fs/
Dshared_fd.cpp113 bool FileInstance::CopyFrom(FileInstance& in, size_t length, FileInstance* stop) { in CopyFrom()
168 bool FileInstance::CopyAllFrom(FileInstance& in, FileInstance* stop) { in CopyAllFrom()
179 void FileInstance::Close() { in Close()
200 bool FileInstance::Chmod(mode_t mode) { in Chmod()
210 int FileInstance::ConnectWithTimeout(const struct sockaddr* addr, in ConnectWithTimeout()
274 bool FileInstance::IsSet(fd_set* in) const { in IsSet()
282 void FileInstance::Log(const char* message) { in Log()
286 void FileInstance::Log(const char*) {} in Log()
289 void FileInstance::Set(fd_set* dest, int* max_index) const { in Set()
320 FileInstance::Log("select\n"); in Select()
[all …]
Dshared_fd.h81 class FileInstance; variable
133 SharedFD(const std::shared_ptr<FileInstance>& in) : value_(in) {} in SharedFD()
139 static SharedFD Accept(const FileInstance& listener, struct sockaddr* addr,
141 static SharedFD Accept(const FileInstance& listener);
214 std::shared_ptr<FileInstance> operator->() const { return value_; }
216 const FileInstance& operator*() const { return *value_; }
218 FileInstance& operator*() { return *value_; }
223 std::shared_ptr<FileInstance> value_;
240 std::weak_ptr<FileInstance> value_;
287 class FileInstance {
[all …]
Depoll.cpp38 SharedFD shared{std::shared_ptr<FileInstance>(new FileInstance(fd, 0))}; in Create()