source: trunk/third/top/os.h @ 16185

Revision 16185, 1005 bytes checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16184, which included commits to RCS files with non-trunk default branches.
Line 
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 */
18char *getenv();
19caddr_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
31/* some systems declare sys_errlist in stdio.h! */
32#if defined(__NetBSD__) || defined(__FreeBSD__)
33#if !defined(__m68k__)
34#  if !defined(__NetBSD132__)
35#define SYS_ERRLIST_DECLARED
36#  endif        /* __NetBSD132__ */
37#endif
38#endif
Note: See TracBrowser for help on using the repository browser.