Lines Matching defs:filename
79 char *filename;
458 u->filename = pa_runtime_path(pa_modargs_get_value(ma, "file", DEFAULT_FILE_NAME));
461 if (mkfifo(u->filename, 0666) < 0) {
463 pa_log("mkfifo('%s'): %s", u->filename, pa_cstrerror(errno));
471 if (chmod(u->filename, 0666) < 0)
472 pa_log_warn("chomd('%s'): %s", u->filename, pa_cstrerror(errno));
475 if ((u->fd = pa_open_cloexec(u->filename, O_RDWR, 0)) < 0) {
476 pa_log("open('%s'): %s", u->filename, pa_cstrerror(errno));
483 pa_log("fstat('%s'): %s", u->filename, pa_cstrerror(errno));
488 pa_log("'%s' is not a FIFO.", u->filename);
496 pa_proplist_sets(data.proplist, PA_PROP_DEVICE_STRING, u->filename);
497 pa_proplist_setf(data.proplist, PA_PROP_DEVICE_DESCRIPTION, "Unix FIFO sink %s", u->filename);
604 if (u->filename) {
606 unlink(u->filename);
607 pa_xfree(u->filename);