*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2,
+ * published by the Free Software Foundation; either version 3,
* or (at your option) any later version.
*
* This is distributed in the hope that it will be useful, but
#include <time.h>
#include <sys/mman.h>
#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <sys/un.h>
+#include <netdb.h>
#include "dlist.h"
extern const char *progname; /* must be defined by main .c file */
extern unsigned char *buf, *wp, *rp;
-extern int used, seeneof;
+extern int used, seeneof, maxselfd;
extern size_t buffersize;
extern fd_set readfds;
extern fd_set writefds;
void wrbufcore_startup(void);
void wrbufcore_prepselect(int rdfd, int wrfd);
void wrbufcore_afterselect(int rdfd, int wrfd);
+void fdsetset(int fd, fd_set *set);
+void wrbuf_report(const char *m);
#endif /*RWBUFFER_H*/