Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/lib/libc
Geoff Wing <mason%primenet.com.au@localhost> typed:
: Christos Zoulas <christos%netbsd.org@localhost> 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
Home |
Main Index |
Thread Index |
Old Index