freebsd with flexible iflib nic queues
Go to file
Ed Schouten 72c8072ee5 Make asynchronous connection failures on UNIX sockets fail with ECONNRESET.
While making CloudABI work well on Linux, I discovered that I had a
FreeBSD-ism in one of my unit tests. The test did the following:

- Create UNIX socket 1, bind it, make it listen.
- Create UNIX socket 2, connect it to UNIX socket 1.
- Close UNIX socket 1.
- Obtain SO_ERROR from socket 2.

On FreeBSD this returns ECONNABORTED, while on Linux it returns
ECONNRESET. I dug through some of the relevant specifications[1] and it
looks like Linux is all right here. ECONNABORTED should only be returned
when the local connection (socket 2) is aborted; not the peer (socket 1).

It is of course slightly misleading: the function in which we set this
error is called uipc_abort(), but keep in mind that we're aborting the
peer, thus resetting the local socket.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html

Reviewed by:	cem
Sponsored by:	Nuxi, the Netherlands
Differential Revision:	https://reviews.freebsd.org/D5419
2016-02-24 17:10:32 +00:00
bin sh: Fix set -v and multiline history after r295825. 2016-02-23 22:44:01 +00:00
cddl Fix "invalid type '(null)'" usage messages in zfs(8) and zpool(8). 2016-02-21 13:03:58 +00:00
contrib MFV r295913: 2016-02-23 07:13:22 +00:00
crypto Document our modified default value for PermitRootLogin. 2016-02-02 10:02:38 +00:00
etc - Add a global option where we can protect processes when swap space 2016-02-24 01:32:12 +00:00
gnu Hardcode date in RCS paper for reproducibility 2016-02-17 14:34:01 +00:00
include Hide ucontext_t and mcontext_t when neither POSIX nor XSI features are 2016-02-13 17:23:55 +00:00
kerberos5 DIRDEPS_BUILD: Update dependencies. 2015-12-07 23:53:01 +00:00
lib db(3): Fix aliasing warnings from modern GCC. 2016-02-24 16:52:03 +00:00
libexec Fix installation of makewhatis.local(1) since r283777. 2016-02-18 00:26:21 +00:00
release Increase efiboot.img size used in ISO creation 2016-01-13 14:47:13 +00:00
rescue Fix the build after ifconfig was converted over to lib80211 in r291470 2015-11-30 16:34:13 +00:00
sbin Fix bug in filling and handling ipfw's O_DSCP opcode. 2016-02-24 13:16:03 +00:00
secure DIRDEPS_BUILD: Update dependencies. 2016-02-16 02:14:30 +00:00
share Kill few remaininng instances of GEOM_UNCOMPRESS. 2016-02-24 05:16:24 +00:00
sys Make asynchronous connection failures on UNIX sockets fail with ECONNRESET. 2016-02-24 17:10:32 +00:00
targets Obsolete mkulzma(8) and geom_uncompress(4), their functionality 2016-02-24 00:39:36 +00:00
tests Ensure that we test the event condition when a disabled kevent is enabled. 2016-02-19 01:49:33 +00:00
tools Remove objcopy in WITHOUT_TOOLCHAIN if it's from elftoolchain 2016-02-19 15:11:54 +00:00
usr.bin Obsolete mkulzma(8) and geom_uncompress(4), their functionality 2016-02-24 00:39:36 +00:00
usr.sbin Following revision r295924, the changes to a db file should be fsynced 2016-02-23 15:28:13 +00:00
.arcconfig Add repository.callsign, to help arcanist figure out what repo it's 2015-07-02 22:23:52 +00:00
.arclint phabricator related changes: 2015-04-20 20:33:22 +00:00
COPYRIGHT Bump copyright year. 2015-12-31 11:21:45 +00:00
LOCKS
MAINTAINERS Add interests/maintainerships + notes 2015-12-28 19:29:05 +00:00
Makefile Import ELF Tool Chain snapshot revision 3395 2016-02-10 19:39:36 +00:00
Makefile.inc1 Don't descend into test directories for distribution->installconfig. 2016-02-16 02:14:09 +00:00
ObsoleteFiles.inc Obsolete mkulzma(8) and geom_uncompress(4), their functionality 2016-02-24 00:39:36 +00:00
README Import OpenSSL 1.0.2f. 2016-01-28 18:41:59 +00:00
UPDATING Add a sysctl to allow ZFS pools backed by zvols 2016-01-29 17:08:26 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree.  See build(7)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html