Lines Matching defs:tfd
355 int tfd = -1;
376 tfd = open(tf, TF_OPEN_FLAGS, QueueFileMode); \
395 if (tfd < 0 ||
397 !lockfile(tfd, tf, NULL, LOCK_EX|LOCK_NB) ||
400 (void *) &tfd, SM_IO_WRONLY,
408 tf, (int) geteuid(), tfd, tfp);
421 if (tfd < 0)
424 if (tfd < 0)
439 if (tfd >= 0)
445 if (lockfile(tfd, tf, NULL, LOCK_EX|LOCK_NB))
455 (void) close(tfd);
456 tfd = -1;
468 if (tfd < 0 || (tfp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT,
469 (void *) &tfd, SM_IO_WRONLY_B,
933 if (tfd >= 0 && fsync(tfd) < 0)