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