diff options
Diffstat (limited to 'util-linux/flock.c')
-rw-r--r-- | util-linux/flock.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/util-linux/flock.c b/util-linux/flock.c index 77fe1f809..8fecb54d4 100644 --- a/util-linux/flock.c +++ b/util-linux/flock.c | |||
@@ -3,6 +3,17 @@ | |||
3 | * | 3 | * |
4 | * This is free software, licensed under the GNU General Public License v2. | 4 | * This is free software, licensed under the GNU General Public License v2. |
5 | */ | 5 | */ |
6 | |||
7 | //usage:#define flock_trivial_usage | ||
8 | //usage: "[-sxun] FD|{FILE [-c] PROG ARGS}" | ||
9 | //usage:#define flock_full_usage "\n\n" | ||
10 | //usage: "[Un]lock file descriptor, or lock FILE, run PROG\n" | ||
11 | //usage: "\nOptions:" | ||
12 | //usage: "\n -s Shared lock" | ||
13 | //usage: "\n -x Exclusive lock (default)" | ||
14 | //usage: "\n -u Unlock FD" | ||
15 | //usage: "\n -n Fail rather than wait" | ||
16 | |||
6 | #include <sys/file.h> | 17 | #include <sys/file.h> |
7 | #include "libbb.h" | 18 | #include "libbb.h" |
8 | 19 | ||