Deleted Added
full compact
dd.h (62311) dd.h (91079)
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 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)dd.h 8.3 (Berkeley) 4/2/94
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 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)dd.h 8.3 (Berkeley) 4/2/94
38 * $FreeBSD: head/bin/dd/dd.h 62311 2000-07-01 05:36:25Z green $
38 * $FreeBSD: head/bin/dd/dd.h 91079 2002-02-22 20:51:00Z markm $
39 */
40
41/* Input/output stream state. */
42typedef struct {
43 u_char *db; /* buffer address */
44 u_char *dbp; /* current buffer I/O address */
45 /* XXX ssize_t? */
46 size_t dbcnt; /* current buffer byte count */

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

54#define NOREAD 0x10 /* not readable */
55#define ISTRUNC 0x20 /* valid to ftruncate() */
56 u_int flags;
57
58 const char *name; /* name */
59 int fd; /* file descriptor */
60 off_t offset; /* # of blocks to skip */
61
39 */
40
41/* Input/output stream state. */
42typedef struct {
43 u_char *db; /* buffer address */
44 u_char *dbp; /* current buffer I/O address */
45 /* XXX ssize_t? */
46 size_t dbcnt; /* current buffer byte count */

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

54#define NOREAD 0x10 /* not readable */
55#define ISTRUNC 0x20 /* valid to ftruncate() */
56 u_int flags;
57
58 const char *name; /* name */
59 int fd; /* file descriptor */
60 off_t offset; /* # of blocks to skip */
61
62 u_quad_t f_stats; /* # of full blocks processed */
63 u_quad_t p_stats; /* # of partial blocks processed */
64 u_quad_t s_stats; /* # of odd swab blocks */
65 u_quad_t t_stats; /* # of truncations */
66} IO;
67
68typedef struct {
69 u_quad_t in_full; /* # of full input blocks */
70 u_quad_t in_part; /* # of partial input blocks */
71 u_quad_t out_full; /* # of full output blocks */
72 u_quad_t out_part; /* # of partial output blocks */
73 u_quad_t trunc; /* # of truncated records */

--- 28 unchanged lines hidden ---
62} IO;
63
64typedef struct {
65 u_quad_t in_full; /* # of full input blocks */
66 u_quad_t in_part; /* # of partial input blocks */
67 u_quad_t out_full; /* # of full output blocks */
68 u_quad_t out_part; /* # of partial output blocks */
69 u_quad_t trunc; /* # of truncated records */

--- 28 unchanged lines hidden ---