1164Seric /* 2164Seric ** USEFUL.H -- Some useful stuff. 3402Seric ** 4*4438Seric ** @(#)useful.h 3.4 09/24/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 */ 244086Seric extern char *strcpy(); 254086Seric extern char *strcat(); 264086Seric extern char *malloc(); 274086Seric extern char *index(), *rindex(); 284086Seric extern int errno; 294086Seric extern char *sprintf(); 304086Seric extern long time(); 314086Seric extern char *ctime(); 324086Seric # ifndef V6 334086Seric extern char *getenv(); 34*4438Seric # else V6 35*4438Seric typedef char *u_short; 36*4438Seric typedef long u_long; 37*4438Seric typedef char u_char; 38*4438Seric typedef int void; 39*4438Seric # endif V6 40