Subversion Repositories Kolibri OS

Rev

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

  1. #include <libc/stubs.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <errno.h>
  6. #include <time.h>
  7. #include <unistd.h>
  8. #include <sys/types.h>
  9. #include <sys/stat.h>
  10. #include <libc/farptrgs.h>
  11. #include <libc/bss.h>
  12. #include <menuet/os.h>
  13.  
  14. #include "../../../dos/dos_emu/dosemuin.h"
  15.  
  16. #include "xstat.h"
  17.  
  18. int fstat(int handle, struct stat *statbuf)
  19. {
  20.         if (handle < 0 || handle >= _MAX_HANDLES)
  21.         {
  22.                 errno = EBADF;
  23.                 return -1;
  24.         }
  25.         return stat(_io_handles[handle].filename, statbuf);
  26. }
  27.