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

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