summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add a new ARM TARGET_ARCH, armv6hf. This is considered experimental.andrew2014-03-235-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | This targets the existing ARMv6 and ARMv7 SoCs that contain a VFP unit. This is an optional coprocessors may not be present in all devices, however it appears to be in all current SoCs we support. armv6hf targets the VFP variant of the ARM EABI and our copy of gcc is too old to support this. Because of this there are a number of WITH/WITHOUT options that are unsupported and must be left as the default value. The options and their required value are: * WITH_ARM_EABI * WITHOUT_GCC * WITHOUT_GNUCXX In addition, without an external toolchain, the following need to be left as their default: * WITH_CLANG * WITH_CLANG_IS_CC As there is a different method of passing float and double values to functions the ABI is incompatible with existing armv6 binaries. To use this a full rebuild of world is required. Because no floating point values are passed into the kernel an armv6 kernel with VFP enabled will work with an armv6hf userland and vice versa.
* Update to 20140321bapt2014-03-221-0/+1
| | | | | | This brings schema validation MFC after: 1 week
* Implement __flt_rounds for ARMv6 hard-float. The fpscr register stores theandrew2014-03-221-10/+14
| | | | current rounding mode used by the VFP unit.
* nv(3) was not in 10.0.bdrewery2014-03-211-2/+2
| | | | | | | It might be MFC'd to stable/10 for 10.1, but for now update the manual to avoid confusion on its availability. Discussed with: pjd
* Update hwpmc to support core events for Atom Silvermont microarchitecture.hiren2014-03-204-1/+560
| | | | | | | (Model 0x4D as per Intel document 330061-001 01/2014) Tested by: Olivier Cochard-Labbe <olivier@cochatrd.me> MFC after: 4 weeks
* Update NetBSD Foundation copyrights to 2-clause BSDemaste2014-03-181-7/+0
| | | | | | | | | | | The NetBSD Foundation states "Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Foundation to a 2-clause license." This change removes clauses 3 and 4 from copyright / license blocks that list The NetBSD Foundation as the only copyright holder. Sponsored by: The FreeBSD Foundation
* Remove an extra 1 in an #if lineandrew2014-03-161-1/+1
| | | | Reported by: ian@
* Fix the spelling of function.andrew2014-03-162-2/+2
| | | | Reported by: ian@
* Add an optimised version of the float and double helper functions. Theseandrew2014-03-166-124/+537
| | | | | | | are only used on armv6 when the vfp unit is detected. They will also be available for the upcoming armv6hf platform, however while not used by default there will need to be defined for any software that calls them directly.
* Update most userspace consumers of capability.h to use capsicum.h instead.rwatson2014-03-163-3/+3
| | | | | | | auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. MFC after: 3 weeks
* Only build the vfp/softfp switching code on armv6 as we don't support vfpandrew2014-03-161-1/+5
| | | | | on anything earlier than this. This should fix the armeb and arm builds when using gcc.
* Build fenv-vfp.c with the softfp float abi. Without this gcc generates anandrew2014-03-161-0/+3
| | | | incorrect assembly file that doesn't allow for vfp instructions.
* replace the kernel's version w/ cperciva's implementation... In alljmg2014-03-162-2/+2
| | | | | | | | | | | | | | | | | my tests, it is faster ~20%, even on an old IXP425 533MHz it is ~45% faster... This is partly due to loop unrolling, so the code size does significantly increase... I do plan on committing a version that rolls up the loops again for smaller code size for embedded systems where size is more important than absolute performance (it'll save ~6k code)... The kernel implementation is now shared w/ userland's libcrypt and libmd... We drop support for sha256 from sha2.c, so now sha2.c only contains sha384 and sha512... Reviewed by: secteam@
* On armv6 access both the softfloat and, when available, the vfp to get andandrew2014-03-157-10/+391
| | | | set the floating-point environment.
* libusb: add libusb_log_level enumeadler2014-03-141-0/+13
| | | | This is documented on http://libusb.sourceforge.net/api-1.0/group__lib.html
* Make bsd.test.mk the only public mk fragment for the building of tests.jmmv2014-03-146-6/+6
| | | | | | | | | | | | | | Change {atf,plain,tap}.test.mk to be internal implementation details of bsd.test.mk. Makefiles that build tests should now only include bsd.test.mk and declaratively specify what they want to build, without worrying about the internal implementation of the mk files. The reason for this change is to permit building test programs of different interfaces from a single directory, which is something I had a need for while porting tests over from src/tools/regression/. Additionally, this change makes it possible to perform some other requested changes to bsd.test.mk in an easier manner. Coming soon.
* multiple: Remove 3rd clause from BSD license where approved by theeadler2014-03-142-10/+2
| | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste
* Remove IPX support.glebius2014-03-145-467/+0
| | | | | | | | | | | IPX was a network transport protocol in Novell's NetWare network operating system from late 80s and then 90s. The NetWare itself switched to TCP/IP as default transport in 1998. Later, in this century the Novell Open Enterprise Server became successor of Novell NetWare. The last release that claimed to still support IPX was OES 2 in 2007. Routing equipment vendors (e.g. Cisco) discontinued support for IPX in 2011. Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.
* To avoid missing a chance to cancel thread, call _pthread_testcancel at thedavidxu2014-03-131-0/+1
| | | | | | | beginning of _sem_timedwait. Submitted by: Eric van Gyzen &lt; eric at vangyzen dot net &gt; MFC after: 3 days
* Make ether_line really report an error when all input is invalid.jmmv2014-03-121-5/+7
| | | | | | | | | | | | The previous code failed to return an error condition when the whole input was invalid due to improper handling of the sscanf return value. Actually, this failure was properly being caught by a test in tools/regression/lib/libc/net/test-ether.t but was not noticed because these tests are never run. (On my way to fixing that ;-) The fix applied here resembles the implementation of ether_line in NetBSD modulo the setting of an errno value (which is not documented as an expectation in the manpage anyway).
* Replace the userspace atpic stub with a more functional vmm.ko model.tychon2014-03-112-0/+38
| | | | | | | | New ioctls VM_ISA_ASSERT_IRQ, VM_ISA_DEASSERT_IRQ and VM_ISA_PULSE_IRQ can be used to manipulate the pic, and optionally the ioapic, pin state. Reviewed by: jhb, neel Approved by: neel (co-mentor)
* Support Last-Modified behind proxies which return UTC instead of GMT.bdrewery2014-03-111-0/+6
| | | | | | | | | | | | | | | | The standard states that GMT must be used, but that UTC is equivalent. Still parse UTC as otherwise this causes problems for pkg(8). It will refetch the repository every time 'pkg update' or other remote operations are used behind these proxies. RFC2616: "All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception. For the purposes of HTTP, GMT is exactly equal to UTC (Coordinated Universal Time)."" Approved by: bapt (mentor) Reviewed by: des, peter Sponsored by: EMC / Isilon Storage Division MFC after: 1 week
* libbsdstat: fix warnings, set WARNSeadler2014-03-112-3/+1
| | | | libbsdstat can build with WARNS=6 with a one line change.
* Export _libc_arm_fpu_present as a private symbol to be used by otherandrew2014-03-111-0/+2
| | | | system libraries, for example libm.
* various formating fixes, use NUL for NUL bytes..jmg2014-03-091-29/+37
| | | | | | | | | | | | | | | drop out dated perf numbers (can't imagine people are still running Pentium MMX 166's anymore)... bump date... drop max length of salt of 8 since _PASSWORD_LEN is now large, 128.. and state the max length of the salt depends upon the module, sha-{256,512} have a max salt of 16.. recommend 8 characters of salt instead of just 2... MFC after: 1 week
* libc man pages: Remove reference to non-existent FreeBSD Securityeadler2014-03-073-8/+0
| | | | | | Architecture MFC After: 3 days
* fts: Don't abort if an empty pathname is given.jilles2014-03-061-5/+1
| | | | | | | | | | | Make fts_open(3) treat an empty pathname like any other pathname that cannot be lstatted because of [ENOENT]. It is rather confusing if rm -rf file1 "" file2 does not remove file1 and file2. PR: bin/187264 MFC after: 2 weeks
* Let __bt_put() accept the R_SETCURSOR flag, as stated in the dbopen(3) manpage.jlh2014-03-061-1/+2
| | | | | | | While here, update the comment above with all the accepted flags. Reviewed by: silence on hackers@ MFC after: 2 weeks
* Add 'libstatfoo' from Sam Leffler.adrian2014-03-064-0/+347
|
* Add a manual page for zopen(3) provided by our libz.so.delphij2014-03-062-1/+97
|
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}marcel2014-03-0446-138/+142
| | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc.
* When querying a process's umask via sysctl in libprocstat(), don'trwatson2014-03-021-1/+1
| | | | | | | | | print a warning if EPERM is returned as this is an expected failure mode rather than error -- similar to current handling of ESRCH. This makes the output of 'procstat -as' vastly more palatable. MFC after: 3 days Sponsored by: DARPA, AFRL
* MFV r262639: ncurses 5.9 20140222 snapshot.delphij2014-03-022-10/+20
| | | | Requested by: bapt
* Silence the gcc warning about unsigned comparison with 0 in a differenttijl2014-03-011-3/+2
| | | | | | way because mnemonic_ext_size isn't a preprocessor macro. MFC after: 3 days
* MFV r262617: ncurses 5.9.delphij2014-02-283-93/+245
|
* Merge from head up to r262611.dim2014-02-281-1/+1
|\
| * syncer(4) is a kernel process, not a user processbjk2014-02-271-1/+1
| | | | | | | | | | Noticed by: Geoffrey Thomas <gthomas@mokafive.com> Approved by: hrs (mentor)
* | Merge from head up to r262536.dim2014-02-267-24/+24
|\ \ | |/
| * Update LLDB snapshot to upstream r202189emaste2014-02-265-4/+9
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highlights include (upstream revs in parens): - Improvements to the remote GDB protocol client (r196610, r197579, r197857, r200072, and others) - Bug fixes for big-endian targets (r196808) - Initial support for libdispatch (GCD) queues in the debuggee (r197190) - Add "step-avoid-libraries" setting (r199943) - IO subsystem improvements (including initial work on a curses gui) (r200263) - Support hardware watchpoints on FreeBSD (r201706) - Improved unwinding through hand-written assembly functions (r201839) - Handle DW_TAG_unspecified_parameters for variadic functions (r202061) - Fix Ctrl+C interrupting a running inferior process (r202086, r202154) - Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler, ELF core files, DWARF debug info, and others. Sponsored by: DARPA, AFRL
| | * Update LLDB bmake build for r262187emaste2014-02-185-4/+9
| | | | | | | | | | | | Sponsored by: DARPA, AFRL
| * | Queue pending exceptions in the 'struct vcpu' instead of directly updating theneel2014-02-262-20/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processor-specific VMCS or VMCB. The pending exception will be delivered right before entering the guest. The order of event injection into the guest is: - hardware exception - NMI - maskable interrupt In the Intel VT-x case, a pending NMI or interrupt will enable the interrupt window-exiting and inject it as soon as possible after the hardware exception is injected. Also since interrupts are inherently asynchronous, injecting them after the hardware exception should not affect correctness from the guest perspective. Rename the unused ioctl VM_INJECT_EVENT to VM_INJECT_EXCEPTION and restrict it to only deliver x86 hardware exceptions. This new ioctl is now used to inject a protection fault when the guest accesses an unimplemented MSR. Discussed with: grehan, jhb Reviewed by: jhb
* | | Merge from head up to r262472.dim2014-02-255-20/+21
|\ \ \ | |/ /
| * | Wrap for loop in #if block testing the size is actually greaterdelphij2014-02-251-1/+4
| | | | | | | | | | | | | | | | | | | | | than 0. This silences gcc warning. Reviewed by: sha256(1) with clang X-MFC-With: r262447
| * | Revert 262462 and 262461, they didn't solve the problem, indelphij2014-02-251-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | fact I should actually waited the build to be finished before committing. A proper fix would be committed once my test build passes. Pointy hat to: delphij
| * | Patch 2/2:delphij2014-02-241-11/+11
| | | | | | | | | | | | | | | | | | Reindent the code after previous change. X-MFC-With: r262447
| * | Patch 1/2:delphij2014-02-241-0/+2
| | | | | | | | | | | | | | | | | | | | | Pet gcc: enclose the for loop that currently do nothing with an if. Reviewed by: sha256(1) X-MFC-With: r262447
| * | Fix an array index out of bounds bug in iconv VIQR (Vietnamese) module.tijl2014-02-241-1/+1
| | | | | | | | | | | | | | | | | | PR: 185964 Submitted by: Manuel Mausz <manuel-freebsd@mausz.at> MFC after: 5 days
| * | Fix Simplified Chinese character set conversions by switching around thetijl2014-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | fields of an internal struct so it corresponds with the way variables of this type are initialised. PR: 185964 Submitted by: Manuel Mausz <manuel-freebsd@mausz.at> MFC after: 5 days
| * | Consistently pass around context information using a simple pointer. Thistijl2014-02-244-17/+15
| | | | | | | | | | | | | | | | | | | | | fixes some dereferencing bugs in Chinese character set conversions. PR: 185964 MFC after: 5 days
* | | Merge from head up to r262415.dim2014-02-234-103/+22
|\ \ \ | |/ /
OpenPOWER on IntegriCloud