-/* $OpenBSD: config.c,v 1.31 2015/01/19 21:07:33 reyk Exp $ */
+/* $OpenBSD: config.c,v 1.32 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2011 - 2015 Reyk Floeter <reyk@openbsd.org>
*/
#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
#include <sys/queue.h>
+#include <sys/tree.h>
+#include <sys/time.h>
#include <sys/uio.h>
-#include <net/if.h>
-#include <netinet/in.h>
-#include <net/route.h>
-
-#include <ctype.h>
#include <unistd.h>
-#include <err.h>
-#include <errno.h>
-#include <event.h>
-#include <limits.h>
-#include <stdint.h>
#include <stdlib.h>
-#include <stdarg.h>
#include <stdio.h>
-#include <netdb.h>
#include <string.h>
-#include <ifaddrs.h>
+#include <imsg.h>
#include "httpd.h"
-/* $OpenBSD: control.c,v 1.5 2014/12/21 00:54:49 guenther Exp $ */
+/* $OpenBSD: control.c,v 1.6 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <sys/queue.h>
#include <sys/stat.h>
#include <sys/socket.h>
+#include <sys/time.h>
#include <sys/un.h>
-#include <net/if.h>
-#include <arpa/inet.h>
-
#include <errno.h>
#include <event.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <signal.h>
+#include <imsg.h>
#include "httpd.h"
-/* $OpenBSD: httpd.c,v 1.30 2015/01/19 19:37:50 reyk Exp $ */
+/* $OpenBSD: httpd.c,v 1.31 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/resource.h>
-#include <sys/signal.h>
-#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#include <fcntl.h>
+#include <stdarg.h>
+#include <string.h>
+#include <signal.h>
#include <getopt.h>
#include <fnmatch.h>
#include <err.h>
-/* $OpenBSD: httpd.h,v 1.71 2015/01/19 20:00:07 florian Exp $ */
+/* $OpenBSD: httpd.h,v 1.72 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
#ifndef _HTTPD_H
#define _HTTPD_H
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/queue.h>
#include <sys/tree.h>
+#include <sys/time.h>
+#include <sys/cdefs.h>
+#include <net/if.h>
+
+#include <stdarg.h>
#include <limits.h>
+#include <event.h>
#include <imsg.h>
#include <tls.h>
-/* $OpenBSD: log.c,v 1.4 2014/12/21 00:54:49 guenther Exp $ */
+/* $OpenBSD: log.c,v 1.5 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
*/
#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/socket.h>
-#include <sys/tree.h>
-
-#include <net/if.h>
-#include <netinet/in.h>
-#include <netinet/ip.h>
+#include <sys/time.h>
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#include <event.h>
+#include <time.h>
#include <netdb.h>
#include <ctype.h>
-/* $OpenBSD: logger.c,v 1.9 2015/01/16 06:40:17 deraadt Exp $ */
+/* $OpenBSD: logger.c,v 1.10 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
#include <sys/param.h> /* nitems */
#include <sys/types.h>
-#include <sys/socket.h>
#include <sys/queue.h>
#include <sys/uio.h>
-#include <net/if.h>
-#include <arpa/inet.h>
-
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
-#include <event.h>
+#include <imsg.h>
#include "httpd.h"
-/* $OpenBSD: parse.y,v 1.57 2015/01/19 21:07:33 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.58 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2007 - 2015 Reyk Floeter <reyk@openbsd.org>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/queue.h>
+#include <sys/tree.h>
#include <sys/ioctl.h>
+#include <sys/sockio.h>
+#include <sys/time.h>
#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <net/route.h>
#include <ctype.h>
#include <unistd.h>
#include <err.h>
#include <errno.h>
-#include <event.h>
#include <limits.h>
#include <stdint.h>
#include <stdarg.h>
-/* $OpenBSD: proc.c,v 1.7 2014/12/21 00:54:49 guenther Exp $ */
+/* $OpenBSD: proc.c,v 1.8 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
#include <sys/queue.h>
#include <sys/socket.h>
#include <sys/wait.h>
-#include <sys/tree.h>
-
-#include <net/if.h>
-#include <netinet/in.h>
-#include <netinet/ip.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <pwd.h>
#include <event.h>
+#include <imsg.h>
#include "httpd.h"
-/* $OpenBSD: server.c,v 1.53 2015/01/19 19:37:50 reyk Exp $ */
+/* $OpenBSD: server.c,v 1.54 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/socket.h>
-#include <sys/un.h>
#include <sys/uio.h>
#include <sys/tree.h>
-#include <net/if.h>
#include <netinet/in.h>
-#include <netinet/ip.h>
#include <netinet/tcp.h>
+#include <arpa/inet.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <limits.h>
#include <errno.h>
#include <fcntl.h>
-#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
-#include <stdio.h>
-#include <err.h>
-#include <pwd.h>
#include <event.h>
-#include <fnmatch.h>
+#include <imsg.h>
#include <tls.h>
#include "httpd.h"
-/* $OpenBSD: server_fcgi.c,v 1.49 2015/01/19 20:00:07 florian Exp $ */
+/* $OpenBSD: server_fcgi.c,v 1.50 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2014 Florian Obser <florian@openbsd.org>
*/
#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/time.h>
-#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <sys/tree.h>
+#include <sys/cdefs.h>
-#include <net/if.h>
#include <netinet/in.h>
-#include <netinet/ip.h>
-#include <netinet/tcp.h>
+#include <arpa/inet.h>
+#include <limits.h>
#include <errno.h>
-#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <stdio.h>
+#include <time.h>
#include <ctype.h>
-#include <err.h>
#include <event.h>
#include "httpd.h"
-/* $OpenBSD: server_file.c,v 1.47 2015/01/16 06:40:17 deraadt Exp $ */
+/* $OpenBSD: server_file.c,v 1.48 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
*/
#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/time.h>
#include <sys/stat.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <sys/tree.h>
-
-#include <net/if.h>
-#include <netinet/in.h>
-#include <netinet/ip.h>
-#include <netinet/tcp.h>
+#include <limits.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <dirent.h>
#include <time.h>
-#include <err.h>
#include <event.h>
#include "httpd.h"
-/* $OpenBSD: server_http.c,v 1.68 2015/01/19 20:01:02 florian Exp $ */
+/* $OpenBSD: server_http.c,v 1.69 2015/01/21 22:21:05 reyk Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
#include <sys/types.h>
#include <sys/queue.h>
-#include <sys/time.h>
-#include <sys/stat.h>
#include <sys/socket.h>
-#include <sys/un.h>
#include <sys/tree.h>
-#include <net/if.h>
#include <netinet/in.h>
-#include <netinet/ip.h>
-#include <netinet/tcp.h>
+#include <arpa/inet.h>
#include <errno.h>
-#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <stdio.h>
-#include <err.h>
-#include <pwd.h>
+#include <time.h>
#include <resolv.h>
-#include <syslog.h>
#include <event.h>
#include <fnmatch.h>