implemented nn_errno and nn_strerror