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 /* found lockfile directory */
51 /* how to declare __atribute__ ((__unused__)) */
54 /* whether they have __atttribute__ ((format(printf,...))) */
55 #undef HAVE_PRINTFORMAT
56 #ifdef HAVE_PRINTFORMAT
57 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
59 #define ATTR_PRINTFORMAT(a,b)
64 #ifndef DONT_NEED_DECLARATIONS
66 /* Declaration for gethostname(3)? */
67 #undef NEED_DECLARATION_GETHOSTNAME
68 #ifdef NEED_DECLARATION_GETHOSTNAME
70 int gethostname(char *name, size_t len);
73 /* Declaration for kill(2)? */
74 #undef NEED_DECLARATION_KILL
75 #ifdef NEED_DECLARATION_KILL
76 #include <sys/types.h>
78 int kill(pid_t pid, int sig);
81 /* Declaration for snprintf(3)? */
82 #undef NEED_DECLARATION_SNPRINTF
83 #ifdef NEED_DECLARATION_SNPRINTF
85 int snprintf(char *str, size_t n, const char *format, ...);
88 /* Declaration for vsnprintf(3)? */
89 #undef NEED_DECLARATION_VSNPRINTF
90 #ifdef NEED_DECLARATION_VSNPRINTF
93 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
96 /* Declaration for strdup(3)? */
97 #undef NEED_DECLARATION_STRDUP
98 #ifdef NEED_DECLARATION_STRDUP
100 char *strdup(const char *s);
103 /* Declaration for usleep(3)? */
104 #undef NEED_DECLARATION_USLEEP
105 #ifdef NEED_DECLARATION_USLEEP
107 void usleep(unsigned long usec);
110 /* Declaration for strcasecmp(3)? */
111 #undef NEED_DECLARATION_STRCASECMP
112 #ifdef NEED_DECLARATION_STRCASECMP
114 int strcasecmp(const char *s1, const char *s2);
117 /* Declaration for siginterrupt(3)? */
118 #undef NEED_DECLARATION_SIGINTERRUPT
119 #ifdef NEED_DECLARATION_SIGINTERRUPT
121 int siginterrupt(int sig, int flag);
124 #endif /* !DONT_NEED_DECLARATIONS */
126 /* snprintf(3) unsafe emulation */
128 #define VARPRINTF(v,f,d) snprintf((v),sizeof((v)),f,(d) )
129 #define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2))
131 #define VARPRINTF(v,f,d) sprintf((v),f,(d) )
132 #define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2))
135 /* vsnprintf(3) unsafe emulation */
136 #ifdef HAVE_VSNPRINTF
137 #define VARVPRINTF(v,f,d) vsnprintf((v),sizeof((v)),f,(d) )
138 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
140 #define VARVPRINTF(v,f,d) vsprintf((v),f,(d) )
141 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))