Added "errno" support to privileged_*()