tests: Fix passing uninitialized values.
tests: Check the returned ip from recvfrom.
tests: Also check recvfrom() with NULL pointer.
cmake: Detect attribute format
logging: Add logging when loading system functions

Also fix some whitespace errors
logging: log creating the sockets
tests: use discard_const to get rid of a warning on Solaris
Fix formatting of variables of type pid_t
cmake: Increase required cmake version number.

We need CheckPrototypeDefinition.
cmake: Fix linking echo_srv on Solaris.
swrap: Don't build with swrap_str_lib() if NDEBUG is defined.

This fixes a compile warning on optimized builds.
echo_srv: Fix a build warning.
tests: Remove FIONBIO cause it doesn't work on x86.
tests: Remove unused code.
tests: Rename testsuite to test_ioctl.
tests: Use inet_pton() instead of inet_aton().
tests: Add test_echo_udp_send_recv test.
torture: Add torture_generate_random_buffer().
torture: Pass socket type to torture_setup_echo_srv_ip().
torture: Add tcp function to setup echo server.