<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/syslogd, branch release/9.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC r249983: syslogd: Use closefrom() instead of getdtablesize()/close()</title>
<updated>2013-05-04T11:49:02+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-05-04T11:49:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0d4961252d256242ee8cf041d3b4e50865c3b013'/>
<id>0d4961252d256242ee8cf041d3b4e50865c3b013</id>
<content type='text'>
loop.

When syslogd forks a process for '|' destinations, it closes all file
descriptors greater than 2.

Use closefrom() for this instead of a getdtablesize()/close() loop because
it is both faster and avoids leaving file descriptors open because the limit
was lowered after they were opened.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
loop.

When syslogd forks a process for '|' destinations, it closes all file
descriptors greater than 2.

Use closefrom() for this instead of a getdtablesize()/close() loop because
it is both faster and avoids leaving file descriptors open because the limit
was lowered after they were opened.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 244523:</title>
<updated>2012-12-31T03:34:52+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2012-12-31T03:34:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dcd0b3668fa421cb0dc6f5c1562bd982cc1d822c'/>
<id>dcd0b3668fa421cb0dc6f5c1562bd982cc1d822c</id>
<content type='text'>
- Make sure that errno isn't modified before calling logerror() in error
  conditions.
- Don't check for AF_INET6 when compiled without INET6 support.

Approved by:	emaste (co-mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Make sure that errno isn't modified before calling logerror() in error
  conditions.
- Don't check for AF_INET6 when compiled without INET6 support.

Approved by:	emaste (co-mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r240389,r240409:</title>
<updated>2012-10-12T02:10:27+00:00</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-10-12T02:10:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=40e61da9f97dfa38fc3b21dbf03bba169abd7d7d'/>
<id>40e61da9f97dfa38fc3b21dbf03bba169abd7d7d</id>
<content type='text'>
- 	Add support for ipv6 addresses as destination
- 	Add documentation for IPv6 support

PR:		docs/171580
Approved by:	cperciva (implicit)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 	Add support for ipv6 addresses as destination
- 	Add documentation for IPv6 support

PR:		docs/171580
Approved by:	cperciva (implicit)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r232986</title>
<updated>2012-03-15T16:26:40+00:00</updated>
<author>
<name>Sean Bruno</name>
<email>sbruno@FreeBSD.org</email>
</author>
<published>2012-03-15T16:26:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=444cba2dfe96bfca01c03ae576900d92d98ebbcd'/>
<id>444cba2dfe96bfca01c03ae576900d92d98ebbcd</id>
<content type='text'>
Update man page to present -T argument in synopsis
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update man page to present -T argument in synopsis
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a new option, -N to disable the default and recommended syslogd(8)</title>
<updated>2011-07-14T07:33:53+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2011-07-14T07:33:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=35741267c0767d45ab00923eec6c98e87b4e3217'/>
<id>35741267c0767d45ab00923eec6c98e87b4e3217</id>
<content type='text'>
behavior, which binds to the well known UDP port.

This option implies -s.

MFC after:	2 months
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
behavior, which binds to the well known UDP port.

This option implies -s.

MFC after:	2 months
</pre>
</div>
</content>
</entry>
<entry>
<title>Here v-&gt;iov_len has been assigned the return value from snprintf.</title>
<updated>2011-01-19T17:17:37+00:00</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2011-01-19T17:17:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=98d1f19ba2ca3540e48582cf1ca56ced5193bc7b'/>
<id>98d1f19ba2ca3540e48582cf1ca56ced5193bc7b</id>
<content type='text'>
Checking if it is &gt; 0 doesn't make sense, because snprintf returns
how much space is needed if the buffer is too small. Instead, check
if the return value was greater than the buffer size, and truncate
the message if it was too long.

It isn't clear if snprintf can return a negative value in the case
of an error - I don't believe it can. If it can, then testing
v-&gt;iov_len won't help 'cos it is a size_t, not an ssize_t.

Also, as clang points out, we must always increment v here, because
later code depends on the message being in iov[5].
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Checking if it is &gt; 0 doesn't make sense, because snprintf returns
how much space is needed if the buffer is too small. Instead, check
if the return value was greater than the buffer size, and truncate
the message if it was too long.

It isn't clear if snprintf can return a negative value in the case
of an error - I don't believe it can. If it can, then testing
v-&gt;iov_len won't help 'cos it is a size_t, not an ssize_t.

Also, as clang points out, we must always increment v here, because
later code depends on the message being in iov[5].
</pre>
</div>
</content>
</entry>
<entry>
<title>This isn't WARNS=6 safe.  It fails to build on mips.  Retore old</title>
<updated>2010-08-08T02:45:14+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2010-08-08T02:45:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=467a4a27485e557075b598bd93a92b5a72832c75'/>
<id>467a4a27485e557075b598bd93a92b5a72832c75</id>
<content type='text'>
WARNS?=3 until that's resolved.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
WARNS?=3 until that's resolved.
</pre>
</div>
</content>
</entry>
<entry>
<title>jh pointed out that src/usr.sbin already has a global</title>
<updated>2010-08-07T20:46:30+00:00</updated>
<author>
<name>Oliver Fromme</name>
<email>olli@FreeBSD.org</email>
</author>
<published>2010-08-07T20:46:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2c76b63f0091e49ac773478159a67727818f37d7'/>
<id>2c76b63f0091e49ac773478159a67727818f37d7</id>
<content type='text'>
WARNS=6 setting in HEAD (unlike stable/8), so it's best
to remove the line entirely.

Pointed out by:	jh
Approved by:	des (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
WARNS=6 setting in HEAD (unlike stable/8), so it's best
to remove the line entirely.

Pointed out by:	jh
Approved by:	des (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>syslogd(8) already supports *sending* log messages to non-</title>
<updated>2010-08-07T16:20:12+00:00</updated>
<author>
<name>Oliver Fromme</name>
<email>olli@FreeBSD.org</email>
</author>
<published>2010-08-07T16:20:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=974835c956ee8041ed16066038326475d443d15b'/>
<id>974835c956ee8041ed16066038326475d443d15b</id>
<content type='text'>
standard ports, but it can't *receive* them (port 514 is
hardcoded).  This commit adds that missing feature.

(NB:  I actually needed this feature for a server farm where
multiple jails run with shared IP addresses, and every jail
should have its own syslogd process.)

As a side effect, syslogd now compiles with WARNS=6.

Approved by:	des (mentor)
MFC after:	3 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
standard ports, but it can't *receive* them (port 514 is
hardcoded).  This commit adds that missing feature.

(NB:  I actually needed this feature for a server farm where
multiple jails run with shared IP addresses, and every jail
should have its own syslogd process.)

As a side effect, syslogd now compiles with WARNS=6.

Approved by:	des (mentor)
MFC after:	3 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>Port all applications in usr.sbin/ from libulog to utmpx.</title>
<updated>2010-01-13T18:17:53+00:00</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-01-13T18:17:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b5810e9449971dd6d8ad2a130fbe855ca16c0a81'/>
<id>b5810e9449971dd6d8ad2a130fbe855ca16c0a81</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
