1 /* -*- c-basic-offset: 8; -*- */
5 #include "config.h" /* configuration options for current OS */
7 #ifdef HAVE_SYS_TYPES_H
11 #include <sys/socket.h>
13 #ifndef HAVE_ADDRINFO_STRUCT
17 /* Older resolvers do not have gethostbyname2() */
18 #ifndef HAVE_GETHOSTBYNAME2
19 #define gethostbyname2(host,family) gethostbyname((host))
22 /* This avoids a warning with glibc compilation */
28 /* Miscellaneous constants */
29 #define MAXLINE 4096 /* max text line length */
30 #define MAXSOCKADDR 128 /* max socket address structure size */
31 #define BUFFSIZE 8192 /* buffer size for reads and writes */
33 /* stdin and stdout file descriptors */
34 #define STDIN_FILENO 0
35 #define STDOUT_FILENO 1
37 #define min(a,b) ((a) < (b) ? (a) : (b))
38 #define max(a,b) ((a) > (b) ? (a) : (b))