Lines Matching refs:fn
277 const char *fn;
300 fn = inittracename;
325 fn = PATH_TRACE;
337 fn = filename;
339 /* fn cannot be null here */
342 if (lstat(fn, &stbuf) == -1) {
345 nfd = open(fn, O_CREAT|O_EXCL|O_WRONLY, 0644);
351 nfd = open(fn, O_APPEND|O_WRONLY, 0644);
357 msglog("failed to open trace file \"%s\" %s", fn,
359 if (fn == inittracename)
368 msglog("trace file \"%s\" moved", fn);
373 tmsg("switch to trace file %s", fn);
378 if (fn != savetracename)
379 (void) strlcpy(savetracename, fn, sizeof (savetracename) - 1);
389 msglog("trace \"%s\" missing", fn);
393 msglog("wrong type (%#x) of trace file \"%s\"", stbuf.st_mode, fn);