summaryrefslogtreecommitdiff
path: root/usr.bin/flock/flock.c
AgeCommit message (Collapse)Author
2019-10-04fix a bug gcc 8 picked up: use ~LOCK_NB to look for LOCK_UN,mrg
like the rest of the code does. from uwe@.
2014-08-18remove XXX, fix error messagechristos
2014-08-18make this behave like linux; make -x the defaultchristos
2014-01-07Annotate functions using format strings.joerg
2013-10-29PR/48351: Dennis Ferguson: Fix incorrect parsing of flock flags.christos
XXX: still flock -s 0 fails with EINVAL, why?
2013-02-07Don't crash if "flock" is used to lock a file descriptor e.g. viatron
"flock --nb 8".
2012-11-02- better usage messageschristos
- verbose can be local - add static
2012-11-02- use modern timer functions to handler fractional waitchristos
- add a function to print the full command line - use sigaction so signals interrupt us
2012-11-02Use longer -c description.wiz
2012-11-02Sort options and their descriptions. Sync usage with man page.wiz
2012-11-02treat a command without -c like an argument vectorchristos
default to exclusive lock
2012-11-01Add an flock program inspired by the linux one with the same name.christos