Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Systematically include sys/featuretest.h when _NETBSD_SOURCE...



details:   https://anonhg.NetBSD.org/src/rev/e763b7264873
branches:  trunk
changeset: 786391:e763b7264873
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Apr 27 21:35:24 2013 +0000

description:
Systematically include sys/featuretest.h when _NETBSD_SOURCE is used.
Some are redundant, but make verification with grep much easier.

diffstat:

 include/fenv.h               |  3 ++-
 include/search.h             |  3 ++-
 include/ttyent.h             |  3 ++-
 include/wctype.h             |  3 ++-
 sys/arch/x86/include/float.h |  4 +++-
 sys/netinet/in.h             |  3 ++-
 sys/netinet6/in6.h           |  4 +++-
 sys/sys/pset.h               |  3 ++-
 sys/sys/siginfo.h            |  3 ++-
 sys/sys/spawn.h              |  3 ++-
 10 files changed, 22 insertions(+), 10 deletions(-)

diffs (169 lines):

diff -r de8aa8ee4e4f -r e763b7264873 include/fenv.h
--- a/include/fenv.h    Sat Apr 27 21:24:27 2013 +0000
+++ b/include/fenv.h    Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fenv.h,v 1.7 2012/03/22 03:06:06 dholland Exp $        */
+/*     $NetBSD: fenv.h,v 1.8 2013/04/27 21:35:25 joerg Exp $   */
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -32,6 +32,7 @@
 #ifndef _FENV_H_
 #define _FENV_H_
 
+#include <sys/featuretest.h>
 #include <machine/fenv.h>
 
 __BEGIN_DECLS
diff -r de8aa8ee4e4f -r e763b7264873 include/search.h
--- a/include/search.h  Sat Apr 27 21:24:27 2013 +0000
+++ b/include/search.h  Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: search.h,v 1.19 2011/09/14 23:34:26 christos Exp $     */
+/*     $NetBSD: search.h,v 1.20 2013/04/27 21:35:25 joerg Exp $        */
 
 /*
  * Written by J.T. Conklin <jtc%NetBSD.org@localhost>
@@ -9,6 +9,7 @@
 #define _SEARCH_H_
 
 #include <sys/cdefs.h>
+#include <sys/featuretest.h>
 #include <machine/ansi.h>
 
 #ifdef _BSD_SIZE_T_
diff -r de8aa8ee4e4f -r e763b7264873 include/ttyent.h
--- a/include/ttyent.h  Sat Apr 27 21:24:27 2013 +0000
+++ b/include/ttyent.h  Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ttyent.h,v 1.14 2006/04/17 23:29:21 salo Exp $ */
+/*     $NetBSD: ttyent.h,v 1.15 2013/04/27 21:35:25 joerg Exp $        */
 
 /*
  * Copyright (c) 1989, 1993
@@ -35,6 +35,7 @@
 #define        _TTYENT_H_
 
 #include <sys/cdefs.h>
+#include <sys/featuretest.h>
 
 #define        _PATH_TTYS      "/etc/ttys"
 
diff -r de8aa8ee4e4f -r e763b7264873 include/wctype.h
--- a/include/wctype.h  Sat Apr 27 21:24:27 2013 +0000
+++ b/include/wctype.h  Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wctype.h,v 1.8 2013/04/16 11:39:13 joerg Exp $ */
+/*     $NetBSD: wctype.h,v 1.9 2013/04/27 21:35:25 joerg Exp $ */
 
 /*-
  * Copyright (c)1999 Citrus Project,
@@ -32,6 +32,7 @@
 #define        _WCTYPE_H_
 
 #include <sys/cdefs.h>
+#include <sys/featuretest.h>
 #include <sys/ansi.h>
 
 #ifdef _BSD_WINT_T_
diff -r de8aa8ee4e4f -r e763b7264873 sys/arch/x86/include/float.h
--- a/sys/arch/x86/include/float.h      Sat Apr 27 21:24:27 2013 +0000
+++ b/sys/arch/x86/include/float.h      Sat Apr 27 21:35:24 2013 +0000
@@ -1,8 +1,10 @@
-/*     $NetBSD: float.h,v 1.5 2003/10/23 23:26:06 kleink Exp $ */
+/*     $NetBSD: float.h,v 1.6 2013/04/27 21:35:25 joerg Exp $  */
 
 #ifndef _X86_FLOAT_H_
 #define _X86_FLOAT_H_
 
+#include <sys/featuretest.h>
+
 #define        LDBL_MANT_DIG   64
 #define LDBL_EPSILON   1.0842021724855044340E-19L
 #define LDBL_DIG       18
diff -r de8aa8ee4e4f -r e763b7264873 sys/netinet/in.h
--- a/sys/netinet/in.h  Sat Apr 27 21:24:27 2013 +0000
+++ b/sys/netinet/in.h  Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in.h,v 1.87 2012/06/22 14:54:35 christos Exp $ */
+/*     $NetBSD: in.h,v 1.88 2013/04/27 21:35:24 joerg Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -39,6 +39,7 @@
 #ifndef _NETINET_IN_H_
 #define        _NETINET_IN_H_
 
+#include <sys/featuretest.h>
 #include <machine/int_types.h>
 
 #ifndef uint8_t
diff -r de8aa8ee4e4f -r e763b7264873 sys/netinet6/in6.h
--- a/sys/netinet6/in6.h        Sat Apr 27 21:24:27 2013 +0000
+++ b/sys/netinet6/in6.h        Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.h,v 1.70 2012/06/22 14:54:35 christos Exp $        */
+/*     $NetBSD: in6.h,v 1.71 2013/04/27 21:35:24 joerg Exp $   */
 /*     $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $    */
 
 /*
@@ -64,6 +64,8 @@
 #ifndef _NETINET6_IN6_H_
 #define _NETINET6_IN6_H_
 
+#include <sys/featuretest.h>
+
 #ifndef __KAME_NETINET_IN_H_INCLUDED_
 #error "do not include netinet6/in6.h directly, include netinet/in.h.  see RFC2553"
 #endif
diff -r de8aa8ee4e4f -r e763b7264873 sys/sys/pset.h
--- a/sys/sys/pset.h    Sat Apr 27 21:24:27 2013 +0000
+++ b/sys/sys/pset.h    Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pset.h,v 1.3 2008/05/26 17:45:51 rmind Exp $   */
+/*     $NetBSD: pset.h,v 1.4 2013/04/27 21:35:24 joerg Exp $   */
 
 /*
  * Copyright (c) 2008, Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -30,6 +30,7 @@
 #define _SYS_PSET_H_
 
 #include <sys/cdefs.h>
+#include <sys/featuretest.h>
 #include <sys/types.h>
 
 /* Types of processor-sets */
diff -r de8aa8ee4e4f -r e763b7264873 sys/sys/siginfo.h
--- a/sys/sys/siginfo.h Sat Apr 27 21:24:27 2013 +0000
+++ b/sys/sys/siginfo.h Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siginfo.h,v 1.23 2013/02/12 02:24:42 matt Exp $         */
+/*     $NetBSD: siginfo.h,v 1.24 2013/04/27 21:35:24 joerg Exp $        */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -33,6 +33,7 @@
 #define        _SYS_SIGINFO_H_
 
 #include <machine/signal.h>
+#include <sys/featuretest.h>
 #ifdef _KERNEL
 #include <sys/queue.h>
 #endif
diff -r de8aa8ee4e4f -r e763b7264873 sys/sys/spawn.h
--- a/sys/sys/spawn.h   Sat Apr 27 21:24:27 2013 +0000
+++ b/sys/sys/spawn.h   Sat Apr 27 21:35:24 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spawn.h,v 1.3 2012/04/30 21:19:58 rmind Exp $  */
+/*     $NetBSD: spawn.h,v 1.4 2013/04/27 21:35:25 joerg Exp $  */
 
 /*-
  * Copyright (c) 2008 Ed Schouten <ed%FreeBSD.org@localhost>
@@ -32,6 +32,7 @@
 #define _SYS_SPAWN_H_
 
 #include <sys/cdefs.h>
+#include <sys/featuretest.h>
 #include <sys/types.h>
 #include <sys/sigtypes.h>
 #include <sys/signal.h>



Home | Main Index | Thread Index | Old Index