Lines Matching refs:filename
168 * 1. main system downloads OTA package to /cache/some-filename.zip
169 * 2. main system writes "--update_package=/cache/some-filename.zip"
221 static void redirect_stdio(const char* filename) {
228 freopen(filename, "a", stdout); setbuf(stdout, NULL);
229 freopen(filename, "a", stderr); setbuf(stderr, NULL);
240 freopen(filename, "a", stdout); setbuf(stdout, NULL);
241 freopen(filename, "a", stderr); setbuf(stderr, NULL);
253 FILE* log_fp = fopen(filename, "ae");
255 PLOG(ERROR) << "fopen \"" << filename << "\" failed";
263 check_and_fclose(log_fp, filename);
285 check_and_fclose(log_fp, filename);
358 // COMMAND_FILE doesn't use filename as the first argument).
367 // Write the arguments (excluding the filename in args[0]) back into the
407 static ssize_t __pmsg_write(const char *filename, const char *buf, size_t len) {
409 filename, buf, len);
669 // Returns the selected filename, or an empty string.
937 auto add_to_entries = [&](const char* filename) {
938 std::string log_file(filename);
1087 // Calling stat() on this magic filename signals the fuse