summaryrefslogtreecommitdiffstats
path: root/bin/dd
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-03-06 08:21:32 +0000
committerbde <bde@FreeBSD.org>2004-03-06 08:21:32 +0000
commitac2e10a4f5f5e797a01cec2b40d2f80f26d2f5f0 (patch)
treee615af545878b53119ca36d7e9bb860ce9f9f2c7 /bin/dd
parent894cb81b6ce8e5411aeca0d615e58c28bd97cc7a (diff)
downloadFreeBSD-src-ac2e10a4f5f5e797a01cec2b40d2f80f26d2f5f0.zip
FreeBSD-src-ac2e10a4f5f5e797a01cec2b40d2f80f26d2f5f0.tar.gz
Fixed some style bugs (mainly unsorting and tab lossage in previous commit).
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/dd.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/bin/dd/dd.h b/bin/dd/dd.h
index fbe7ce0..c025d8a 100644
--- a/bin/dd/dd.h
+++ b/bin/dd/dd.h
@@ -55,10 +55,9 @@ typedef struct {
#define ISTRUNC 0x20 /* valid to ftruncate() */
u_int flags;
- const char *name; /* name */
+ const char *name; /* name */
int fd; /* file descriptor */
off_t offset; /* # of blocks to skip */
-
} IO;
typedef struct {
@@ -69,7 +68,7 @@ typedef struct {
uintmax_t trunc; /* # of truncated records */
uintmax_t swab; /* # of odd-length swab blocks */
uintmax_t bytes; /* # of bytes written */
- double start; /* start time of dd */
+ double start; /* start time of dd */
} STAT;
/* Flags (in ddflags). */
@@ -87,17 +86,17 @@ typedef struct {
#define C_NOTRUNC 0x00800
#define C_OBS 0x01000
#define C_OF 0x02000
-#define C_SEEK 0x04000
-#define C_SKIP 0x08000
-#define C_SWAB 0x10000
-#define C_SYNC 0x20000
-#define C_UCASE 0x40000
-#define C_UNBLOCK 0x80000
-#define C_OSYNC 0x100000
-#define C_SPARSE 0x200000
-#define C_PAREVEN 0x400000
-#define C_PARODD 0x800000
-#define C_PARSET 0x1000000
-#define C_PARNONE 0x2000000
+#define C_OSYNC 0x04000
+#define C_PAREVEN 0x08000
+#define C_PARNONE 0x100000
+#define C_PARODD 0x200000
+#define C_PARSET 0x400000
+#define C_SEEK 0x800000
+#define C_SKIP 0x1000000
+#define C_SPARSE 0x2000000
+#define C_SWAB 0x4000000
+#define C_SYNC 0x8000000
+#define C_UCASE 0x10000000
+#define C_UNBLOCK 0x20000000
-#define C_PARITY (C_PAREVEN|C_PARODD|C_PARSET|C_PARNONE)
+#define C_PARITY (C_PAREVEN | C_PARODD | C_PARNONE | C_PARSET)
OpenPOWER on IntegriCloud