Lines Matching defs:filename
74 char *filename;
239 u->filename = pa_runtime_path(pa_modargs_get_value(ma, "file", DEFAULT_FILE_NAME));
241 if (mkfifo(u->filename, 0666) < 0) {
242 pa_log("mkfifo('%s'): %s", u->filename, pa_cstrerror(errno));
247 if (chmod(u->filename, 0666) < 0)
248 pa_log_warn("chomd('%s'): %s", u->filename, pa_cstrerror(errno));
251 if ((u->fd = pa_open_cloexec(u->filename, O_RDWR, 0)) < 0) {
252 pa_log("open('%s'): %s", u->filename, pa_cstrerror(errno));
259 pa_log("fstat('%s'): %s", u->filename, pa_cstrerror(errno));
264 pa_log("'%s' is not a FIFO.", u->filename);
272 pa_proplist_sets(data.proplist, PA_PROP_DEVICE_STRING, u->filename);
273 pa_proplist_setf(data.proplist, PA_PROP_DEVICE_DESCRIPTION, "Unix FIFO source %s", u->filename);
362 if (u->filename) {
363 unlink(u->filename);
364 pa_xfree(u->filename);