From 686761dbbce7cc1bcf150ce26b1c3f0eed7d17c6 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Fri, 17 Feb 2017 11:41:41 +0000 Subject: [PATCH] syslogd(8): drop some MINIX-specific changes Change-Id: Ic286b89975eeea1abf0d5086ee13dfb9ab57d8ba --- usr.sbin/syslogd/Makefile | 2 -- usr.sbin/syslogd/syslogd.c | 12 ------------ usr.sbin/syslogd/syslogd.h | 2 -- 3 files changed, 16 deletions(-) diff --git a/usr.sbin/syslogd/Makefile b/usr.sbin/syslogd/Makefile index 88a21a75e..b819f74fb 100644 --- a/usr.sbin/syslogd/Makefile +++ b/usr.sbin/syslogd/Makefile @@ -19,7 +19,6 @@ SYMLINKS= /var/run/log /dev/log .PATH.c: ${NETBSDSRCDIR}/usr.bin/who CPPFLAGS+=-I${NETBSDSRCDIR}/usr.bin/who -DSUPPORT_UTMPX -DSUPPORT_UTMP -Wredundant-decls -.if !defined(__MINIX) .if (${USE_INET6} != "no") CPPFLAGS+=-DINET6 .endif @@ -27,7 +26,6 @@ CPPFLAGS+=-DINET6 CPPFLAGS+=-DLIBWRAP LDADD+= -lwrap DPADD+= ${LIBWRAP} -.endif # !defined(__MINIX) .if ${MKCRYPTO} != "no" LDADD+= -lssl -lcrypto diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index eae28cac0..f04f624fe 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1808,26 +1808,14 @@ void logmsg(struct buf_msg *buffer) { struct filed *f; -#ifndef __minix int fac, omask, prilev; -#else /* __minix */ - int fac, prilev; - sigset_t omask; -#endif /* __minix */ DPRINTF((D_CALL|D_BUFFER), "logmsg: buffer@%p, pri 0%o/%d, flags 0x%x," " timestamp \"%s\", from \"%s\", sd \"%s\", msg \"%s\"\n", buffer, buffer->pri, buffer->pri, buffer->flags, buffer->timestamp, buffer->recvhost, buffer->sd, buffer->msg); -#ifndef __minix omask = sigblock(sigmask(SIGHUP)|sigmask(SIGALRM)); -#else /* __minix */ - sigemptyset(&omask); - sigaddset(&omask, SIGHUP); - sigaddset(&omask, SIGALRM); -#define sigsetmask(s) (sigprocmask(SIG_SETMASK, &s, NULL)) -#endif /* __minix */ /* sanity check */ assert(buffer->refcount == 1); diff --git a/usr.sbin/syslogd/syslogd.h b/usr.sbin/syslogd/syslogd.h index 968006a87..1d6d29e31 100644 --- a/usr.sbin/syslogd/syslogd.h +++ b/usr.sbin/syslogd/syslogd.h @@ -125,11 +125,9 @@ extern int dehumanize_number(const char *str, int64_t *size); char *strndup(const char *str, size_t n); #endif /* !HAVE_STRNDUP */ -#if !defined(__minix) #ifdef LIBWRAP #include #endif -#endif /* !defined(__minix) */ #define FDMASK(fd) (1 << (fd)) -- 2.44.0