home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / TWIN / TWIN. / i.h next >
Encoding:
C/C++ Source or Header  |  1998-07-24  |  1.5 KB  |  78 lines

  1. /* i.h */
  2. /**************************************
  3. * local include file for ilib functions
  4. * Istvan Mohos, 1987
  5. **************************************/
  6.  
  7. #ifdef pyr
  8. #include <sys/time.h>
  9. #else
  10. #include <time.h>
  11. #endif
  12.  
  13. #include <stdio.h>
  14. #include <signal.h>
  15. #include <sys/types.h>
  16. #include <sys/stat.h>
  17.  
  18. #ifndef X_OK
  19. #    ifdef REALUNIX
  20. #        define F_OK 0
  21. #        define X_OK 1
  22. #        define W_OK 2
  23. #        define R_OK 4
  24. #        include <fcntl.h>
  25. #    else
  26. #        include <sys/file.h>
  27. #    endif
  28. #endif
  29.  
  30. #define MAXSTR       1892
  31. #define BIGBUFSIZ    4096
  32. #define SHORTSTR     256
  33. #define IFOURK       4096
  34. #define ITWOK        2048
  35. #define IONEK        1024
  36. #define IHALFK       512
  37. #define IQUARTK      256
  38. #define BADCHARP(p)  ((p) == (char *)NULL || *(p) == '\0')
  39. #define NULCHARP(p)  ((p) == (char *)NULL)
  40. #define WHITE(c)     ((c) < 33)
  41. #define BLACK(c)     ((c) > 32)
  42. #define SMALL(c)     ((c) < 32)
  43.  
  44. #define INITOKF      1    /* setup forward parsing */
  45. #define INITOKR     -1    /* setup reverse parsing */
  46. #define ITOKF        2    /* forward parse */
  47. #define ITOKR       -2    /* reverse parse */
  48.  
  49. int  fstat();
  50. int  stat();
  51. char *malloc();
  52. char *calloc();
  53. long lseek();
  54. long time();
  55.  
  56. struct tm *_igetdate();
  57.  
  58. char *ctime();
  59. char *iwhich();
  60. char *getenv();
  61. char *ilast();
  62. char *ianytok();
  63. char *ialntok();
  64. char *ictok();
  65. int  ierror();
  66. int  ifamily();
  67. int  ilongest();
  68. int  itexrect();
  69. int  iread();
  70.  
  71. extern int errno, sys_nerr;
  72. extern char *sys_errlist[];
  73.  
  74. #ifndef IAMIERROR
  75. extern char ierbuf[];
  76. extern int  ierflag;
  77. #endif
  78.