Lines Matching defs:file
2 This file is part of PulseAudio.
43 /* sd_journal_send() implicitly add fields for the source file,
164 if ((fd = pa_open_cloexec(t->file, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
165 pa_log(_("Failed to open target file '%s'."), t->file);
174 file_path = pa_sprintf_malloc("%s.xx", t->file);
175 p = file_path + strlen(t->file);
188 pa_log(_("Tried to open target file '%s', '%s.1', '%s.2' ... '%s.%d', but all failed."),
189 t->file, t->file, t->file, t->file, LOG_MAX_SUFFIX_NUMBER);
193 pa_log_debug("Opened target file %s\n", file_path);
201 pa_xfree(target.file);
202 target.file = pa_xstrdup(t->file);
373 const char*file,
408 const char *filename = strrchr(file, '/');
412 filename = file;
425 if ((_flags & PA_LOG_PRINT_META) && file && line > 0 && func)
427 pa_strnull(pa_thread_get_name(pa_thread_self())), file, line, func);
428 else if ((_flags & (PA_LOG_PRINT_META|PA_LOG_PRINT_FILE)) && file)
430 pa_strnull(pa_thread_get_name(pa_thread_self())), pa_path_get_filename(file));
529 "CODE_FILE=%s", file,
535 pa_log_target new_target = { .type = PA_LOG_SYSLOG, .file = NULL };
541 pa_log_target new_target = { .type = PA_LOG_STDERR, .file = NULL };
571 pa_log_target new_target = { .type = PA_LOG_STDERR, .file = NULL };
573 fprintf(stderr, "%s\n", "Error writing logs to a file descriptor. Redirect log messages to console.");
619 const char*file,
626 pa_log_levelv_meta(level, file, line, func, format, ap);
654 pa_log_target *pa_log_target_new(pa_log_target_type_t type, const char *file) {
660 t->file = pa_xstrdup(file);
668 pa_xfree(t->file);
687 else if (pa_startswith(string, "file:"))
718 string = pa_sprintf_malloc("file:%s", t->file);
721 string = pa_sprintf_malloc("newfile:%s", t->file);