1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/lib
Dag-Erling Smørgrav 215a27f1a4 Solve http buffering issues and hangs once and for all (hopefully!) by
simply not trying to return exactly what the caller asked for - just
return whatever we got and let the caller be the judge of whether it
was enough.  If an error occurs or the connection times out after we
already received some data, return a short read, under the assumption
that the next call will fail or time out before we read anything.

As it turns out, none of the code that calls fetch_read() assumes an
all-or-nothing result anyway, except for a couple of lines where we
read the CR LF at the end of a hunk in HTTP hunked encoding, so the
changes outside of fetch_read() and http_readfn() are minimal.

While there, replace select(2) with poll(2).

MFC after:	3 days
2014-01-28 12:48:17 +00:00
..
atf Generate and install pkg-config files for atf. 2014-01-12 21:56:26 +00:00
clang Enable llvm's integrated assembler for PowerPC, since it should now be 2013-12-16 18:45:21 +00:00
csu Use the size of the MACHINE_ARCH string instead of sizeof(uint32_t). It can 2013-10-27 23:48:59 +00:00
libalias
libarchive Temporarily disable iconv for non-shared library builds. The dynamic 2013-09-26 17:55:36 +00:00
libauditd
libbegemot
libblocksruntime
libbluetooth
libbsm
libbsnmp
libbz2
libc Add MLINK for fdclosedir.3 to directory.3 and sort fdopendir(3) entry. 2014-01-24 22:37:35 +00:00
libc_nonshared Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
libc++ Add a c++/v1/tr1 include directory containing symlinks to all of the standard 2013-09-04 15:02:14 +00:00
libcalendar
libcam Bump libcam shared library version forgotten in r259397. 2013-12-15 15:51:05 +00:00
libcapsicum Both libcasper and libcapsicum libraries have to be installed in /lib/, 2013-12-02 17:07:22 +00:00
libcasper MFp4 @1189741: 2014-01-03 09:10:04 +00:00
libcom_err
libcompat
libcompiler_rt Unconditionally compile the __sync_* atomics support functions into compiler-rt 2013-08-31 08:50:45 +00:00
libcrypt Set up the /usr/tests hierarchy. 2013-10-25 05:25:19 +00:00
libcxxrt Add missing C++11 typeinfos to the libcxxrt version script. 2014-01-11 19:02:17 +00:00
libdevinfo
libdevstat Fix a typo. 2013-12-25 19:38:16 +00:00
libdwarf When decoding SLEB128, make sure sign extension is performed for 2013-06-30 21:06:47 +00:00
libedit Import NetBSD readline.c,v 1.104: do not crash with add_history(NULL). 2013-09-26 17:54:58 +00:00
libefi
libelf Add support to the ARM platform specific section types. 2013-08-31 18:13:20 +00:00
libexecinfo Don't install private libexecinfo headers 2013-09-03 13:31:43 +00:00
libexpat
libfetch Solve http buffering issues and hangs once and for all (hopefully!) by 2014-01-28 12:48:17 +00:00
libgeom Since there's no defined schema for the XML that's generated by the 2013-07-19 06:42:15 +00:00
libgpib
libgssapi
libiconv Split the last gcc-specific flags off into CFLAGS.gcc. This also 2014-01-05 21:03:49 +00:00
libiconv_modules Split the last gcc-specific flags off into CFLAGS.gcc. This also 2014-01-05 21:03:49 +00:00
libipsec
libipx
libjail
libkiconv The iconv in libc did two things - implement the standard APIs, the GNU 2013-08-13 07:15:01 +00:00
libkse Replace the WEAK_ALIAS() alias with the WEAK_REFERENCE() alias. Use it and 2013-11-21 22:31:18 +00:00
libkvm Handle truncation of the size returned by _kvm_kvatop(). Cores can have 2014-01-16 06:26:03 +00:00
libldns LDNS needs OpenSSL. This wasn't a problem as long as it was only build 2013-09-08 19:39:18 +00:00
liblzma
libmagic
libmandoc
libmd use a real uint64_t instead of writing code to emulate one.. 2014-01-11 20:49:22 +00:00
libmemstat Refine UMA bucket allocation to reduce space consumption and improve 2013-06-18 04:50:20 +00:00
libmilter
libmp
libnandfs
libnetbsd
libnetgraph make sure that rbuf is aligned by making a union w/ the structure we 2014-01-07 23:01:05 +00:00
libngatm
libnv MFp4 @1189711: 2014-01-03 09:07:03 +00:00
libopie
libpam Catch up with OpenPAM Nummularia. 2013-11-21 20:43:43 +00:00
libpcap
libpjdlog Move my simple logging API to a separate library. It is now already used 2013-12-01 09:41:06 +00:00
libpmc pmc(3) does not document a dependency on <sys/types.h> but <pmc.h> 2013-11-25 18:31:13 +00:00
libproc Consistently add the relocation offset only when the ELF type is not 2013-11-11 16:57:57 +00:00
libprocstat MFV r259170: 2014-01-01 00:45:28 +00:00
libradius
librpcsec_gss
librpcsvc
librt Convert this piece of code to use C11 atomics. 2013-06-30 08:59:33 +00:00
librtld_db
libsbuf
libsdp
libsm Add new sendmail 8.14.8 file 2014-01-26 23:40:31 +00:00
libsmb Just disable recoding support in libsmb if built WITHOUT_ICONV. 2013-11-12 15:09:28 +00:00
libsmdb
libsmutil
libstand For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc. 2013-12-26 11:32:39 +00:00
libstdbuf
libstdthreads
libtacplus
libtelnet
libthr If check_deferred_signal() execution needs binding of PLT symbol, 2013-11-23 15:48:17 +00:00
libthread_db Ensure we set all fpu registers to zero by using the address and size of 2013-08-17 14:42:40 +00:00
libufs
libugidfw
libulog
libunbound Build and install the Unbound caching DNS resolver daemon. 2013-09-15 14:51:23 +00:00
libusb Comply to the official LibUSB v1.0 API: 2014-01-28 07:21:46 +00:00
libusbhid
libutil Indicate that expand_number is case-insensitive. 2013-11-12 00:56:22 +00:00
libvgl
libvmmapi Extend the support for local interrupts on the local APIC: 2013-12-23 19:29:07 +00:00
libwrap
liby
libyaml Rename libbsdyml to libyaml, make private, and bump 2013-10-14 18:31:15 +00:00
libypclnt
libz Fix up FreeBSD tag for files not from a vendor branch 2013-10-31 18:44:40 +00:00
msun * Mark static inline functions with __fenv_static. 2014-01-25 18:13:43 +00:00
ncurses Convert old make variable modifiers :U and :L to bmake :tu and :tl. 2013-06-02 11:44:23 +00:00
tests Install category Kyuafiles from their category directories. 2013-11-08 14:29:06 +00:00
Makefile Please welcome casperd daemon. It (and its services) will be responsible for 2013-12-02 08:21:28 +00:00
Makefile.inc