HomeSort by relevance Sort by last modified time
    Searched refs:line_buf (Results 1 - 25 of 38) sorted by null

1 2

  /system/extras/memory_replay/tests/
LineBufferTest.cpp 47 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer));
51 ASSERT_TRUE(line_buf.GetLine(&line, &line_len));
55 ASSERT_FALSE(line_buf.GetLine(&line, &line_len));
66 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer));
70 ASSERT_TRUE(line_buf.GetLine(&line, &line_len));
74 ASSERT_FALSE(line_buf.GetLine(&line, &line_len));
87 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer));
91 ASSERT_TRUE(line_buf.GetLine(&line, &line_len));
95 ASSERT_TRUE(line_buf.GetLine(&line, &line_len));
99 ASSERT_TRUE(line_buf.GetLine(&line, &line_len))
    [all...]
  /external/libselinux/src/
label_support.c 60 * line_buf - Buffer containing the spec entries .
70 int hidden read_spec_entries(char *line_buf, const char **errbuf, int num_args, ...)
78 len = strlen(line_buf);
79 if (line_buf[len - 1] == '\n')
80 line_buf[len - 1] = '\0';
87 buf_p = line_buf;
102 if (len - 1 == buf_p - line_buf) {
label_android_property.c 84 const char *path, char *line_buf,
94 items = read_spec_entries(line_buf, &errbuf, 2, &prop, &context);
145 char line_buf[BUFSIZ]; local
182 while (fgets(line_buf, sizeof(line_buf) - 1, fp)
184 if (process_line(rec, path, line_buf, pass, ++lineno)
label_internal.h 91 extern int read_spec_entries(char *line_buf, const char **errbuf, int num_args, ...);
  /system/sepolicy/tools/fc_sort/
fc_sort.c 319 char *input_name, *output_name, *line_buf; local
352 line_buf = NULL;
354 while ( getline(&line_buf, &buf_len, in_file) != -1 ){
355 line_len = strlen(line_buf);
360 if (!isspace(line_buf[i]))
368 if (line_buf[i] == '#')
384 while (i < line_len && (!isspace(line_buf[i])))
399 temp->path = (char*)strndup(&line_buf[start], regex_len);
410 if (!isspace(line_buf[i]))
422 if (line_buf[i] == '-')
    [all...]
  /external/selinux/libsepol/include/sepol/policydb/
util.h 41 extern int tokenize(char *line_buf, char delim, int num_args, ...);
  /external/selinux/libselinux/src/
label_support.c 46 * line_buf - Buffer containing the spec entries .
53 int hidden read_spec_entries(char *line_buf, int num_args, ...)
59 len = strlen(line_buf);
60 if (line_buf[len - 1] == '\n')
61 line_buf[len - 1] = '\0';
68 buf_p = line_buf;
83 if (len - 1 == buf_p - line_buf) {
label_db.c 91 process_line(const char *path, char *line_buf, unsigned int line_num,
99 temp = strchr(line_buf, '#');
108 items = sscanf(line_buf, "%ms %ms %ms %ms",
243 char *line_buf = NULL; local
295 while (getline(&line_buf, &line_len, filp) > 0) {
317 if (process_line(path, line_buf, ++line_num, catalog) < 0)
320 free(line_buf);
label_media.c 33 static int process_line(const char *path, char *line_buf, int pass,
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);
label_x.c 35 static int process_line(const char *path, char *line_buf, int pass,
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);
label_android_property.c 84 const char *path, char *line_buf,
93 items = read_spec_entries(line_buf, 2, &prop, &context);
134 char line_buf[BUFSIZ]; local
171 while (fgets(line_buf, sizeof(line_buf) - 1, fp)
173 if (process_line(rec, path, line_buf, pass, ++lineno)
selinux_config.c 158 char *line_buf = NULL, *buf_p, *value, *type = NULL, *end; local
167 while ((len = getline(&line_buf, &line_len, fp)) > 0) {
168 if (line_buf[len - 1] == '\n')
169 line_buf[len - 1] = 0;
170 buf_p = line_buf;
209 free(line_buf);
label_internal.h 143 extern int read_spec_entries(char *line_buf, int num_args, ...);
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);
  /system/extras/memory_replay/
main.cpp 40 LineBuffer line_buf(fd, g_buffer, sizeof(g_buffer));
44 while (line_buf.GetLine(&line, &line_len)) {
81 LineBuffer line_buf(fd, g_buffer, sizeof(g_buffer));
85 while (line_buf.GetLine(&line, &line_len)) {
NativeInfo.cpp 35 LineBuffer line_buf(smaps_fd, map_buffer, sizeof(map_buffer));
41 while (line_buf.GetLine(&line, &line_len)) {
  /system/core/libmemunreachable/
ProcessMappings.cpp 38 LineBuffer line_buf(fd, map_buffer, sizeof(map_buffer));
41 while (line_buf.GetLine(&line, &line_len)) {
  /external/v8/src/
utils.cc 156 char line_buf[256]; local
162 if (fgets(line_buf, sizeof(line_buf), stdin) == NULL) {
169 int len = StrLength(line_buf);
171 line_buf[len - 2] == '\\' &&
172 line_buf[len - 1] == '\n') {
175 line_buf[len - 2] = '\n';
176 line_buf[len - 1] = 0;
178 } else if ((len > 0) && (line_buf[len - 1] == '\n')) {
197 MemCopy(result + offset, line_buf, len * kCharSize)
    [all...]
  /external/selinux/policycoreutils/restorecond/
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/libnfc-nci/halimpl/bcm2079x/adaptation/
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/libselinux/utils/
sefcontext_compile.c 25 char *line_buf = NULL; local
39 while (getline(&line_buf, &line_len, context_file) > 0) {
40 rc = process_line(rec, filename, prefix, line_buf, ++line_num);
45 free(line_buf);
  /external/selinux/libselinux/utils/
sefcontext_compile.c 36 char *line_buf = NULL; local
50 while (getline(&line_buf, &line_len, context_file) > 0) {
51 rc = process_line(rec, filename, prefix, line_buf, ++line_num);
63 free(line_buf);
  /toolchain/binutils/binutils-2.25/opcodes/
opc2c.c 29 static char * line_buf = NULL; variable
39 if (line_buf == NULL)
41 line_buf = (char *) malloc (LBUFINCR);
46 line_ptr = line_buf + line_buf_size - 1;
50 if (fgets (line_buf, line_buf_size, f) == 0)
58 line_buf = (char *) realloc (line_buf, line_buf_size);
61 line_ptr = line_buf + line_buf_size - 1;
65 if (fgets (line_buf + line_buf_size - LBUFINCR - 1, LBUFINCR + 1, f) == 0)
69 return line_buf;
    [all...]
  /external/e2fsprogs/misc/
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);
    [all...]
  /external/selinux/libsepol/src/
util.c 239 * line_buf - Buffer containing string to tokenize.
240 * delim - The delimiter used to tokenize line_buf. A whitespace delimiter will
249 * contain the remaining content of line_buf. If the delimiter is any whitespace
252 int hidden tokenize(char *line_buf, char delim, int num_args, ...)
259 buf_p = line_buf;

Completed in 477 milliseconds

1 2