Correct usage of rapi_error_t for errors and rapi_ssize_t where required
Correct usage of rapi_error_t for errors and rapi_ssize_t where required

ilveroluca/rapi,ilveroluca/rapi,ilveroluca/rapi,ilveroluca/rapi