summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/log.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* From a syslog perspective it does not make sense to log fatal andbluhm2017-03-211-6/+6
| | | | | | warn with the same severity. Switch log_warn() to LOG_ERR and keep fatal() at LOG_CRIT. OK reyk@ florian@
* Stop accessing verbose and debug variables from log.c directly.reyk2017-01-091-5/+12
| | | | | | | | This replaces log_verbose() and "extern int verbose" with the two functions log_setverbose() and log_getverbose(). Pointed out by benno@ OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
* Sync log.c with the latest version from vmd/log.c that preserves errnoreyk2017-01-081-9/+11
| | | | so it is safe calling log_* after an error without loosing the it.
* copy updated log.c from vmd: for correctness, save errno when doingreyk2016-10-121-8/+11
| | | | additional actions before printing it. OK rzalamena@
* sync with vmdreyk2015-12-071-3/+3
|
* Update log.c: change fatal() and fatalx() into variadic functions,reyk2015-11-221-19/+52
| | | | | | | include the process name, and replace all calls of fatal*(NULL) with fatal(__func__) for better debugging. OK benno@
* Once again, fix the license text. After many years, we just cannotreyk2015-11-211-4/+4
| | | | | | | | | get rid of the "LOSS OF MIND" joke. Haha. We keep on removing it and it shows up again because it accidentally gets synced from somewhere else. bgpd and ospfd don't have it anymore, but their offsprings still carry it. If you see it, remove it, and, in the OpenBSD ISC case, use the original text from /usr/share/misc/license.template. All authors agree.
* Move local logging functions into httpd.c, and sync log.c with relayd -reyk2015-11-211-88/+18
| | | | both daemons are now sharing the same file. No functional changes.
* Change httpd(8) to use C99-style fixed-width integers (uintN_t insteadreyk2015-08-201-4/+5
| | | | | | | | | | | | | | | | of u_intN_t) and replace u_int with unsigned int. Mixing both variants is a bad style and most contributors seem to prefer this style; it also helps us to get used to it, portability, and standardization. Theoretically no binary change, except one in practice: httpd.o has a different checksum because gcc with -O2 pads/optimizes "struct privsep" differently when using "unsigned int" instead "u_int" for the affected members. "u_int" is just a typedef of "unsigned int", -O0 doesn't build the difference and clang with -O2 doesn't do it either - it is just another curiosity from gcc-land. OK semarie@
* httpd is based on relayd and had included many headers that are onlyreyk2015-01-211-8/+3
| | | | | | | | | needed by its ancestor. jsg@, include-what-you-use, and some manual review helped to cleanup the headers (take iwyu with a grain of salt). Based on common practice, httpd.h now also includes the necessary headers for itself. OK florian@
* Stop pulling in <arpa/inet.h> or <arpa/nameser.h> when unnecessary.guenther2014-12-211-2/+1
| | | | | | *Do* pull it in when in_{port,addr}_h is needed and <netinet/in.h> isn't. ok reyk@
* Remove unnecessary netinet/in_systm.h include.lteo2014-10-251-2/+1
| | | | ok millert@
* httpd doesn't support SSL/TLS yet, remove the remaining bits.reyk2014-08-041-3/+1
| | | | The secrect plan is to add it later using the ressl wrapper library.
* Add httpd(8), an attempt to turn the relayd(8) codebase into a simplereyk2014-07-121-0/+251
web server. It is not finished yet and I just started it today, but the goal is to provide an HTTP server that a) provides minimal features, b) serves static files, c) provides FastCGI support, and d) follows common coding practices of OpenBSD. It will neither support plugins, nor custom memory allocators, EBCDIC support, PCRE or any other things that can be found elsewhere. httpd(8) is not intended to provide a fully-featured replacement for nginx(8) or the Apache, but it will provide enough functionality that is needed in the OpenBSD base system. ok deraadt@