3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS system libraries
5 * FILE: lib/crtdll/io/read.c
6 * PURPOSE: Reads a file
7 * PROGRAMER: Boudewijn Dekker
13 #include <msvcrt/io.h>
14 #include <msvcrt/internal/file.h>
17 #include <msvcrt/msvcrtdbg.h>
22 size_t _read(int _fd
, void *_buf
, size_t _nbyte
)
26 if (!ReadFile(_get_osfhandle(_fd
),_buf
,_nbyte
,&_rbyte
,NULL
))
30 return (size_t)_rbyte
;