29 #ifndef __BASE_ATOMICIO_HH__ 30 #define __BASE_ATOMICIO_HH__ 50 #define STATIC_MSG(fd, m) \ 52 static const char msg[] = m; \ 53 atomic_write(fd, msg, sizeof(msg) - 1); \ 64 #define STATIC_ERR(m) STATIC_MSG(STDERR_FILENO, m) 66 #endif // __BASE_ATOMICIO_HH__
ssize_t atomic_write(int fd, const void *s, size_t n)
ssize_t atomic_read(int fd, void *s, size_t n)