summaryrefslogblamecommitdiff
path: root/src/unistd/write.c
blob: 426cfc5b82775494ae1a600d68bd11505c3ade61 (plain) (tree)
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_write(fd, buf, count);
	CANCELPT_END;
	return r;
}