Lines Matching refs:StatusOr

45     virtual StatusOr<UniqueFd> open(const std::string& pathname, int flags,
48 virtual StatusOr<UniqueFd> socket(int domain, int type, int protocol) const = 0;
62 virtual StatusOr<ifreq> ioctl(Fd sock, unsigned long request, ifreq* ifr) const = 0;
64 virtual StatusOr<UniqueFd> eventfd(unsigned int initval, int flags) const = 0;
66 virtual StatusOr<int> ppoll(pollfd* fds, nfds_t nfds, double timeout) const = 0;
68 virtual StatusOr<size_t> writev(Fd fd, const std::vector<iovec>& iov) const = 0;
70 virtual StatusOr<size_t> write(Fd fd, const Slice buf) const = 0;
72 virtual StatusOr<Slice> read(Fd fd, const Slice buf) const = 0;
74 virtual StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst,
77 virtual StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src,
84 virtual StatusOr<UniqueFile> fopen(const std::string& path, const std::string& mode) const = 0;
86 virtual StatusOr<int> vfprintf(FILE* file, const char* format, va_list ap) const = 0;
88 virtual StatusOr<int> vfscanf(FILE* file, const char* format, va_list ap) const = 0;
92 virtual StatusOr<pid_t> fork() const = 0;
97 StatusOr<int> fprintf(FILE* file, const char* format, ...) const { in fprintf()
107 StatusOr<int> fscanf(FILE* file, const char* format, ...) const { in fscanf()
117 StatusOr<SockaddrT> getsockname(Fd sock) const { in getsockname()
145 StatusOr<std::array<uint16_t, size>> ppoll(const std::array<Fd, size>& fds, uint16_t events, in ppoll()
162 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const SockaddrT& dst) const { in sendto()
167 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom()
172 StatusOr<std::pair<Slice, SockaddrT>> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom()