Lines Matching refs:il

1712 iovlist_init(struct iovlist *il)
1715 il->iovcnt = 0;
1716 il->totalsize = 0;
1720 iovlist_append(struct iovlist *il, const char *str)
1725 if (il->iovcnt < nitems(il->iov)) {
1727 il->iov[il->iovcnt++] = (struct iovec){
1731 il->totalsize += size;
1737 iovlist_truncate(struct iovlist *il, size_t size)
1742 while (il->totalsize > size) {
1743 diff = il->totalsize - size;
1744 last = &il->iov[il->iovcnt - 1];
1747 --il->iovcnt;
1748 il->totalsize -= last->iov_len;
1752 il->totalsize -= diff;
1759 fprintlog_write(struct filed *f, struct iovlist *il, int flags)
1776 iovlist_truncate(il, 480);
1783 iovlist_truncate(il, 1180);
1795 msghdr.msg_iov = il->iov;
1796 msghdr.msg_iovlen = il->iovcnt;
1803 if (lsent == (ssize_t)il->totalsize)
1806 if (lsent == (ssize_t)il->totalsize && !send_to_all)
1809 dprintf("lsent/totalsize: %zd/%zu\n", lsent, il->totalsize);
1810 if (lsent != (ssize_t)il->totalsize) {
1840 iovlist_append(il, "\n");
1841 if (writev(f->f_file, il->iov, il->iovcnt) < 0) {
1861 iovlist_append(il, "\n");
1869 if (writev(f->f_file, il->iov, il->iovcnt) < 0) {
1888 iovlist_append(il, "\r\n");
1890 if ((msgret = ttymsg(il->iov, il->iovcnt, f->fu_fname, 10))) {
1899 iovlist_append(il, "\r\n");
1900 wallmsg(f, il->iov, il->iovcnt);
1910 struct iovlist il;
1915 iovlist_init(&il);
1917 iovlist_append(&il, "\r\n\aMessage from syslogd ...\r\n");
1918 iovlist_append(&il, "<");
1920 iovlist_append(&il, priority_number);
1921 iovlist_append(&il, ">1 ");
1936 iovlist_append(&il, timebuf);
1938 iovlist_append(&il, "-");
1939 iovlist_append(&il, " ");
1940 iovlist_append(&il, hostname);
1941 iovlist_append(&il, " ");
1942 iovlist_append(&il, app_name == NULL ? "-" : app_name);
1943 iovlist_append(&il, " ");
1944 iovlist_append(&il, procid == NULL ? "-" : procid);
1945 iovlist_append(&il, " ");
1946 iovlist_append(&il, msgid == NULL ? "-" : msgid);
1947 iovlist_append(&il, " ");
1948 iovlist_append(&il, structured_data == NULL ? "-" : structured_data);
1949 iovlist_append(&il, " ");
1950 iovlist_append(&il, msg);
1952 fprintlog_write(f, &il, flags);
1959 struct iovlist il;
1970 iovlist_init(&il);
1974 iovlist_append(&il, "<");
1977 iovlist_append(&il, priority_number);
1978 iovlist_append(&il, ">");
1979 iovlist_append(&il, timebuf);
1981 iovlist_append(&il, " Forwarded from ");
1982 iovlist_append(&il, hostname);
1983 iovlist_append(&il, ":");
1985 iovlist_append(&il, " ");
1990 iovlist_append(&il, "\r\n\aMessage from syslogd@");
1991 iovlist_append(&il, hostname);
1992 iovlist_append(&il, " at ");
1993 iovlist_append(&il, timebuf);
1994 iovlist_append(&il, " ...\r\n");
1999 iovlist_append(&il, timebuf);
2000 iovlist_append(&il, " ");
2003 iovlist_append(&il, "<");
2010 iovlist_append(&il, c->c_name);
2020 iovlist_append(&il, facility_number);
2023 iovlist_append(&il, ".");
2030 iovlist_append(&il, c->c_name);
2039 iovlist_append(&il, priority_number);
2042 iovlist_append(&il, "> ");
2045 iovlist_append(&il, hostname);
2046 iovlist_append(&il, " ");
2052 iovlist_append(&il, app_name);
2054 iovlist_append(&il, "[");
2055 iovlist_append(&il, procid);
2056 iovlist_append(&il, "]");
2058 iovlist_append(&il, ": ");
2060 iovlist_append(&il, msg);
2062 fprintlog_write(f, &il, flags);