home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / patches / tcpip121 / prog / types.h < prev   
Encoding:
C/C++ Source or Header  |  1992-06-29  |  1.0 KB  |  58 lines

  1. /* #define DEBUG */
  2. #ifdef KERNEL
  3. #define memcpy mymemcpy
  4. #define MIB
  5. #endif
  6.  
  7. #ifdef KERNEL
  8. #include <mt\stdio.h>
  9. #endif
  10. #define INET
  11. typedef unsigned long u_long;
  12. typedef unsigned short u_short;
  13. typedef unsigned short ushort;
  14. typedef unsigned int u_int;
  15. typedef unsigned char u_char;
  16. typedef long off_t;
  17. typedef char * caddr_t;
  18.  
  19. typedef char *caddr_t;
  20. typedef long daddr_t;
  21. typedef unsigned (*FUNC)();
  22. #define NIL ((char *) 0)
  23. /*
  24. #ifdef KERNEL
  25. #define NULL ((struct mbuf *) 0)
  26. #endif
  27. */
  28. #define PZERO 0
  29. #define BSD 43
  30.  
  31. #include "sems.h"
  32. #include "splx.h"
  33. #include "utils.h"
  34. #include "errno.h"
  35. #include "nerrno.h"
  36. #include "logsys.h"
  37. #include <sys/msg.h>
  38. #include "netlib.h"
  39.  
  40. #define MAXHOSTNAMELEN 120
  41. #ifndef MAXPATHLEN
  42. #define MAXPATHLEN 80
  43. #endif
  44. #define MAXSOCKETS 2048
  45. #define LINT
  46. #ifdef LINT
  47. #ifdef KERNEL
  48. #include "lint.h"
  49. #endif
  50. #else
  51. in_cksum();
  52. #endif
  53.  
  54. #define index(string,c) strchr((string),(c))
  55. #define perror(x)  _perror(x)
  56. #define TRUE 1
  57. #define FALSE 0
  58.