home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / GNU_ATP_1_40.lzh / EDITLINE / dos.h < prev    next >
Text File  |  1993-05-01  |  673b  |  32 lines

  1. /*  $Revision: 1.1 $
  2. **
  3. **  Editline system header file for Unix.
  4. */
  5.  
  6. #define CRLF        "\r\n"
  7. #define FORWARD        STATIC
  8.  
  9. #include <sys/types.h>
  10. #include <sys/stat.h>
  11.  
  12. #if    defined(USE_DIRENT)
  13. #include <dirent.h>
  14. typedef struct dirent    DIRENTRY;
  15. #else
  16. #include <dir.h>
  17. typedef struct ffblk DIRENTRY;
  18. #endif    /* defined(USE_DIRENT) */
  19.  
  20. #if    !defined(S_ISDIR)
  21. #define S_ISDIR(m)        (((m) & S_IFMT) == S_IFDIR)
  22. #endif    /* !defined(S_ISDIR) */
  23.  
  24. #ifdef BSD   /* 386BSD has bad toupper() tolower()  functions */
  25. #ifdef i386
  26. #undef tolower(c)
  27. #undef toupper(c)
  28. #define tolower(x) (((x)>0x40)&&((x)<0x5b)?((x)|0x20):(x))
  29. #define toupper(x) (((x)>0x60)&&((x)<0x7b)?((x)&0xdf):(x))
  30. #endif
  31. #endif
  32.