ref: 8cacd2cc0aa7bc7b51c0017edcd6a49db5b4f95e dir: /sys/src/libc/9sys/write.c/
#include <u.h> #include <libc.h> long write(int fd, void *buf, long n) { return pwrite(fd, buf, n, -1LL); }