Deleted Added
full compact
newfs_msdos.c (64685) newfs_msdos.c (66907)
1/*
2 * Copyright (c) 1998 Robert Nordier
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#ifndef lint
29static const char rcsid[] =
1/*
2 * Copyright (c) 1998 Robert Nordier
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#ifndef lint
29static const char rcsid[] =
30 "$FreeBSD: head/sbin/newfs_msdos/newfs_msdos.c 64685 2000-08-15 18:04:16Z rnordier $";
30 "$FreeBSD: head/sbin/newfs_msdos/newfs_msdos.c 66907 2000-10-10 01:50:26Z wollman $";
31#endif /* not lint */
32
33#include <sys/param.h>
31#endif /* not lint */
32
33#include <sys/param.h>
34#include <sys/stat.h>
35#include <sys/diskslice.h>
36#include <sys/disklabel.h>
37#include <sys/mount.h>
34#include <sys/diskslice.h>
35#include <sys/disklabel.h>
36#include <sys/mount.h>
37#include <sys/stat.h>
38#include <sys/time.h>
38
39#include <ctype.h>
40#include <err.h>
41#include <errno.h>
42#include <fcntl.h>
43#include <paths.h>
44#include <stdio.h>
45#include <stdlib.h>
46#include <string.h>
39
40#include <ctype.h>
41#include <err.h>
42#include <errno.h>
43#include <fcntl.h>
44#include <paths.h>
45#include <stdio.h>
46#include <stdlib.h>
47#include <string.h>
48#include <time.h>
47#include <unistd.h>
48
49#define MAXU16 0xffff /* maximum unsigned 16-bit quantity */
50#define BPN 4 /* bits per nibble */
51#define NPB 2 /* nibbles per byte */
52
53#define DOSMAGIC 0xaa55 /* DOS magic number */
54#define MINBPS 128 /* minimum bytes per sector */

--- 874 unchanged lines hidden ---
49#include <unistd.h>
50
51#define MAXU16 0xffff /* maximum unsigned 16-bit quantity */
52#define BPN 4 /* bits per nibble */
53#define NPB 2 /* nibbles per byte */
54
55#define DOSMAGIC 0xaa55 /* DOS magic number */
56#define MINBPS 128 /* minimum bytes per sector */

--- 874 unchanged lines hidden ---