summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/read.c
blob: 80b3f0d25ddfa0fc0eb1ce02390baac917e53ba0 (plain)
1
2
3
4
5
6
7
8
9
10


#include <stddef.h>
#include <syscall.h> // for __syscall_3, syscall
#include <unistd.h>  // for read, size_t, ssize_t

ssize_t read(int fildes, void *buf, size_t nbyte)
{
	return syscall(read, fildes, buf, nbyte);
}