Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sysread.c « syscalls « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bdb39323d45477f3c2ba7d2999e6faa2d90ecc54 (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>

_READ_WRITE_RETURN_TYPE
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
}