#ifndef _INCLUDE_ERROR_H_
#define _INCLUDE_ERROR_H_

#include <stdio.h>

int Error(char *,unsigned int);

enum
{
	ERROR_VOID=0, /* nonexistent */
   ERROR_NULL,
   ERROR_FATAL,
   ERROR_CONFIGNOTFOUND,
   ERROR_PREVIOUS,
	ERROR_SIGNAL,
	ERROR_FORK,
	ERROR_SETSID,
	ERROR_SUID,
	ERROR_CHDIR,
	ERROR_PRIO,
	ERROR_LIMIT,
	ERROR_CHILD,
	ERROR_SOCK,
	ERROR_BIND,
	ERROR_LISTEN,
	ERROR_GETHOST,
	ERROR_ACCEPT,
	ERROR_NOTYET,
	ERROR_MALLOC,
	ERROR_SSLIO,
	ERROR_MAXTHR,
	ERROR_INTOVR,
	ERROR_HTTPLEN,
	ERROR_OPENLOG,
	ERROR_TIMEOUT,
	ERROR_POINTERR,
   ERROR_LASTONE
};

extern const char *SCREWS_errlist[];

#endif
