1164Seric /*
2164Seric **  USEFUL.H -- Some useful stuff.
3402Seric **
4*5183Seric **	@(#)useful.h	3.6	12/05/81
5164Seric */
6164Seric 
74148Seric # ifndef makedev
84148Seric # include <sys/types.h>
94148Seric # endif
104148Seric 
114148Seric /* support for bool type */
124148Seric typedef char	bool;
13164Seric # define TRUE	1
14164Seric # define FALSE	0
15164Seric 
16164Seric # ifndef NULL
17164Seric # define NULL	0
18164Seric # endif NULL
192975Seric 
204148Seric /* bit hacking */
212975Seric # define bitset(bit, word)	((word) & (bit))
224086Seric 
234086Seric /* define the types of some common functions */
24*5183Seric extern char	*strcpy(), *strncpy();
25*5183Seric extern char	*strcat(), *strncat();
264086Seric extern char	*malloc();
274086Seric extern char	*index(), *rindex();
284086Seric extern int	errno;
294086Seric extern char	*sprintf();
304835Seric extern time_t	time();
314086Seric extern char	*ctime();
324086Seric # ifndef V6
334086Seric extern char	*getenv();
344438Seric # else V6
354438Seric typedef char	*u_short;
364438Seric typedef long	u_long;
374438Seric typedef char	u_char;
384438Seric typedef int	void;
394438Seric # endif V6
40