Lines Matching refs:path
72 // path is the path to the file (or set to Stdin if standard input).
77 AudioUnixfile *open_input_file(const char *path, const AudioHdr ihdr,
94 if (!path) {
101 if (path == Stdin) {
111 (FileAccess)ReadOnly, ihdr, path,
115 path);
127 if ((fd = open(path, O_RDONLY)) < 0) {
128 Err(MGET("can't open %s, skipping...\n"), path);
148 ihdr, path, offset);
160 path);
162 ifp = new AudioFile(path,
168 path, offset);
174 path, offset);
177 ifp = new AudioFile(path, (FileAccess)ReadOnly);
181 Err(MGET("can't open %s, skipping...\n"), path);
186 // given a path, find the file it really points to (if it's a
187 // sym-link). return it's stat buf and real path.
189 get_realfile(char *&path, struct stat *st)
197 if (err = lstat(path, st) < 0) {
202 err = readlink(path, tmpf,
206 path = tmpf;
216 // create output audio file. if no path is supplied, use stdout.
221 const char *path,
230 if (!path) {
237 path = Stdout;
241 path))) {
248 (FileAccess)WriteOnly, path))) {
261 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC,
265 path);
269 ohdr, path))) {
271 path);
275 if (!(ofp = new AudioFile(path,
278 path);