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: ae19f5b463727c41e296bb0fac06130bad45e3e8 (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
_DEFUN (read, (fd, buf, cnt),
     int fd _AND
     void *buf _AND
     size_t cnt)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _read_r (_REENT, fd, buf, cnt);
#else
  return _read (fd, buf, cnt);
#endif
}