summaryrefslogtreecommitdiff
path: root/newlib/libc/syscalls/sysread.c
blob: 821a91a075ef1035a96cf3f4a4e54e064f205d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* connector for read */

#include <reent.h>
#include <unistd.h>

int
read (fd, buf, cnt)
     int fd;
     void *buf;
     size_t cnt;
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _read_r (_REENT, fd, buf, cnt);
#else
  return _read (fd, buf, cnt);
#endif
}