/*  This file is part of lsnet.
    Copyright (C) 2009-2010  Sterling Pickens
    Lsnet is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Lsnet is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with lsnet.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __ERRORS_H__
#define __ERRORS_H__ 1


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <malloc.h>
#include <errno.h>
#include "dates.h"
#include "logdir.h"
#include "homedir.h"
#include "cores.h"

//#ifdef __cplusplus
//extern "C"
//{
//#endif

extern int using_alt_conf;
extern struct log_data global_strs;
extern int errno;

//extern struct cpu_data cpu;

//extern char *program_invocation;

void set_invocation(char *prog_name);
void Err(char *message, char *program, int action);
void cpulock(void);
void memlock(void);
void netlock(void);
void clockskew(void);

//#ifdef __cplusplus
//}
//#endif

#endif
