Deleted Added
full compact
check.c (203871) check.c (203872)
1/*
2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank
3 * Copyright (c) 1995 Martin Husemann
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

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

23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26
27#include <sys/cdefs.h>
28#ifndef lint
29__RCSID("$NetBSD: check.c,v 1.10 2000/04/25 23:02:51 jdolecek Exp $");
30static const char rcsid[] =
1/*
2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank
3 * Copyright (c) 1995 Martin Husemann
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

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

23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26
27#include <sys/cdefs.h>
28#ifndef lint
29__RCSID("$NetBSD: check.c,v 1.10 2000/04/25 23:02:51 jdolecek Exp $");
30static const char rcsid[] =
31 "$FreeBSD: head/sbin/fsck_msdosfs/check.c 203871 2010-02-14 12:28:43Z kib $";
31 "$FreeBSD: head/sbin/fsck_msdosfs/check.c 203872 2010-02-14 12:30:30Z kib $";
32#endif /* not lint */
33
34#include <stdlib.h>
35#include <string.h>
32#endif /* not lint */
33
34#include <stdlib.h>
35#include <string.h>
36#include <ctype.h>
37#include <stdio.h>
38#include <unistd.h>
39#include <fcntl.h>
40
41#include "ext.h"
42#include "fsutil.h"
43
44int
45checkfilesys(const char *fname)
46{
47 int dosfs;
48 struct bootblock boot;
49 struct fatEntry *fat = NULL;
36#include <stdio.h>
37#include <unistd.h>
38#include <fcntl.h>
39
40#include "ext.h"
41#include "fsutil.h"
42
43int
44checkfilesys(const char *fname)
45{
46 int dosfs;
47 struct bootblock boot;
48 struct fatEntry *fat = NULL;
50 int i, finish_dosdirsection=0;
49 int finish_dosdirsection=0;
50 u_int i;
51 int mod = 0;
52 int ret = 8;
53
54 rdonly = alwaysno;
55 if (!preen)
56 printf("** %s", fname);
57
58 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0);

--- 135 unchanged lines hidden ---
51 int mod = 0;
52 int ret = 8;
53
54 rdonly = alwaysno;
55 if (!preen)
56 printf("** %s", fname);
57
58 dosfs = open(fname, rdonly ? O_RDONLY : O_RDWR, 0);

--- 135 unchanged lines hidden ---