Commit Graph

12 Commits

Author SHA1 Message Date
mrg
03c86659de fix a bug gcc 8 picked up: use ~LOCK_NB to look for LOCK_UN,
like the rest of the code does.

from uwe@.
2019-10-04 16:27:00 +00:00
christos
f3fb7b3c54 remove XXX, fix error message 2014-08-18 09:16:35 +00:00
christos
519e6f9271 make this behave like linux; make -x the default 2014-08-18 09:14:03 +00:00
joerg
d9c7ee5b63 Annotate functions using format strings. 2014-01-07 02:07:08 +00:00
christos
4a734be04d PR/48351: Dennis Ferguson: Fix incorrect parsing of flock flags.
XXX: still flock -s 0 fails with EINVAL, why?
2013-10-29 16:02:15 +00:00
tron
b981f2c3d3 Don't crash if "flock" is used to lock a file descriptor e.g. via
"flock --nb 8".
2013-02-07 13:57:40 +00:00
christos
2e03ba1139 - better usage messages
- verbose can be local
- add static
2012-11-02 17:03:16 +00:00
christos
9abb2d20bd - use modern timer functions to handler fractional wait
- add a function to print the full command line
- use sigaction so signals interrupt us
2012-11-02 12:47:23 +00:00
wiz
e7aacc4093 Use longer -c description. 2012-11-02 02:07:19 +00:00
wiz
5f8f0b4dee Sort options and their descriptions. Sync usage with man page. 2012-11-02 02:03:18 +00:00
christos
ac881fe51e treat a command without -c like an argument vector
default to exclusive lock
2012-11-02 01:30:46 +00:00
christos
dcdc302c64 Add an flock program inspired by the linux one with the same name. 2012-11-01 23:30:19 +00:00