Updated testsuite (replaced posix obsolete functions).