1 wcrtomb should be declared in <wchar.h> not in <stdio.h>
3 http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcrtomb.html
5 http://repo.or.cz/w/c-standard.git/blob_plain/HEAD:/n1256.html#7.24.6.3.3
8 pthread_kill(invalid_value, sig); required to return ESRCH which is not possible
9 http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_kill.html
11 restrict in wcpncpy prototype is at the wrong place
12 wchar_t *wcpncpy(wchar_t restrict *ws1, const wchar_t *restrict ws2, size_t n);
14 http://pubs.opengroup.org/onlinepubs/9699919799/functions/dirname.html
15 dirname of "usr/" is not specified clearly (it could be "" or "." based on the specs)