From 82a7e80d5baecde7aedcd6eb4cead7fa0ab9fe36 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 6 Mar 2006 07:20:19 +0000 Subject: (flags, usage): New flags directory, nolinks. --- src/dd.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/dd.c') diff --git a/src/dd.c b/src/dd.c index 7d05ec3b0..b2bdf118c 100644 --- a/src/dd.c +++ b/src/dd.c @@ -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) -- cgit v1.2.3-54-g00ecf