mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
aee34003d7
the src/contrib/top part right now). This tools is simply too system- dependant to maintain it in the ports collection.
30 lines
780 B
C
30 lines
780 B
C
#include <sys/types.h>
|
|
#include <sys/param.h> /* This defines BSD */
|
|
#if defined(BSD) && !defined(BSD4_4) && !defined(__osf__)
|
|
# include <stdio.h>
|
|
# include <strings.h>
|
|
# define strchr(a, b) index((a), (b))
|
|
# define strrchr(a, b) rindex((a), (b))
|
|
# define memcpy(a, b, c) bcopy((b), (a), (c))
|
|
# define memzero(a, b) bzero((a), (b))
|
|
# define memcmp(a, b, c) bcmp((a), (b), (c))
|
|
#if defined(NeXT)
|
|
typedef void sigret_t;
|
|
#else
|
|
typedef int sigret_t;
|
|
#endif
|
|
|
|
/* system routines that don't return int */
|
|
char *getenv();
|
|
caddr_t malloc();
|
|
|
|
#else
|
|
# include <stdio.h>
|
|
# define setbuffer(f, b, s) setvbuf((f), (b), (b) ? _IOFBF : _IONBF, (s))
|
|
# include <string.h>
|
|
# include <memory.h>
|
|
# include <stdlib.h>
|
|
# define memzero(a, b) memset((a), 0, (b))
|
|
typedef void sigret_t;
|
|
#endif
|