blob: d893c288a10d605cfb85491cb1b57bd6ed9a80a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#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)
*/
|