#ifndef MPLIB1_DAEMON_H #define MPLIB1_DAEMON_H /* ******************************************************************************* * Copyright (c) 1997 Martin Poole * ******************************************************************************* ** ** WARNING !! WARNING !! WARNING !! WARNING !! WARNING !! WARNING !! ** ** Any changes to be made to this file should first be checked with ** mplib1 source control for library integrity. ** ** mplib1 source control can be reached at mplib1@quatermass.co.uk ** * * $Source: /home/cvs/cvsroot/onelan/onelan/src/mplib1/mplib1/daemon.h,v $ * $Author: mpoole $ * $Date: 2002/10/07 09:37:44 $ * $Revision: 1.2 $ * ******************************************************************************* * * Change History * * $Log: daemon.h,v $ * Revision 1.2 2002/10/07 09:37:44 mpoole * Initial checkin of mplib1-3.1.0 * * Revision 1.1 2002/10/07 09:37:00 mpoole * Initial checkin of mplib1-3.1.0 * * ******************************************************************************* */ #ident "$Header: /home/cvs/cvsroot/onelan/onelan/src/mplib1/mplib1/daemon.h,v 1.2 2002/10/07 09:37:44 mpoole Exp $" #ifdef CXREF #include #endif #ifndef MPLIB1_CONFIG #include #endif /* ------------------------------------------------------------------ defines ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ structures ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ function definitions ------------------------------------------------------------------ */ extern int restart_files( void ); extern pid_t leavehome( void ); extern int restart_these_files( const char *in_name, const char *out_name, const char *err_name ); extern int init_signalling( void ); extern int check_signalling( void ); extern int allow_sysint( void ); extern int deny_sysint( void ); extern int mp_daemon_sleep( int how_long ); extern int mp_daemon_loop( int(*poll_func)(int), int(*u1_func)(int), int(*u2_func)(int), int(*int_func)(int), int(*term_func)(int), int flags ); #endif /* -- End of File -- */