freebsd-skq/sys/compat
asomers b3776cb8de Make timespecadd(3) and friends public
The timespecadd(3) family of macros were imported from NetBSD back in
r35029. However, they were initially guarded by #ifdef _KERNEL. In the
meantime, we have grown at least 28 syscalls that use timespecs in some
way, leading many programs both inside and outside of the base system to
redefine those macros. It's better just to make the definitions public.

Our kernel currently defines two-argument versions of timespecadd and
timespecsub.  NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, define
three-argument versions.  Solaris also defines a three-argument version, but
only in its kernel.  This revision changes our definition to match the
common three-argument version.

Bump _FreeBSD_version due to the breaking KPI change.

Discussed with:	cem, jilles, ian, bde
Differential Revision:	https://reviews.freebsd.org/D14725
2018-07-30 15:46:40 +00:00
..
cloudabi Eliminate the overhead of gratuitous repeated reinitialization of cap_rights 2018-05-09 18:47:24 +00:00
cloudabi32 Don't use an .OBJDIR for 'make sysent'. 2018-01-29 19:14:15 +00:00
cloudabi64 Don't use an .OBJDIR for 'make sysent'. 2018-01-29 19:14:15 +00:00
freebsd32 freebsd32_getrusage(2): skip freebsd32_rusage_out on error 2018-07-29 19:20:13 +00:00
ia32 Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
linprocfs Fix output of linprocfs stat entry 2018-06-22 00:02:05 +00:00
linsysfs Create PCI_MATCH and pci_match_device 2018-07-07 15:25:11 +00:00
linux Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
linuxkpi/common Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
ndis Fix build of ndis with base gcc on i386 2018-06-17 19:24:40 +00:00
netbsd sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
x86bios x86bios: spelling fix in a comment. 2016-04-30 00:34:04 +00:00