|
|
1.1 ! root 1: /* manifest.h - manifest constants */ ! 2: ! 3: /* ! 4: * $Header: /f/osi/h/RCS/manifest.h,v 7.5 90/07/27 08:44:47 mrose Exp $ ! 5: * ! 6: * ! 7: * $Log: manifest.h,v $ ! 8: * Revision 7.5 90/07/27 08:44:47 mrose ! 9: * update ! 10: * ! 11: * Revision 7.4 90/07/09 14:37:51 mrose ! 12: * sync ! 13: * ! 14: * Revision 7.3 90/01/27 10:26:04 mrose ! 15: * touch-up ! 16: * ! 17: * Revision 7.2 90/01/11 18:36:03 mrose ! 18: * real-sync ! 19: * ! 20: * Revision 7.1 89/11/30 23:53:56 mrose ! 21: * touch-up ! 22: * ! 23: * Revision 7.0 89/11/23 21:55:49 mrose ! 24: * Release 6.0 ! 25: * ! 26: */ ! 27: ! 28: /* ! 29: * NOTICE ! 30: * ! 31: * Acquisition, use, and distribution of this module and related ! 32: * materials are subject to the restrictions of a license agreement. ! 33: * Consult the Preface in the User's Manual for the full terms of ! 34: * this agreement. ! 35: * ! 36: */ ! 37: ! 38: ! 39: #ifndef _MANIFEST_ ! 40: #define _MANIFEST_ ! 41: ! 42: /* current ISODE distribution: major*10+minor */ ! 43: #define ISODE 65 ! 44: ! 45: #ifndef _CONFIG_ ! 46: #include "config.h" /* system-specific configuration */ ! 47: #endif ! 48: ! 49: ! 50: /* target-dependent defines: ! 51: ! 52: SYS5NLY - target has SYS5 types only, no BSD types ! 53: ! 54: BSDSIGS - target supports BSD signals ! 55: ! 56: */ ! 57: ! 58: #ifdef BSD42 ! 59: #undef SYS5NLY ! 60: #define BSDSIGS ! 61: #endif ! 62: ! 63: ! 64: #ifdef ROS ! 65: #undef SYS5NLY ! 66: #define BSDSIGS ! 67: ! 68: #ifndef BSD42 ! 69: #define BSD42 ! 70: #endif ! 71: ! 72: #endif ! 73: ! 74: ! 75: #ifdef SYS5 ! 76: #define SYS5NLY ! 77: #undef BSDSIGS ! 78: ! 79: #ifdef OSX ! 80: #undef SYS5NLY ! 81: #endif ! 82: ! 83: #if defined(WIN) || defined (WINTLI) ! 84: #undef SYS5NLY ! 85: #endif ! 86: ! 87: #ifdef sun ! 88: #undef SYS5NLY ! 89: #endif ! 90: ! 91: #ifdef sgi ! 92: #undef SYS5NLY ! 93: #endif ! 94: ! 95: #ifdef HPUX ! 96: #undef SYS5NLY ! 97: #define BSDSIGS ! 98: #undef SIGPOLL ! 99: #endif ! 100: ! 101: #ifdef AIX ! 102: #undef SYS5NLY ! 103: #define BSDSIGS ! 104: #define SIGEMT SIGUSR1 ! 105: ! 106: ! 107: int (*_signal ()) (); ! 108: ! 109: #define signal _signal ! 110: #endif ! 111: ! 112: #ifdef AUX ! 113: #undef SYS5NLY ! 114: #define BSDSIGS ! 115: #endif ! 116: #endif ! 117: ! 118: ! 119: #ifdef NSIG ! 120: ! 121: #ifndef sigmask ! 122: #define sigmask(s) (1 << ((s) - 1)) ! 123: #endif ! 124: ! 125: #ifdef SIGPOLL ! 126: #define _SIGIO SIGPOLL ! 127: #else ! 128: #ifdef SIGUSR1 ! 129: #define _SIGIO SIGUSR1 ! 130: #else ! 131: #define _SIGIO SIGEMT ! 132: #endif ! 133: #endif ! 134: ! 135: typedef int SBV; ! 136: #define sigioblock() sigblock (sigmask (_SIGIO)) ! 137: #define sigiomask(s) sigsetmask (s) ! 138: #define siginblock() sigblock (sigmask (SIGINT)) ! 139: #define siginmask(s) sigsetmask (s) ! 140: ! 141: #endif ! 142: ! 143: /* TYPES */ ! 144: ! 145: #ifndef NOTOK ! 146: #define NOTOK (-1) ! 147: #define OK 0 ! 148: #define DONE 1 ! 149: #define CONNECTING_1 OK ! 150: #define CONNECTING_2 2 ! 151: #endif ! 152: ! 153: ! 154: #ifndef NULLCP ! 155: typedef char *CP; ! 156: #define NULLCP ((char *) 0) ! 157: #define NULLVP ((char **) 0) ! 158: #endif ! 159: ! 160: #ifndef INTDEF ! 161: #define INTDEF int ! 162: #endif ! 163: ! 164: typedef INTDEF integer; ! 165: #define NULLINT ((integer) 0) ! 166: #define NULLINTP ((integer *) 0) ! 167: ! 168: #ifndef makedev ! 169: #include <sys/types.h> ! 170: #if defined(WIN) || defined(WINTLI) ! 171: #include "sys/inet.h" ! 172: #ifndef NFDBITS ! 173: typedef struct fd_set { int fds_bits[1]; } fd_set; ! 174: #endif ! 175: #endif ! 176: ! 177: #ifdef SYS5NLY ! 178: typedef unsigned char u_char; ! 179: typedef unsigned short u_short; ! 180: typedef unsigned int u_int; ! 181: typedef unsigned long u_long; ! 182: #endif ! 183: #endif ! 184: ! 185: ! 186: #ifndef FD_SET ! 187: #define FD_SETSIZE (sizeof (fd_set) * 8) ! 188: ! 189: #define FD_SET(f,s) ((s)->fds_bits[0] |= (1 << (f))) ! 190: #define FD_CLR(f,s) ((s)->fds_bits[0] &= ~(1 << (f))) ! 191: #define FD_ISSET(f,s) ((s)->fds_bits[0] & (1 << (f))) ! 192: #define FD_ZERO(s) ((s)->fds_bits[0] = 0) ! 193: #endif ! 194: ! 195: #define NULLFD ((fd_set *) 0) ! 196: ! 197: ! 198: #undef IP ! 199: typedef int *IP; ! 200: #define NULLIP ((IP) 0) ! 201: ! 202: ! 203: typedef int (*IFP) (); ! 204: #define NULLIFP ((IFP) 0) ! 205: ! 206: ! 207: typedef void (*VFP) (); ! 208: #define NULLVFP ((VFP) 0) ! 209: ! 210: ! 211: #ifndef SFD ! 212: #if !defined(SVR3) && !defined(SUNOS4) && !defined(BSD44) ! 213: #define SFD int ! 214: #define SFP IFP ! 215: #else ! 216: #define SFD void ! 217: #define SFP VFP ! 218: #endif ! 219: #endif ! 220: ! 221: ! 222: struct udvec { /* looks like a BSD iovec... */ ! 223: caddr_t uv_base; ! 224: int uv_len; ! 225: ! 226: int uv_inline; ! 227: }; ! 228: ! 229: ! 230: struct qbuf { ! 231: struct qbuf *qb_forw; /* doubly-linked list */ ! 232: struct qbuf *qb_back; /* .. */ ! 233: ! 234: int qb_len; /* length of data */ ! 235: char *qb_data; /* current pointer into data */ ! 236: char qb_base[1]; /* extensible... */ ! 237: }; ! 238: ! 239: #define QBFREE(qb) \ ! 240: { \ ! 241: register struct qbuf *QB, \ ! 242: *QP; \ ! 243: \ ! 244: for (QB = (qb) -> qb_forw; QB != (qb); QB = QP) { \ ! 245: QP = QB -> qb_forw; \ ! 246: remque (QB); \ ! 247: free ((char *) QB); \ ! 248: } \ ! 249: } ! 250: ! 251: ! 252: #ifndef min ! 253: #define min(a, b) ((a) < (b) ? (a) : (b)) ! 254: #define max(a, b) ((a) > (b) ? (a) : (b)) ! 255: #endif ! 256: ! 257: ! 258: #ifdef SYS5 ! 259: ! 260: #if !defined(WINTLI) && !defined(WIN) ! 261: #ifndef sun ! 262: #define getdtablesize() _NFILE ! 263: #endif ! 264: #else ! 265: #define getdtablesize() (_NFILE - 1) ! 266: #endif ! 267: ! 268: #endif ! 269: ! 270: #if defined(RT) || defined (HPUX) ! 271: #define ntohs(x) (x) ! 272: #define htons(x) (x) ! 273: #define ntohl(x) (x) ! 274: #define htonl(x) (x) ! 275: #endif ! 276: ! 277: /* POSIX */ ! 278: ! 279: #ifndef SETSID ! 280: #if defined(SUNOS41) || defined(BSD44) ! 281: #define SETSID ! 282: #endif ! 283: #endif ! 284: ! 285: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.