reyk
138484b6d2
copy updated log.c from vmd: for correctness, save errno when doing
additional actions before printing it. OK rzalamena@
8 years ago
reyk
97252e04ad
Switch and sync to the log.c variant from httpd/relayd/iked/snmpd/vmd.
OK bcook@ jung@
9 years ago
reyk
b8496badea
Move log_sockaddr() to from log.c to util.c as it is a local addition
and actually not a "logging" function. No functional change.
9 years ago
bcook
2c934bd111
log as LOG_DAEMON in log_init again.
I mirrored from smtpd a little too literally.
10 years ago
bcook
e69bd15d31
sync log.c from smtpd.
Reduces the number of log.c snowflakes by a little, and gives ntpd a
variadic fatal() function to be used later.
ok deraadt@
10 years ago
bluhm
0f1121e6f9
Convert the logic in yyerror(). Instead of creating a temporary
format string, create a temporary message.
OK claudio@
10 years ago
ckuethe
05c8b9ebe9
Allow ntpd to log sensor offsets and adjtime calls to syslog at LOG_DEBUG
priority.
ok gwk, mbalmer, weingart
"explicit non-ok from" henning
17 years ago
henning
b7d0279fa2
zap includes, Alexander von Gernler <grunk@pestilenz.org>
20 years ago
dtucker
4b7b3363bd
Replace errx with equivalent fprintf+exit to make porting easier; ok henning@
21 years ago
dtucker
e8355e306b
Use SA_LEN(sa) instead of sa->sa_len; ok henning@
21 years ago
henning
be71ed5f08
make log_debug() only log anything at all when we are in debug mode
before, it would log with LOG_DEBUG to syslog when !debug
21 years ago
henning
e473e31441
provide log_sockaddr, from bgpd
21 years ago
henning
13d1c0852b
tzset(); noticed by theo
21 years ago
henning
4ad0cde98b
initial cut at ntpd.
it is just capable of answering (s)ntp4 requests with the local time
for now.
imsg/buffer and logging framework from bgpd, ntp protocol hackery
with Alexander Guy
21 years ago