| 858 | return BAN::Error::from_errno(ENOTSOCK); |
| 859 | inode = open_file->file.inode; |
| 860 | is_nonblock = !!(open_file->status_flags & O_NONBLOCK); |
| 861 | } |
| 862 | |
| 863 | if (is_nonblock && !inode->can_read()) |
| 864 | return BAN::Error::from_errno(EAGAIN); |
| 865 | return inode->recvmsg(message, flags); |
| 866 | } |
| 867 | |
| 868 | BAN::ErrorOr<size_t> OpenFileDescriptorSet::sendmsg(int fd, const msghdr& message, int flags) |
| 869 | { |
| 870 | BAN::RefPtr<Inode> inode; |