Home
last modified time | relevance | path

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

/external/syslinux/gpxe/src/core/
Dlinebuf.c40 char * buffered_line ( struct line_buffer *linebuf ) { in buffered_line() argument
41 return ( linebuf->ready ? linebuf->data : NULL ); in buffered_line()
49 void empty_line_buffer ( struct line_buffer *linebuf ) { in empty_line_buffer() argument
50 free ( linebuf->data ); in empty_line_buffer()
51 linebuf->data = NULL; in empty_line_buffer()
52 linebuf->len = 0; in empty_line_buffer()
53 linebuf->ready = 0; in empty_line_buffer()
74 ssize_t line_buffer ( struct line_buffer *linebuf, in line_buffer() argument
82 if ( linebuf->ready ) in line_buffer()
83 empty_line_buffer ( linebuf ); in line_buffer()
[all …]
/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/syslinux/gpxe/src/include/gpxe/
Dlinebuf.h25 extern char * buffered_line ( struct line_buffer *linebuf );
26 extern ssize_t line_buffer ( struct line_buffer *linebuf,
28 extern void empty_line_buffer ( struct line_buffer *linebuf );
/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/syslinux/gpxe/src/net/tcp/
Dhttp.c86 struct line_buffer linebuf; member
99 empty_line_buffer ( &http->linebuf ); in http_free()
278 empty_line_buffer ( &http->linebuf ); in http_rx_header()
383 len = line_buffer ( &http->linebuf, iobuf->data, in http_socket_deliver_iob()
392 line = buffered_line ( &http->linebuf ); in http_socket_deliver_iob()
/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.c330 char *linebuf; in STACK_OF() local
333 linebuf = BUF_strdup(line); in STACK_OF()
334 if (linebuf == NULL) { in STACK_OF()
341 for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n'); in STACK_OF()
411 OPENSSL_free(linebuf); in STACK_OF()
415 OPENSSL_free(linebuf); in STACK_OF()
/external/python/cpython3/Python/
Derrors.c1127 char linebuf[1000]; in err_programtext() local
1132 char *pLastChar = &linebuf[sizeof(linebuf) - 2]; in err_programtext()
1135 if (Py_UniversalNewlineFgets(linebuf, sizeof linebuf, in err_programtext()
1148 res = PyUnicode_FromString(linebuf); in err_programtext()
/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.c3548 char *linebuf = NULL; in cpuset_import() local
3554 if ((linebuf = malloc(linebuflen)) == NULL) { in cpuset_import()
3560 while (slgets(linebuf, linebuflen, buf, &offset)) { in cpuset_import()
3565 if ((tok = strchr(linebuf, '#')) != NULL) in cpuset_import()
3567 if ((tok = strtok_r(linebuf, " \t", &ptr)) == NULL) in cpuset_import()
3624 free(linebuf); in cpuset_import()
3652 free(linebuf); in cpuset_import()
/external/libpcap/
Dpcap-linux.c2443 char linebuf[512]; local
2476 fgets(linebuf, sizeof linebuf, proc_net_f) != NULL; linenum++) {
2483 p = &linebuf[0];