37 char *
p =
reinterpret_cast<char *
>(
s);
42 ssize_t result = read(fd, p + pos, n - pos);
52 if (errno == EINTR || errno == EAGAIN)
66 const char *
p =
reinterpret_cast<const char *
>(
s);
71 ssize_t result = write(fd, p + pos, n - pos);
81 if (errno == EINTR || errno == EAGAIN)
ssize_t atomic_read(int fd, void *s, size_t n)
ssize_t atomic_write(int fd, const void *s, size_t n)