]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Bring in timespce_get form NetBSD.
authorWarner Losh <imp@FreeBSD.org>
Fri, 10 Aug 2018 15:16:30 +0000 (15:16 +0000)
committerWarner Losh <imp@FreeBSD.org>
Fri, 10 Aug 2018 15:16:30 +0000 (15:16 +0000)
commit7e299411ac91383d8a28de9fadd2b4ed8a148fff
treee421e66d68eaf7f17104e054dc7a83b5a1f44c3c
parentf4d5e7d8b534fc331ac4680fe09a3b43fa9a5191
Bring in timespce_get form NetBSD.

Bring in the functionality for timespec_get from NetBSD. I've lightly
edited the .c file to remove _DIAGASSERT because FreeBSD doesn't have
that functionality and the typical #define'ing it to assert isn't
right here. The man page is verbatim from NetBSD, but will be revised
as part of a larger cleanup of the time man pages (they are
inconsistent and vague in all the wrong places).

Differential Review: https://reviews.freebsd.org/D16649
include/time.h
lib/libc/gen/Makefile.inc
lib/libc/gen/Symbol.map
lib/libc/gen/timespec_get.3 [new file with mode: 0644]
lib/libc/gen/timespec_get.c [new file with mode: 0644]
sys/sys/param.h