]> Zhao Yanbai Git Server - minix.git/commitdiff
syslogd(8): drop some MINIX-specific changes 75/3475/1
authorDavid van Moolenbroek <david@minix3.org>
Fri, 17 Feb 2017 11:41:41 +0000 (11:41 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 21 Mar 2017 22:00:37 +0000 (22:00 +0000)
Change-Id: Ic286b89975eeea1abf0d5086ee13dfb9ab57d8ba

usr.sbin/syslogd/Makefile
usr.sbin/syslogd/syslogd.c
usr.sbin/syslogd/syslogd.h

index 88a21a75e9fd90dc7081df4bb8db355cdc2685ce..b819f74fb180df4f5b2784089e8bbcb393fa7bb3 100644 (file)
@@ -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
index eae28cac0d457b6cc0adf21bc1477b43a634088b..f04f624fe229d09b3c5b1ba5cef1ed00b64baf6d 100644 (file)
@@ -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);
index 968006a8710e035c8e472b4a085d2c00c8677d34..1d6d29e315073ad9f07052475547f79eb89bcb7b 100644 (file)
@@ -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 <tcpd.h>
 #endif
-#endif /* !defined(__minix) */
 
 #define FDMASK(fd)     (1 << (fd))