diff options
author | Ton Voon <ton.voon@opsera.com> | 2010-06-17 09:16:43 (GMT) |
---|---|---|
committer | tonvoon <ton.voon@opsera.com> | 2010-06-23 13:30:34 (GMT) |
commit | 18f6835edaf7d640a2c9e476cb1babdbdadbfd9b (patch) | |
tree | ae11f40e48dc34658445c99012726f32bfb45c56 /gl/netdb.in.h | |
parent | f61412478ceb7c821793c8356b936f64066508bf (diff) | |
download | monitoring-plugins-18f6835edaf7d640a2c9e476cb1babdbdadbfd9b.tar.gz |
Added state retention APIs. Implemented for check_snmp with --rate option.
See http://nagiosplugin.org/c-api-private for more details on the API.
Also updated check_snmp -l option to change the perfdata label.
Diffstat (limited to 'gl/netdb.in.h')
-rw-r--r-- | gl/netdb.in.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/gl/netdb.in.h b/gl/netdb.in.h index 73db46a..f800cac 100644 --- a/gl/netdb.in.h +++ b/gl/netdb.in.h | |||
@@ -41,6 +41,8 @@ | |||
41 | 41 | ||
42 | /* The definition of _GL_ARG_NONNULL is copied here. */ | 42 | /* The definition of _GL_ARG_NONNULL is copied here. */ |
43 | 43 | ||
44 | /* The definition of _GL_WARN_ON_USE is copied here. */ | ||
45 | |||
44 | /* Declarations for a platform that lacks <netdb.h>, or where it is | 46 | /* Declarations for a platform that lacks <netdb.h>, or where it is |
45 | incomplete. */ | 47 | incomplete. */ |
46 | 48 | ||
@@ -186,7 +188,33 @@ extern int getnameinfo (const struct sockaddr *restrict sa, socklen_t salen, | |||
186 | # define NI_NUMERICSERV 2 | 188 | # define NI_NUMERICSERV 2 |
187 | # endif | 189 | # endif |
188 | 190 | ||
189 | #endif /* @GNULIB_GETADDRINFO@ */ | 191 | #elif defined GNULIB_POSIXCHECK |
192 | |||
193 | # undef getaddrinfo | ||
194 | # if HAVE_RAW_DECL_GETADDRINFO | ||
195 | _GL_WARN_ON_USE (getaddrinfo, "getaddrinfo is unportable - " | ||
196 | "use gnulib module getaddrinfo for portability"); | ||
197 | # endif | ||
198 | |||
199 | # undef freeaddrinfo | ||
200 | # if HAVE_RAW_DECL_FREEADDRINFO | ||
201 | _GL_WARN_ON_USE (freeaddrinfo, "freeaddrinfo is unportable - " | ||
202 | "use gnulib module getaddrinfo for portability"); | ||
203 | # endif | ||
204 | |||
205 | # undef gai_strerror | ||
206 | # if HAVE_RAW_DECL_GAI_STRERROR | ||
207 | _GL_WARN_ON_USE (gai_strerror, "gai_strerror is unportable - " | ||
208 | "use gnulib module getaddrinfo for portability"); | ||
209 | # endif | ||
210 | |||
211 | # undef getnameinfo | ||
212 | # if HAVE_RAW_DECL_GETNAMEINFO | ||
213 | _GL_WARN_ON_USE (getnameinfo, "getnameinfo is unportable - " | ||
214 | "use gnulib module getaddrinfo for portability"); | ||
215 | # endif | ||
216 | |||
217 | #endif | ||
190 | 218 | ||
191 | #endif /* _GL_NETDB_H */ | 219 | #endif /* _GL_NETDB_H */ |
192 | #endif /* _GL_NETDB_H */ | 220 | #endif /* _GL_NETDB_H */ |