/third_party/selinux/libselinux/src/ |
H A D | label_support.c | 56 * line_buf - Buffer containing the spec entries . 66 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()
|
H A D | label_db.c | 91 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 305 while (getline(&line_buf, &line_len, filp) > 0) { in db_init() 327 if (process_line(path, line_buf, ++line_num, catalog) < 0) in db_init() 336 free(line_buf); in db_init() 342 free(line_buf); in db_init()
|
H A D | label_media.c | 33 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()
|
H A D | label_x.c | 35 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()
|
H A D | selinux_config.c | 163 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()
|
H A D | label_backends_android.c | 84 const char *path, char *line_buf, in process_line() 94 items = read_spec_entries(line_buf, &errbuf, 2, &prop, &context); in process_line() 149 char line_buf[BUFSIZ]; in init() local 186 while (fgets(line_buf, sizeof(line_buf) - 1, fp) in init() 188 if (process_line(rec, path, line_buf, pass, ++lineno) in init() 83 process_line(struct selabel_handle *rec, const char *path, char *line_buf, int pass, unsigned lineno) process_line() argument
|
H A D | booleans.c | 95 char *line_buf = NULL; in selinux_boolean_sub() local 106 while (getline(&line_buf, &line_len, cfg) != -1) { in selinux_boolean_sub() 108 char *src = line_buf; in selinux_boolean_sub() 139 free(line_buf); in selinux_boolean_sub()
|
H A D | label_file.h | 436 char *line_buf, unsigned lineno) in process_line() 445 items = read_spec_entries(line_buf, &errbuf, 3, ®ex, &type, &context); in process_line() 434 process_line(struct selabel_handle *rec, const char *path, const char *prefix, char *line_buf, unsigned lineno) process_line() argument
|
H A D | label_internal.h | 152 extern int read_spec_entries(char *line_buf, const char **errbuf, int num_args, ...);
|
H A D | label_file.c | 103 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/node/deps/v8/src/utils/ |
H A D | utils.cc | 67 char line_buf[256]; in ReadLine() local 73 if (fgets(line_buf, sizeof(line_buf), stdin) == nullptr) { in ReadLine() 80 size_t len = strlen(line_buf); in ReadLine() 81 if (len > 1 && line_buf[len - 2] == '\\' && line_buf[len - 1] == '\n') { in ReadLine() 84 line_buf[len - 2] = '\n'; in ReadLine() 85 line_buf[len - 1] = 0; in ReadLine() 87 } else if ((len > 0) && (line_buf[len - 1] == '\n')) { in ReadLine() 106 std::memcpy(result + offset, line_buf, le in ReadLine() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | microdvddec.c | 85 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/libcoap/examples/riot/examples_libcoap_server/ |
H A D | main.c | 48 char line_buf[SHELL_DEFAULT_BUFSIZE]; in main() local 49 shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE); in main()
|
/third_party/libcoap/examples/riot/examples_libcoap_client/ |
H A D | main.c | 48 char line_buf[SHELL_DEFAULT_BUFSIZE]; in main() local 49 shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE); in main()
|
/third_party/jerryscript/targets/riot-stm32f4/source/ |
H A D | main-riotos.c | 107 char line_buf[SHELL_DEFAULT_BUFSIZE]; in main() local 108 shell_run (shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE); in main()
|
/third_party/selinux/libselinux/utils/ |
H A D | sefcontext_compile.c | 36 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/ |
H A D | util.h | 43 extern int tokenize(char *line_buf, char delim, int num_args, ...);
|
/third_party/selinux/libsepol/src/ |
H A D | util.c | 244 * line_buf - Buffer containing string to tokenize. 245 * delim - The delimiter used to tokenize line_buf. A whitespace delimiter will 254 * contain the remaining content of line_buf. If the delimiter is any whitespace 257 int tokenize(char *line_buf, char delim, int num_args, ...) in tokenize() argument 264 buf_p = line_buf; in tokenize()
|
/third_party/backends/backend/ |
H A D | coolscan3.c | 242 SANE_Byte *line_buf; member 1039 s->line_buf = NULL; in sane_open() 1546 memcpy(buf, &(s->line_buf[s->i_line_buf]), xfer_len_out); in sane_read() 1597 (SANE_Byte *) cs3_xrealloc(s->line_buf, in sane_read() 1604 s->line_buf = line_buf_new; in sane_read() 1637 s8 = (uint8_t *) & (s->line_buf[where]); in sane_read() 1664 s16 = (uint16_t *) & (s->line_buf[where]); in sane_read() 1706 memcpy(buf, s->line_buf, xfer_len_out); in sane_read() 1996 cs3_xfree(s->line_buf); in cs3_close()
|
H A D | coolscan2.c | 279 SANE_Byte *line_buf; member 1048 s->line_buf = NULL; in sane_open() 1542 memcpy (buf, &(s->line_buf[s->i_line_buf]), xfer_len_out); in sane_read() 1580 (SANE_Byte *) cs2_xrealloc (s->line_buf, in sane_read() 1587 s->line_buf = line_buf_new; in sane_read() 1625 (uint8_t *) & (s->line_buf[s->n_colour_out * index + colour]); in sane_read() 1655 line_buf[2 * in sane_read() 1690 memcpy (buf, s->line_buf, xfer_len_out); in sane_read() 1972 cs2_xfree (s->line_buf); in cs2_close()
|
H A D | artec.c | 3474 SANE_Byte line_buf[ARTEC_MAX_READ_SIZE]; in artec_sane_read() local 3581 memcpy (line_buf, in artec_sane_read() 3587 artec_buffer_line_offset (s, s->line_offset, line_buf, &nread); in artec_sane_read() 3593 artec_line_rgb_to_byte_rgb (line_buf, in artec_sane_read() 3598 artec_reverse_line (s, line_buf); in artec_sane_read() 3604 artec_software_rgb_calibrate (s, line_buf, 1); in artec_sane_read() 3607 memcpy (buf + bytes_read, line_buf, in artec_sane_read()
|