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 /* FD_SETSIZE define, may be missing. */
43 #undef HAVE_FD_SETSIZE
45 /* offsetof() define, may be missing. */
48 /* snprintf(3) unsafe emulation */
51 /* vsnprintf(3) unsafe emulation */
54 /* found lockfile directory */
57 /* how to declare __atribute__ ((__unused__)) */
60 /* whether they have __atttribute__ ((format(printf,...))) */
61 #undef HAVE_PRINTFORMAT
62 #ifdef HAVE_PRINTFORMAT
63 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
65 #define ATTR_PRINTFORMAT(a,b)
70 #ifndef DONT_NEED_DECLARATIONS
72 /* Declaration for gethostname(3)? */
73 #undef NEED_DECLARATION_GETHOSTNAME
74 #ifdef NEED_DECLARATION_GETHOSTNAME
76 int gethostname(char *name, size_t len);
79 /* Declaration for kill(2)? */
80 #undef NEED_DECLARATION_KILL
81 #ifdef NEED_DECLARATION_KILL
82 #include <sys/types.h>
84 int kill(pid_t pid, int sig);
87 /* Declaration for snprintf(3)? */
88 #undef NEED_DECLARATION_SNPRINTF
89 #ifdef NEED_DECLARATION_SNPRINTF
91 int snprintf(char *str, size_t n, const char *format, ...);
94 /* Declaration for vsnprintf(3)? */
95 #undef NEED_DECLARATION_VSNPRINTF
96 #ifdef NEED_DECLARATION_VSNPRINTF
99 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
102 /* Declaration for strdup(3)? */
103 #undef NEED_DECLARATION_STRDUP
104 #ifdef NEED_DECLARATION_STRDUP
106 char *strdup(const char *s);
109 /* Declaration for usleep(3)? */
110 #undef NEED_DECLARATION_USLEEP
111 #ifdef NEED_DECLARATION_USLEEP
113 void usleep(unsigned long usec);
116 /* Declaration for strcasecmp(3)? */
117 #undef NEED_DECLARATION_STRCASECMP
118 #ifdef NEED_DECLARATION_STRCASECMP
120 int strcasecmp(const char *s1, const char *s2);
123 /* Declaration for siginterrupt(3)? */
124 #undef NEED_DECLARATION_SIGINTERRUPT
125 #ifdef NEED_DECLARATION_SIGINTERRUPT
127 int siginterrupt(int sig, int flag);
130 /* Declaration for popen(3)? */
131 #undef NEED_DECLARATION_POPEN
132 #ifdef NEED_DECLARATION_POPEN
134 FILE *popen(const char *command, const char *type);
137 /* Declaration for pclose(3)? */
138 #undef NEED_DECLARATION_PCLOSE
139 #ifdef NEED_DECLARATION_PCLOSE
141 int pclose(FILE *stream);
144 #endif /* !DONT_NEED_DECLARATIONS */
146 /* snprintf(3) unsafe emulation */
148 #define VARPRINTF(v,f,d) snprintf((v),sizeof((v)),f,(d) )
149 #define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2) )
150 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
152 #define VARPRINTF(v,f,d) sprintf((v),f,(d) )
153 #define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2) )
154 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
157 /* vsnprintf(3) unsafe emulation */
158 #ifdef HAVE_VSNPRINTF
159 #define VARVPRINTF(v,f,d) vsnprintf((v),sizeof((v)),f,(d) )
160 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
162 #define VARVPRINTF(v,f,d) vsprintf((v),f,(d) )
163 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
166 #ifndef HAVE_STRERROR
167 extern char *sys_errlist[];
168 #define strerror(i) sys_errlist[i]
176 #define strrchr rindex
179 #ifdef HAVE_STRCASECMP
180 #define strtrycasecmp strcasecmp
182 #define strtrycasecmp strcmp
185 #ifndef HAVE_OFFSETOF
186 #define offsetof(a,b) ((size_t)&((a *)0)->b)