Deleted Added
full compact
badsect.c (68521) badsect.c (78732)
1/*
2 * Copyright (c) 1981, 1983, 1993
3 * The Regents of the University of California. 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

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

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static const char sccsid[] = "@(#)badsect.c 8.1 (Berkeley) 6/5/93";
43#endif
44static const char rcsid[] =
1/*
2 * Copyright (c) 1981, 1983, 1993
3 * The Regents of the University of California. 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

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

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static const char sccsid[] = "@(#)badsect.c 8.1 (Berkeley) 6/5/93";
43#endif
44static const char rcsid[] =
45 "$FreeBSD: head/sbin/badsect/badsect.c 68521 2000-11-09 09:03:19Z adrian $";
45 "$FreeBSD: head/sbin/badsect/badsect.c 78732 2001-06-24 23:04:23Z dd $";
46#endif /* not lint */
47
48/*
49 * badsect
50 *
51 * Badsect takes a list of file-system relative sector numbers
52 * and makes files containing the blocks of which these sectors are a part.
53 * It can be used to contain sectors which have problems if these sectors

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

62#include <ufs/ufs/dinode.h>
63
64#include <err.h>
65#include <dirent.h>
66#include <fcntl.h>
67#include <paths.h>
68#include <stdio.h>
69#include <stdlib.h>
46#endif /* not lint */
47
48/*
49 * badsect
50 *
51 * Badsect takes a list of file-system relative sector numbers
52 * and makes files containing the blocks of which these sectors are a part.
53 * It can be used to contain sectors which have problems if these sectors

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

62#include <ufs/ufs/dinode.h>
63
64#include <err.h>
65#include <dirent.h>
66#include <fcntl.h>
67#include <paths.h>
68#include <stdio.h>
69#include <stdlib.h>
70#include <string.h>
70#include <unistd.h>
71
72union {
73 struct fs fs;
74 char fsx[SBSIZE];
75} ufs;
76#define sblock ufs.fs
77union {

--- 147 unchanged lines hidden ---
71#include <unistd.h>
72
73union {
74 struct fs fs;
75 char fsx[SBSIZE];
76} ufs;
77#define sblock ufs.fs
78union {

--- 147 unchanged lines hidden ---