Lines Matching refs:tfd
238 struct logfile *tfd; in open_logfiles() local
240 for (tfd = TT.lfiles; tfd; tfd = tfd->next) { in open_logfiles()
244 if (*tfd->filename == '@') { // network in open_logfiles()
247 tmpfile = xstrdup(tfd->filename + 1); in open_logfiles()
254 error_exit("bad port in %s", tfd->filename); in open_logfiles()
264 memcpy(&tfd->saddr, info->ai_addr, info->ai_addrlen); in open_logfiles()
267 tfd->logfd = xsocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in open_logfiles()
269 } else tfd->logfd = open(tfd->filename, O_CREAT | O_WRONLY | O_APPEND, 0666); in open_logfiles()
270 if (tfd->logfd < 0) { in open_logfiles()
271 tfd->filename = "/dev/console"; in open_logfiles()
272 tfd->logfd = open(tfd->filename, O_APPEND); in open_logfiles()