do not allocate cap data if version is 0. Note man page is wrong, returns 0 in this case not INVAL
return capabilities type from capget normally
add capget test
doc update
add capset