summaryrefslogtreecommitdiff
path: root/newlib/addon/newlib/libc/sys/hurd/readr.c
blob: bc1d6a0c2131b733a002d58e88e4cc1005f3fe61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Reentrant versions of read system call. */

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

_ssize_t
read (int fd, void *buf, size_t cnt)
{
  errno = EOPNOTSUPP;
  return -1;
}

_ssize_t
_DEFUN (_read_r, (ptr, fd, buf, cnt),
     struct _reent *ptr _AND
     int fd _AND
     _PTR buf _AND
     size_t cnt)
{
  return read (fd, buf, cnt);
}