Deleted Added
full compact
dd.c (250469) dd.c (264059)
1/*-
2 * Copyright (c) 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Keith Muller of the University of California, San Diego and Lance
7 * Visser of Convex Computer Corporation.
8 *

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

38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
42static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
43#endif /* not lint */
44#endif
45#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Keith Muller of the University of California, San Diego and Lance
7 * Visser of Convex Computer Corporation.
8 *

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

38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
42static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
43#endif /* not lint */
44#endif
45#include <sys/cdefs.h>
46__FBSDID("$FreeBSD: head/bin/dd/dd.c 250469 2013-05-10 18:43:36Z eadler $");
46__FBSDID("$FreeBSD: head/bin/dd/dd.c 264059 2014-04-03 00:55:16Z delphij $");
47
48#include <sys/param.h>
49#include <sys/stat.h>
50#include <sys/conf.h>
51#include <sys/disklabel.h>
52#include <sys/filio.h>
53#include <sys/time.h>
54

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

71static void getfdtype(IO *);
72static void setup(void);
73
74IO in, out; /* input/output state */
75STAT st; /* statistics */
76void (*cfunc)(void); /* conversion function */
77uintmax_t cpy_cnt; /* # of blocks to copy */
78static off_t pending = 0; /* pending seek if sparse */
47
48#include <sys/param.h>
49#include <sys/stat.h>
50#include <sys/conf.h>
51#include <sys/disklabel.h>
52#include <sys/filio.h>
53#include <sys/time.h>
54

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

71static void getfdtype(IO *);
72static void setup(void);
73
74IO in, out; /* input/output state */
75STAT st; /* statistics */
76void (*cfunc)(void); /* conversion function */
77uintmax_t cpy_cnt; /* # of blocks to copy */
78static off_t pending = 0; /* pending seek if sparse */
79u_int ddflags = 0; /* conversion options */
79u_int64_t ddflags = 0; /* conversion options */
80size_t cbsz; /* conversion block size */
81uintmax_t files_cnt = 1; /* # of files to copy */
82const u_char *ctab; /* conversion table */
83char fill_char; /* Character to fill with if defined */
84volatile sig_atomic_t need_summary;
85
86int
87main(int argc __unused, char *argv[])

--- 418 unchanged lines hidden ---
80size_t cbsz; /* conversion block size */
81uintmax_t files_cnt = 1; /* # of files to copy */
82const u_char *ctab; /* conversion table */
83char fill_char; /* Character to fill with if defined */
84volatile sig_atomic_t need_summary;
85
86int
87main(int argc __unused, char *argv[])

--- 418 unchanged lines hidden ---