in most of the resource manage handlers, errno is set by returning that
errno and the library does the job of returning -1 and setting errno to
the specified value.
however, that dosent seem to be the sae in io_devctl. any similar easy
way to set errno and return error?
help will be appreciated.