aboutsummaryrefslogtreecommitdiff
path: root/sys/src/read.c
blob: 8d308ba9e5bc6744065fa0a97abb9d7acee66bf9 (plain)
1
2
3
4
5
6
7
8
#include "internal.h"

int
sys·read(int fd, intptr len, void *buf, intptr *n)
{
    intptr ret = *n = syscall(·Read, fd, buf, len);
    return error(ret);
}