An update of
https://www.redhat.com/archives/libvir-list/2011-November/msg01609.html
In v2:
- Rename all APIs which return with errno set to have a Raw postfix (
async signal safe)
- Add variants of all APIs which raise errors (async signal dangerous)