bozoerr
bozoerr(httpd, EXIT_FAILURE, "asprintf");
bozoerr(httpd, 1,
bozoerr(httpd, EXIT_FAILURE, "strdup");
bozoerr(httpd, 1, "gethostname");
bozoerr(httpd, 1, "getpwnam(%s): %s", username,
bozoerr(httpd, 1, "initgroups: %s", strerror(errno));
bozoerr(httpd, 1, "setgid(%u): %s", pw->pw_gid,
bozoerr(httpd, 1, "chdir(%s): %s", httpd->rootdir,
bozoerr(httpd, 1, "chroot(%s): %s", httpd->rootdir,
bozoerr(httpd, 1, "setuid(%d): %s", uid, strerror(errno));
void bozoerr(bozohttpd_t *, int, const char *, ...)
bozoerr(httpd, 1,
bozoerr(httpd, 1, "child socketpair failed: %s",
bozoerr(httpd, 1, "child fork failed: %s", strerror(errno));
bozoerr(httpd, 1, "child exec failed: %s: %s",
bozoerr(httpd, 1, "child execve returned?!");
bozoerr(httpd, 1, "io child fork failed: %s", strerror(errno));
bozoerr(httpd, 1, "write failed: %s",
bozoerr(httpd, 1, "out of memory allocating content map");
bozoerr(httpd, 1, "Failed to install pidfile handler");
bozoerr(httpd, 1, "Failed to create pidfile '%s'",
bozoerr(httpd, 1, "getaddrinfo([%s]:%s): %s",
bozoerr(httpd, 1, "could not find any addresses to bind");
bozoerr(httpd, 1, "poll: %s",
bozoerr(httpd, 1, "accept: %s",
bozoerr(httpd, 1, "can't create Lua state");
bozoerr(httpd, 1, "failed to load script %s: %s", script,
bozoerr(httpd, 1, "failed to execute script %s: %s", script,
bozoerr(httpd, 1, "%s failed to start", progname);
bozoerr(&httpd, 1, "Daemon mode not enabled");
bozoerr(&httpd, 1,
bozoerr(&httpd, 1, "CGI not enabled");
bozoerr(&httpd, 1, "CGI not enabled");
bozoerr(&httpd, 1,
bozoerr(&httpd, 1, "Lua support not enabled");
bozoerr(&httpd, 1,
bozoerr(&httpd, 1, "User support not enabled");
bozoerr(&httpd, 1,
bozoerr(&httpd, 1, "ssl support not enabled");
bozoerr(httpd, 1, "SSL_new failed");
bozoerr(httpd, 1, "sslinfo allocation failed");