/external/toybox/toys/other/ |
D | rfkill.c | 34 int fd, tvar, idx = -1, tid = RFKILL_TYPE_ALL; in rfkill_main() local 38 for (tvar = 0; tvar < 3; tvar++) in rfkill_main() 39 if (!strcmp((char *[]){"list", "block", "unblock"}[tvar], *optargs)) break; in rfkill_main() 40 if (tvar == 3) error_exit("unknown cmd '%s'", *optargs); in rfkill_main() 41 if (tvar) { in rfkill_main() 60 fd = xopen("/dev/rfkill", (tvar ? O_RDWR : O_RDONLY)|O_NONBLOCK); in rfkill_main() 61 if (tvar) { in rfkill_main() 64 rfevent.soft = tvar == 1; in rfkill_main() 83 tvar = xopen(toybuf, O_RDONLY); in rfkill_main() 84 while ((line = get_line(tvar))) { in rfkill_main() [all …]
|
/external/openssh/openbsd-compat/ |
D | sys-queue.h | 205 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 207 (var) && ((tvar) = SLIST_NEXT(var, field), 1); \ 208 (var) = (tvar)) 279 #define LIST_FOREACH_SAFE(var, head, field, tvar) \ argument 281 (var) && ((tvar) = LIST_NEXT(var, field), 1); \ 282 (var) = (tvar)) 362 #define SIMPLEQ_FOREACH_SAFE(var, head, field, tvar) \ argument 364 (var) && ((tvar) = SIMPLEQ_NEXT(var, field), 1); \ 365 (var) = (tvar)) 441 #define TAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument [all …]
|
/external/linux-tools-perf/src/tools/perf/util/ |
D | probe-finder.c | 264 struct probe_trace_arg *tvar) in convert_variable_location() argument 288 if (!tvar) in convert_variable_location() 292 tvar->value = zalloc(ret + 2); in convert_variable_location() 293 if (tvar->value == NULL) in convert_variable_location() 295 snprintf(tvar->value, ret + 2, "@%s", dwarf_diename(vr_die)); in convert_variable_location() 296 tvar->ref = alloc_trace_arg_ref((long)offs); in convert_variable_location() 297 if (tvar->ref == NULL) in convert_variable_location() 328 if (!tvar) in convert_variable_location() 339 tvar->value = strdup(regs); in convert_variable_location() 340 if (tvar->value == NULL) in convert_variable_location() [all …]
|
D | probe-finder.h | 76 struct probe_trace_arg *tvar; /* Current result variable */ member
|
/external/mksh/src/ |
D | expr.c | 623 char *tvar; in exprtoken() local 655 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken() 656 es->val = global(tvar); in exprtoken() 657 afree(tvar, ATEMP); in exprtoken() 663 strndupx(tvar, es->tokp, cp - es->tokp, ATEMP); in exprtoken() 674 tvar = alloc(c + /* NUL */ 1, ATEMP); in exprtoken() 675 tvar[0] = '1'; in exprtoken() 676 tvar[1] = '#'; in exprtoken() 677 memcpy(tvar + 2, es->tokp + 1, c - 2); in exprtoken() 678 tvar[c] = '\0'; in exprtoken() [all …]
|
D | var.c | 727 char *tvar; in typeset() local 772 strndupx(tvar, var, val - var, ATEMP); in typeset() 778 strndupx(tvar, var, val - var, ATEMP); in typeset() 786 strdupx(tvar, var, ATEMP); in typeset() 789 len = strlen(tvar); in typeset() 790 if (len > 3 && tvar[len - 3] == '[' && tvar[len - 2] == '*' && in typeset() 791 tvar[len - 1] == ']') in typeset() 792 tvar[len - 3] = '\0'; in typeset() 803 varsearch(e->loc, &vp, tvar, hash(tvar)); in typeset() 840 if (!strcmp(qval, tvar)) in typeset() [all …]
|
/external/toybox/toys/pending/ |
D | ip.c | 1472 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info() local 1505 tvar = msglen; in display_route_info() 1507 for (rta = RTM_RTA(msg); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in display_route_info() 1603 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in display_route_info() local 1606 tvar = msglen; in display_route_info() 1607 for (rta = RTM_RTA(msg); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in display_route_info() 1734 int tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in route_get() local 1740 tvar = msglen; in route_get() 1741 for (rta = RTM_RTA(msg); RTA_OK(rta, tvar); rta=RTA_NEXT(rta, tvar)) in route_get() 2226 int32_t tvar, msglen = mhdr->nlmsg_len - NLMSG_LENGTH(sizeof(struct rtmsg)); in show_rules() local [all …]
|