blob: 1d95b8073b70d125c1c3d9ab6e2c1bde27d55664 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "stddef.h"
#include "sys/types.h"
#include <unistd.h>
#include "_assert.h"
#include "_syscall.h"
ssize_t write(int fildes, const void *buf, size_t nbyte)
{
if (nbyte != 0) {
ASSERT_NONNULL(buf);
}
SYSCALL(write, ssize_t, -1, fildes, buf, nbyte, 0, 0, 0);
}
/*
POSIX(1)
*/
|