home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / UNIX / ARCHIE / CLIENTS / XARCHIE0.TAR / pmachine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-14  |  865 b   |  32 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. #if defined(NOREGEX)
  9. #define REGEX_FILE "regex.c" /* originally "../../misc/regex.c in wcmatch.c */
  10. #endif
  11.  
  12. #ifdef FUNCS
  13. #define index        strchr
  14. #define rindex        strrchr
  15. #ifndef AUX
  16. #define bcopy(a,b,n)    memcpy(b,a,n)
  17. #define bzero(a,n)    memset(a,0,n)
  18. #endif
  19. #endif
  20.  
  21. /*
  22.  * FD_SET: lib/pfs/dirsend.c, user/vget/ftp.c
  23.  */
  24. #ifndef FD_SET
  25. #define    NFDBITS        32
  26. #define    FD_SETSIZE    32
  27. #define    FD_SET(n, p)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
  28. #define    FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
  29. #define    FD_ISSET(n, p)    ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
  30. #define FD_ZERO(p)    bzero((char *)(p), sizeof(*(p)))
  31. #endif
  32.