Home
last modified time | relevance | path

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

/third_party/gettext/gettext-tools/src/
Dfile-list.c42 char *line_buf = NULL; in read_names_from_file() local
61 int len = getline (&line_buf, &line_len, fp); in read_names_from_file()
68 if (len > 0 && line_buf[len - 1] == '\n') in read_names_from_file()
69 line_buf[--len] = '\0'; in read_names_from_file()
71 && (line_buf[len - 1] == ' ' in read_names_from_file()
72 || line_buf[len - 1] == '\t' in read_names_from_file()
73 || line_buf[len - 1] == '\r')) in read_names_from_file()
74 line_buf[--len] = '\0'; in read_names_from_file()
77 if (!(*line_buf == '\0' || *line_buf == '#')) in read_names_from_file()
79 string_list_append_unique (result, line_buf); in read_names_from_file()
[all …]
Dmsgfmt.c1445 char *line_buf = NULL; in get_languages() local
1473 int len = getline (&line_buf, &line_len, fp); in get_languages()
1480 if (len > 0 && line_buf[len - 1] == '\n') in get_languages()
1481 line_buf[--len] = '\0'; in get_languages()
1483 && (line_buf[len - 1] == ' ' in get_languages()
1484 || line_buf[len - 1] == '\t' in get_languages()
1485 || line_buf[len - 1] == '\r')) in get_languages()
1486 line_buf[--len] = '\0'; in get_languages()
1489 if (!(*line_buf == '\0' || *line_buf == '#')) in get_languages()
1491 add_languages (languages, desired_languages, line_buf, len); in get_languages()
[all …]
/third_party/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()
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()
181 free(line_buf); in init_selinux_config()
193 free(line_buf); in init_selinux_config()
215 free(line_buf); in init_selinux_config()
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()
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.c84 const char *path, char *line_buf, in process_line() argument
94 items = read_spec_entries(line_buf, &errbuf, 2, &prop, &context); in process_line()
151 char line_buf[BUFSIZ]; in init() local
188 while (fgets(line_buf, sizeof(line_buf) - 1, fp) in init()
190 if (process_line(rec, path, line_buf, pass, ++lineno) in init()
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.h147 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()
/third_party/ffmpeg/libavformat/
Dmicrodvddec.c85 char line_buf[MAX_LINESIZE]; in microdvd_read_header() local
95 int len = ff_get_line(s->pb, line_buf, sizeof(line_buf)); in microdvd_read_header()
96 char *line = line_buf; in microdvd_read_header()
/third_party/jerryscript/targets/riot-stm32f4/source/
Dmain-riotos.c107 char line_buf[SHELL_DEFAULT_BUFSIZE]; in main() local
108 shell_run (shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE); in main()
/third_party/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()
/third_party/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()
/third_party/selinux/libsepol/include/sepol/policydb/
Dutil.h41 extern int tokenize(char *line_buf, char delim, int num_args, ...);
/third_party/selinux/libsepol/src/
Dutil.c252 int tokenize(char *line_buf, char delim, int num_args, ...) in tokenize() argument
259 buf_p = line_buf; in tokenize()