Subject: Re: CVS commit: src/lib/libc
To: None <source-changes@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: source-changes
Date: 10/26/2006 04:10:25
Geoff Wing <mason@primenet.com.au> typed:
: Christos Zoulas <christos@netbsd.org> typed:
:: Module Name: src
:: Committed By: christos
:: Date: Wed Oct 25 23:49:31 UTC 2006
:: Modified Files:
:: src/lib/libc: shlib_version
:: src/lib/libc/gen: Makefile.inc syslog.3 syslog.c
:: src/lib/libc/include: namespace.h
:: Log Message:
:: add _r functions for syslog from OpenBSD
: Did you forget to commit sys/sys/syslog.h with struct syslog_data,
: SYSLOG_DATA_INIT, and prototype updates?
Also:
--- src/usr.sbin/pf/compat_openbsd.h.org 2005-03-16 17:33:49.000000000 +1100
+++ src/usr.sbin/pf/compat_openbsd.h 2006-10-26 14:08:39.000000000 +1000
@@ -39,29 +39,6 @@
#include <stdarg.h>
#include <syslog.h>
-#define openlog_r(ident, logopt, fac, data) /* nothing */
-
-struct syslog_data {
-#if !defined(__GNUC__)
- /* empty structure is gcc extension */
- char dummy;
-#endif
-};
-#define SYSLOG_DATA_INIT {}
-
-static __inline void syslog_r(int pri, struct syslog_data *data,
- const char *fmt, ...) __unused;
-
-static __inline void
-syslog_r(int pri, struct syslog_data *data, const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
- vsyslog(pri, fmt, ap);
- va_end(ap);
-}
-
/*
* sys/queue.h
*/
Regards,
Geoff