diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-03-06 07:20:19 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-03-06 07:20:19 +0000 |
commit | 82a7e80d5baecde7aedcd6eb4cead7fa0ab9fe36 (patch) | |
tree | 56b667117f78e6ae83565ae5c1fa786aa72ff458 | |
parent | 78006af421909599f27dbb994ef16cedd7864a13 (diff) | |
download | coreutils-82a7e80d5baecde7aedcd6eb4cead7fa0ab9fe36.tar.xz |
(flags, usage): New flags directory, nolinks.
-rw-r--r-- | src/dd.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* dd -- convert a file while copying it. - Copyright (C) 85, 90, 91, 1995-2005 Free Software Foundation, Inc. + Copyright (C) 85, 90, 91, 1995-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -263,10 +263,12 @@ static struct symbol_value const flags[] = {"append", O_APPEND}, {"binary", O_BINARY}, {"direct", O_DIRECT}, + {"directory", O_DIRECTORY}, {"dsync", O_DSYNC}, {"noatime", O_NOATIME}, {"noctty", O_NOCTTY}, {"nofollow", O_NOFOLLOW}, + {"nolinks", O_NOLINKS}, {"nonblock", O_NONBLOCK}, {"sync", O_SYNC}, {"text", O_TEXT}, @@ -460,6 +462,8 @@ Each FLAG symbol may be:\n\ "), stdout); if (O_DIRECT) fputs (_(" direct use direct I/O for data\n"), stdout); + if (O_DIRECTORY) + fputs (_(" directory fail unless a directory\n"), stdout); if (O_DSYNC) fputs (_(" dsync use synchronized I/O for data\n"), stdout); if (O_SYNC) @@ -468,11 +472,13 @@ Each FLAG symbol may be:\n\ fputs (_(" nonblock use non-blocking I/O\n"), stdout); if (O_NOATIME) fputs (_(" noatime do not update access time\n"), stdout); - if (O_NOFOLLOW) - fputs (_(" nofollow do not follow symlinks\n"), stdout); if (O_NOCTTY) fputs (_(" noctty do not assign controlling terminal from file\n"), stdout); + if (O_NOFOLLOW) + fputs (_(" nofollow do not follow symlinks\n"), stdout); + if (O_NOLINKS) + fputs (_(" nolinks fail if multiply-linked\n"), stdout); if (O_BINARY) fputs (_(" binary use binary I/O for data\n"), stdout); if (O_TEXT) |