diff options
| author | joerg <joerg@NetBSD.org> | 2011-07-17 20:54:30 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2011-07-17 20:54:30 +0000 |
| commit | 9f2c6cd595b50ba277a217ee608a101d3d113d35 (patch) | |
| tree | 48bfa748b8ec36787ffe9f9263fe65c2e1f9d796 /lib/libc/include | |
| parent | f5afb0db64b387453210f49892276268e8002bea (diff) | |
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
Diffstat (limited to 'lib/libc/include')
| -rw-r--r-- | lib/libc/include/extern.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/include/extern.h b/lib/libc/include/extern.h index 5bd012aa73d..7ad3e9118ee 100644 --- a/lib/libc/include/extern.h +++ b/lib/libc/include/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.17 2009/10/21 01:07:45 snj Exp $ */ +/* $NetBSD: extern.h,v 1.18 2011/07/17 20:54:34 joerg Exp $ */ /* * Copyright (c) 1997 Christos Zoulas. All rights reserved. @@ -24,6 +24,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <stdarg.h> + __BEGIN_DECLS extern char *__minbrk; int __getcwd(char *, size_t); @@ -49,18 +51,18 @@ char *__ldtoa(long double *, int, int, int *, int *, char **); struct syslog_data; void syslog_ss(int, struct syslog_data *, const char *, ...) __attribute__((__format__(__printf__,3,4))); -void vsyslog_ss(int, struct syslog_data *, const char *, _BSD_VA_LIST_); -void vsyslog_ss(int, struct syslog_data *, const char *, _BSD_VA_LIST_) +void vsyslog_ss(int, struct syslog_data *, const char *, va_list); +void vsyslog_ss(int, struct syslog_data *, const char *, va_list) __attribute__((__format__(__printf__,3,0))); void syslogp_ss(int, struct syslog_data *, const char *, const char *, const char *, ...) __attribute__((__format__(__printf__,5,0))); void vsyslogp_ss(int, struct syslog_data *, const char *, const char *, - const char *, _BSD_VA_LIST_) __attribute__((__format__(__printf__,5,0))); + const char *, va_list) __attribute__((__format__(__printf__,5,0))); int snprintf_ss(char * __restrict, size_t, const char * __restrict, ...) __attribute__((__format__(__printf__, 3, 4))); int vsnprintf_ss(char * __restrict, size_t, const char * __restrict, - _BSD_VA_LIST_) __attribute__((__format__(__printf__, 3, 0))); + va_list) __attribute__((__format__(__printf__, 3, 0))); void _malloc_prefork(void); void _malloc_postfork(void); |
