getacct
extern size_t getacct(idtype_t, id_t, void *, size_t);
return (getacct(idtype, id, buf, bufsize));