Lines Matching refs:type
183 name2id(char *name, int type)
187 if (acname->ar_type == type &&
206 id2name(int id, int type)
210 if (acname->ar_type == type &&
219 printgroup(int type)
224 if (ac_groups[g].ag_type != type)
227 (void) printf("%s", id2name(ac_groups[g].ag_mem[0], type));
229 (void) printf(",%s", id2name(id, type));
239 printgroups(int type)
243 if ((type & AC_PROC) && (type & AC_TASK) && (type & AC_FLOW) &&
244 (type & AC_NET)) {
247 if (type & AC_PROC) {
252 if (type & AC_TASK) {
257 if (type & AC_FLOW) {
262 if (type & AC_NET) {
297 str2buf(ac_res_t *buf, char *str, int state, int type)
317 if (strcmp(p, g) == 0 && ac_groups[i].ag_type == type) {
326 id = name2id(p, type);
331 ac_type_name(type), p);
341 * accounting type is selected by the fourth argument.
345 buf2str(ac_res_t *buffer, size_t bufsz, int state, int type)
360 if (ac_groups[i].ag_type != type)
388 if (id2name(cur->ar_id, type) == NULL)
390 ac_type_name(type), cur->ar_id);
391 (void) strcat(str, id2name(cur->ar_id, type));