Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. /*
  3.  * D_READ.C.
  4.  *
  5.  * Written by Peter Sulyok 1995 <sulyok@math.klte.hu>.
  6.  *
  7.  * This file is distributed WITHOUT ANY WARRANTY; without even the implied
  8.  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9.  *
  10.  */
  11.  
  12. #include <libc/stubs.h>
  13. #include <libc/dosio.h>
  14. #include <errno.h>
  15. #include <dos.h>
  16. #define FSLAYER
  17. #include<menuet/os.h>
  18.  
  19. unsigned int _dos_read(int handle, void *buffer, unsigned int count, unsigned int *result)
  20. {
  21.  int p;
  22.  p=dosemu_read(handle,buffer,count);
  23.  if(p==-1) return p;
  24.  if(result) *result=p;
  25.  return 0;
  26. }
  27.