/[monit]/monit/monitor.h
ViewVC logotype

Diff of /monit/monitor.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by martinp, Thu Oct 31 11:41:31 2002 UTC revision 1.23 by hauk, Fri Nov 1 09:43:26 2002 UTC
# Line 34  Line 34 
34  #include <signal.h>  #include <signal.h>
35  #include <pthread.h>  #include <pthread.h>
36  #include <stdarg.h>  #include <stdarg.h>
37    #include <stdlib.h>
38    
39  #include "ssl.h"  #include "ssl.h"
40    
# Line 68  Line 69 
69  #define MAXIMUM(x,y)       ((x) > (y) ? (x) : (y))  #define MAXIMUM(x,y)       ((x) > (y) ? (x) : (y))
70  #define is(a,b)            ((a&&b)?!strcasecmp(a, b):0)  #define is(a,b)            ((a&&b)?!strcasecmp(a, b):0)
71    
72    
73  /** Replace the standard signal function with a more reliable using sigaction.*/  /** Replace the standard signal function with a more reliable using sigaction.*/
74  typedef void Sigfunc(int);  typedef void Sigfunc(int);
75  Sigfunc *signal(int signo, Sigfunc * func);  Sigfunc *signal(int signo, Sigfunc * func);
# Line 86  Sigfunc *signal(int signo, Sigfunc * fun Line 88  Sigfunc *signal(int signo, Sigfunc * fun
88    
89  #define NEW(p) (xcalloc(1, (long)sizeof *(p)))  #define NEW(p) (xcalloc(1, (long)sizeof *(p)))
90    
91    /** ------------------------------------------ Simple Assert Exception macro */
92    
93    #define ASSERT(e) if(e) { error("AssertException: at %s:%d\naborting..\n", \
94        __FILE__, __LINE__); abort(); }
95    
96    /* --------------------------------------------------------- Data structures */
97    
98  /** Defines data for application runtime */  /** Defines data for application runtime */
99  struct myrun {  struct myrun {

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26