29#ifndef __BASE_ATOMICIO_HH__
30#define __BASE_ATOMICIO_HH__
53#define STATIC_MSG(fd, m) \
55 static const char msg[] = m; \
56 atomic_write(fd, msg, sizeof(msg) - 1); \
67#define STATIC_ERR(m) STATIC_MSG(STDERR_FILENO, m)
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)