summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-05-06 17:57:10 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-05-06 17:57:10 +0000
commit026894fd09828485fdba9cbcb24ae0583f12c58f (patch)
tree0db6376cff89e334fff995880ea13e53b83ac280 /src
parentd5f20ebe16bd63a6485f07d313838f57bbfb2e36 (diff)
downloadcoreutils-026894fd09828485fdba9cbcb24ae0583f12c58f.tar.xz
(flags, usage): Add support for "binary" and "text".
Diffstat (limited to 'src')
-rw-r--r--src/dd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dd.c b/src/dd.c
index ef24d1b04..9c7c96cfe 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -251,12 +251,14 @@ static struct symbol_value const conversions[] =
static struct symbol_value const flags[] =
{
{"append", O_APPEND},
+ {"binary", O_BINARY},
{"direct", O_DIRECT},
{"dsync", O_DSYNC},
{"noctty", O_NOCTTY},
{"nofollow", O_NOFOLLOW},
{"nonblock", O_NONBLOCK},
{"sync", O_SYNC},
+ {"text", O_TEXT},
{"", 0}
};
@@ -458,6 +460,10 @@ Each FLAG symbol may be:\n\
if (O_NOCTTY)
fputs (_(" noctty do not assign controlling terminal from file\n"),
stdout);
+ if (O_BINARY)
+ fputs (_(" binary use binary I/O for data\n"), stdout);
+ if (O_TEXT)
+ fputs (_(" text use text I/O for data\n"), stdout);
{
char const *siginfo_name = (SIGINFO == SIGUSR1 ? "USR1" : "INFO");