39 char *
p =
reinterpret_cast<char *
>(
s);
44 ssize_t result = read(fd, p + pos, n - pos);
54 if (errno == EINTR || errno == EAGAIN)
68 const char *
p =
reinterpret_cast<const char *
>(
s);
73 ssize_t result = write(fd, p + pos, n - pos);
83 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)