home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / XARCHIE2.TAR / pmachine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-02  |  1.0 KB  |  41 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.  
  8. #ifdef FUNCS
  9. #define index        strchr
  10. #define rindex        strrchr
  11. #ifndef AUX
  12. #define bcopy(a,b,n)    memcpy(b,a,n)
  13. #define bzero(a,n)    memset(a,0,n)
  14. #endif
  15. #endif
  16.  
  17. #if defined(RS6000) || defined(BULL)
  18. # define NEED_SELECT_H
  19. #endif
  20.  
  21. #if defined(_AIX) || defined(UTS) || defined(AUX) || defined(USG)
  22. # define NEED_TIME_H
  23. #endif
  24.  
  25. #ifdef VMS
  26. /* Get the system status stuff.  */
  27. # include <ssdef.h>
  28. #endif /* VMS */
  29.  
  30. /*
  31.  * FD_SET: lib/pfs/dirsend.c, user/vget/ftp.c
  32.  */
  33. #if !defined(FD_SET) && !defined(VMS)
  34. #define    NFDBITS        32
  35. #define    FD_SETSIZE    32
  36. #define    FD_SET(n, p)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
  37. #define    FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
  38. #define    FD_ISSET(n, p)    ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
  39. #define FD_ZERO(p)    bzero((char *)(p), sizeof(*(p)))
  40. #endif
  41.