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. #include <stdlib.h>
  3. #include <string.h>
  4. #include <fcntl.h>
  5.  
  6. #include <libc/dosio.h>
  7. #include <libc/bss.h>
  8.  
  9. static char init_file_handle_modes[20] = {
  10.   O_TEXT,
  11.   O_TEXT,
  12.   O_TEXT,
  13.   O_BINARY,
  14.   O_BINARY
  15. };
  16.  
  17. static int dosio_bss_count = -1;
  18. static size_t count=20; /* DOS default limit */
  19.  
  20. char *__file_handle_modes = init_file_handle_modes;
  21.  
  22. void
  23. __file_handle_set(int fd, int mode)
  24. {
  25.   /* Fill in the value */
  26.   __file_handle_modes[fd] = mode;
  27. }
  28.