Subversion Repositories Kolibri OS

Rev

Rev 6745 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*
  2. Kolibri OS config for gcc 5.4
  3.  
  4. Started by Siemargl @Nov 2016
  5. */
  6.  
  7. #include <sys/types.h>      /* off_t, time_t, dev_t, ... */
  8. #include <sys/stat.h>
  9. #include <sys/kos_io.h>             /* lseek(), open(), setftime(), dup(), creat() */
  10. #include <time.h>           /* localtime() */
  11. #include <fcntl.h>          /* O_BINARY for open() w/o CR/LF translation */
  12. #include <sys/time.h>
  13. #include <unistd.h>
  14. #include <dirent.h>
  15.  
  16.  
  17. #define DEBUG
  18.  
  19. #define DIR_END       '/'
  20. #define NO_STRNICMP
  21. #define STRNICMP zstrnicmp
  22. #define NO_CHMOD
  23. #define NO_FCHOWN
  24.  
  25. #define echoff(f)
  26. #define echon()
  27. #define getch() getchar() /* not correct, but may not be on a console */
  28. #define HAVE_WORKING_GETCH
  29.  
  30. /*
  31. #  ifdef DATE_FORMAT
  32. #    undef DATE_FORMAT
  33. #  endif
  34. #  define DATE_FORMAT     dateformat()
  35. */
  36. #define lenEOL          2
  37. #define PutNativeEOL    {*q++ = native(CR); *q++ = native(LF);}
  38. /*
  39. #  if (!defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME))
  40. #    define USE_EF_UT_TIME
  41. #  endif
  42. */
  43.  
  44. /* Static variables that we have to add to Uz_Globs: */
  45. #define SYSTEM_SPECIFIC_GLOBALS \
  46.     int created_dir, renamed_fullpath;\
  47.     char *rootpath, *buildpath, *end;\
  48.     ZCONST char *wildname;\
  49.     char *dirname, matchname[FILNAMSIZ];\
  50.     int rootlen, have_dirname, dirnamelen, notfirstcall;\
  51.     zvoid *wild_dir;
  52.