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

Revision 9084, 780 bytes checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r9083, 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
Note: See TracBrowser for help on using the repository browser.