FreeBSD src
Go to file
Gleb Smirnoff 7a2c93b86e sockets: provide sousrsend() that does socket specific error handling
Sockets have special handling for EPIPE on a write, that was spread out
into several places.  Treating transient errors is also special - if
protocol is atomic, than we should ignore any changes to uio_resid, a
transient error means the write had completely failed (see d2b3a0ed31).

- Provide sousrsend() that expects a valid uio, and leave sosend() for
  kernel consumers only.  Do all special error handling right here.
- In dofilewrite() don't do special handling of error for DTYPE_SOCKET.
- For send(2), write(2) and aio_write(2) call into sousrsend() and remove
  error handling for kern_sendit(), soo_write() and soaio_process_job().

PR:			265087
Reported by:            rz-rpi03 at h-ka.de
Reviewed by:            markj
Differential revision:	https://reviews.freebsd.org/D35863
2022-12-14 10:02:44 -08:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: Attempt to fix and increase robustness of macOS action 2022-06-30 21:03:26 +01:00
bin csh: install hard link with same mode as target 2022-11-29 16:04:05 -05:00
cddl libdtrace: Change the binding of USDT probe symbols to STB_WEAK 2022-12-11 11:27:22 -05:00
contrib libarchive: merge from vendor branch 2022-12-13 20:21:13 +01:00
crypto ssh: describe two additional changes present in base system ssh 2022-12-13 09:45:56 -05:00
etc sendmail: remove leftovers from mta_start_script and rc.sendmail 2022-11-15 09:10:53 +01:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
include include: put includes into -dev packages 2022-11-09 22:20:38 -06:00
kerberos5 kerberos5: retire now-unused MIPS support 2022-11-02 13:16:18 -04:00
lib libarchive: merge from vendor branch 2022-12-13 20:21:13 +01:00
libexec default rc.conf: Add new growfs_swap_size variable 2022-12-10 13:40:33 -06:00
release pkgbase: Stop adding FreeBSD-runtime as a dep for every package 2022-12-08 20:02:41 +01:00
rescue retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
sbin retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
secure libcrypto padlock.so: Link with -z noexecstack for ld.bfd. 2022-11-22 08:37:04 -08:00
share sizeof(7): miscellaneous edits 2022-12-14 07:44:04 +02:00
stand stand: Make ioctl declaration consistent 2022-12-12 21:46:34 -07:00
sys sockets: provide sousrsend() that does socket specific error handling 2022-12-14 10:02:44 -08:00
targets retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
tests pf tests: check that we clean up unused kifs 2022-12-14 10:19:01 +01:00
tools stress2: Add problem found 2022-12-13 12:00:01 +01:00
usr.bin tcp: retire TCPDEBUG 2022-12-14 09:54:06 -08:00
usr.sbin bhyve: Remove the unused vcpu argument from all of the I/O port handlers. 2022-12-09 10:35:44 -08:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: move QEMU pkg installation to test script 2022-09-07 13:32:12 -04:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore gitignore: whack dead architectures 2022-11-23 01:18:03 +00:00
COPYRIGHT Welcome 2022, update copyrights. 2022-01-01 09:49:49 -07:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Remove myself from bhyve maintenance; ENOTIME. 2021-11-19 07:09:30 +10:00
Makefile Makefile: replace mergemaster references with etcupdate 2022-10-06 20:19:16 +02:00
Makefile.inc1 Retire CLANG_IS_CC option 2022-11-21 14:56:13 -05:00
Makefile.libcompat libcompat: avoid installing include files twice 2022-11-16 19:15:20 -05:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc tcp: retire TCPDEBUG 2022-12-14 09:54:06 -08:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES RELNOTES: Add mention of growfs addition of swap partition. 2022-12-13 08:54:43 -06:00
UPDATING Always install llvm-objdump as objdump 2022-12-12 10:36:02 -05:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

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), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
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.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB 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.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
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 FreeBSD Handbook.