/external/selinux/libselinux/src/ |
H A D | label_db.c | 91 process_line(const char *path, char *line_buf, unsigned int line_num, argument 99 temp = strchr(line_buf, '#'); 108 items = sscanf(line_buf, "%ms %ms %ms %ms", 242 char *line_buf = NULL; local 287 while (getline(&line_buf, &line_len, filp) > 0) { 309 if (process_line(path, line_buf, ++line_num, catalog) < 0) 312 free(line_buf);
|
H A D | label_media.c | 33 static int process_line(const char *path, char *line_buf, int pass, argument 41 buf_p = line_buf; 47 items = sscanf(line_buf, "%ms %ms ", &key, &context); 76 char *line_buf = NULL; local 117 while (getline(&line_buf, &line_len, fp) > 0 && 119 if (process_line(path, line_buf, pass, ++lineno, rec)) 137 free(line_buf);
|
H A D | label_x.c | 35 static int process_line(const char *path, char *line_buf, int pass, argument 43 buf_p = line_buf; 49 items = sscanf(line_buf, "%ms %ms %ms ", &type, &key, &context); 103 char *line_buf = NULL; local 144 while (getline(&line_buf, &line_len, fp) > 0 && 146 if (process_line(path, line_buf, pass, ++lineno, rec)) 164 free(line_buf);
|
H A D | booleans.c | 94 char *line_buf = NULL; local 105 while (getline(&line_buf, &line_len, cfg) != -1) { 107 char *src = line_buf; 137 free(line_buf);
|
H A D | label_android_property.c | 82 const char *path, char *line_buf, 92 len = strlen(line_buf); 93 if (line_buf[len - 1] == '\n') 94 line_buf[len - 1] = 0; 95 buf_p = line_buf; 101 items = sscanf(line_buf, "%255s %255s", prop, context); 147 char line_buf[BUFSIZ]; local 183 while (fgets(line_buf, sizeof line_buf - 1, fp) 185 if (process_line(rec, path, line_buf, pas 81 process_line(struct selabel_handle *rec, const char *path, char *line_buf, int pass, unsigned lineno) argument [all...] |
H A D | label_file.c | 155 char *line_buf, unsigned lineno) 164 len = strlen(line_buf); 165 if (line_buf[len - 1] == '\n') 166 line_buf[len - 1] = 0; 167 buf_p = line_buf; 173 items = sscanf(line_buf, "%ms %ms %ms", ®ex, &type, &context); 452 char *line_buf = NULL; local 486 while (getline(&line_buf, &line_len, fp) > 0) { 487 rc = process_line(rec, path, prefix, line_buf, ++lineno); 492 free(line_buf); 153 process_line(struct selabel_handle *rec, const char *path, const char *prefix, char *line_buf, unsigned lineno) argument [all...] |
H A D | selinux_config.c | 159 char *line_buf = NULL, *buf_p, *value, *type = NULL, *end; local 168 while ((len = getline(&line_buf, &line_len, fp)) > 0) { 169 if (line_buf[len - 1] == '\n') 170 line_buf[len - 1] = 0; 171 buf_p = line_buf; 210 free(line_buf);
|
/external/selinux/policycoreutils/restorecond/ |
H A D | watch.c | 215 char *line_buf = NULL; local 218 while (getline(&line_buf, &len, cfg) > 0) { 219 char *buffer = line_buf; 243 free(line_buf);
|
/external/libselinux/src/ |
H A D | label_android_property.c | 84 const char *path, char *line_buf, 94 len = strlen(line_buf); 95 if (line_buf[len - 1] == '\n') 96 line_buf[len - 1] = 0; 97 buf_p = line_buf; 103 items = sscanf(line_buf, "%255s %255s", prop, context); 149 char line_buf[BUFSIZ]; local 185 while (fgets(line_buf, sizeof line_buf - 1, fp) 187 if (process_line(rec, path, line_buf, pas 83 process_line(struct selabel_handle *rec, const char *path, char *line_buf, int pass, unsigned lineno) argument [all...] |
H A D | label_file.c | 283 char *line_buf, int pass, unsigned lineno) 292 len = strlen(line_buf); 293 if (line_buf[len - 1] == '\n') 294 line_buf[len - 1] = 0; 295 buf_p = line_buf; 301 items = sscanf(line_buf, "%255s %255s %255s", regex, type, context); 410 char line_buf[BUFSIZ]; local 463 while (fgets(line_buf, sizeof line_buf - 1, fp) 465 if (process_line(rec, path, prefix, line_buf, 281 process_line(struct selabel_handle *rec, const char *path, const char *prefix, char *line_buf, int pass, unsigned lineno) argument [all...] |
H A D | android.c | 313 char line_buf[BUFSIZ]; local 332 while (fgets(line_buf, sizeof line_buf - 1, fp)) { 333 p = line_buf; 348 while (fgets(line_buf, sizeof line_buf - 1, fp)) { 349 len = strlen(line_buf); 350 if (line_buf[len - 1] == '\n') 351 line_buf[len - 1] = 0; 352 p = line_buf; [all...] |
/external/selinux/libselinux/utils/ |
H A D | sefcontext_compile.c | 19 char *line_buf = NULL; local 31 while ((len = getline(&line_buf, &line_len, context_file)) != -1) { 44 len = strlen(line_buf); 45 if (line_buf[len - 1] == '\n') 46 line_buf[len - 1] = 0; 47 buf_p = line_buf; 54 items = sscanf(line_buf, "%ms %ms %ms", ®ex, &mode, &context); 56 fprintf(stderr, "invalid entry, skipping:%s", line_buf); 122 free(line_buf);
|
/external/v8/src/ |
H A D | utils.cc | 131 char line_buf[256]; local 137 if (fgets(line_buf, sizeof(line_buf), stdin) == NULL) { 144 int len = StrLength(line_buf); 146 line_buf[len - 2] == '\\' && 147 line_buf[len - 1] == '\n') { 150 line_buf[len - 2] = '\n'; 151 line_buf[len - 1] = 0; 153 } else if ((len > 0) && (line_buf[len - 1] == '\n')) { 172 MemCopy(result + offset, line_buf, le [all...] |
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
H A D | android_logmsg.cpp | 72 char line_buf [(MAX_NCI_PACKET_SIZE*2)+1]; local 73 ToHex (nciPacket, nciPacketLen, line_buf, sizeof(line_buf)); 74 __android_log_write (ANDROID_LOG_DEBUG, (is_recv) ? "BrcmNciR": "BrcmNciX", line_buf);
|
/external/e2fsprogs/misc/ |
H A D | badblocks.c | 212 char diff_buf[32], line_buf[128]; local 216 len = snprintf(line_buf, sizeof(line_buf), 226 len = mbstowcs(NULL, line_buf, sizeof(line_buf)); 228 fputs(line_buf, stderr); 229 memset(line_buf, '\b', len); 230 line_buf[len] = 0; 231 fputs(line_buf, stderr);
|
/external/pdfium/core/src/fxcodec/codec/ |
H A D | fx_codec_fax.cpp | 705 FX_LPBYTE line_buf = dest_buf + iRow * pitch; local 706 FXSYS_memset8(line_buf, 0xff, pitch); 707 _FaxG4GetRow(src_buf, src_size << 3, bitpos, line_buf, ref_buf, width); 708 FXSYS_memcpy32(ref_buf, line_buf, pitch);
|
H A D | fx_codec_jpeg.cpp | 171 FX_LPBYTE line_buf = NULL; local 173 line_buf = FX_Alloc2D(FX_BYTE, width, nComponents); 186 FX_LPBYTE dest_scan = line_buf; 200 row_pointer[0] = line_buf; 215 if (line_buf) { 216 FX_Free(line_buf);
|
/external/selinux/policycoreutils/newrole/ |
H A D | newrole.c | 263 char *line_buf = NULL; local 270 while (getline(&line_buf, &len, cfg) > 0) { 271 char *buffer = line_buf; 294 free(line_buf); 301 free(line_buf);
|
/external/sepolicy/tools/ |
H A D | check_seapp.c | 866 char line_buf[BUFSIZ]; local 874 while (fgets(line_buf, sizeof line_buf - 1, input_file)) { 878 len = strlen(line_buf); 879 if (line_buf[len - 1] == '\n') 880 line_buf[len - 1] = '\0'; 881 p = line_buf;
|
/external/selinux/libsemanage/src/ |
H A D | semanage_store.c | 2446 const char *line_buf, *line_end; local 2482 line_buf = buf; 2484 while ((line_end = semanage_get_line_end(line_buf, buf_remainder))) { 2485 line_len = line_end - line_buf + 1; 2496 line_buf = line_end + 1; 2502 if (!isspace(line_buf[i])) 2508 line_buf = line_end + 1; 2513 if (line_buf[i] == '#') { 2514 line_buf = line_end + 1; 2534 while (i < line_len && (!isspace(line_buf[ 2788 const char *line_buf, *line_end; local [all...] |