home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Utilities / top-0.5-MI / os.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-02  |  780 b   |  30 lines

  1. #include <sys/types.h>
  2. #include <sys/param.h>    /* This defines BSD */
  3. #if defined(BSD) && !defined(BSD4_4) && !defined(__osf__)
  4. # include <stdio.h>
  5. # include <strings.h>
  6. # define strchr(a, b)        index((a), (b))
  7. # define strrchr(a, b)        rindex((a), (b))
  8. # define memcpy(a, b, c)    bcopy((b), (a), (c))
  9. # define memzero(a, b)        bzero((a), (b))
  10. # define memcmp(a, b, c)    bcmp((a), (b), (c))
  11. #if defined(NeXT)
  12.   typedef void sigret_t;
  13. #else
  14.   typedef int sigret_t;
  15. #endif
  16.  
  17. /* system routines that don't return int */
  18. char *getenv();
  19. caddr_t malloc();
  20.  
  21. #else 
  22. # include <stdio.h>
  23. # define setbuffer(f, b, s)    setvbuf((f), (b), (b) ? _IOFBF : _IONBF, (s))
  24. # include <string.h>
  25. # include <memory.h>
  26. # include <stdlib.h>
  27. # define memzero(a, b)        memset((a), 0, (b))
  28.   typedef void sigret_t;
  29. #endif
  30.