Home
last modified time | relevance | path

Searched refs:line_buf (Results 1 – 13 of 13) sorted by relevance

/external/qemu/distrib/libselinux/src/
Dlabel_android_property.c84 const char *path, char *line_buf, in process_line() argument
94 len = strlen(line_buf); in process_line()
95 if (line_buf[len - 1] == '\n') in process_line()
96 line_buf[len - 1] = 0; in process_line()
97 buf_p = line_buf; in process_line()
103 items = sscanf(line_buf, "%255s %255s", prop, context); in process_line()
149 char line_buf[BUFSIZ]; in init() local
183 while (fgets(line_buf, sizeof line_buf - 1, fp) in init()
185 if (process_line(rec, path, line_buf, pass, ++lineno) != 0) { in init()
Dlabel_file.c282 char *line_buf, int pass, unsigned lineno) in process_line() argument
291 len = strlen(line_buf); in process_line()
292 if (line_buf[len - 1] == '\n') in process_line()
293 line_buf[len - 1] = 0; in process_line()
294 buf_p = line_buf; in process_line()
300 items = sscanf(line_buf, "%255s %255s %255s", regex, type, context); in process_line()
409 char line_buf[BUFSIZ]; in init() local
462 while (fgets(line_buf, sizeof line_buf - 1, fp) in init()
464 if (process_line(rec, path, prefix, line_buf, in init()
475 while (fgets(line_buf, sizeof line_buf - 1, homedirfp) in init()
[all …]
Dandroid.c276 char line_buf[BUFSIZ]; in selinux_android_seapp_context_reload() local
295 while (fgets(line_buf, sizeof line_buf - 1, fp)) { in selinux_android_seapp_context_reload()
296 p = line_buf; in selinux_android_seapp_context_reload()
311 while (fgets(line_buf, sizeof line_buf - 1, fp)) { in selinux_android_seapp_context_reload()
312 len = strlen(line_buf); in selinux_android_seapp_context_reload()
313 if (line_buf[len - 1] == '\n') in selinux_android_seapp_context_reload()
314 line_buf[len - 1] = 0; in selinux_android_seapp_context_reload()
315 p = line_buf; in selinux_android_seapp_context_reload()
/external/libselinux/src/
Dlabel_android_property.c84 const char *path, char *line_buf, in process_line() argument
94 len = strlen(line_buf); in process_line()
95 if (line_buf[len - 1] == '\n') in process_line()
96 line_buf[len - 1] = 0; in process_line()
97 buf_p = line_buf; in process_line()
103 items = sscanf(line_buf, "%255s %255s", prop, context); in process_line()
149 char line_buf[BUFSIZ]; in init() local
183 while (fgets(line_buf, sizeof line_buf - 1, fp) in init()
185 if (process_line(rec, path, line_buf, pass, ++lineno) != 0) { in init()
Dlabel_file.c283 char *line_buf, int pass, unsigned lineno) in process_line() argument
292 len = strlen(line_buf); in process_line()
293 if (line_buf[len - 1] == '\n') in process_line()
294 line_buf[len - 1] = 0; in process_line()
295 buf_p = line_buf; in process_line()
301 items = sscanf(line_buf, "%255s %255s %255s", regex, type, context); in process_line()
410 char line_buf[BUFSIZ]; in init() local
463 while (fgets(line_buf, sizeof line_buf - 1, fp) in init()
465 if (process_line(rec, path, prefix, line_buf, in init()
476 while (fgets(line_buf, sizeof line_buf - 1, homedirfp) in init()
[all …]
Dandroid.c283 char line_buf[BUFSIZ]; in selinux_android_seapp_context_reload() local
302 while (fgets(line_buf, sizeof line_buf - 1, fp)) { in selinux_android_seapp_context_reload()
303 p = line_buf; in selinux_android_seapp_context_reload()
318 while (fgets(line_buf, sizeof line_buf - 1, fp)) { in selinux_android_seapp_context_reload()
319 len = strlen(line_buf); in selinux_android_seapp_context_reload()
320 if (line_buf[len - 1] == '\n') in selinux_android_seapp_context_reload()
321 line_buf[len - 1] = 0; in selinux_android_seapp_context_reload()
322 p = line_buf; in selinux_android_seapp_context_reload()
/external/chromium_org/v8/src/
Dutils.cc131 char line_buf[256]; in ReadLine() local
137 if (fgets(line_buf, sizeof(line_buf), stdin) == NULL) { in ReadLine()
144 int len = StrLength(line_buf); in ReadLine()
146 line_buf[len - 2] == '\\' && in ReadLine()
147 line_buf[len - 1] == '\n') { in ReadLine()
150 line_buf[len - 2] = '\n'; in ReadLine()
151 line_buf[len - 1] = 0; in ReadLine()
153 } else if ((len > 0) && (line_buf[len - 1] == '\n')) { in ReadLine()
172 MemCopy(result + offset, line_buf, len * kCharSize); in ReadLine()
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
Dandroid_logmsg.cpp72 char line_buf [(MAX_NCI_PACKET_SIZE*2)+1]; in ProtoDispAdapterDisplayNciPacket() local
73 ToHex (nciPacket, nciPacketLen, line_buf, sizeof(line_buf)); in ProtoDispAdapterDisplayNciPacket()
74 __android_log_write (ANDROID_LOG_DEBUG, (is_recv) ? "BrcmNciR": "BrcmNciX", line_buf); in ProtoDispAdapterDisplayNciPacket()
/external/sepolicy/tools/
Dcheck_seapp.c917 char line_buf[BUFSIZ]; in parse() local
925 while (fgets(line_buf, sizeof line_buf - 1, input_file)) { in parse()
929 len = strlen(line_buf); in parse()
930 if (line_buf[len - 1] == '\n') in parse()
931 line_buf[len - 1] = '\0'; in parse()
932 p = line_buf; in parse()
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpeg.cpp217 FX_LPBYTE line_buf = NULL; in _JpegEncode() local
219 line_buf = FX_Alloc(FX_BYTE, width * nComponents); in _JpegEncode()
220 if (line_buf == NULL) { in _JpegEncode()
235 FX_LPBYTE dest_scan = line_buf; in _JpegEncode()
249 row_pointer[0] = line_buf; in _JpegEncode()
258 FX_Free(line_buf); in _JpegEncode()
268 if (line_buf) { in _JpegEncode()
269 FX_Free(line_buf); in _JpegEncode()
Dfx_codec_fax.cpp679 FX_LPBYTE line_buf = dest_buf + iRow * pitch; in _FaxG4Decode() local
680 FXSYS_memset8(line_buf, 0xff, pitch); in _FaxG4Decode()
681 _FaxG4GetRow(src_buf, src_size << 3, bitpos, line_buf, ref_buf, width); in _FaxG4Decode()
682 FXSYS_memcpy32(ref_buf, line_buf, pitch); in _FaxG4Decode()
/external/e2fsprogs/misc/
Dbadblocks.c212 char diff_buf[32], line_buf[128]; in print_status() local
216 len = snprintf(line_buf, sizeof(line_buf), in print_status()
226 len = mbstowcs(NULL, line_buf, sizeof(line_buf)); in print_status()
228 fputs(line_buf, stderr); in print_status()
229 memset(line_buf, '\b', len); in print_status()
230 line_buf[len] = 0; in print_status()
231 fputs(line_buf, stderr); in print_status()
/external/qemu/
Dgdbstub.c281 char line_buf[MAX_PACKET_LENGTH]; member
1595 static int gdb_handle_packet(GDBState *s, const char *line_buf) in gdb_handle_packet() argument
1607 printf("command='%s'\n", line_buf); in gdb_handle_packet()
1609 p = line_buf; in gdb_handle_packet()
2115 } else if (s->line_buf_index >= sizeof(s->line_buf) - 1) { in gdb_read_byte()
2118 s->line_buf[s->line_buf_index++] = ch; in gdb_read_byte()
2122 s->line_buf[s->line_buf_index] = '\0'; in gdb_read_byte()
2130 csum += s->line_buf[i]; in gdb_read_byte()
2139 s->state = gdb_handle_packet(s, s->line_buf); in gdb_read_byte()