Added Rust is_ptr_err function

Added is_ptr_err to trusty_sys to check
if pointers returned by systemcalls are
valid or not.

Bug: 284177057
Test: build
Change-Id: Ie9fc37524fb9d73c62697263c7f2826680d36197
1 file changed