Imported Upstream version 2.7.1

This commit is contained in:
Laurent Bigonville 2013-11-24 16:00:12 +01:00
parent a1fa151fc7
commit 0121794af9
451 changed files with 41339 additions and 10887 deletions

View file

@ -44,6 +44,12 @@
#include "attribute.h"
#include "proto.h"
#ifdef __cplusplus
/* *INDENT-OFF* */
extern "C" {
/* *INDENT-ON* */
#endif
extern const char *UPS_VERSION;
/* get the syslog ready for us */
@ -97,6 +103,7 @@ void upsdebug_with_errno(int level, const char *fmt, ...)
void upsdebugx(int level, const char *fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
void upsdebug_hex(int level, const char *msg, const void *buf, int len);
void upsdebug_ascii(int level, const char *msg, const void *buf, int len);
void fatal_with_errno(int status, const char *fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3))) __attribute__((noreturn));
@ -144,4 +151,10 @@ extern int optind;
# define setegid(x) setresgid(-1,x,-1) /* Works for HP-UX 10.20 */
#endif
#ifdef __cplusplus
/* *INDENT-OFF* */
}
/* *INDENT-ON* */
#endif
#endif /* NUT_COMMON_H */