summaryrefslogtreecommitdiff
path: root/src/unistd/read.c
blob: c44e406d1222d8f949e7e8e8f7979c1df003172b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "stddef.h"
#include "sys/types.h"
#include <unistd.h>
#include "errno.h"
#include "nonstd/syscall.h"

ssize_t read(int fildes, void *buf, size_t nbyte)
{
	SYSCALL("read", ssize_t, -1, fildes, buf, nbyte, 0, 0, 0);
}
/*
POSIX(1)
*/