summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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 < eric at vangyzen dot net > 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
|\ \ \ | |/ /
| * | Lower the level of WARNS to fix build with gccbapt2014-02-231-1/+1
| | |
| * | Remove libyaml, it has been replaced by libuclbapt2014-02-233-103/+0
| | |
| * | Branch libucl to the buildbapt2014-02-231-0/+1
| | |
| * | Import libucl into headbapt2014-02-231-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UCL is heavily infused by nginx configuration as the example of a convenient configuration system. However, UCL is fully compatible with JSON format and is able to parse json files. UCL is used by pkg(8) for its configuration file as well for the manifest format in packages, it will be used in base for the pkg boostrap (signature checking and configuration file parsing.) libucl has been developped and is maintained by vsevolod@
* | | Merge from head up to r262311.dim2014-02-211-3/+3
|\ \ \ | |/ /
| * | 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
* | In lib/msun/ld128/s_expl.c, remove '/*' within block comment, to avoid adim2014-02-211-1/+1
| | | | | | | | warning.
* | For lib/msun, turn off warnings about unknown pragmas, sincedim2014-02-211-0/+1
| | | | | | | | lib/msun/src/e_sqrtl.c uses an unsupported STDC FENV_ACCESS pragma.
* | In lib/libc/sparc64/sys/__sparc_utrap_setup.c, avoid an error aboutdim2014-02-201-1/+1
| | | | | | | | passing a pointer to a const object to sysarch().
* | Add Makefile glue to build the Sparc backend libraries and link themdim2014-02-2022-1/+150
|/ | | | into the clang executable.
*-. 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
| | |
OpenPOWER on IntegriCloud