dd.h (30312) | dd.h (33234) |
---|---|
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 * $Id: dd.h,v 1.6 1997/02/22 14:02:45 peter Exp $ | 38 * $Id: dd.h,v 1.7 1997/10/11 20:09:05 joerg Exp $ |
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 u_long dbcnt; /* current buffer byte count */ 46 int dbrcnt; /* last read byte count */ --- 17 unchanged lines hidden (view full) --- 64 65typedef struct { 66 u_long in_full; /* # of full input blocks */ 67 u_long in_part; /* # of partial input blocks */ 68 u_long out_full; /* # of full output blocks */ 69 u_long out_part; /* # of partial output blocks */ 70 u_long trunc; /* # of truncated records */ 71 u_long swab; /* # of odd-length swab blocks */ | 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 u_long dbcnt; /* current buffer byte count */ 46 int dbrcnt; /* last read byte count */ --- 17 unchanged lines hidden (view full) --- 64 65typedef struct { 66 u_long in_full; /* # of full input blocks */ 67 u_long in_part; /* # of partial input blocks */ 68 u_long out_full; /* # of full output blocks */ 69 u_long out_part; /* # of partial output blocks */ 70 u_long trunc; /* # of truncated records */ 71 u_long swab; /* # of odd-length swab blocks */ |
72 u_long bytes; /* # of bytes written */ | 72 u_int64_t bytes; /* # of bytes written */ |
73 double start; /* start time of dd */ 74} STAT; 75 76/* Flags (in ddflags). */ 77#define C_ASCII 0x00001 78#define C_BLOCK 0x00002 79#define C_BS 0x00004 80#define C_CBS 0x00008 --- 18 unchanged lines hidden --- | 73 double start; /* start time of dd */ 74} STAT; 75 76/* Flags (in ddflags). */ 77#define C_ASCII 0x00001 78#define C_BLOCK 0x00002 79#define C_BS 0x00004 80#define C_CBS 0x00008 --- 18 unchanged lines hidden --- |