diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-12-14 21:46:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-12-14 21:46:32 +0000 |
commit | 3fce9befb1d4f65739adc427683f5a6357ee102f (patch) | |
tree | bda10871810ec2e3c47c06cfa6e07b88df5efe02 /sys/arch/amd64/include | |
parent | 6ffc06fbc8f7e1d2c6134ab0d4563b6a189b983c (diff) |
convert _FOO_SOURCE -> __FOO_VISIBLE in machine. OK deraadt@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/limits.h | 14 | ||||
-rw-r--r-- | sys/arch/amd64/include/signal.h | 8 | ||||
-rw-r--r-- | sys/arch/amd64/include/stdarg.h | 7 | ||||
-rw-r--r-- | sys/arch/amd64/include/types.h | 4 |
4 files changed, 19 insertions, 14 deletions
diff --git a/sys/arch/amd64/include/limits.h b/sys/arch/amd64/include/limits.h index 6b1fbc21471..3fe15889606 100644 --- a/sys/arch/amd64/include/limits.h +++ b/sys/arch/amd64/include/limits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: limits.h,v 1.2 2005/12/13 00:18:19 jsg Exp $ */ +/* $OpenBSD: limits.h,v 1.3 2005/12/14 21:46:30 millert Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. @@ -34,20 +34,22 @@ #ifndef _MACHINE_LIMITS_H_ #define _MACHINE_LIMITS_H_ +#include <sys/cdefs.h> + #define MB_LEN_MAX 1 /* no multibyte characters */ -#if !defined(_ANSI_SOURCE) +#if __POSIX_VISIBLE || __XPG_VISIBLE #define SIZE_MAX ULONG_MAX /* max value for a size_t */ #define SSIZE_MAX LONG_MAX /* max value for a ssize_t */ +#endif -#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) -#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */ +#if __BSD_VISIBLE +#define SIZE_T_MAX ULONG_MAX /* max value for a size_t (historic) */ #define UQUAD_MAX 0xffffffffffffffffULL /* max unsigned quad */ #define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */ #define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */ -#endif /* !_POSIX_C_SOURCE && !_XOPEN_SOURCE */ -#endif /* !_ANSI_SOURCE */ +#endif /* __BSD_VISIBLE */ #endif /* _MACHINE_LIMITS_H_ */ diff --git a/sys/arch/amd64/include/signal.h b/sys/arch/amd64/include/signal.h index dbd94581ca2..868633c7ed3 100644 --- a/sys/arch/amd64/include/signal.h +++ b/sys/arch/amd64/include/signal.h @@ -1,3 +1,4 @@ +/* $OpenBSD: signal.h,v 1.4 2005/12/14 21:46:30 millert Exp $ */ /* $NetBSD: signal.h,v 1.2 2003/04/28 23:16:17 bjh21 Exp $ */ /* @@ -34,9 +35,11 @@ #ifndef _AMD64_SIGNAL_H_ #define _AMD64_SIGNAL_H_ +#include <sys/cdefs.h> + typedef int sig_atomic_t; -#ifndef _ANSI_SOURCE +#if __BSD_VISIBLE #include <machine/trap.h> /* @@ -80,6 +83,5 @@ struct sigcontext { int sc_mask; }; -#endif /* !_ANSI_SOURCE */ +#endif /* __BSD_VISIBLE */ #endif /* !_AMD64_SIGNAL_H_ */ - diff --git a/sys/arch/amd64/include/stdarg.h b/sys/arch/amd64/include/stdarg.h index dcd0938e07a..370b624166f 100644 --- a/sys/arch/amd64/include/stdarg.h +++ b/sys/arch/amd64/include/stdarg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdarg.h,v 1.2 2005/12/13 00:18:19 jsg Exp $ */ +/* $OpenBSD: stdarg.h,v 1.3 2005/12/14 21:46:30 millert Exp $ */ /* $NetBSD: stdarg.h,v 1.2 2003/04/28 23:16:17 bjh21 Exp $ */ /*- @@ -35,6 +35,7 @@ #ifndef _AMD64_STDARG_H_ #define _AMD64_STDARG_H_ +#include <sys/cdefs.h> #include <machine/ansi.h> typedef _BSD_VA_LIST_ va_list; @@ -44,9 +45,7 @@ typedef _BSD_VA_LIST_ va_list; #define va_end(ap) __builtin_va_end(ap) #define __va_copy(dest, src) __builtin_va_copy((dest), (src)) -#if !defined(_ANSI_SOURCE) && \ - (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \ - defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L) +#if __ISO_C_VISIBLE >= 1999 #define va_copy(dest, src) __va_copy((dest), (src)) #endif diff --git a/sys/arch/amd64/include/types.h b/sys/arch/amd64/include/types.h index a8b529f3fa7..68bb521d2b8 100644 --- a/sys/arch/amd64/include/types.h +++ b/sys/arch/amd64/include/types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: types.h,v 1.8 2005/12/13 00:18:19 jsg Exp $ */ +/* $OpenBSD: types.h,v 1.9 2005/12/14 21:46:30 millert Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -42,10 +42,12 @@ typedef struct label_t { } label_t; #endif +#if __BSD_VISIBLE typedef unsigned long paddr_t; typedef unsigned long psize_t; typedef unsigned long vaddr_t; typedef unsigned long vsize_t; +#endif #define __BIT_TYPES_DEFINED__ typedef __signed char int8_t; |