am: cb299b858f * commit 'cb299b858f4f073e2abd4ad45aa944dc0dfd0aa2': Replace hard-coded errno values with OsConstants