#ifndef MMIX_STDDEFS_H
#define MMIX_STDDEFS_H

#ifndef linux
#error "!!! get linux !!!"
#endif

#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/stat.h>

#include <termios.h> /* POSIX! */
#include <signal.h>  /* POSIX! */
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <limits.h>
#include <dirent.h>
#include <endian.h>
#include <fcntl.h>
#include <errno.h>
#include <utime.h>
#include <time.h>
#include <pwd.h>

#undef NULL
#define NULL ((void*)0)

#include "sig.h"

#undef OK     /* for return values: is 0 */
#undef ERR    /* for return values: is -1 */
#undef FALSE  /* boolean 0 */
#undef TRUE   /* boolean 1 */
#undef MAYBE  /* boolean 2, stolen from microsoft */
#undef bool   /* some of these five values */
typedef enum { ERR=-1, OK , TRUE, MAYBE } bool;
#define FALSE OK /* looks also funny */

extern char **environ; /* the environment */

#endif /* MMIX_STDDEFS_H */
