40 char *
p =
reinterpret_cast<char *
>(
s);
45 ssize_t result = read(
fd,
p + pos,
n - pos);
55 if (errno == EINTR || errno == EAGAIN)
69 const char *
p =
reinterpret_cast<const char *
>(
s);
74 ssize_t result = write(
fd,
p + pos,
n - pos);
84 if (errno == EINTR || errno == EAGAIN)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
ssize_t atomic_read(int fd, void *s, size_t n)
ssize_t atomic_write(int fd, const void *s, size_t n)