Searched refs:linebuf (Results 1 – 5 of 5) sorted by relevance
/busybox-1.35.0/libbb/ |
D | get_line_from_file.c | 17 char *linebuf = NULL; in bb_get_chunk_from_file() local 24 linebuf = xrealloc(linebuf, idx + 0x100); in bb_get_chunk_from_file() 26 linebuf[idx++] = (char) ch; in bb_get_chunk_from_file() 34 if (linebuf) { in bb_get_chunk_from_file() 41 linebuf = xrealloc(linebuf, idx + 1); in bb_get_chunk_from_file() 42 linebuf[idx] = '\0'; in bb_get_chunk_from_file() 44 return linebuf; in bb_get_chunk_from_file() 127 char *linebuf = NULL; 132 linebuf = xrealloc(linebuf, idx + 0x100); 133 r = fgets(&linebuf[idx], 0x100, file); [all …]
|
D | fgets_str.c | 14 char *linebuf = NULL; in xmalloc_fgets_internal() local 26 return linebuf; /* NULL */ in xmalloc_fgets_internal() 32 linebuf = xrealloc(linebuf, linebufsz); in xmalloc_fgets_internal() 34 linebuf[idx] = ch; in xmalloc_fgets_internal() 40 linebuf[idx] = ch; in xmalloc_fgets_internal() 46 && memcmp(&linebuf[end_string_offset], terminating_string, term_length) == 0 in xmalloc_fgets_internal() 54 linebuf = xrealloc(linebuf, idx + 1); in xmalloc_fgets_internal() 55 linebuf[idx] = '\0'; in xmalloc_fgets_internal() 58 return linebuf; in xmalloc_fgets_internal()
|
/busybox-1.35.0/networking/ |
D | whois.c | 45 char linebuf[2 * 1024]; in query() local 57 && fgets(linebuf, sizeof(linebuf)-1, fp) in query() 61 len = strcspn(linebuf, "\r\n"); in query() 62 linebuf[len++] = '\n'; in query() 63 linebuf[len] = '\0'; in query() 66 memcpy(buf + bufpos, linebuf, len); in query() 71 trim(linebuf); in query() 72 str_tolower(linebuf); in query() 74 success = is_prefixed_with(linebuf, "domain:") in query() 75 || is_prefixed_with(linebuf, "domain name:"); in query() [all …]
|
/busybox-1.35.0/modutils/ |
D | modprobe-small.c | 450 char* linebuf; in load_dep_bb() local 465 linebuf = xmalloc_fgetline(fp); in load_dep_bb() 466 modinfo[cur].deps = linebuf ? linebuf : xzalloc(1); in load_dep_bb()
|
/busybox-1.35.0/miscutils/ |
D | less.c | 349 char linebuf[w + 1]; in re_wrap() local 362 d = linebuf; in re_wrap() 379 sz = (d - linebuf) + 1; /* + 1: NUL */ in re_wrap() 382 memcpy(d, linebuf, sz); in re_wrap() 392 d = linebuf; in re_wrap()
|