home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / netpbma.zip / pbm / includes.h < prev    next >
C/C++ Source or Header  |  1993-10-04  |  3KB  |  86 lines

  1. /*
  2.  * @(#)includes.h 1.8 89/04/01        Jamie Hanrahan (simpact!jeh)
  3.  *
  4.  * Version simpact-1.8, for DECUS uucp (VMS portion).  
  5.  * All changes and additions from previous versions (see below) are in
  6.  * the public domain. 
  7.  *
  8.  * Derived from:
  9.  * 
  10.  * includes.h 1.7 87/09/29    Copyright 1987 Free Software Foundation, Inc.
  11.  *
  12.  * Copying and use of this program are controlled by the terms of the
  13.  * GNU Emacs General Public License.
  14.  *
  15.  * Include files for various supported systems:
  16.  * Note that NAMESIZE should be the max length of a file name, including
  17.  * all its directories, drive specifiers, extensions, and the like.
  18.  * E.g. on a Unix with 14-char file names, NAMESIZE is several hundred
  19.  * characters, since the 14-char names can be nested.
  20.  */
  21.  
  22. #include atrdef
  23. #include ctype
  24. #include descrip
  25. #include devdef
  26. #include dvidef
  27. #include errno
  28. #include fibdef
  29. #include file
  30. #include iodef
  31. #include math
  32. #include setjmp
  33. #include signal
  34. #include ssdef
  35. #include stat
  36. /*
  37.  *  because I have consolidated ARGPROC.C into LIBPBM1.C for netPBM
  38.  *  these calls are reduntant and cause a compiler warning.
  39.  *                                                      RLD 20-SEP-1993
  40. #include stdlib 
  41. #include time
  42. */
  43. #include stdio
  44. #include string
  45.  
  46. #define NAMESIZE 255
  47. #define UUXQT_DOORBELL "UUCP_UUXQT_DOORBELL"
  48. #define UUCICO_REQMB "UUCP_REQUESTS"
  49. #define    UUX_QUEUE "UUCP_BATCH_QUEUE"
  50. #define    UUX_FILE "UUCP_BIN:UUXQT_BATCH.COM"
  51. #define DEBUG_LOG_FILE "vmsnet_log:uucico_dbg"
  52. #define    UUX_LOG "UUCP_LOG:UUXQT.LOG"
  53. #define    SYSLOCK_TEMPLATE "UUCP_SYS_%s"
  54. #define STATUS_LNT "LNM$SYSTEM_TABLE"
  55. #define STATUS_TEMPLATE "UUCP_STATUS_%s"
  56. #define MAXLOCK 32
  57. #define LOGLEN 255
  58. #define SEQSIZE 4
  59. #define CONTROL_FILE         "uucp_cfg:control." 
  60. #define    LOGCLOSE    /* Logfile must be closed; VMS locks it when open */
  61. #define EXEDIR  "uucp_bin:"    /* uuxqt executables live here (not used) */
  62. #define NULL_DEVICE "NL:"
  63. #define fork vfork        /* (not used) */
  64. #define STATUS int        /* (not used) */
  65. #define postmaster "UUCP_POSTMASTER"
  66. #define EXIT_OK 1        /* image exit code */
  67. #define EXIT_ERR 0x10000000    /* image exit code */
  68. #define ENABLE 1        /* for $SETAST (and maybe others) */
  69. #define DISABLE 0
  70. #define    time_t    unsigned    /* (not used) */
  71. #define remove delete    /* Remove a file */
  72. #define qsort pqsort    /* Our own version (not used) */
  73.  
  74. #define FOPEN_W_MODE "w"    /* mode to open files being received */
  75. #define FOPEN_R_MODE "r"    /*  or sent */
  76.  
  77. #define SS_FAILED(status) (((status)&1) == 0)
  78. #define initdsc(d) d.dsc$b_class = DSC$K_CLASS_S, d.dsc$b_dtype = DSC$K_DTYPE_T
  79. #define fillindsc(d, s) d.dsc$w_length=strlen(s), d.dsc$a_pointer=(s)
  80. #define init_itmlst3(e,i,l,c,a,r) \
  81.     (e[i].len=(l),\
  82.     e[i].code=(c),\
  83.     e[i].address=(a),\
  84.     e[i].retlen=(r))
  85.  
  86.