diff options
Diffstat (limited to 'src/unistd/write.c')
| -rw-r--r-- | src/unistd/write.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/unistd/write.c b/src/unistd/write.c new file mode 100644 index 00000000..c591c279 --- /dev/null +++ b/src/unistd/write.c @@ -0,0 +1,16 @@ +#include "stddef.h" +#include "sys/types.h" +#include <unistd.h> +#include "nonstd/assert.h" +#include "nonstd/syscall.h" + +ssize_t write(int fildes, const void *buf, size_t nbyte) +{ + if (nbyte != 0) { + ASSERT_NONNULL(buf); + } + SC(ssize_t, fildes, buf, nbyte); +} +/* +POSIX(1) +*/ |
