Home
last modified time | relevance | path

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

/external/selinux/libselinux/src/
Dlabel_support.c66 int read_spec_entries(char *line_buf, const char **errbuf, int num_args, ...) in read_spec_entries() argument
74 len = strlen(line_buf); in read_spec_entries()
75 if (line_buf[len - 1] == '\n') in read_spec_entries()
76 line_buf[len - 1] = '\0'; in read_spec_entries()
83 buf_p = line_buf; in read_spec_entries()
98 if (len - 1 == buf_p - line_buf) { in read_spec_entries()
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()
136 free(line_buf); in 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()
163 free(line_buf); in init()
Dselinux_config.c163 char *line_buf = NULL, *buf_p, *value, *type = NULL, *end; in init_selinux_config() local
172 while ((len = getline(&line_buf, &line_len, fp)) > 0) { in init_selinux_config()
173 if (line_buf[len - 1] == '\n') in init_selinux_config()
174 line_buf[len - 1] = 0; in init_selinux_config()
175 buf_p = line_buf; in init_selinux_config()
188 free(line_buf); in init_selinux_config()
200 free(line_buf); in init_selinux_config()
224 free(line_buf); in init_selinux_config()
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()
243 char *line_buf = NULL; in db_init() local
300 while (getline(&line_buf, &line_len, filp) > 0) { in db_init()
322 if (process_line(path, line_buf, ++line_num, catalog) < 0) in db_init()
325 free(line_buf); in db_init()
Dlabel_backends_android.c86 const char *path, char *line_buf, in process_line() argument
96 items = read_spec_entries(line_buf, &errbuf, 2, &prop, &context); in process_line()
151 char line_buf[BUFSIZ]; in process_file() local
181 while (fgets(line_buf, sizeof(line_buf) - 1, fp) && in process_file()
183 if (process_line(rec, path, line_buf, pass, ++lineno)) in process_file()
Dbooleans.c96 char *line_buf = NULL; in selinux_boolean_sub() local
107 while (getline(&line_buf, &line_len, cfg) != -1) { in selinux_boolean_sub()
109 char *src = line_buf; in selinux_boolean_sub()
139 free(line_buf); in selinux_boolean_sub()
Dlabel_internal.h149 extern int read_spec_entries(char *line_buf, const char **errbuf, int num_args, ...);
Dlabel_file.h436 char *line_buf, unsigned lineno) in process_line() argument
445 items = read_spec_entries(line_buf, &errbuf, 3, &regex, &type, &context); in process_line()
Dlabel_file.c103 char *line_buf = NULL; in process_text_file() local
105 while (getline(&line_buf, &line_len, fp) > 0) { in process_text_file()
106 rc = process_line(rec, path, prefix, line_buf, ++lineno); in process_text_file()
112 free(line_buf); in process_text_file()
/external/selinux/libsemanage/src/
Dsemanage_store.c2525 const char *line_buf, *line_end; in semanage_fc_sort() local
2561 line_buf = buf; in semanage_fc_sort()
2563 while ((line_end = semanage_get_line_end(line_buf, buf_remainder))) { in semanage_fc_sort()
2564 line_len = line_end - line_buf + 1; in semanage_fc_sort()
2575 line_buf = line_end + 1; in semanage_fc_sort()
2581 if (!isspace(line_buf[i])) in semanage_fc_sort()
2587 line_buf = line_end + 1; in semanage_fc_sort()
2592 if (line_buf[i] == '#') { in semanage_fc_sort()
2593 line_buf = line_end + 1; in semanage_fc_sort()
2613 while (i < line_len && (!isspace(line_buf[i]))) { in semanage_fc_sort()
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorFFT.h229 ComplexScalar* line_buf = (ComplexScalar*)m_device.allocate(sizeof(ComplexScalar) * line_len);
277 m_device.memcpy(line_buf, &buf[base_offset], line_len*sizeof(ComplexScalar));
281 line_buf[j] = buf[offset];
287 processDataLineCooleyTukey(line_buf, line_len, log_len);
290 … processDataLineBluestein(line_buf, line_len, good_composite, log_len, a, b, pos_j_base_powered);
295 m_device.memcpy(&buf[base_offset], line_buf, line_len*sizeof(ComplexScalar));
300 buf[offset] = (FFTDir == FFT_FORWARD) ? line_buf[j] : line_buf[j] * div_factor;
304 m_device.deallocate(line_buf);
339 …EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void processDataLineCooleyTukey(ComplexScalar* line_buf, Ind…
341 scramble_FFT(line_buf, line_len);
[all …]
/external/selinux/restorecond/
Dwatch.c228 char *line_buf = NULL; in process_config() local
231 while (getline(&line_buf, &len, cfg) > 0) { in process_config()
232 char *buffer = line_buf; in process_config()
256 free(line_buf); in process_config()
/external/bcc/libbpf-tools/
Duprobe_helpers.c58 char line_buf[1024]; in get_pid_lib_path() local
70 while (fgets(line_buf, sizeof(line_buf), maps)) { in get_pid_lib_path()
71 if (sscanf(line_buf, "%*x-%*x %*s %*x %*s %*u %s", path) != 1) in get_pid_lib_path()
/external/e2fsprogs/misc/
Dbadblocks.c221 char diff_buf[32], line_buf[128]; in print_status() local
228 len = snprintf(line_buf, sizeof(line_buf), in print_status()
238 mbstowcs(wline_buf, line_buf, sizeof(line_buf)); in print_status()
239 len = wcswidth(wline_buf, sizeof(line_buf)); in print_status()
241 len = strlen(line_buf); /* Should never happen... */ in print_status()
243 fputs(line_buf, stderr); in print_status()
244 memset(line_buf, '\b', len); in print_status()
245 line_buf[len] = 0; in print_status()
246 fputs(line_buf, stderr); in print_status()
/external/selinux/libselinux/utils/
Dsefcontext_compile.c36 char *line_buf = NULL; in process_file() local
50 while (getline(&line_buf, &line_len, context_file) > 0) { in process_file()
51 rc = process_line(rec, filename, prefix, line_buf, ++line_num); in process_file()
63 free(line_buf); in process_file()
/external/selinux/libselinux/src/android/
Dandroid_platform.c324 char line_buf[BUFSIZ]; in selinux_android_seapp_context_reload() local
379 while (fgets(line_buf, sizeof line_buf - 1, fp)) { in selinux_android_seapp_context_reload()
380 p = line_buf; in selinux_android_seapp_context_reload()
404 while (fgets(line_buf, sizeof line_buf - 1, fp)) { in selinux_android_seapp_context_reload()
405 len = strlen(line_buf); in selinux_android_seapp_context_reload()
410 if (line_buf[len - 1] == '\n') in selinux_android_seapp_context_reload()
411 line_buf[len - 1] = 0; in selinux_android_seapp_context_reload()
412 p = line_buf; in selinux_android_seapp_context_reload()
/external/pdfium/core/fxcodec/jpeg/
Djpegmodule.cpp636 uint8_t* line_buf = nullptr; in JpegEncode() local
638 line_buf = FX_Alloc2D(uint8_t, width, nComponents); in JpegEncode()
647 uint8_t* dest_scan = line_buf; in JpegEncode()
661 row_pointer[0] = line_buf; in JpegEncode()
678 FX_Free(line_buf); in JpegEncode()
/external/bc/src/
Dvm.c939 bc_vec_empty(&vm.line_buf);
947 s = bc_read_line(&vm.line_buf, ">>> ");
949 } while (!(s) && !vm.eof && vm.line_buf.len < 1);
951 good = (vm.line_buf.len > 1);
954 if (good) bc_vec_concat(&vm.buffer, vm.line_buf.v);
979 bc_vec_init(&vm.line_buf, sizeof(uchar), BC_DTOR_NONE);
1037 bc_vec_free(&vm.line_buf);
/external/selinux/libsepol/include/sepol/policydb/
Dutil.h41 extern int tokenize(char *line_buf, char delim, int num_args, ...);
/external/selinux/libsepol/src/
Dutil.c257 int tokenize(char *line_buf, char delim, int num_args, ...) in tokenize() argument
264 buf_p = line_buf; in tokenize()
/external/pdfium/core/fxcodec/fax/
Dfaxmodule.cpp617 uint8_t* line_buf = dest_buf + iRow * pitch; in FaxG4Decode() local
618 memset(line_buf, 0xff, pitch); in FaxG4Decode()
619 FaxG4GetRow(src_buf, src_size << 3, &bitpos, line_buf, ref_buf, width); in FaxG4Decode()
620 memcpy(ref_buf.data(), line_buf, pitch); in FaxG4Decode()
/external/selinux/policycoreutils/newrole/
Dnewrole.c257 char *line_buf = NULL; in process_pam_config() local
264 while (getline(&line_buf, &len, cfg) > 0) { in process_pam_config()
265 char *buffer = line_buf; in process_pam_config()
288 free(line_buf); in process_pam_config()
295 free(line_buf); in process_pam_config()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_device.cc1352 string line_buf = " "; in CreateDevices() local
1354 strings::StrAppend(&line_buf, visible_gpu_order[i].value(), " "); in CreateDevices()
1356 VLOG(1) << line_buf; in CreateDevices()
1358 line_buf = strings::StrCat(visible_gpu_order[i].value(), ": "); in CreateDevices()
1364 line_buf.append("Y "); in CreateDevices()
1366 line_buf.append("N "); in CreateDevices()
1369 VLOG(1) << line_buf; in CreateDevices()
/external/bc/include/
Dvm.h371 BcVec line_buf; member