1 /* $Id: read.c,v 1.9 2002/11/24 18:42:13 robd Exp $
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
12 #include <msvcrt/io.h>
13 #include <msvcrt/internal/file.h>
16 #include <msvcrt/msvcrtdbg.h>
18 size_t _read(int _fd
, void *_buf
, size_t _nbyte
)
22 if (!ReadFile(_get_osfhandle(_fd
),_buf
,_nbyte
,&_rbyte
,NULL
))
26 return (size_t)_rbyte
;