summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Match the correct variable to the variable description.brueffer2014-02-211-3/+3
| | | | | | PR: 121173 Submitted by: Thomas Mueller <tmueller at sysgo.com> MFC after: 1 week
*-. Upgrade our copy of llvm/clang to 3.4 release. This version supportsdim2014-02-1641-147/+173
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y. The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html> MFC after: 1 month
| | * Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):dim2013-12-22397-28930/+67004
| | | | | | | | | | | | https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841
| * | Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):dim2013-12-221251-82357/+147957
| | | | | | | | | | | | https://llvm.org/svn/llvm-project/llvm/branches/release_34@197841
* | | Switch the hardcoded default hash function from MD5 / DES to SHA512.des2014-02-151-5/+1
| | |
* | | document _JAIL as a possible option to set a cpuset for a jail..jmg2014-02-151-1/+2
| | | | | | | | | | | | MFC after: 3 days
* | | MFV: Import atf-0.20.jmmv2014-02-143-13/+19
| | |
* | | libutil/pw_util.3: Fix two prototypes.eadler2014-02-131-2/+2
| | | | | | | | | | | | | | | | | | Reported by: marino Obtained from: DragonFlyBSD (e82b5d3dfa969bfcda5ffadceccc682b6bdcd077) MFC After: 3 days
* | | Add kvm_getncpus() to obtain mp_ncpus.glebius2014-02-123-1/+18
| | | | | | | | | | | | Sponsored by: Nginx, Inc.
* | | Add bounds check for pteindex / pdeindexemaste2014-02-121-0/+4
| | |
* | | While it isn't too late and kvm_read_zpcpu() function isn't yet usedglebius2014-02-123-4/+4
| | | | | | | | | | | | | | | | | | | | | outside libkvm(3), change its order of arguments, so that it is the same as in kvm_read(). Sponsored by: Nginx, Inc.
* | | add support for building a cross-gdb for ARM... This isn't hooked upjmg2014-02-122-1/+13
| | | | | | | | | | | | | | | | | | | | | to xdev yet as I don't know how to make it work properly... It also isn't heavily tested... Reviewed by: silence on -arm
* | | Expose real size of UMA allocations via libmemstat(3).glebius2014-02-105-1/+19
| | | | | | | | | | | | Sponsored by: Nginx, Inc.
* | | Fix descriptor leak.pjd2014-02-091-1/+1
| | |
* | | Build libstand as a 64-bit library on ppc64emaste2014-02-092-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The 32-bit bootloaders now link against libstand.a in sys/boot/libstand32, so there is no need to force /usr/lib/libstand.a to be 32-bit. This is equivalent to r261568 for amd64. Sponsored by: The FreeBSD Foundation
* | | Set errno on inet_ntop(3) failure.kevlo2014-02-071-2/+4
| | | | | | | | | | | | Reviewed by: glebius
* | | Make libstand setjmp work for both 64- and 32-bit ABIs.nwhitehorn2014-02-071-27/+106
| | |
* | | fts: Fix double-free with conflicting concurrent modifications.jilles2014-02-071-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If rare conditions such as concurrent conflicting manipulation of the filesystem occur, fts_read() frees the current FTSENT without adjusting the pointers in the FTS accordingly. A later fts_close() then frees the same FTSENT again. Reported by: pho Tested by: pho MFC after: 1 week
* | | Build libstand as a 64-bit library on amd64emaste2014-02-062-15/+9
| | | | | | | | | | | | | | | | | | | | | The 32-bit bootloaders now link against libstand.a in sys/boot/libstand32, so there is no need to force /usr/lib/libstand.a to be 32-bit. Sponsored by: The FreeBSD Foundation
* | | Set the malloc alignment to 64 bytes on platforms that use the U-Boot APIian2014-02-054-8/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device drivers. Recent versions of u-boot run with the MMU enabled, and require DMA-based I/O to be aligned to cache line boundaries. These changes are based on a patch originally submitted by Juergen Weiss, but I reworked them and thus any problems are purely my fault. Submitted by: "Juergen Weiss" <weiss@uni-mainz.de> Reviewed by: imp, nwhitehorn, jhb
* | | Add support for FreeBSD/i386 guests under bhyve.jhb2014-02-052-2/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Similar to the hack for bootinfo32.c in userboot, define _MACHINE_ELF_WANT_32BIT in the load_elf32 file handlers in userboot. This allows userboot to load 32-bit kernels and modules. - Copy the SMAP generation code out of bootinfo64.c and into its own file so it can be shared with bootinfo32.c to pass an SMAP to the i386 kernel. - Use uint32_t instead of u_long when aligning module metadata in bootinfo32.c in userboot, as otherwise the metadata used 64-bit alignment which corrupted the layout. - Populate the basemem and extmem members of the bootinfo struct passed to 32-bit kernels. - Fix the 32-bit stack in userboot to start at the top of the stack instead of the bottom so that there is room to grow before the kernel switches to its own stack. - Push a fake return address onto the 32-bit stack in addition to the arguments normally passed to exec() in the loader. This return address is needed to convince recover_bootinfo() in the 32-bit locore code that it is being invoked from a "new" boot block. - Add a routine to libvmmapi to setup a 32-bit flat mode register state including a GDT and TSS that is able to start the i386 kernel and update bhyveload to use it when booting an i386 kernel. - Use the guest register state to determine the CPU's current instruction mode (32-bit vs 64-bit) and paging mode (flat, 32-bit, PAE, or long mode) in the instruction emulation code. Update the gla2gpa() routine used when fetching instructions to handle flat mode, 32-bit paging, and PAE paging in addition to long mode paging. Don't look for a REX prefix when the CPU is in 32-bit mode, and use the detected mode to enable the existing 32-bit mode code when decoding the mod r/m byte. Reviewed by: grehan, neel MFC after: 1 month
* | | libc/net: fix a portability issueeadler2014-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | * POSIX does not require socklen_t to be unsigned Submitted by: bde MFC After: 1 week (with r261454)
* | | libc/net: Fix some issues in inet6_opt_init() (from RFC 3542):eadler2014-02-041-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The RFC says (in section 10.1) that only when extbuf is not NULL, extlen shall be checked, so don't perform this check when NULL is passed. * socklen_t is unsigned, so checking extlen for less than zero is not needed. Submitted by: swildner@dragonflybsd.org Reviewed by: Mark Martinec <Mark.Martinec+freebsd@ijs.si> Reviewed by: hrs Obtained by: DragonFlyBSD
* | | Fix a typo.brueffer2014-02-031-1/+1
| | | | | | | | | | | | MFC after: 1 week
* | | Assert input arguments to buf_send() and buf_recv().pjd2014-02-021-0/+7
| | | | | | | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* | | Fix sending empty nvlist.pjd2014-02-021-2/+2
| | | | | | | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* | | In _pthread_kill(), if passed pthread is current thread, do not sendkib2014-02-011-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the signal second time, by adding the missed else before if statement. While there, postpone initializing local curthread variable until passed signal number is checked for validity. Submitted by: John Wolfe <jlw@xinuos.com> PR: threads/186309 MFC after: 1 week
* | | Merge mdocml v1.12.3 into headuqs2014-02-011-1/+1
| | | | | | | | | | | | MFC after: 2 weeks
* | | Add hwpmc(4) support for the PowerPC 970 class processors, direct events.jhibbits2014-02-011-10/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also fixes asserts on removal of the module for the mpc74xx. The PowerPC 970 processors have two different types of events: direct events and indirect events. Thus far only direct events are supported. I included some documentation in the driver on how indirect events work, but support is for the future. MFC after: 1 month
* | | Merge from CheriBSD:brooks2014-01-301-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. MFC after: 4 weeks Sponsored by: DARPA, AFRL
* | | The posix_madvise(3) and posix_fadvise(2) should return error onkib2014-01-304-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | failure, same as posix_fallocate(2). Noted by: Bob Bishop <rb@gid.co.uk> Discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week
* | | Bump copyright datesdes2014-01-303-3/+3
| | |
* | | Import libc++ 3.4 release. This contains a lot of bugfixes, and somedim2014-01-301-1/+12
| | | | | | | | | | | | | | | | | | preliminary support for C++1y. MFC after: 3 weeks
* | | Enhance the support for PCI legacy INTx interrupts and enable them injhb2014-01-292-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the virtio backends. - Add a new ioctl to export the count of pins on the I/O APIC from vmm to the hypervisor. - Use pins on the I/O APIC >= 16 for PCI interrupts leaving 0-15 for ISA interrupts. - Populate the MP Table with I/O interrupt entries for any PCI INTx interrupts. - Create a _PRT table under the PCI root bridge in ACPI to route any PCI INTx interrupts appropriately. - Track which INTx interrupts are in use per-slot so that functions that share a slot attempt to distribute their INTx interrupts across the four available pins. - Implicitly mask INTx interrupts if either MSI or MSI-X is enabled and when the INTx DIS bit is set in a function's PCI command register. Either assert or deassert the associated I/O APIC pin when the state of one of those conditions changes. - Add INTx support to the virtio backends. - Always advertise the MSI capability in the virtio backends. Submitted by: neel (7) Reviewed by: neel MFC after: 2 weeks
* | | r261230 broke the cases where the amount of data to be read is notdes2014-01-292-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | known in advance, or where the caller doesn't care and just keeps reading until it hits EOF. In fetch_read(): the socket is non-blocking, so read() will return 0 on EOF, and -1 (errno == EAGAIN) when the connection is still open but there is no data waiting. In the first case, we should immediately return 0. The EINTR case was also broken, although not in a way that matters. In fetch_writev(): use timersub() and timercmp() as in fetch_read(). In http_fillbuf(): set errno to a sensible value when an invalid chunk header is encountered. In http_readfn(): as in fetch_read(), a zero return from down the stack indicates EOF, not an error. Furthermore, when io->error is EINTR, clear it (but no errno) before returning so the caller can retry after dealing with the interrupt. MFC after: 3 days
* | | mdoc: fix several uses of the Fx macro to point to actual releases.uqs2014-01-285-5/+5
| | | | | | | | | | | | Found by: make manlint
* | | MFH@261240.kaiw2014-01-287-139/+75
|\ \ \
| * | | Solve http buffering issues and hangs once and for all (hopefully!) bydes2014-01-283-121/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Comply to the official LibUSB v1.0 API:hselasky2014-01-281-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | "It is legal to attempt to claim an already-claimed interface." MFC after: 1 week
| * | | Add new sendmail 8.14.8 filegshapiro2014-01-261-1/+1
| | | | | | | | | | | | | | | | MFC after: 5 days
| * | | * Mark static inline functions with __fenv_static.andrew2014-01-251-7/+11
| | | | | | | | | | | | | | | | * Correctly shift the mask when masking/unmasking exceptions.
| * | | Use __fenv_static for all static inline functions.andrew2014-01-251-3/+3
| | | |
* | | | MFH@261151.kaiw2014-01-255-18/+37
|\ \ \ \ | |/ / /
| * | | Add MLINK for fdclosedir.3 to directory.3 and sort fdopendir(3) entry.bdrewery2014-01-241-1/+2
| | | | | | | | | | | | | | | | | | | | Reported by: bde Approved by: bapt (mentor)
| * | | The posix_fallocate(2) syscall should return error number on error,kib2014-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | without modifying errno. Reported and tested by: Gennady Proskurin <gpr@mail.ru> Reviewed by: mdf PR: standards/186028 Sponsored by: The FreeBSD Foundation MFC after: 1 week
| * | | Update EINVAL description.pluknet2014-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This matches current POSIX standards and actual FreeBSD behavior. MFC after: 1 week
| * | | Update jemalloc to version 3.5.0.jasone2014-01-233-13/+31
| | | |
* | | | Bump SHLIB_MAJOR for libelf.kaiw2014-01-211-1/+1
| | | |
* | | | Bump SHLIB_MAJOR for libdwarf as ABI/API has changed.kaiw2014-01-211-1/+1
| | | |
* | | | Reapply revisions r237528, r237531 and r238741 which make libelfkaiw2014-01-212-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | properly include sys/ headers from the source tree instead of the host. These patches are also applied to libdwarf since libdwarf requires the same sys/ headers as libelf.
OpenPOWER on IntegriCloud