home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / C_ARCHI1.TAR / archie / pmachine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-20  |  1.4 KB  |  68 lines

  1. /*
  2.  * Miscellaneous system dependencies.
  3.  *
  4.  * I kept the name pmachine.h because it was already in all of the files...this
  5.  * barely resembles the pmachine.h that comes with the real Prospero, tho.
  6.  *
  7.  * v1.2.0 - 11/19/91 (mmt) - added MSDOS & OS2 stuff
  8.  */
  9.  
  10. #ifdef hpux
  11. # define FUNCS
  12. # define NOREGEX
  13. #endif
  14.  
  15. #if defined(USG) || defined(SYSV)
  16. # define FUNCS
  17. #endif
  18.  
  19. #ifdef OS2
  20. # include <pctcp.h>
  21. #endif
  22. #ifdef MSDOS
  23. # include <string.h>
  24. # include <stdlib.h>
  25. #endif
  26.  
  27. #ifdef _AIX
  28. #define _NONSTD_TYPES
  29. #define _BSD_INCLUDES
  30. #endif
  31.  
  32. /* ==== */
  33. #ifdef FUNCS
  34. # define index        strchr
  35. # define rindex        strrchr
  36. # ifndef AUX
  37. #  define bcopy(a,b,n)    memcpy(b,a,n)
  38. #  define bzero(a,n)    memset(a,0,n)
  39. # endif
  40. #endif
  41.  
  42. #if defined(BULL) || defined(_AIX)
  43. # define NEED_SELECT_H
  44. #endif
  45. #if defined(USG) || defined(UTS) || defined(_AIX)
  46. # define NEED_STRING_H
  47. #endif
  48. #if defined(USG) || defined(UTS) || defined(_AIX) || defined(AUX)
  49. # define NEED_TIME_H
  50. #endif
  51.  
  52. #ifdef VMS
  53. /* Get the system status stuff.  */
  54. # include <ssdef.h>
  55. #endif /* VMS */
  56.  
  57. /*
  58.  * FD_SET: lib/pfs/dirsend.c, user/vget/ftp.c
  59.  */
  60. #if !defined(FD_SET) && !defined(VMS)
  61. #define    NFDBITS        32
  62. #define    FD_SETSIZE    32
  63. #define    FD_SET(n, p)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
  64. #define    FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
  65. #define    FD_ISSET(n, p)    ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
  66. #define FD_ZERO(p)    bzero((char *)(p), sizeof(*(p)))
  67. #endif
  68.