diff options
author | Kirk McKusick <mckusick@FreeBSD.org> | 2011-01-24 06:17:05 +0000 |
---|---|---|
committer | Kirk McKusick <mckusick@FreeBSD.org> | 2011-01-24 06:17:05 +0000 |
commit | 7649cb0043cb41571f2748bc287da294a8c3b870 (patch) | |
tree | 745a3d9e1c16eed61f71f5c30e0dd0e1c250c1e8 /sbin/newfs | |
parent | 9c990fb2a4b18c1d8518ce5466757c5c2b89d8e8 (diff) | |
download | src-7649cb0043cb41571f2748bc287da294a8c3b870.tar.gz src-7649cb0043cb41571f2748bc287da294a8c3b870.zip |
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
Notes
Notes:
svn path=/head/; revision=217769
Diffstat (limited to 'sbin/newfs')
-rw-r--r-- | sbin/newfs/mkfs.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 96fa9eb8a91d..f98a51a7c313 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -44,6 +44,14 @@ static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95"; #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/param.h> +#include <sys/disklabel.h> +#include <sys/file.h> +#include <sys/ioctl.h> +#include <sys/mman.h> +#include <sys/resource.h> +#include <sys/stat.h> +#include <sys/wait.h> #include <err.h> #include <grp.h> #include <limits.h> @@ -52,20 +60,11 @@ __FBSDID("$FreeBSD$"); #include <string.h> #include <stdint.h> #include <stdio.h> +#include <time.h> #include <unistd.h> -#include <sys/param.h> -#include <sys/time.h> -#include <sys/types.h> -#include <sys/wait.h> -#include <sys/resource.h> -#include <sys/stat.h> #include <ufs/ufs/dinode.h> #include <ufs/ufs/dir.h> #include <ufs/ffs/fs.h> -#include <sys/disklabel.h> -#include <sys/file.h> -#include <sys/mman.h> -#include <sys/ioctl.h> #include "newfs.h" /* |