summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h45
1 files changed, 13 insertions, 32 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 4c4aaccc..33a20547 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -29,13 +29,6 @@ suite of plugins. */
29void support (void); 29void support (void);
30void print_revision (const char *, const char *); 30void print_revision (const char *, const char *);
31 31
32/* Handle timeouts */
33
34extern unsigned int timeout_state;
35extern unsigned int timeout_interval;
36
37RETSIGTYPE timeout_alarm_handler (int);
38
39extern time_t start_time, end_time; 32extern time_t start_time, end_time;
40 33
41/* Test input types */ 34/* Test input types */
@@ -89,34 +82,22 @@ void usage4(const char *) __attribute__((noreturn));
89void usage5(void) __attribute__((noreturn)); 82void usage5(void) __attribute__((noreturn));
90void usage_va(const char *fmt, ...) __attribute__((noreturn)); 83void usage_va(const char *fmt, ...) __attribute__((noreturn));
91 84
92const char *state_text (int);
93
94#define max(a,b) (((a)>(b))?(a):(b)) 85#define max(a,b) (((a)>(b))?(a):(b))
95#define min(a,b) (((a)<(b))?(a):(b)) 86#define min(a,b) (((a)<(b))?(a):(b))
96 87
97char *perfdata (const char *, 88char *perfdata (const char *, long int, const char *, int, long int,
98 long int, 89 int, long int, int, long int, int, long int);
99 const char *, 90
100 int, 91char *fperfdata (const char *, double, const char *, int, double,
101 long int, 92 int, double, int, double, int, double);
102 int, 93
103 long int, 94char *sperfdata (const char *, double, const char *, char *, char *,
104 int, 95 int, double, int, double);
105 long int, 96
106 int, 97char *sperfdata_int (const char *, int, const char *, char *, char *,
107 long int); 98 int, int, int, int);
108 99
109char *fperfdata (const char *, 100int open_max (void);
110 double,
111 const char *,
112 int,
113 double,
114 int,
115 double,
116 int,
117 double,
118 int,
119 double);
120 101
121/* The idea here is that, although not every plugin will use all of these, 102/* The idea here is that, although not every plugin will use all of these,
122 most will or should. Therefore, for consistency, these very common 103 most will or should. Therefore, for consistency, these very common