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 Use _exit, not exit in forked process 2015-04-10 09:37:53 +00:00
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 Remove argc/argv (-Wunused) 2015-04-10 09:23:00 +00:00
kqueue Fix -Wunused warnings, bump WARNS to 6 2015-04-10 08:01:49 +00:00
listen_backlog Fix warnings 2015-04-10 09:26:21 +00:00
listen_kqueue Add a regression test for putting a socket on kqueue, and then doing 2017-02-14 21:56:01 +00:00
listenclose Remove argc/argv (-Wunused) 2015-04-10 09:27:23 +00:00
pr_atomic Fix warnings, bump WARNS to 6, and use a temporary socket instead of one in /tmp 2015-04-11 07:33:04 +00:00
reconnect Fix warnings with gcc 5.0 2016-01-16 02:15:13 +00:00
rtsocket Test for EPROTOTYPE not EPROTONOSUPPORT 2016-01-16 02:02:50 +00:00
sblock Fix warnings and bump WARNS to 6 2015-04-11 03:13:09 +00:00
sendfile Fix warnings with gcc 5.0 2016-01-16 02:15:13 +00:00
shutdown Fix a -Wuninitialized warning by setting the socket to -1 and bump WARNS to 6 2015-04-11 03:19:48 +00:00
sigpipe Mark signum unused in signal_handler; bump WARNS to 6 2015-04-11 03:24:49 +00:00
so_setfib tools: minor spelling fixes. 2016-05-01 16:20:14 +00:00
udp_pingpong Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
unix_bindconnect Fix warnings and bump WARNS to 6 2015-04-11 03:38:49 +00:00
unix_close_race - Garbage collect argc/argv; bump WARNS to 6 2015-04-11 03:43:43 +00:00
unix_cmsg Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
unix_gc Fix -Wunused warning with clang/gcc 2016-01-16 02:19:56 +00:00
unix_sendtorace - Garbage collect argc/argv 2015-04-11 03:54:43 +00:00
unix_socket Test for EPROTOTYPE not EPROTONOSUPPORT 2016-01-16 02:02:50 +00:00
unix_sorflush Garbage collect argc/argv and bump WARNS to 6 2015-04-11 03:57:35 +00:00
zerosend Use different ports in the TCP/UDP testcases with the first set and 2016-01-23 22:51:22 +00:00