Home
last modified time | relevance | path

Searched refs:file_stream (Results 1 – 6 of 6) sorted by relevance

/external/selinux/libsemanage/src/
Dparse_utils.c26 tmp_info->file_stream = NULL; in parse_init()
48 info->file_stream = fopen(info->filename, "r"); in parse_open()
49 if (!info->file_stream && (errno != ENOENT)) { in parse_open()
54 if (info->file_stream) in parse_open()
55 __fsetlocking(info->file_stream, FSETLOCKING_BYCALLER); in parse_open()
63 if (info->file_stream) in parse_close()
64 fclose(info->file_stream); in parse_close()
65 info->file_stream = NULL; in parse_close()
102 while (info->file_stream && in parse_skip_space()
103 ((len = getline(&buffer, &buf_len, info->file_stream)) > 0)) { in parse_skip_space()
Dparse_utils.h16 FILE *file_stream; /* Input stream handle */ member
/external/google-breakpad/src/processor/
Dmicrodump_processor_unittest.cc64 std::ifstream file_stream(file_name.c_str(), std::ios::in); in ReadFile() local
65 ASSERT_TRUE(file_stream.good()); in ReadFile()
67 file_stream.seekg(0, std::ios_base::end); in ReadFile()
68 ASSERT_TRUE(file_stream.good()); in ReadFile()
69 bytes.resize(file_stream.tellg()); in ReadFile()
70 file_stream.seekg(0, std::ios_base::beg); in ReadFile()
71 ASSERT_TRUE(file_stream.good()); in ReadFile()
72 file_stream.read(&bytes[0], bytes.size()); in ReadFile()
73 ASSERT_TRUE(file_stream.good()); in ReadFile()
Dmicrodump_stackwalk.cc73 std::ifstream file_stream(microdump_file); in PrintMicrodumpProcess() local
75 file_stream.seekg(0, std::ios_base::end); in PrintMicrodumpProcess()
76 bytes.resize(file_stream.tellg()); in PrintMicrodumpProcess()
77 file_stream.seekg(0, std::ios_base::beg); in PrintMicrodumpProcess()
78 file_stream.read(&bytes[0], bytes.size()); in PrintMicrodumpProcess()
Dminidump_unittest.cc98 ifstream file_stream(minidump_file_.c_str(), std::ios::in); in TEST_F() local
99 ASSERT_TRUE(file_stream.good()); in TEST_F()
101 file_stream.seekg(0, std::ios_base::end); in TEST_F()
102 ASSERT_TRUE(file_stream.good()); in TEST_F()
103 bytes.resize(file_stream.tellg()); in TEST_F()
104 file_stream.seekg(0, std::ios_base::beg); in TEST_F()
105 ASSERT_TRUE(file_stream.good()); in TEST_F()
106 file_stream.read(&bytes[0], bytes.size()); in TEST_F()
107 ASSERT_TRUE(file_stream.good()); in TEST_F()
/external/lldb/source/Host/common/
DFileSpec.cpp885 std::ifstream file_stream (path); in ReadFileLines() local
887 if (file_stream) in ReadFileLines()
890 while (getline (file_stream, line)) in ReadFileLines()