freebsd-skq/sys/netsmb
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
..
netbios.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_conn.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_conn.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_crypt.c Unsign some values related to allocation. 2018-01-22 02:08:10 +00:00
smb_dev.c Eliminate the overhead of gratuitous repeated reinitialization of cap_rights 2018-05-09 18:47:24 +00:00
smb_dev.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_iod.c Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
smb_rq.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_rq.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_smb.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_subr.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_subr.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_tran.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_trantcp.c Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
smb_trantcp.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb_usr.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
smb.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00