Lines Matching refs:id
180 * this function returns the id of the named resource
203 * this function gives name of the resource by its id
206 id2name(int id, int type)
211 acname->ar_id == id)
221 int r, g, id;
228 for (r = 1; (id = ac_groups[g].ag_mem[r]) != AC_NONE; r++)
229 (void) printf(",%s", id2name(id, type));
273 resset(ac_res_t *res, int id, int state)
276 resp = (ac_res_t *)((uintptr_t)res + (sizeof (ac_res_t) * (id - 1)));
278 resp->ar_id = id;
285 resget(ac_res_t *res, int id)
288 resp = (ac_res_t *)((uintptr_t)res + (sizeof (ac_res_t) * (id - 1)));
299 int i, j, id, ok;
318 for (j = 0; (id = ac_groups[i].ag_mem[j]) !=
320 resset(buf, id, state);
326 id = name2id(p, type);
327 if (id > 0)
328 resset(buf, id, state);
329 else if (id == 0)
347 int i, j, ok, id;
362 for (j = 0; (id = ac_groups[i].ag_mem[j]) != AC_NONE; j++) {
364 if (resget(buf, id) != state) {
373 for (j = 0; (id = ac_groups[i].ag_mem[j]) != AC_NONE;
375 resset(buf, id,
389 die(gettext("unknown %s resource id (%d)\n"),