summaryrefslogtreecommitdiff
path: root/src/unistd/write.c
blob: a8284b3216684c9ed8033b69ae0d73494729f535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

ssize_t write(int fd, const void *buf, size_t count)
{
	int r;
	CANCELPT_BEGIN;
	r = syscall(SYS_write, fd, buf, count);
	CANCELPT_END;
	return r;
}