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