opnsense-src/usr.bin/lockf
Kyle Evans 78e30818a0 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 e4967d4d48b0a7d873e4f778c0a6e560e09d4dc3)
2023-12-14 18:58:33 -06:00
..
tests lockf: allow locking file descriptors 2023-12-14 18:58:29 -06:00
lockf.1 lockf: allow locking file descriptors 2023-12-14 18:58:29 -06:00
lockf.c lockf: switch to strtonum() for parsing timeout 2023-12-14 18:58:33 -06:00
Makefile lockf: add some tests 2023-12-14 18:58:25 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00