summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Correct a typo.rstone2014-05-171-1/+1
| | | | MFC after: 1 week
* Look for root certificates in /usr/local/etc/ssl before /etc/ssl.des2014-05-171-2/+8
| | | | MFH: 1 week
* Correct documentation of the limit on how much memory can be mlock()edbjk2014-05-171-7/+14
| | | | | | | | | vm.max_wired is a system-wide limit, not per-process. Reword the section to make this more clear. PR: docs/189214 Submitted by: Lawrence Chen (original text) Approved by: hrs (mentor)
* Revert r261296. This removes the WITHOUT_NCURSESW option.brooks2014-05-151-7/+2
| | | | | It was the wrong direction. We will instead remove use of the non-wide-character supporting libncurses.
* Remove dead files.des2014-05-151-1/+0
|
* Implement a PCI interrupt router to route PCI legacy INTx interrupts tojhb2014-05-152-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the legacy 8259A PICs. - Implement an ICH-comptabile PCI interrupt router on the lpc device with 8 steerable pins configured via config space access to byte-wide registers at 0x60-63 and 0x68-6b. - For each configured PCI INTx interrupt, route it to both an I/O APIC pin and a PCI interrupt router pin. When a PCI INTx interrupt is asserted, ensure that both pins are asserted. - Provide an initial routing of PCI interrupt router (PIRQ) pins to 8259A pins (ISA IRQs) and initialize the interrupt line config register for the corresponding PCI function with the ISA IRQ as this matches existing hardware. - Add a global _PIC method for OSPM to select the desired interrupt routing configuration. - Update the _PRT methods for PCI bridges to provide both APIC and legacy PRT tables and return the appropriate table based on the configured routing configuration. Note that if the lpc device is not configured, no routing information is provided. - When the lpc device is enabled, provide ACPI PCI link devices corresponding to each PIRQ pin. - Add a VMM ioctl to adjust the trigger mode (edge vs level) for 8259A pins via the ELCR. - Mark the power management SCI as level triggered. - Don't hardcode the number of elements in Packages in the source for the DSDT. iasl(8) will fill in the actual number of elements, and this makes it simpler to generate a Package with a variable number of elements. Reviewed by: tycho
* Upgrade to latest ldns (1.6.17) and unbound (1.4.22).des2014-05-152-12/+14
| | | | MFC after: 3 weeks
* Use the new -d option that was added to tblgen between llvm/clang 3.3dim2014-05-141-78/+93
| | | | | | | | | | | | | | | | | | and 3.4 to generate dependency files for the '.inc.h' files generated from .td files, and .sinclude those dependency files in clang.build.mk. This will make future incremental builds of lib/clang and usr.bin/clang work correctly, whenever any of the .td files get modified. Note that this will not fix any problems with incremental builds from *before* this revision, since there will not yet be any generated dependency files. A quick workaround is to run the following: find /usr/obj -type f -name '*.inc.h' | xargs rm and then a regular incremental buildworld (e.g. with -DNO_CLEAN). MFC after: 3 days
* Don't include the guest memory segments in the bhyve(8) process core dump.neel2014-05-132-3/+18
| | | | | | | | | | | This has not added a lot of value when debugging bhyve issues while greatly increasing the time and space required to store the core file. Passing the "-C" option to bhyve(8) will change the default and dump guest memory in the core dump. Requested by: grehan Reviewed by: grehan
* Upgrade our copy of llvm/clang to 3.4.1 release. This release containsdim2014-05-124-29/+15
| | | | | | | | | | | | | | | mostly fixes, for the following upstream bugs: http://llvm.org/PR16365 http://llvm.org/PR17473 http://llvm.org/PR18000 http://llvm.org/PR18068 http://llvm.org/PR18102 http://llvm.org/PR18165 http://llvm.org/PR18260 http://llvm.org/PR18290 http://llvm.org/PR18316 http://llvm.org/PR18460 http://llvm.org/PR18473 http://llvm.org/PR18515 http://llvm.org/PR18526 http://llvm.org/PR18600 http://llvm.org/PR18762 http://llvm.org/PR18773 http://llvm.org/PR18860 http://llvm.org/PR18994 http://llvm.org/PR19007 http://llvm.org/PR19010 http://llvm.org/PR19033 http://llvm.org/PR19059 http://llvm.org/PR19144 http://llvm.org/PR19326 MFC after: 2 weeks
* libedit: add H_SAVE_FP which saves history to a file pointer.eadler2014-05-114-9/+35
| | | | | | | H_SAVE_FP is similar to H_SAVE but operates on a FILE* instead of a filename. This is useful when operating in capability mode. Reviewed by: christos@NetBSD.org, pfg
* Invalidate the cache for the named posix semaphore when opened andkib2014-05-101-29/+36
| | | | | | | | | | | | | | | | | | | actual file storing the semaphore object is different from the file created on the first open. Store the file st_dev and st_ino members of the struct stat in the semaphore structure on open, and compare them with the attributes of the opened file to detect unlink and re-creation. This fixes an issue of sem_unlink(3) failing to flush the named entry in the semaphore list for the current or remote process, making sem_unlink(3) not correctly operating if the unlinked semaphore is still opened. Reported by: Joris Giovannangeli <joris@giovannangeli.fr> PR: standards/189353 Reviewed by: jilles (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Style.kib2014-05-101-2/+2
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Sprinkle a few more .WAITs into the mix after csu, libc, msun and theimp2014-05-101-1/+5
| | | | | | early built libraries. This should be sufficient for most cases and has eliminated the issues I've seen with high -j builds. Races likely still remain, but this knocks the problem down a notch.
* Eliminate EARLY_BUILD flag. It is redundant and means MK_CLANG_FULL=noimp2014-05-102-9/+6
| | | | | | and MK_LLDB=no, so set those explicitly (now that we can do that). Simplify tests for these variables as well, since we know they will always be defined regardless of the phase of the build.
* Fix the rd_event_addr prototype and slightly clarify the use of the "event"markj2014-05-081-3/+3
| | | | | | parameter. MFC after: 3 days
* Handle the different event types properly in rd_event_addr(). In particular,markj2014-05-082-10/+40
| | | | | | | | with r265456 _r_debug_postinit can be used for RD_POSTINIT events. rtld(1) uses r_debug_state for dl state transitions, so we use its address for RD_DLACTIVITY events. MFC after: 2 weeks
* msync(2) must return ENOMEM and not EINVAL when the address is outside thepho2014-05-071-5/+7
| | | | | | | | | | | allowed range or when one or more pages are not mapped. This according to The Open Group Base Specifications Issue 7. Discussed with: attilio, Bruce Evans Reviewed by: alc, Garrett Cooper Reported by: ATF MFC after: 2 weeks Sponsored by: EMC / Isilon storage division
* Sort .ALLSRC before concatenating files together. This makes sure that thedelphij2014-05-061-1/+1
| | | | | | | | | | file are always built the same. (Note that Header and Localstuff must appear first and in that order, the sorting does not affect as a coincident effect). Submitted by: sjg MFC after: 3 days
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-0641-37/+42
| | | | from the latter.
* Revert r265367:pfg2014-05-051-1/+1
| | | | | | | | Use of calloc instead of malloc in regex (from OpenBSD). In this case the change makes no sense since we are using realloc() later. Reported by: ache
* regex: Use calloc instead of malloc.pfg2014-05-051-1/+1
| | | | | | | Mostly to reduce differences with OpenBSD. Obtained from: OpenBSD (CVS rev. 1.17) MFC after: 3 days
* If the traced process stops because it received a signal, libproc needsmarkj2014-05-043-24/+30
| | | | | | to ensure that the signal is forwarded when proc_continue() is called. MFC after: 3 weeks
* Fix a typo.markj2014-05-031-1/+1
| | | | MFC after: 3 days
* Allow "a.out" as an alias for the executable if no other matching entriesmarkj2014-05-034-19/+63
| | | | | | | are found. This improves compatibility with Solaris' libproc and fixes a number of failing DTrace tests that rely on this feature. MFC after: 3 weeks
* Properly free resources in case of error.brueffer2014-05-021-8/+6
| | | | | | CID: 1007032 Found with: Coverity Prevent(tm) MFC after: 2 weeks
* regex: Remove some unreachable breaks.pfg2014-05-012-7/+1
| | | | | | | | | This is based on a much bigger cleanup done in Illumos. Reference: https://www.illumos.org/issues/2077 MFC after: 1 week
* citrus: Avoid invalid code points.pfg2014-05-011-2/+1
| | | | | | | | | | | | | From the OpenBSD log: The UTF-8 decoder should not accept byte sequences which decode to unicode code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF. http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 http://unicode.org/faq/utf_bom.html#utf8-4 Reported by: Stefan Sperling Obtained from: OpenBSD MFC after: 5 days
* Don't forget to remember previous element at the end of the loop.pjd2014-04-301-0/+1
| | | | | | Reported by: brueffer Found with: Coverity Prevent(tm) CID: 1135301
* citrus: Avoid invalid code points.pfg2014-04-291-0/+8
| | | | | | | | | | | | | From the OpenBSD log: The UTF-8 decoder should not accept byte sequences which decode to unicode code positions U+D800 to U+DFFF (UTF-16 surrogates), U+FFFE, and U+FFFF. http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 http://unicode.org/faq/utf_bom.html#utf8-4 Reported by: Stefan Sperling Obtained from: OpenBSD MFC after: 5 days
* Allow a virtual machine to be forcibly reset or powered off. This is doneneel2014-04-282-3/+6
| | | | | | | | | | | | | by adding an argument to the VM_SUSPEND ioctl that specifies how the virtual machine should be suspended, viz. VM_SUSPEND_RESET or VM_SUSPEND_POWEROFF. The disposition of VM_SUSPEND is also made available to the exit handler via the 'u.suspended' member of 'struct vm_exit'. This capability is exposed via the '--force-reset' and '--force-poweroff' arguments to /usr/sbin/bhyvectl. Discussed with: grehan@
* Set the new floating point exception mask correctlyandrew2014-04-281-1/+1
| | | | Submitted by: Keith White <kwhite@site.uottawa.ca>
* r261913 broke DES passwords, because the only way they could work,des2014-04-261-77/+56
| | | | | | | | | | | | | | | | | | | | | since they don't have an easily recognizable signature, was if they were the default. This commit rewrites crypt_set_format(3) etc to address this: - Use a pointer instead of an index to identify the default format. This pointer is initialized at compile time to point to the first first element in the list of supported formats, eliminating the need for crypt_setdefault(). Using a pointer also simplifies iterating through the list. - Associate DES with the magic string "_", which takes care of the Extended DES format. - Finally, as a special case, if the salt does not match any known magic string but matches ^[./0-9A-Za-z]{13}$, it is assumed to be a DES password and is passed on to crypt_des(). MFC after: 1 week
* Spell NO_PROFILE= as MK_PROFILE=no.imp2014-04-256-7/+8
|
* Kill last remaining NO_INSTALLLIB in tree by converting it over toimp2014-04-251-1/+1
| | | | MK_INSTALLIB=no.
* Eliminate last vestigies of NO_MAN= in the tree. Also, removeimp2014-04-251-1/+2
| | | | ineffectual NOMAN= lines. These don't change the build at all.
* libc/stdio: Fail fdopen() on an execute-only fd.jilles2014-04-212-3/+5
| | | | | | | | | An execute-only fd (opened with O_EXEC) allows neither read() nor write() and is therefore incompatible with all stdio modes. Therefore, the [EINVAL] error applies. Also adjust the similar check in freopen() with a NULL path, even though this checks an fd which is already from a FILE.
* Rename the fp{get,set}* files so they no longer conflict with the softfloatandrew2014-04-217-2/+2
| | | | | version of these files. Keep them within this directory so they can be used to implement the armv6 version of these functions.
* Add the deprecated fp{get,set}* functions, a few ports use them.andrew2014-04-207-0/+304
|
* Add a missing break in the TCP case.brueffer2014-04-171-0/+1
| | | | | Reviewed by: bms MFC after: 1 week
* Remove the libkse directory. It was unhooked from the build and kernelbrooks2014-04-16179-27209/+0
| | | | | | | support removed in 2008 (prior to 8.0). Approved by: deischen, imp MFC after: 3 days
* Correct sorting.brueffer2014-04-151-1/+1
|
* Mention Capsicum.brueffer2014-04-151-1/+7
| | | | MFC after: 1 week
* Add support for emulating the slave PIC.tychon2014-04-141-1/+1
| | | | | Reviewed by: grehan, jhb Approved by: grehan (co-mentor)
* Fix err() usage in libcapsicum(3) example.gjb2014-04-141-2/+2
| | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Fix some off-by-one errors. The kve_end and rdl_eaddr fields contain themarkj2014-04-141-3/+3
| | | | | | | first address after the end of the map entry and should therefore be excluded. MFC after: 2 weeks
* realpath(): Properly fail "." or ".." components after non-directories.jilles2014-04-131-20/+6
| | | | | | | | | | | | | If realpath() is called on pathnames like "/dev/null/." or "/dev/null/..", it should fail with [ENOTDIR]. Pathnames like "/dev/null/" already failed as they should. Also, put the check for non-directories after lstatting the previous component instead of when the empty component (consecutive or trailing slashes) is detected, saving an lstat() call and some lines of code. PR: kern/82980 MFC after: 2 weeks
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-1310-12/+12
| | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0hselasky2014-04-112-0/+5
| | | | | | APIs to increase the maximum bandwidth limit. MFC after: 1 week
* Fix table alignment. EVFILT_PROCDESC is longer than the existing filters.ed2014-04-071-1/+1
|
OpenPOWER on IntegriCloud