#define BUFFER_SIZE 4096
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/mman.h>
-#include <fcntl.h>
-#include <unistd.h>
#include <err.h>
+#include <fcntl.h>
+#include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include <sysexits.h>
+#include <unistd.h>
static void write_all(int fd, const void *buf, size_t count) {
const char* cbuf = buf;