summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.h
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-04-03 00:55:16 +0000
committerdelphij <delphij@FreeBSD.org>2014-04-03 00:55:16 +0000
commit101a8946cc5a12dbed97f9223a53c444eaa97415 (patch)
tree5be9e451a525366f16fddd9da73a3415f0d6eb8d /bin/dd/dd.h
parentef9da5b7f97e0241e152076b0861edcc7fadb4e3 (diff)
downloadFreeBSD-src-101a8946cc5a12dbed97f9223a53c444eaa97415.zip
FreeBSD-src-101a8946cc5a12dbed97f9223a53c444eaa97415.tar.gz
Implement GNU's extension of 'status' operand. The GNU syntax is
borrowed where syntax status=noxfer means no transfer statistics and status=none means no status information at all. This feature is useful because the statistics information can sometimes be annoying, and redirecting stderr to /dev/null would mean error messages also gets silenced. Obtained from: OpenBSD MFC after: 2 weeks
Diffstat (limited to 'bin/dd/dd.h')
-rw-r--r--bin/dd/dd.h57
1 files changed, 30 insertions, 27 deletions
diff --git a/bin/dd/dd.h b/bin/dd/dd.h
index ad283fd..fed5079 100644
--- a/bin/dd/dd.h
+++ b/bin/dd/dd.h
@@ -68,32 +68,35 @@ typedef struct {
} STAT;
/* Flags (in ddflags). */
-#define C_ASCII 0x00001
-#define C_BLOCK 0x00002
-#define C_BS 0x00004
-#define C_CBS 0x00008
-#define C_COUNT 0x00010
-#define C_EBCDIC 0x00020
-#define C_FILES 0x00040
-#define C_IBS 0x00080
-#define C_IF 0x00100
-#define C_LCASE 0x00200
-#define C_NOERROR 0x00400
-#define C_NOTRUNC 0x00800
-#define C_OBS 0x01000
-#define C_OF 0x02000
-#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_FILL 0x40000000
+#define C_ASCII 0x000000001
+#define C_BLOCK 0x000000002
+#define C_BS 0x000000004
+#define C_CBS 0x000000008
+#define C_COUNT 0x000000010
+#define C_EBCDIC 0x000000020
+#define C_FILES 0x000000040
+#define C_IBS 0x000000080
+#define C_IF 0x000000100
+#define C_LCASE 0x000000200
+#define C_NOERROR 0x000000400
+#define C_NOTRUNC 0x000000800
+#define C_OBS 0x000001000
+#define C_OF 0x000002000
+#define C_OSYNC 0x000004000
+#define C_PAREVEN 0x000008000
+#define C_PARNONE 0x000100000
+#define C_PARODD 0x000200000
+#define C_PARSET 0x000400000
+#define C_SEEK 0x000800000
+#define C_SKIP 0x001000000
+#define C_SPARSE 0x002000000
+#define C_SWAB 0x004000000
+#define C_SYNC 0x008000000
+#define C_UCASE 0x010000000
+#define C_UNBLOCK 0x020000000
+#define C_FILL 0x040000000
+#define C_STATUS 0x080000000
+#define C_NOXFER 0x100000000
+#define C_NOINFO 0x200000000
#define C_PARITY (C_PAREVEN | C_PARODD | C_PARNONE | C_PARSET)
OpenPOWER on IntegriCloud