From owner-svn-src-all@freebsd.org Thu Jul 2 21:58:20 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A329992A26; Thu, 2 Jul 2015 21:58:20 +0000 (UTC) (envelope-from oshogbo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00BAD1E23; Thu, 2 Jul 2015 21:58:20 +0000 (UTC) (envelope-from oshogbo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t62LwJdY019537; Thu, 2 Jul 2015 21:58:19 GMT (envelope-from oshogbo@FreeBSD.org) Received: (from oshogbo@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t62LwBod019468; Thu, 2 Jul 2015 21:58:11 GMT (envelope-from oshogbo@FreeBSD.org) Message-Id: <201507022158.t62LwBod019468@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: oshogbo set sender to oshogbo@FreeBSD.org using -f From: Mariusz Zaborski Date: Thu, 2 Jul 2015 21:58:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285063 - in head: . contrib/tcpdump lib/libcapsicum lib/libcasper lib/libnv lib/libnv/tests libexec/casper/dns libexec/casper/grp libexec/casper/pwd libexec/casper/random libexec/caspe... X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2015 21:58:20 -0000 Author: oshogbo Date: Thu Jul 2 21:58:10 2015 New Revision: 285063 URL: https://svnweb.freebsd.org/changeset/base/285063 Log: Let the nv.h and dnv.h includes be only in sys directory. Change consumers to include those files from sys. Add duplicated files to ObsoleteFiles. Approved by: pjd (mentor) Modified: head/ObsoleteFiles.inc head/contrib/tcpdump/tcpdump.c head/lib/libcapsicum/libcapsicum.c head/lib/libcapsicum/libcapsicum_dns.c head/lib/libcapsicum/libcapsicum_grp.c head/lib/libcapsicum/libcapsicum_pwd.c head/lib/libcapsicum/libcapsicum_random.c head/lib/libcapsicum/libcapsicum_service.c head/lib/libcapsicum/libcapsicum_sysctl.c head/lib/libcasper/libcasper.c head/lib/libnv/Makefile head/lib/libnv/tests/dnv_tests.cc head/lib/libnv/tests/nv_tests.cc head/lib/libnv/tests/nvlist_add_test.c head/lib/libnv/tests/nvlist_exists_test.c head/lib/libnv/tests/nvlist_free_test.c head/lib/libnv/tests/nvlist_get_test.c head/lib/libnv/tests/nvlist_move_test.c head/lib/libnv/tests/nvlist_send_recv_test.c head/libexec/casper/dns/dns.c head/libexec/casper/grp/grp.c head/libexec/casper/pwd/pwd.c head/libexec/casper/random/random.c head/libexec/casper/sysctl/sysctl.c head/sbin/casperd/casperd.c head/sbin/casperd/zygote.c head/tools/regression/capsicum/libcapsicum/sysctl.c head/usr.bin/kdump/kdump.c head/usr.sbin/iovctl/iovctl.c head/usr.sbin/iovctl/parse.c head/usr.sbin/iovctl/validate.c Modified: head/ObsoleteFiles.inc ============================================================================== --- head/ObsoleteFiles.inc Thu Jul 2 21:46:07 2015 (r285062) +++ head/ObsoleteFiles.inc Thu Jul 2 21:58:10 2015 (r285063) @@ -38,6 +38,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20150702: Remove duplicated nvlist includes. +OLD_FILES+=usr/include/dnv.h +OLD_FILES+=usr/include/nv.h # 20150528: PCI IOV device driver methods moved to a separate kobj interface. OLD_FILES+=usr/share/man/man9/PCI_ADD_VF.9.gz OLD_FILES+=usr/share/man/man9/PCI_INIT_IOV.9.gz Modified: head/contrib/tcpdump/tcpdump.c ============================================================================== --- head/contrib/tcpdump/tcpdump.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/contrib/tcpdump/tcpdump.c Thu Jul 2 21:58:10 2015 (r285063) @@ -82,7 +82,7 @@ extern int SIZE_BUF; #include #include #include -#include +#include #include #include #include Modified: head/lib/libcapsicum/libcapsicum.c ============================================================================== --- head/lib/libcapsicum/libcapsicum.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libcapsicum/libcapsicum.c Thu Jul 2 21:58:10 2015 (r285063) @@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -44,7 +45,6 @@ __FBSDID("$FreeBSD$"); #include "libcapsicum.h" #include "libcapsicum_impl.h" -#include "nv.h" /* * Structure describing communication channel between two separated processes. Modified: head/lib/libcapsicum/libcapsicum_dns.c ============================================================================== --- head/lib/libcapsicum/libcapsicum_dns.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libcapsicum/libcapsicum_dns.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,14 +30,14 @@ #include __FBSDID("$FreeBSD$"); +#include + #include #include #include #include #include -#include - #include "libcapsicum.h" #include "libcapsicum_dns.h" Modified: head/lib/libcapsicum/libcapsicum_grp.c ============================================================================== --- head/lib/libcapsicum/libcapsicum_grp.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libcapsicum/libcapsicum_grp.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,6 +30,8 @@ #include __FBSDID("$FreeBSD$"); +#include +#include #include #include @@ -39,9 +41,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include - #include "libcapsicum.h" #include "libcapsicum_grp.h" Modified: head/lib/libcapsicum/libcapsicum_pwd.c ============================================================================== --- head/lib/libcapsicum/libcapsicum_pwd.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libcapsicum/libcapsicum_pwd.c Thu Jul 2 21:58:10 2015 (r285063) @@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$"); #include +#include #include #include @@ -39,8 +40,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include - #include "libcapsicum.h" #include "libcapsicum_pwd.h" Modified: head/lib/libcapsicum/libcapsicum_random.c ============================================================================== --- head/lib/libcapsicum/libcapsicum_random.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libcapsicum/libcapsicum_random.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,12 +30,12 @@ #include __FBSDID("$FreeBSD$"); +#include + #include #include #include -#include - #include "libcapsicum.h" #include "libcapsicum_random.h" Modified: head/lib/libcapsicum/libcapsicum_service.c ============================================================================== --- head/lib/libcapsicum/libcapsicum_service.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libcapsicum/libcapsicum_service.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,12 +30,13 @@ #include __FBSDID("$FreeBSD$"); +#include + #include #include #include #include -#include #include "msgio.h" #include "libcapsicum.h" Modified: head/lib/libcapsicum/libcapsicum_sysctl.c ============================================================================== --- head/lib/libcapsicum/libcapsicum_sysctl.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libcapsicum/libcapsicum_sysctl.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,11 +30,11 @@ #include __FBSDID("$FreeBSD$"); +#include + #include #include -#include - #include "libcapsicum.h" #include "libcapsicum_sysctl.h" Modified: head/lib/libcasper/libcasper.c ============================================================================== --- head/lib/libcasper/libcasper.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libcasper/libcasper.c Thu Jul 2 21:58:10 2015 (r285063) @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -52,7 +53,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include /* Modified: head/lib/libnv/Makefile ============================================================================== --- head/lib/libnv/Makefile Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/Makefile Thu Jul 2 21:58:10 2015 (r285063) @@ -15,9 +15,6 @@ SRCS+= msgio.c SRCS+= subr_nvlist.c SRCS+= subr_nvpair.c -INCS= dnv.h -INCS+= nv.h - MAN+= nv.3 MLINKS+=nv.3 libnv.3 \ Modified: head/lib/libnv/tests/dnv_tests.cc ============================================================================== --- head/lib/libnv/tests/dnv_tests.cc Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/tests/dnv_tests.cc Thu Jul 2 21:58:10 2015 (r285063) @@ -27,9 +27,10 @@ #include __FBSDID("$FreeBSD$"); +#include +#include + #include -#include -#include ATF_TEST_CASE_WITHOUT_HEAD(dnvlist_get_bool__present); ATF_TEST_CASE_BODY(dnvlist_get_bool__present) Modified: head/lib/libnv/tests/nv_tests.cc ============================================================================== --- head/lib/libnv/tests/nv_tests.cc Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/tests/nv_tests.cc Thu Jul 2 21:58:10 2015 (r285063) @@ -27,8 +27,9 @@ #include __FBSDID("$FreeBSD$"); +#include + #include -#include #include #include Modified: head/lib/libnv/tests/nvlist_add_test.c ============================================================================== --- head/lib/libnv/tests/nvlist_add_test.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/tests/nvlist_add_test.c Thu Jul 2 21:58:10 2015 (r285063) @@ -29,12 +29,12 @@ * $FreeBSD$ */ +#include + #include #include #include -#include - static int ntest = 1; #define CHECK(expr) do { \ Modified: head/lib/libnv/tests/nvlist_exists_test.c ============================================================================== --- head/lib/libnv/tests/nvlist_exists_test.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/tests/nvlist_exists_test.c Thu Jul 2 21:58:10 2015 (r285063) @@ -29,11 +29,11 @@ * $FreeBSD$ */ +#include + #include #include -#include - static int ntest = 1; #define CHECK(expr) do { \ Modified: head/lib/libnv/tests/nvlist_free_test.c ============================================================================== --- head/lib/libnv/tests/nvlist_free_test.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/tests/nvlist_free_test.c Thu Jul 2 21:58:10 2015 (r285063) @@ -29,11 +29,11 @@ * $FreeBSD$ */ +#include + #include #include -#include - static int ntest = 1; #define CHECK(expr) do { \ Modified: head/lib/libnv/tests/nvlist_get_test.c ============================================================================== --- head/lib/libnv/tests/nvlist_get_test.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/tests/nvlist_get_test.c Thu Jul 2 21:58:10 2015 (r285063) @@ -28,6 +28,7 @@ * * $FreeBSD$ */ +#include #include #include @@ -35,8 +36,6 @@ #include #include -#include - static int ntest = 1; #define CHECK(expr) do { \ Modified: head/lib/libnv/tests/nvlist_move_test.c ============================================================================== --- head/lib/libnv/tests/nvlist_move_test.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/tests/nvlist_move_test.c Thu Jul 2 21:58:10 2015 (r285063) @@ -29,14 +29,14 @@ * $FreeBSD$ */ +#include + #include #include #include #include #include -#include - static int ntest = 1; #define CHECK(expr) do { \ Modified: head/lib/libnv/tests/nvlist_send_recv_test.c ============================================================================== --- head/lib/libnv/tests/nvlist_send_recv_test.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/lib/libnv/tests/nvlist_send_recv_test.c Thu Jul 2 21:58:10 2015 (r285063) @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -40,8 +41,6 @@ #include #include -#include - static int ntest = 1; #define CHECK(expr) do { \ Modified: head/libexec/casper/dns/dns.c ============================================================================== --- head/libexec/casper/dns/dns.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/libexec/casper/dns/dns.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,6 +30,7 @@ #include __FBSDID("$FreeBSD$"); +#include #include #include @@ -41,7 +42,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include static bool Modified: head/libexec/casper/grp/grp.c ============================================================================== --- head/libexec/casper/grp/grp.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/libexec/casper/grp/grp.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,6 +30,8 @@ #include __FBSDID("$FreeBSD$"); +#include + #include #include #include @@ -38,7 +40,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include static bool Modified: head/libexec/casper/pwd/pwd.c ============================================================================== --- head/libexec/casper/pwd/pwd.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/libexec/casper/pwd/pwd.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,6 +30,8 @@ #include __FBSDID("$FreeBSD$"); +#include + #include #include #include @@ -37,7 +39,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include static bool Modified: head/libexec/casper/random/random.c ============================================================================== --- head/libexec/casper/random/random.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/libexec/casper/random/random.c Thu Jul 2 21:58:10 2015 (r285063) @@ -30,13 +30,14 @@ #include __FBSDID("$FreeBSD$"); +#include + #include #include #include #include #include -#include #include #define MAXSIZE (1024 * 1024) Modified: head/libexec/casper/sysctl/sysctl.c ============================================================================== --- head/libexec/casper/sysctl/sysctl.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/libexec/casper/sysctl/sysctl.c Thu Jul 2 21:58:10 2015 (r285063) @@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include @@ -40,7 +41,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include static int Modified: head/sbin/casperd/casperd.c ============================================================================== --- head/sbin/casperd/casperd.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/sbin/casperd/casperd.c Thu Jul 2 21:58:10 2015 (r285063) @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -56,7 +57,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include "msgio.h" Modified: head/sbin/casperd/zygote.c ============================================================================== --- head/sbin/casperd/zygote.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/sbin/casperd/zygote.c Thu Jul 2 21:58:10 2015 (r285063) @@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -46,7 +47,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include "zygote.h" Modified: head/tools/regression/capsicum/libcapsicum/sysctl.c ============================================================================== --- head/tools/regression/capsicum/libcapsicum/sysctl.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/tools/regression/capsicum/libcapsicum/sysctl.c Thu Jul 2 21:58:10 2015 (r285063) @@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -46,7 +47,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include /* * We need some sysctls to perform the tests on. Modified: head/usr.bin/kdump/kdump.c ============================================================================== --- head/usr.bin/kdump/kdump.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/usr.bin/kdump/kdump.c Thu Jul 2 21:58:10 2015 (r285063) @@ -61,6 +61,9 @@ extern int errno; #include #include #include +#ifdef HAVE_LIBCAPSICUM +#include +#endif #include #include #include @@ -77,9 +80,6 @@ extern int errno; #include #include #include -#ifdef HAVE_LIBCAPSICUM -#include -#endif #include #include #include Modified: head/usr.sbin/iovctl/iovctl.c ============================================================================== --- head/usr.sbin/iovctl/iovctl.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/usr.sbin/iovctl/iovctl.c Thu Jul 2 21:58:10 2015 (r285063) @@ -29,12 +29,12 @@ __FBSDID("$FreeBSD$"); #include #include +#include +#include -#include #include #include #include -#include #include #include #include Modified: head/usr.sbin/iovctl/parse.c ============================================================================== --- head/usr.sbin/iovctl/parse.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/usr.sbin/iovctl/parse.c Thu Jul 2 21:58:10 2015 (r285063) @@ -29,12 +29,12 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include #include -#include #include #include #include Modified: head/usr.sbin/iovctl/validate.c ============================================================================== --- head/usr.sbin/iovctl/validate.c Thu Jul 2 21:46:07 2015 (r285062) +++ head/usr.sbin/iovctl/validate.c Thu Jul 2 21:58:10 2015 (r285063) @@ -29,10 +29,10 @@ __FBSDID("$FreeBSD$"); #include #include +#include +#include -#include #include -#include #include #include