1 /* acconfig.h Generated manually for use by autoheader. */
6 /* __NORETURN define - usually a GCC extension. */
9 /* __NORETURN2 define - usually a GCC extension. */
12 /* Turn on debugging to stderr. */
15 /* Disable runtime assertion checks. */
18 /* Provide stub for MAX-function if needed. */
21 #define MAX(a,b) ((a)>(b)?(a):(b))
24 /* Provide stub for MIN-function if needed. */
27 #define MIN(a,b) ((a)<(b)?(a):(b))
30 /* LINE_MAX from <limits.h>, provide default if not defined. */
34 /* CBAUD define, may be missing. */
38 /* CBAUDEX define, may be missing. */
42 /* snprintf(3) unsafe emulation */
45 /* vsnprintf(3) unsafe emulation */
48 /* printf family accepts %m */
49 #undef PRINTF_WORKS_PM
51 /* found lockfile directory */
54 /* how to declare __atribute__ ((__unused__)) */
59 #ifndef DONT_NEED_DECLARATIONS
61 /* Declaration for gethostname(3)? */
62 #undef NEED_DECLARATION_GETHOSTNAME
63 #ifdef NEED_DECLARATION_GETHOSTNAME
65 int gethostname(char *name, size_t len);
68 /* Declaration for kill(2)? */
69 #undef NEED_DECLARATION_KILL
70 #ifdef NEED_DECLARATION_KILL
71 #include <sys/types.h>
73 int kill(pid_t pid, int sig);
76 /* Declaration for snprintf(3)? */
77 #undef NEED_DECLARATION_SNPRINTF
78 #ifdef NEED_DECLARATION_SNPRINTF
80 int snprintf(char *str, size_t n, const char *format, ...);
83 /* Declaration for vsnprintf(3)? */
84 #undef NEED_DECLARATION_VSNPRINTF
85 #ifdef NEED_DECLARATION_VSNPRINTF
88 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
91 /* Declaration for strdup(3)? */
92 #undef NEED_DECLARATION_STRDUP
93 #ifdef NEED_DECLARATION_STRDUP
95 char *strdup(const char *s);
98 /* Declaration for usleep(3)? */
99 #undef NEED_DECLARATION_USLEEP
100 #ifdef NEED_DECLARATION_USLEEP
102 void usleep(unsigned long usec);
105 /* Declaration for strcasecmp(3)? */
106 #undef NEED_DECLARATION_STRCASECMP
107 #ifdef NEED_DECLARATION_STRCASECMP
109 int strcasecmp(const char *s1, const char *s2);
112 /* Declaration for siginterrupt(3)? */
113 #undef NEED_DECLARATION_SIGINTERRUPT
114 #ifdef NEED_DECLARATION_SIGINTERRUPT
116 int siginterrupt(int sig, int flag);
119 #endif /* !DONT_NEED_DECLARATIONS */
121 /* snprintf(3) unsafe emulation */
123 #define VARPRINTF(v,f,d) snprintf((v),sizeof((v)),f,(d) )
124 #define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2))
126 #define VARPRINTF(v,f,d) sprintf((v),f,(d) )
127 #define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2))
130 /* vsnprintf(3) unsafe emulation */
131 #ifdef HAVE_VSNPRINTF
132 #define VARVPRINTF(v,f,d) vsnprintf((v),sizeof((v)),f,(d) )
133 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
135 #define VARVPRINTF(v,f,d) vsprintf((v),f,(d) )
136 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))