Lines Matching refs:logfd
53 int logfd; member
268 tfd->logfd = xsocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in open_logfiles()
270 } else tfd->logfd = open(tfd->filename, O_CREAT | O_WRONLY | O_APPEND, 0666); in open_logfiles()
271 if (tfd->logfd < 0) { in open_logfiles()
273 tfd->logfd = open(tfd->filename, O_APPEND); in open_logfiles()
283 isreg = (!fstat(tf->logfd, &statf) && S_ISREG(statf.st_mode)); in write_rotate()
301 close(tf->logfd); in write_rotate()
302 tf->logfd = open(tf->filename, O_CREAT | O_WRONLY | O_APPEND, 0666); in write_rotate()
303 if (tf->logfd < 0) { in write_rotate()
308 ftruncate(tf->logfd, 0); in write_rotate()
311 return write(tf->logfd, toybuf, len); in write_rotate()
361 if (tf->logfd > 0) { in logmsg()
365 wlen = sendto(tf->logfd, omsg, olen, 0, (struct sockaddr*)&tf->saddr, sizeof(tf->saddr)); in logmsg()
394 if (fnode->logfd >= 0) close(fnode->logfd); in cleanup()