Switch rcs_{get,set}_mtime() from returning and taking a time_t to
authorguenther <guenther@openbsd.org>
Fri, 11 Aug 2023 05:02:21 +0000 (05:02 +0000)
committerguenther <guenther@openbsd.org>
Fri, 11 Aug 2023 05:02:21 +0000 (05:02 +0000)
commit6541b77c94127ecd11c0a5f7b2cdfe2db3a4a356
treeaf2e8c8c7f99d84d5a0eade4cb6ca55a2233b078
parentaa42de4717fd8df13aeb685263cf463f79b0cd8a
Switch rcs_{get,set}_mtime() from returning and taking a time_t to
doing so with a struct timespec and then use tv_nsec = UTIME_OMIT
instead of a (time_t)-1 as a "do nothing" value.  They can then
fully preserve the timestamp

ok millert@
usr.bin/rcs/co.c
usr.bin/rcs/rcsclean.c
usr.bin/rcs/rcsprog.c
usr.bin/rcs/rcsutil.c
usr.bin/rcs/rcsutil.h