Home
last modified time | relevance | path

Searched refs:linebuf (Results 1 – 19 of 19) sorted by relevance

/external/u-boot/lib/
Dhexdump.c53 char *linebuf, size_t linebuflen, bool ascii) in hex_dump_to_buffer() argument
85 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
96 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
107 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
119 linebuf[lx++] = hex_asc_hi(ch); in hex_dump_to_buffer()
122 linebuf[lx++] = hex_asc_lo(ch); in hex_dump_to_buffer()
125 linebuf[lx++] = ' '; in hex_dump_to_buffer()
136 linebuf[lx++] = ' '; in hex_dump_to_buffer()
142 linebuf[lx++] = (isascii(ch) && isprint(ch)) ? ch : '.'; in hex_dump_to_buffer()
145 linebuf[lx] = '\0'; in hex_dump_to_buffer()
[all …]
Ddisplay_options.c138 union linebuf { in print_buffer() union
/external/python/cpython2/Python/
Dtraceback.c123 char linebuf[2000]; in _Py_DisplaySourceLine() local
175 char* pLastChar = &linebuf[sizeof(linebuf)-2]; in _Py_DisplaySourceLine()
178 if (Py_UniversalNewlineFgets(linebuf, sizeof linebuf, xfp, NULL) == NULL) in _Py_DisplaySourceLine()
189 char *p = linebuf; in _Py_DisplaySourceLine()
218 char linebuf[2000]; in tb_displayline() local
224 PyOS_snprintf(linebuf, sizeof(linebuf), FMT, filename, lineno, name); in tb_displayline()
225 err = PyFile_WriteString(linebuf, f); in tb_displayline()
Derrors.c797 char linebuf[1000]; in PyErr_ProgramText() local
805 char *pLastChar = &linebuf[sizeof(linebuf) - 2]; in PyErr_ProgramText()
808 if (Py_UniversalNewlineFgets(linebuf, sizeof linebuf, fp, NULL) == NULL) in PyErr_ProgramText()
819 char *p = linebuf; in PyErr_ProgramText()
/external/selinux/checkpolicy/
Dpolicy_scan.l37 static char linebuf[2][255]; variable
60 \n.* { strncpy(linebuf[lno], yytext+1, 255);
61 linebuf[lno][254] = 0;
304 linebuf[0], linebuf[1]);
320 linebuf[0], linebuf[1]);
/external/python/cpython2/Lib/distutils/
Dtext_file.py112 self.linebuf = []
176 if self.linebuf:
177 line = self.linebuf[-1]
178 del self.linebuf[-1]
304 self.linebuf.append (line)
/external/python/cpython3/Lib/distutils/
Dtext_file.py109 self.linebuf = []
166 if self.linebuf:
167 line = self.linebuf[-1]
168 del self.linebuf[-1]
286 self.linebuf.append(line)
/external/u-boot/cmd/
Dfpgad.c34 u16 linebuf[DISP_LINE_LEN/sizeof(u16)]; in do_fpga_md() local
77 &linebuf[k]); in do_fpga_md()
78 print_buffer(addr, (void *)linebuf, sizeof(u16), in do_fpga_md()
Di2c.c575 unsigned char linebuf[DISP_LINE_LEN]; in do_i2c_md() local
581 ret = dm_i2c_read(dev, addr, linebuf, linebytes); in do_i2c_md()
583 ret = i2c_read(chip, addr, alen, linebuf, linebytes); in do_i2c_md()
589 cp = linebuf; in do_i2c_md()
595 cp = linebuf; in do_i2c_md()
/external/libaom/libaom/av1/common/
Dcdef.c145 uint16_t *linebuf[3]; in av1_cdef_frame() local
173 linebuf[pli] = aom_malloc(sizeof(*linebuf) * CDEF_VBORDER * stride); in av1_cdef_frame()
304 copy_rect(&src[CDEF_HBORDER], CDEF_BSTRIDE, &linebuf[pli][coffset], in av1_cdef_frame()
316 copy_rect(src, CDEF_BSTRIDE, &linebuf[pli][coffset - CDEF_HBORDER], in av1_cdef_frame()
330 &linebuf[pli][coffset + hsize], stride, CDEF_VBORDER, in av1_cdef_frame()
347 cm, &linebuf[pli][coffset], stride, xd->plane[pli].dst.buf, in av1_cdef_frame()
402 aom_free(linebuf[pli]); in av1_cdef_frame()
/external/linux-kselftest/tools/testing/selftests/x86/
Dmpx-dig.c91 char linebuf[10000]; in __pid_load_vaddrs() local
101 char *readret = fgets(linebuf, sizeof(linebuf), f); in __pid_load_vaddrs()
110 parsed = sscanf(linebuf, "%lx-%lx%s", &start, &end, rest); in __pid_load_vaddrs()
/external/icu/icu4c/source/common/
Dicuplug.cpp803 char linebuf[1024]; in uplug_init()
808 while(fgets(linebuf,1023,f)) { in uplug_init()
811 if(!*linebuf || *linebuf=='#') { in uplug_init()
814 p = linebuf; in uplug_init()
/external/boringssl/src/crypto/x509v3/
Dv3_utl.c331 char *linebuf; in STACK_OF() local
334 linebuf = BUF_strdup(line); in STACK_OF()
335 if (linebuf == NULL) { in STACK_OF()
342 for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n'); in STACK_OF()
412 OPENSSL_free(linebuf); in STACK_OF()
416 OPENSSL_free(linebuf); in STACK_OF()
/external/python/cpython3/Python/
Derrors.c1133 char linebuf[1000]; in err_programtext() local
1138 char *pLastChar = &linebuf[sizeof(linebuf) - 2]; in err_programtext()
1141 if (Py_UniversalNewlineFgets(linebuf, sizeof linebuf, in err_programtext()
1154 res = PyUnicode_FromString(linebuf); in err_programtext()
/external/u-boot/include/
Dhexdump.h85 char *linebuf, size_t linebuflen, bool ascii);
/external/icu/icu4c/source/extra/uconv/
Duconv.cpp672 UChar linebuf[20], offsetbuf[20]; in convertFile() local
673 uprv_itou(linebuf, 20, parse.line, 10, 0); in convertFile()
676 u_wmsg_errorName(err), linebuf, offsetbuf); in convertFile()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibcpuset.c3536 char *linebuf = NULL; in cpuset_import() local
3542 if ((linebuf = malloc(linebuflen)) == NULL) { in cpuset_import()
3548 while (slgets(linebuf, linebuflen, buf, &offset)) { in cpuset_import()
3553 if ((tok = strchr(linebuf, '#')) != NULL) in cpuset_import()
3555 if ((tok = strtok_r(linebuf, " \t", &ptr)) == NULL) in cpuset_import()
3612 free(linebuf); in cpuset_import()
3640 free(linebuf); in cpuset_import()
/external/arm-optimized-routines/test/
Dmathtest.c1487 char testbuf[512], linebuf[512]; in runtests() local
1497 strcpy(linebuf, testbuf); in runtests()
1514 linebuf, in runtests()
1520 printf("%s:%d: malformed: %s\n", name, lineno, linebuf); in runtests()
/external/libpcap/
Dpcap-linux.c2516 char linebuf[512]; local
2549 fgets(linebuf, sizeof linebuf, proc_net_f) != NULL; linenum++) {
2556 p = &linebuf[0];