summaryrefslogtreecommitdiffstats
path: root/sys-utils/flock.c
diff options
context:
space:
mode:
authorBenno Schulenberg2014-12-22 22:57:17 +0100
committerKarel Zak2015-01-06 11:27:38 +0100
commit451dbcfae1406f526208faf6033d6dcc8ac100da (patch)
tree594265cfbfad9989191ae3df877d7e6c300699a8 /sys-utils/flock.c
parentchsh: keep struct options in .rodata (diff)
downloadkernel-qcow2-util-linux-451dbcfae1406f526208faf6033d6dcc8ac100da.tar.gz
kernel-qcow2-util-linux-451dbcfae1406f526208faf6033d6dcc8ac100da.tar.xz
kernel-qcow2-util-linux-451dbcfae1406f526208faf6033d6dcc8ac100da.zip
textual: add a docstring to most of the utilities
This adds a concise description of a tool to its usage text. A first form of this patch was proposed by Steven Honeyman (see http://www.spinics.net/lists/util-linux-ng/msg09994.html). Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'sys-utils/flock.c')
-rw-r--r--sys-utils/flock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-utils/flock.c b/sys-utils/flock.c
index 2550a5be7..38281551b 100644
--- a/sys-utils/flock.c
+++ b/sys-utils/flock.c
@@ -53,6 +53,10 @@ static void __attribute__((__noreturn__)) usage(int ex)
" %1$s [options] <file>|<directory> -c <command>\n"
" %1$s [options] <file descriptor number>\n"),
program_invocation_short_name);
+
+ fputs(USAGE_SEPARATOR, stderr);
+ fputs(_("Manage file locks from shell scripts.\n"), stderr);
+
fputs(USAGE_OPTIONS, stderr);
fputs(_( " -s, --shared get a shared lock\n"), stderr);
fputs(_( " -x, --exclusive get an exclusive lock (default)\n"), stderr);