/busybox-1.35.0/sysklogd/ |
D | logread.c | 112 unsigned cur; in logread_main() local 136 cur = shbuf->tail; in logread_main() 159 cur, shbuf_tail, shbuf_size); in logread_main() 169 cur += strlen(shbuf_data + cur); in logread_main() 170 if (cur >= shbuf_size) { /* last byte in buffer? */ in logread_main() 171 cur = strnlen(shbuf_data, shbuf_tail); in logread_main() 172 if (cur == shbuf_tail) in logread_main() 176 cur++; in logread_main() 177 if (cur >= shbuf_size) /* last byte in buffer? */ in logread_main() 178 cur = 0; in logread_main() [all …]
|
/busybox-1.35.0/procps/ |
D | smemcap.c | 47 struct fileblock *start, *cur; in archivefile() local 60 cur = xzalloc(sizeof(*cur)); in archivefile() 61 *prev = cur; in archivefile() 62 prev = &cur->next; in archivefile() 63 r = full_read(fd, cur->data, TAR_BLOCK_SIZE); in archivefile() 75 for (cur = start; (int)size > 0; size -= TAR_BLOCK_SIZE) { in archivefile() 76 xwrite(STDOUT_FILENO, cur->data, TAR_BLOCK_SIZE); in archivefile() 77 start = cur; in archivefile() 78 cur = cur->next; in archivefile()
|
D | nmeter.c | 864 char *cur, *prev; in nmeter_main() local 887 cur = xstrdup(argv[0]); in nmeter_main() 890 prev = cur; in nmeter_main() 892 cur = strchr(cur, '%'); in nmeter_main() 893 if (!cur) in nmeter_main() 895 if (cur[1] == '%') { // %% in nmeter_main() 896 overlapping_strcpy(cur, cur + 1); in nmeter_main() 897 cur++; in nmeter_main() 900 *cur++ = '\0'; // overwrite % in nmeter_main() 901 if (cur[0] == '[') { in nmeter_main() [all …]
|
D | top.c | 357 top_status_t *cur; in do_stats() local 373 cur = top + n; in do_stats() 379 pid = cur->pid; in do_stats() 380 new_hist[n].ticks = cur->ticks; in do_stats() 384 cur->pcpu = 0; in do_stats() 390 cur->pcpu = cur->ticks - prev_hist[i].ticks; in do_stats() 391 total_pcpu += cur->pcpu; in do_stats()
|
/busybox-1.35.0/coreutils/ |
D | uudecode.c | 227 unsigned cur, next; in bb_b32encode() local 230 cur = *s++; in bb_b32encode() 231 *p++ = tbl[cur >> 3]; // xxxxx--- -------- -------- -------- -------- in bb_b32encode() 232 cur &= 7; in bb_b32encode() 237 *p++ = tbl[(cur << 2) + (next >> 6)]; // -----xxx xx------ -------- -------- -------- in bb_b32encode() 238 cur = next & 0x3f; in bb_b32encode() 240 *p++ = tbl[cur >> 1]; // -------- --xxxxx- -------- -------- -------- in bb_b32encode() 241 cur &= 1; in bb_b32encode() 246 *p++ = tbl[(cur << 4) + (next >> 4)]; // -------- -------x xxxx---- -------- -------- in bb_b32encode() 247 cur = next & 0xf; in bb_b32encode() [all …]
|
D | ls.c | 700 struct dnode *cur; in my_stat() local 702 cur = xzalloc(sizeof(*cur)); in my_stat() 703 cur->fullname = fullname; in my_stat() 704 cur->name = name; in my_stat() 709 getfilecon(fullname, &cur->sid); in my_stat() 715 free(cur); in my_stat() 718 cur->dn_mode_stat = statbuf.st_mode; in my_stat() 722 lgetfilecon(fullname, &cur->sid); in my_stat() 728 free(cur); in my_stat() 731 cur->dn_mode_lstat = statbuf.st_mode; in my_stat() [all …]
|
/busybox-1.35.0/networking/ |
D | httpd.c | 571 has_next_ptr *cur = *pptr; in free_llist() local 572 while (cur) { in free_llist() 573 has_next_ptr *t = cur; in free_llist() 574 cur = cur->next; in free_llist() 917 Htaccess *cur; in parse_conf() local 919 cur = xzalloc(sizeof(*cur) /* includes space for NUL */ + strlen_buf); in parse_conf() 920 strcpy(cur->before_colon, buf); in parse_conf() 921 p = cur->before_colon + (after_colon - buf); in parse_conf() 923 cur->after_colon = p; in parse_conf() 926 cur->next = mime_a; in parse_conf() [all …]
|
D | isrv_identd.c | 64 char *cur, *p; in do_rd() local 67 cur = buf->buf + buf->pos; in do_rd() 69 sz = safe_read(fd, cur, sizeof(buf->buf) - 1 - buf->pos); in do_rd() 79 p = strpbrk(cur, "\r\n"); in do_rd()
|
D | nslookup.c | 112 struct addrinfo *cur = result; in print_host() local 117 while (cur) { in print_host() 119 dotted = xmalloc_sockaddr2dotted_noport(cur->ai_addr); in print_host() 120 revhost = xmalloc_sockaddr2hostonly_noport(cur->ai_addr); in print_host() 130 cur = cur->ai_next; in print_host()
|
D | ntpd.c | 2241 key_entry_t *cur = (key_entry_t*) key_entries->data; in find_key_entry() local 2242 if (cur->id == id) in find_key_entry() 2243 return cur; in find_key_entry()
|
/busybox-1.35.0/debianutils/ |
D | run_parts.c | 94 int cur; member 99 #define cur (G.cur ) macro 159 names = xrealloc_vector(names, 4, cur); in act() 160 names[cur++] = xstrdup(file); in act() 220 qsort(names, cur, sizeof(char *), bb_alphasort); in run_parts_main()
|
/busybox-1.35.0/util-linux/ |
D | rdate.c | 70 time_t cur = time(NULL); in askremotedate() local 71 int32_t adjust = (int32_t)(nett - (uint32_t)cur); in askremotedate() 72 return cur + adjust; in askremotedate()
|
D | hwclock.c | 169 time_t cur; in set_kernel_timezone_and_clock() local 181 cur = time(NULL); in set_kernel_timezone_and_clock() 182 broken = localtime(&cur); in set_kernel_timezone_and_clock()
|
/busybox-1.35.0/archival/libarchive/ |
D | get_header_cpio.c | 147 hardlinks_t *cur; in get_header_cpio() local 162 cur = archive_handle->cpio__created_hardlinks; in get_header_cpio() 163 while (cur) { in get_header_cpio() 165 if (cur->inode == make_me->inode) { in get_header_cpio() 166 file_header->link_target = cur->name; in get_header_cpio() 173 cur = cur->next; in get_header_cpio()
|
/busybox-1.35.0/modutils/ |
D | modprobe-small.c | 385 int cur; in fileAction() local 397 cur = module_count++; in fileAction() 398 modinfo = xrealloc_vector(modinfo, 12, cur); in fileAction() 399 modinfo[cur].pathname = xstrdup(pathname); in fileAction() 409 module_found_idx = cur; in fileAction() 410 if (parse_module(&modinfo[cur], pathname) != 0) in fileAction() 451 int cur; in load_dep_bb() local 458 cur = module_count++; in load_dep_bb() 459 modinfo = xrealloc_vector(modinfo, 12, cur); in load_dep_bb() 461 modinfo[cur].pathname = line; /* we take ownership of malloced block here */ in load_dep_bb() [all …]
|
/busybox-1.35.0/shell/ |
D | math.c | 259 remembered_name *cur; in arith_lookup_val() local 265 for (cur = math_state->list_of_recursed_names; cur; cur = cur->next) { in arith_lookup_val() 266 if (strcmp(cur->var, t->var) == 0) { in arith_lookup_val() 273 cur = math_state->list_of_recursed_names; in arith_lookup_val() 275 cur_save.next = cur; in arith_lookup_val() 282 math_state->list_of_recursed_names = cur; in arith_lookup_val()
|
D | hush.c | 583 char *cur; member 1625 fp->cur = fp->end = fp->buf; in hfopen() 1634 HFILE *cur = *pp; in hfclose() local 1635 if (cur == fp) { in hfclose() 1636 *pp = cur->next_hfile; in hfclose() 1639 pp = &cur->next_hfile; in hfclose() 1679 fp->cur = fp->buf; in refill_HFILE_and_getc() 1687 return (unsigned char)(*fp->cur++); in refill_HFILE_and_getc() 1693 if (fp->cur < fp->end) in hfgetc() 1694 return (unsigned char)(*fp->cur++); in hfgetc() [all …]
|
/busybox-1.35.0/findutils/ |
D | grep.c | 636 llist_t *cur = fopt; in load_regexes_from_file() local 637 char *ffile = cur->data; in load_regexes_from_file() 639 fopt = cur->link; in load_regexes_from_file() 640 free(cur); in load_regexes_from_file() 762 llist_t *cur, *new = NULL; in grep_main() local 763 for (cur = pattern_head; cur; cur = cur->link) in grep_main() 764 load_pattern_list(&new, cur->data); in grep_main()
|
/busybox-1.35.0/libbb/ |
D | lineedit.c | 1009 int cur = int_buf[i]; in build_match_prefix() local 1010 if (!cur) in build_match_prefix() 1012 if (cur == '\'' || cur == '"') { in build_match_prefix() 1013 if (!in_quote || (cur == in_quote)) { in build_match_prefix() 1014 in_quote ^= cur; in build_match_prefix() 1020 int_buf[i] = cur | QUOT; in build_match_prefix() 1030 int cur = int_buf[i]; in build_match_prefix() local 1031 if (cur == ';' || cur == '&' || cur == '|') { in build_match_prefix() 1033 if (cur == '&' && (prev == '>' || prev == '<')) { in build_match_prefix() 1035 } else if (cur == '|' && prev == '>') { in build_match_prefix() [all …]
|
/busybox-1.35.0/editors/ |
D | vi.c | 1253 int cur, percent, ret, trunc_at; in format_edit_status() local 1263 cur = count_lines(text, dot); in format_edit_status() 1269 tot = cur + count_lines(dot, end - 1) - 1; in format_edit_status() 1277 percent = (100 * cur) / tot; in format_edit_status() 1279 cur = tot = 0; in format_edit_status() 1298 cur, tot, percent); in format_edit_status()
|
D | awk.c | 114 char *cur; member 2178 w->cur = w->end = w->wbuf; in hashwalk_init() 2193 if (w->cur >= w->end) { in hashwalk_next() 2202 setvar_s(v, nextword(&w->cur)); in hashwalk_next()
|
/busybox-1.35.0/examples/var_service/getty_tty1/ |
D | unicode_cyrillic.keymap | 30 …================ alt shift ============= alt cyr =============== alt shift cur ========= ctrlalt =…
|