1 2 3 4 5 6 7
#include <syscall.h> #include <unistd.h> #include <errno.h> int write(int fd, const char *buf, size_t count) { RC_ERRNO(syscall(SYS_WRITE, fd, buf, count, 0, 0)); }