Add logwtmp stub
Add wmempcpy
Implement qsort_r

Also write qsort in terms of qsort_r
Fix dn_comp prototype and add stub
Fix dn_expand pointer following
getifaddrs: Simplify list creation
getifaddrs: Use sysfs to query *all* network interfaces
getifaddrs: Just use strcpy

The destination size is the same as the source size.
getifaddrs: Add AF_PACKET interface addrs
openlog: Support SOCK_STREAM