Home
last modified time | relevance | path

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

/external/selinux/libselinux/src/
Dlabel_android_property.c82 const char *path, char *line_buf, in process_line() argument
92 len = strlen(line_buf); in process_line()
93 if (line_buf[len - 1] == '\n') in process_line()
94 line_buf[len - 1] = 0; in process_line()
95 buf_p = line_buf; in process_line()
101 items = sscanf(line_buf, "%255s %255s", prop, context); in process_line()
147 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_media.c33 static int process_line(const char *path, char *line_buf, int pass, in process_line() argument
41 buf_p = line_buf; in process_line()
47 items = sscanf(line_buf, "%ms %ms ", &key, &context); in process_line()
76 char *line_buf = NULL; in init() local
117 while (getline(&line_buf, &line_len, fp) > 0 && in init()
119 if (process_line(path, line_buf, pass, ++lineno, rec)) in init()
137 free(line_buf); in init()
Dlabel_db.c91 process_line(const char *path, char *line_buf, unsigned int line_num, in process_line() argument
99 temp = strchr(line_buf, '#'); in process_line()
108 items = sscanf(line_buf, "%ms %ms %ms %ms", in process_line()
242 char *line_buf = NULL; in db_init() local
287 while (getline(&line_buf, &line_len, filp) > 0) { in db_init()
309 if (process_line(path, line_buf, ++line_num, catalog) < 0) in db_init()
312 free(line_buf); in db_init()
Dlabel_x.c35 static int process_line(const char *path, char *line_buf, int pass, in process_line() argument
43 buf_p = line_buf; in process_line()
49 items = sscanf(line_buf, "%ms %ms %ms ", &type, &key, &context); in process_line()
103 char *line_buf = NULL; in init() local
144 while (getline(&line_buf, &line_len, fp) > 0 && in init()
146 if (process_line(path, line_buf, pass, ++lineno, rec)) in init()
164 free(line_buf); in init()
Dselinux_config.c159 char *line_buf = NULL, *buf_p, *value, *type = NULL, *end; in init_selinux_config() local
168 while ((len = getline(&line_buf, &line_len, fp)) > 0) { in init_selinux_config()
169 if (line_buf[len - 1] == '\n') in init_selinux_config()
170 line_buf[len - 1] = 0; in init_selinux_config()
171 buf_p = line_buf; in init_selinux_config()
210 free(line_buf); in init_selinux_config()
Dlabel_file.c155 char *line_buf, unsigned lineno) in process_line() argument
164 len = strlen(line_buf); in process_line()
165 if (line_buf[len - 1] == '\n') in process_line()
166 line_buf[len - 1] = 0; in process_line()
167 buf_p = line_buf; in process_line()
173 items = sscanf(line_buf, "%ms %ms %ms", &regex, &type, &context); in process_line()
452 char *line_buf = NULL; in process_file() local
486 while (getline(&line_buf, &line_len, fp) > 0) { in process_file()
487 rc = process_line(rec, path, prefix, line_buf, ++lineno); in process_file()
492 free(line_buf); in process_file()
Dbooleans.c94 char *line_buf = NULL; in hidden_def() local
105 while (getline(&line_buf, &line_len, cfg) != -1) { in hidden_def()
107 char *src = line_buf; in hidden_def()
137 free(line_buf); in hidden_def()
/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
185 while (fgets(line_buf, sizeof line_buf - 1, fp) in init()
187 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.c313 char line_buf[BUFSIZ]; in selinux_android_seapp_context_reload() local
332 while (fgets(line_buf, sizeof line_buf - 1, fp)) { in selinux_android_seapp_context_reload()
333 p = line_buf; in selinux_android_seapp_context_reload()
348 while (fgets(line_buf, sizeof line_buf - 1, fp)) { in selinux_android_seapp_context_reload()
349 len = strlen(line_buf); in selinux_android_seapp_context_reload()
350 if (line_buf[len - 1] == '\n') in selinux_android_seapp_context_reload()
351 line_buf[len - 1] = 0; in selinux_android_seapp_context_reload()
352 p = line_buf; in selinux_android_seapp_context_reload()
/external/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/selinux/libselinux/utils/
Dsefcontext_compile.c19 char *line_buf = NULL; in process_file() local
31 while ((len = getline(&line_buf, &line_len, context_file)) != -1) { in process_file()
44 len = strlen(line_buf); in process_file()
45 if (line_buf[len - 1] == '\n') in process_file()
46 line_buf[len - 1] = 0; in process_file()
47 buf_p = line_buf; in process_file()
54 items = sscanf(line_buf, "%ms %ms %ms", &regex, &mode, &context); in process_file()
56 fprintf(stderr, "invalid entry, skipping:%s", line_buf); in process_file()
122 free(line_buf); in process_file()
/external/selinux/libsemanage/src/
Dsemanage_store.c2446 const char *line_buf, *line_end; in semanage_fc_sort() local
2482 line_buf = buf; in semanage_fc_sort()
2484 while ((line_end = semanage_get_line_end(line_buf, buf_remainder))) { in semanage_fc_sort()
2485 line_len = line_end - line_buf + 1; in semanage_fc_sort()
2496 line_buf = line_end + 1; in semanage_fc_sort()
2502 if (!isspace(line_buf[i])) in semanage_fc_sort()
2508 line_buf = line_end + 1; in semanage_fc_sort()
2513 if (line_buf[i] == '#') { in semanage_fc_sort()
2514 line_buf = line_end + 1; in semanage_fc_sort()
2534 while (i < line_len && (!isspace(line_buf[i]))) { in semanage_fc_sort()
[all …]
/external/selinux/policycoreutils/restorecond/
Dwatch.c215 char *line_buf = NULL; in process_config() local
218 while (getline(&line_buf, &len, cfg) > 0) { in process_config()
219 char *buffer = line_buf; in process_config()
243 free(line_buf); in process_config()
/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.c866 char line_buf[BUFSIZ]; in parse() local
874 while (fgets(line_buf, sizeof line_buf - 1, input_file)) { in parse()
878 len = strlen(line_buf); in parse()
879 if (line_buf[len - 1] == '\n') in parse()
880 line_buf[len - 1] = '\0'; in parse()
881 p = line_buf; in parse()
/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/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpeg.cpp171 FX_LPBYTE line_buf = NULL; in _JpegEncode() local
173 line_buf = FX_Alloc2D(FX_BYTE, width, nComponents); in _JpegEncode()
186 FX_LPBYTE dest_scan = line_buf; in _JpegEncode()
200 row_pointer[0] = line_buf; in _JpegEncode()
215 if (line_buf) { in _JpegEncode()
216 FX_Free(line_buf); in _JpegEncode()
Dfx_codec_fax.cpp705 FX_LPBYTE line_buf = dest_buf + iRow * pitch; in _FaxG4Decode() local
706 FXSYS_memset8(line_buf, 0xff, pitch); in _FaxG4Decode()
707 _FaxG4GetRow(src_buf, src_size << 3, bitpos, line_buf, ref_buf, width); in _FaxG4Decode()
708 FXSYS_memcpy32(ref_buf, line_buf, pitch); in _FaxG4Decode()
/external/selinux/policycoreutils/newrole/
Dnewrole.c263 char *line_buf = NULL; in process_pam_config() local
270 while (getline(&line_buf, &len, cfg) > 0) { in process_pam_config()
271 char *buffer = line_buf; in process_pam_config()
294 free(line_buf); in process_pam_config()
301 free(line_buf); in process_pam_config()