Changeset View
Changeset View
Standalone View
Standalone View
head/bin/dd/dd.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | typedef struct { | ||||
uintmax_t out_part; /* # of partial output blocks */ | uintmax_t out_part; /* # of partial output blocks */ | ||||
uintmax_t trunc; /* # of truncated records */ | uintmax_t trunc; /* # of truncated records */ | ||||
uintmax_t swab; /* # of odd-length swab blocks */ | uintmax_t swab; /* # of odd-length swab blocks */ | ||||
uintmax_t bytes; /* # of bytes written */ | uintmax_t bytes; /* # of bytes written */ | ||||
struct timespec start; /* start time of dd */ | struct timespec start; /* start time of dd */ | ||||
} STAT; | } STAT; | ||||
/* Flags (in ddflags). */ | /* Flags (in ddflags). */ | ||||
#define C_ASCII 0x00000001 | #define C_ASCII 0x0000000000000001ULL | ||||
#define C_BLOCK 0x00000002 | #define C_BLOCK 0x0000000000000002ULL | ||||
#define C_BS 0x00000004 | #define C_BS 0x0000000000000004ULL | ||||
#define C_CBS 0x00000008 | #define C_CBS 0x0000000000000008ULL | ||||
#define C_COUNT 0x00000010 | #define C_COUNT 0x0000000000000010ULL | ||||
#define C_EBCDIC 0x00000020 | #define C_EBCDIC 0x0000000000000020ULL | ||||
#define C_FILES 0x00000040 | #define C_FILES 0x0000000000000040ULL | ||||
#define C_IBS 0x00000080 | #define C_IBS 0x0000000000000080ULL | ||||
#define C_IF 0x00000100 | #define C_IF 0x0000000000000100ULL | ||||
#define C_LCASE 0x00000200 | #define C_LCASE 0x0000000000000200ULL | ||||
#define C_NOERROR 0x00000400 | #define C_NOERROR 0x0000000000000400ULL | ||||
#define C_NOTRUNC 0x00000800 | #define C_NOTRUNC 0x0000000000000800ULL | ||||
#define C_OBS 0x00001000 | #define C_OBS 0x0000000000001000ULL | ||||
#define C_OF 0x00002000 | #define C_OF 0x0000000000002000ULL | ||||
#define C_OSYNC 0x00004000 | #define C_OSYNC 0x0000000000004000ULL | ||||
#define C_PAREVEN 0x00008000 | #define C_PAREVEN 0x0000000000008000ULL | ||||
#define C_PARNONE 0x00010000 | #define C_PARNONE 0x0000000000010000ULL | ||||
#define C_PARODD 0x00020000 | #define C_PARODD 0x0000000000020000ULL | ||||
#define C_PARSET 0x00040000 | #define C_PARSET 0x0000000000040000ULL | ||||
#define C_SEEK 0x00080000 | #define C_SEEK 0x0000000000080000ULL | ||||
#define C_SKIP 0x00100000 | #define C_SKIP 0x0000000000100000ULL | ||||
#define C_SPARSE 0x00200000 | #define C_SPARSE 0x0000000000200000ULL | ||||
#define C_SWAB 0x00400000 | #define C_SWAB 0x0000000000400000ULL | ||||
#define C_SYNC 0x00800000 | #define C_SYNC 0x0000000000800000ULL | ||||
#define C_UCASE 0x01000000 | #define C_UCASE 0x0000000001000000ULL | ||||
#define C_UNBLOCK 0x02000000 | #define C_UNBLOCK 0x0000000002000000ULL | ||||
#define C_FILL 0x04000000 | #define C_FILL 0x0000000004000000ULL | ||||
#define C_STATUS 0x08000000 | #define C_STATUS 0x0000000008000000ULL | ||||
#define C_NOXFER 0x10000000 | #define C_NOXFER 0x0000000010000000ULL | ||||
#define C_NOINFO 0x20000000 | #define C_NOINFO 0x0000000020000000ULL | ||||
#define C_PROGRESS 0x40000000 | #define C_PROGRESS 0x0000000040000000ULL | ||||
#define C_FSYNC 0x80000000 | #define C_FSYNC 0x0000000080000000ULL | ||||
#define C_FDATASYNC 0x0000000100000000ULL | |||||
#define C_PARITY (C_PAREVEN | C_PARODD | C_PARNONE | C_PARSET) | #define C_PARITY (C_PAREVEN | C_PARODD | C_PARNONE | C_PARSET) | ||||
#define BISZERO(p, s) ((s) > 0 && *((const char *)p) == 0 && !memcmp( \ | #define BISZERO(p, s) ((s) > 0 && *((const char *)p) == 0 && !memcmp( \ | ||||
(const void *)(p), (const void *) \ | (const void *)(p), (const void *) \ | ||||
((const char *)p + 1), (s) - 1)) | ((const char *)p + 1), (s) - 1)) |