diff options
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 45 |
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. */ | |||
29 | void support (void); | 29 | void support (void); |
30 | void print_revision (const char *, const char *); | 30 | void print_revision (const char *, const char *); |
31 | 31 | ||
32 | /* Handle timeouts */ | ||
33 | |||
34 | extern unsigned int timeout_state; | ||
35 | extern unsigned int timeout_interval; | ||
36 | |||
37 | RETSIGTYPE timeout_alarm_handler (int); | ||
38 | |||
39 | extern time_t start_time, end_time; | 32 | extern 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)); | |||
89 | void usage5(void) __attribute__((noreturn)); | 82 | void usage5(void) __attribute__((noreturn)); |
90 | void usage_va(const char *fmt, ...) __attribute__((noreturn)); | 83 | void usage_va(const char *fmt, ...) __attribute__((noreturn)); |
91 | 84 | ||
92 | const 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 | ||
97 | char *perfdata (const char *, | 88 | char *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, | 91 | char *fperfdata (const char *, double, const char *, int, double, |
101 | long int, | 92 | int, double, int, double, int, double); |
102 | int, | 93 | |
103 | long int, | 94 | char *sperfdata (const char *, double, const char *, char *, char *, |
104 | int, | 95 | int, double, int, double); |
105 | long int, | 96 | |
106 | int, | 97 | char *sperfdata_int (const char *, int, const char *, char *, char *, |
107 | long int); | 98 | int, int, int, int); |
108 | 99 | ||
109 | char *fperfdata (const char *, | 100 | int 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 |