if function is not implemented, check for ENOSYS instead of ENOTSUP. Signed-off-by: Anas Nashif <anas.nashif@intel.com>