I think the term missing here is POSIX. Android is not POSIX-compliant, and you're limited to the Android API.