From owner-svn-src-all@FreeBSD.ORG Mon Jan 24 06:17:06 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42650106566C; Mon, 24 Jan 2011 06:17:06 +0000 (UTC) (envelope-from mckusick@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2EE438FC14; Mon, 24 Jan 2011 06:17:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0O6H6e5080390; Mon, 24 Jan 2011 06:17:06 GMT (envelope-from mckusick@svn.freebsd.org) Received: (from mckusick@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0O6H5tt080376; Mon, 24 Jan 2011 06:17:05 GMT (envelope-from mckusick@svn.freebsd.org) Message-Id: <201101240617.p0O6H5tt080376@svn.freebsd.org> From: Kirk McKusick Date: Mon, 24 Jan 2011 06:17:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217769 - in head: sbin/dump sbin/fsck_ffs sbin/fsdb sbin/fsirand sbin/newfs usr.sbin/makefs usr.sbin/quot X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 24 Jan 2011 06:17:06 -0000 Author: mckusick Date: Mon Jan 24 06:17:05 2011 New Revision: 217769 URL: http://svn.freebsd.org/changeset/base/217769 Log: The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilities include sys/time.h instead of time.h. This include is incorrect as per the manpages for the APIs and the POSIX definitions. This commit replaces sys/time.h where necessary with time.h. The commit also includes some minor style(9) header fixup in newfs. This commit is part of a larger effort by Garrett Cooper started in //depot/user/gcooper/posix-conformance-work/ -- to make FreeBSD more POSIX compliant. Submitted by: Garrett Cooper yanegomi at gmail dot com Modified: head/sbin/dump/itime.c head/sbin/dump/main.c head/sbin/dump/optr.c head/sbin/dump/tape.c head/sbin/fsck_ffs/inode.c head/sbin/fsck_ffs/main.c head/sbin/fsck_ffs/suj.c head/sbin/fsdb/fsdb.c head/sbin/fsirand/fsirand.c head/sbin/newfs/mkfs.c head/usr.sbin/makefs/ffs.c head/usr.sbin/makefs/makefs.c head/usr.sbin/quot/quot.c Modified: head/sbin/dump/itime.c ============================================================================== --- head/sbin/dump/itime.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/dump/itime.c Mon Jan 24 06:17:05 2011 (r217769) @@ -37,7 +37,6 @@ static const char rcsid[] = #include #include -#include #include @@ -49,6 +48,7 @@ static const char rcsid[] = #include #include #include +#include #include #include "dump.h" Modified: head/sbin/dump/main.c ============================================================================== --- head/sbin/dump/main.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/dump/main.c Mon Jan 24 06:17:05 2011 (r217769) @@ -43,7 +43,6 @@ static const char rcsid[] = #include #include -#include #include #include @@ -64,6 +63,7 @@ static const char rcsid[] = #include #include #include +#include #include #include Modified: head/sbin/dump/optr.c ============================================================================== --- head/sbin/dump/optr.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/dump/optr.c Mon Jan 24 06:17:05 2011 (r217769) @@ -38,7 +38,6 @@ static const char rcsid[] = #include #include #include -#include #include @@ -51,6 +50,7 @@ static const char rcsid[] = #include #include #include +#include #include #include "dump.h" Modified: head/sbin/dump/tape.c ============================================================================== --- head/sbin/dump/tape.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/dump/tape.c Mon Jan 24 06:17:05 2011 (r217769) @@ -37,7 +37,6 @@ static const char rcsid[] = #include #include -#include #include #include @@ -54,6 +53,7 @@ static const char rcsid[] = #include #include #include +#include #include #include "dump.h" Modified: head/sbin/fsck_ffs/inode.c ============================================================================== --- head/sbin/fsck_ffs/inode.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/fsck_ffs/inode.c Mon Jan 24 06:17:05 2011 (r217769) @@ -37,7 +37,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include @@ -47,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include "fsck.h" Modified: head/sbin/fsck_ffs/main.c ============================================================================== --- head/sbin/fsck_ffs/main.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/fsck_ffs/main.c Mon Jan 24 06:17:05 2011 (r217769) @@ -42,11 +42,10 @@ static char sccsid[] = "@(#)main.c 8.6 ( __FBSDID("$FreeBSD$"); #include -#include #include -#include #include #include +#include #include #include #include @@ -62,6 +61,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include "fsck.h" Modified: head/sbin/fsck_ffs/suj.c ============================================================================== --- head/sbin/fsck_ffs/suj.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/fsck_ffs/suj.c Mon Jan 24 06:17:05 2011 (r217769) @@ -37,6 +37,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include +#include #include #include #include @@ -46,8 +48,7 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include -#include +#include #include "fsck.h" Modified: head/sbin/fsdb/fsdb.c ============================================================================== --- head/sbin/fsdb/fsdb.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/fsdb/fsdb.c Mon Jan 24 06:17:05 2011 (r217769) @@ -34,13 +34,13 @@ static const char rcsid[] = #endif /* not lint */ #include -#include #include #include #include #include #include #include +#include #include #include Modified: head/sbin/fsirand/fsirand.c ============================================================================== --- head/sbin/fsirand/fsirand.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/fsirand/fsirand.c Mon Jan 24 06:17:05 2011 (r217769) @@ -35,9 +35,8 @@ static const char rcsid[] = "$FreeBSD$"; #endif /* not lint */ -#include #include -#include +#include #include #include @@ -50,6 +49,7 @@ static const char rcsid[] = #include #include #include +#include #include static void usage(void) __dead2; Modified: head/sbin/newfs/mkfs.c ============================================================================== --- head/sbin/newfs/mkfs.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/sbin/newfs/mkfs.c Mon Jan 24 06:17:05 2011 (r217769) @@ -44,6 +44,14 @@ static char sccsid[] = "@(#)mkfs.c 8.11 #include __FBSDID("$FreeBSD$"); +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -52,20 +60,11 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include -#include -#include -#include -#include -#include -#include #include #include #include -#include -#include -#include -#include #include "newfs.h" /* Modified: head/usr.sbin/makefs/ffs.c ============================================================================== --- head/usr.sbin/makefs/ffs.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/usr.sbin/makefs/ffs.c Mon Jan 24 06:17:05 2011 (r217769) @@ -80,6 +80,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include "makefs.h" Modified: head/usr.sbin/makefs/makefs.c ============================================================================== --- head/usr.sbin/makefs/makefs.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/usr.sbin/makefs/makefs.c Mon Jan 24 06:17:05 2011 (r217769) @@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include "makefs.h" Modified: head/usr.sbin/quot/quot.c ============================================================================== --- head/usr.sbin/quot/quot.c Mon Jan 24 06:03:58 2011 (r217768) +++ head/usr.sbin/quot/quot.c Mon Jan 24 06:17:05 2011 (r217769) @@ -36,7 +36,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include @@ -49,6 +48,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include /* some flags of what to do: */