freebsd-dev/tools/regression/sockets
Alan Somers 6040822c4e 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
..
accept_fd_leak
accf_data_attach Add a test case for a connection on accept queue that is reset before 2017-08-24 20:52:02 +00:00
fstat
kqueue
listen_backlog
listen_kqueue Add a regression test for putting a socket on kqueue, and then doing 2017-02-14 21:56:01 +00:00
listenclose
pr_atomic
reconnect
rtsocket
sblock
sendfile
shutdown
sigpipe
so_setfib
udp_pingpong Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
unix_bindconnect
unix_close_race
unix_cmsg Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
unix_gc
unix_sendtorace
unix_socket
unix_sorflush
zerosend