(Note: getres[ug]id is still a dummy as it returns via pointers to a different sized integer and does need real wrappers.)