]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Bring in timespce_get form NetBSD.
authorimp <imp@FreeBSD.org>
Fri, 10 Aug 2018 15:16:30 +0000 (15:16 +0000)
committerimp <imp@FreeBSD.org>
Fri, 10 Aug 2018 15:16:30 +0000 (15:16 +0000)
commit4a3cabfb15bb25cf8edadc16715a717cb6431198
treee421e66d68eaf7f17104e054dc7a83b5a1f44c3c
parent9ceb9bc9afa53aa74b3c818f6c23b02ced45e9ea
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