<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/sys/accept.2, branch releng/11.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F11.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F11.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-10-10T03:05:55Z</updated>
<entry>
<title>accept(2) may and can return EAGAIN, document it.</title>
<updated>2014-10-10T03:05:55Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2014-10-10T03:05:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b888b86e6f8361c87b31e700d2a16ff1c9e0b155'/>
<id>urn:sha1:b888b86e6f8361c87b31e700d2a16ff1c9e0b155</id>
<content type='text'>
MFC after:	1 week
</content>
</entry>
<entry>
<title>Add some missing .Nm for newer syscalls in existing man pages.</title>
<updated>2014-01-11T22:00:16Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2014-01-11T22:00:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b83686c8fed09dcfd3629daf07fcc38560b766a6'/>
<id>urn:sha1:b83686c8fed09dcfd3629daf07fcc38560b766a6</id>
<content type='text'>
MFC after:	1 week
</content>
</entry>
<entry>
<title>accept(2): Update portability note for accept4().</title>
<updated>2013-10-01T21:17:18Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-10-01T21:17:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0f49c96cfc484c26d9153727b7d929d1e353993e'/>
<id>urn:sha1:0f49c96cfc484c26d9153727b7d929d1e353993e</id>
<content type='text'>
The accept(2) man page warns that O_NONBLOCK and other properties on the
new socket may vary across implementations. However, this issue only
applies to accept() and not to accept4(). On the other hand, accept4()
is not commonly available yet.

Reported by:	pluknet
Reviewed by:	bjk
Approved by:	re (kib)
</content>
</entry>
<entry>
<title>accept(2), pipe(2): Fix .Dd.</title>
<updated>2013-05-01T22:47:47Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-05-01T22:47:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ed5987bd08dc2bcf9ce6d5d20caaf683cea00ba5'/>
<id>urn:sha1:ed5987bd08dc2bcf9ce6d5d20caaf683cea00ba5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add accept4() system call.</title>
<updated>2013-05-01T20:10:21Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-05-01T20:10:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=da7d2afb6d25a50559173e51f4b3044656a587fb'/>
<id>urn:sha1:da7d2afb6d25a50559173e51f4b3044656a587fb</id>
<content type='text'>
The accept4() function, compared to accept(), allows setting the new file
descriptor atomically close-on-exec and explicitly controlling the
non-blocking status on the new socket. (Note that the latter point means
that accept() is not equivalent to any form of accept4().)

The linuxulator's accept4 implementation leaves a race window where the new
file descriptor is not close-on-exec because it calls sys_accept(). This
implementation leaves no such race window (by using falloc() flags). The
linuxulator could be fixed and simplified by using the new code.

Like accept(), accept4() is async-signal-safe, a cancellation point and
permitted in capability mode.
</content>
</entry>
<entry>
<title>Keep up with negative addrlen check removal in r249649.</title>
<updated>2013-04-22T09:18:50Z</updated>
<author>
<name>Sergey Kandaurov</name>
<email>pluknet@FreeBSD.org</email>
</author>
<published>2013-04-22T09:18:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=89bbe1496df25bd8dc35f22a6212796743a45a56'/>
<id>urn:sha1:89bbe1496df25bd8dc35f22a6212796743a45a56</id>
<content type='text'>
</content>
</entry>
<entry>
<title>accept(2): Mention inheritance of O_ASYNC and signal destination.</title>
<updated>2013-03-26T22:46:56Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-03-26T22:46:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=de9dcfba063ba8dde86ba61a7ea6ab3d5a6bb2d5'/>
<id>urn:sha1:de9dcfba063ba8dde86ba61a7ea6ab3d5a6bb2d5</id>
<content type='text'>
While almost nobody uses O_ASYNC, and rightly so, the inheritance of the
related properties across accept() is a portability issue like the
inheritance of O_NONBLOCK.
</content>
</entry>
<entry>
<title>Attempt to reduce accidental foot-shooting by pointing out that</title>
<updated>2009-11-02T07:21:13Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2009-11-02T07:21:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4054af4fb0fcdc6115601d6b27cc5dd3a7875da6'/>
<id>urn:sha1:4054af4fb0fcdc6115601d6b27cc5dd3a7875da6</id>
<content type='text'>
accept(2)ed sockets do not necessarily inherit O_NONBLOCK from
listening sockets on non-FreeBSD platforms.

Feet shot:	cperciva
MFC after:	1 month
</content>
</entry>
<entry>
<title>Add Xr to getsockname(2)</title>
<updated>2008-06-20T14:47:06Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2008-06-20T14:47:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=20067a6892715483fed56741020e6561d40ac091'/>
<id>urn:sha1:20067a6892715483fed56741020e6561d40ac091</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Per Regents of the University of Calfornia letter, remove advertising</title>
<updated>2007-01-09T00:28:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-01-09T00:28:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c879ae3536e6d92b8d96c8965c5b05fcb9541520'/>
<id>urn:sha1:c879ae3536e6d92b8d96c8965c5b05fcb9541520</id>
<content type='text'>
clause.

# If I've done so improperly on a file, please let me know.
</content>
</entry>
</feed>
