opnsense-src/lib/libc/tests
Ed Schouten 4ef9bd22ed Improve typing of POSIX search tree functions.
Back in 2015 when I reimplemented these functions to use an AVL tree, I
was annoyed by the weakness of the typing of these functions. Both tree
nodes and keys are represented by 'void *', meaning that things like the
documentation for these functions are an absolute train wreck.

To make things worse, users of these functions need to cast the return
value of tfind()/tsearch() from 'void *' to 'type_of_key **' in order to
access the key. Technically speaking such casts violate aliasing rules.
I've observed actual breakages as a result of this by enabling features
like LTO.

I've filed a bug report at the Austin Group. Looking at the way the bug
got resolved, they made a pretty good step in the right direction. A new
type 'posix_tnode' has been added to correspond to tree nodes. It is
still defined as 'void' for source-level compatibility, but in the very
far future it could be replaced by a proper structure type containing a
key pointer.

MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D8205
2016-10-13 18:25:40 +00:00
..
c063 Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
db Install h_db to unbreak some of the lib/libc/db testcases after 2016-09-06 00:51:25 +00:00
gen Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
hash Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
iconv Don't define PACKAGE in lib/libc/tests/{iconv,net/getaddrinfo} 2016-09-18 05:12:23 +00:00
inet Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
locale Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
net Re-add PACKAGE=> tests to lib/libc/tests/net/getaddrinfo/Makefile and add 2016-09-19 06:59:17 +00:00
nss Read the contents of the snapshot files properly 2016-05-13 10:52:02 +00:00
regex Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
resolv Increase timeout from 10 minutes to 20 minutes for all tests 2016-08-13 01:49:11 +00:00
rpc Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
setjmp Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
ssp This commit addresses regression introduceded in r302177 2016-06-28 07:47:42 +00:00
stdio Fix typos: use correct string format and value to compare. 2016-10-13 15:26:51 +00:00
stdlib Improve typing of POSIX search tree functions. 2016-10-13 18:25:40 +00:00
string Add a regression test to make sure the Russian collation is actually working 2016-07-15 23:43:23 +00:00
sys Re-add PACKAGE=> tests to lib/libc/tests/net/getaddrinfo/Makefile and add 2016-09-19 06:59:17 +00:00
termios Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
time Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
tls Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
tls_dso Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
ttyio Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
Makefile Mark SSP broken on MIPS. 2016-09-27 09:44:30 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.netbsd-tests Change WARNS to 2 across the board with all the libc testcases 2015-11-15 05:21:58 +00:00