diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
commit | 67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch) | |
tree | a4a1db7f54c16d12fabe2626b8f1e235cd694e9e /util-linux/flock.c | |
parent | 811c449748d5bd0505f8510e5582892f94ac0cda (diff) | |
parent | b83c9704128dd106071184e4b00335a3b8486857 (diff) | |
download | busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2 busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip |
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
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 | ||