freebsd-src/usr.bin/lockf
Kyle Evans feafc7d0bc lockf: switch to strtonum() for parsing timeout
Convert waitsec to a long long to be able to hold the full domain of
alarm(3) timeout on all platforms, and let strtonum(3) handle the input
validation.  strtonum(3) also happens to provide a neater interface for
error handling, and it already includes our pre-existing empty input
check.

Sponsored by:	Klara, Inc.

(cherry picked from commit e4967d4d48)
2023-12-14 18:59:27 -06:00
..
tests lockf: allow locking file descriptors 2023-12-14 18:59:25 -06:00
lockf.1 lockf: allow locking file descriptors 2023-12-14 18:59:25 -06:00
lockf.c lockf: switch to strtonum() for parsing timeout 2023-12-14 18:59:27 -06:00
Makefile lockf: add some tests 2023-12-14 18:59:21 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00