summaryrefslogtreecommitdiff
path: root/05/musl-0.6.0/src/unistd/read.c
blob: 87ff1f107f403b9aa2df5bc7c378c4390229b202 (plain)
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_read(fd, buf, count);
	CANCELPT_END;
	return r;
}