aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Update the documentation to reflect changes to the implementation inDavid Schultz2010-11-301-14/+14
| | | | | | | | | | r197752, which is related to handling of null buffer pointers. Also make a few minor wording changes. Reported by: jh@ Notes: svn path=/head/; revision=216086
* Add <time.h> for ctime(), which we accidentally picked up throughDag-Erling Smørgrav2010-11-221-0/+1
| | | | | | | | | | <sys/time.h>. Submitted by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=215680
* Remove obsoleted private symbol.Martin Matuska2010-11-191-1/+0
| | | | | | | | Approved by: delphij (mentor) MFC after: together with 5.0.0 update Notes: svn path=/head/; revision=215515
* Correct description of the return values ofHans Petter Selasky2010-11-181-5/+10
| | | | | | | | | | | the LibUSB v1.0 libusb_control_transfer() function. PR: usb/151851 Submitted by: HIROSHI OOTA Approved by: thompsa (mentor) Notes: svn path=/head/; revision=215450
* Remove unused autofs userland bits.John Baldwin2010-11-174-859/+0
| | | | | | | Approved by: core Notes: svn path=/head/; revision=215426
* Don't use -fno-exceptions or -fno-rtti for .c files, when buildingDimitry Andric2010-11-141-2/+2
| | | | | | | llvm/clang. Notes: svn path=/head/; revision=215324
* Similar to sys/net/vnet.h, define the linker set name for sys/sys/pcpu.hDimitry Andric2010-11-142-5/+6
| | | | | | | as a macro, and use it instead of literal strings. Notes: svn path=/head/; revision=215315
* Always set errno to a sane value when pututxline(3) fails.Ed Schouten2010-11-141-0/+3
| | | | | | | | For example, it will now return ESRCH when trying to replace a nonexistent entry with DEAD_PROCESS. Notes: svn path=/head/; revision=215310
* Remove libc_r threading library. It has been disconnected from the buildEd Maste2010-11-13167-23451/+0
| | | | | | | | | for four years (since r162846). Submitted by: Alexander Best arundel@ Notes: svn path=/head/; revision=215269
* Fix LibUSB v1.0 compliancy.Hans Petter Selasky2010-11-132-4/+11
| | | | | | | | | | | | | 1) We need to allow the USB callback to free the USB transfer itself. 2) The USB transfer buffer should only be automatically freed when freeing the USB transfer. Fixed by: hselasky Submitted by: Gustau Perez i Querol Approved by: thompsa (mentor) Notes: svn path=/head/; revision=215253
* Fix bug in jn(3) and jnf(3) that led to -inf resultsUlrich Spörlein2010-11-132-2/+12
| | | | | | | | | | | | | | | | | | | | | | | Explanation by Steve: jn[f](n,x) for certain ranges of x uses downward recursion to compute the value of the function. The recursion sequence that is generated is proportional to the actual desired value, so a normalization step is taken. This normalization is j0[f](x) divided by the zeroth sequence member. As Bruce notes, near the zeros of j0[f](x) the computed value can have giga-ULP inaccuracy. I found for the 1st zero of j0f(x) only the leading decimal digit is correct. The solution to the issue is fairly straight forward. The zeros of j0(x) and j1(x) never coincide, so as j0(x) approaches a zero, the normalization constant switches to j1[f](x) divided by the 2nd sequence member. The expectation is that j1[f](x) is a more accurately computed value. PR: bin/144306 Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu> Reviewed by: bde MFC after: 7 days Notes: svn path=/head/; revision=215237
* Sync with OpenBSD, primarily better signal and terminal handling.Xin LI2010-11-132-124/+130
| | | | | | | | Obtained from: OpenBSD MFC after: 2 weeks Notes: svn path=/head/; revision=215236
* Update xz to release 5.0.0Martin Matuska2010-11-121-3/+4
| | | | | | | | Approved by: delphij (mentor) MFC after: 1 week Notes: svn path=/head/; revision=215187
* Revert to libgcc for sparc64.Ed Schouten2010-11-121-3/+5
| | | | | | | | | | | | I've had a report of a sparc64 system where cc1 generates illegal instructions. We still have to diagnose this properly, but instead of hosing all sparc64 boxes out there, fall back to libgcc to prevent more damage. Reported by: Florian Smeets Notes: svn path=/head/; revision=215185
* This commit implements the SO_USER_COOKIE socket option, which letsLuigi Rizzo2010-11-121-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | you tag a socket with an uint32_t value. The cookie can then be used by the kernel for various purposes, e.g. setting the skipto rule or pipe number in ipfw (this is the reason SO_USER_COOKIE has been implemented; however there is nothing ipfw-specific in its implementation). The ipfw-related code that uses the optopn will be committed separately. This change adds a field to 'struct socket', but the struct is not part of any driver or userland-visible ABI so the change should be harmless. See the discussion at http://lists.freebsd.org/pipermail/freebsd-ipfw/2009-October/004001.html Idea and code from Paul Joe, small modifications and manpage changes by myself. Submitted by: Paul Joe MFC after: 1 week Notes: svn path=/head/; revision=215178
* Make sure to specify the alignment of minbrk and curbrk. They were correctlyDimitry Andric2010-11-112-0/+2
| | | | | | | | | | | aligned by accident with earlier binutils, but no longer are, causing link failures. Submitted by: nwhitehorn Obtained from: projects/binutils-2.17 Notes: svn path=/head/; revision=215147
* Remove some unneeded spaces from the __sym_compat() macro, since newerDimitry Andric2010-11-111-1/+1
| | | | | | | | versions of gas are more fussy about spaces surrounding '@' signs in versioned symbol names. Notes: svn path=/head/; revision=215144
* amd64: introduce minidump version 2Andriy Gapon2010-11-111-14/+94
| | | | | | | | | | | | | | | | | | | | | After KVA space was increased to 512GB on amd64 it became impractical to use PTEs as entries in the minidump map of dumped pages, because size of that map alone would already be 1GB. Instead, we now use PDEs as page map entries and employ two stage lookup in libkvm: virtual address -> PDE -> PTE -> physical address. PTEs are now dumped as regular pages. Fixed page map size now is 2MB. libkvm keeps support for accessing amd64 minidumps of version 1. Support for 1GB pages is added. Many thanks to Alan Cox for his guidance, numerous reviews, suggestions, enhancments and corrections. Reviewed by: alc [kernel part] MFC after: 15 days Notes: svn path=/head/; revision=215133
* Set symbol visibility to hidden.Ed Schouten2010-11-111-1/+1
| | | | | | | | | | Not doing so may cause all sorts of random libraries to expose libcompiler_rt's functions, which should of course not be done. Discussed with: kan, kib Notes: svn path=/head/; revision=215129
* Replace libgcc.a by libcompiler_rt.a.Ed Schouten2010-11-111-0/+2
| | | | | | | | | | | | | | | | | | libcompiler_rt.a is a BSD licensed C language runtime, which implements many routines which are linked into binaries on architectures where certain functionality is missing (e.g. 64 bits mul/div on i386). Unfortunately, libcompiler_rt cannot replace libgcc entirely. Certain features, such as an unwinder for exception handling, are missing. That's why only libgcc.a is replaced for now, because this one does seem to be complete. Tested by: rene (amd64), nwhitehorn (powerpc), droso (i386 exprun) and many others. Thanks! Obtained from: user/ed/compiler-rt Notes: svn path=/head/; revision=215127
* Import libcompiler_rt into HEAD and add Makefiles.Ed Schouten2010-11-113-0/+184
|\ | | | | | | | | | | | | Obtained from: user/ed/compiler-rt Notes: svn path=/head/; revision=215125
| * Import compiler-rt r117047.vendor/compiler-rt/compiler-rt-r117047Ed Schouten2010-10-21210-0/+11184
| | | | | Notes: svn path=/vendor/compiler-rt/dist/; revision=214152 svn path=/vendor/compiler-rt/compiler-rt-r117047/; revision=214153; tag=vendor/compiler-rt/compiler-rt-r117047
* If the Zip reader doesn't see a PK signature blockTim Kientzle2010-11-073-3/+93
| | | | | | | | | | | because there's inter-entry garbage, just scan forward to find the next one. This allows us to handle a lot of Zip archives that have been modified in-place. Thanks to: Gleb Kurtsou for sending me a sample archive Notes: svn path=/head/; revision=214905
* Add minidump support for MIPSOleksandr Tymoshenko2010-11-074-11/+318
| | | | Notes: svn path=/head/; revision=214904
* Fix manpage markup.Ulrich Spörlein2010-11-063-4/+2
| | | | Notes: svn path=/head/; revision=214867
* Clarify the naming: Methods that free an object shouldTim Kientzle2010-11-0513-77/+114
| | | | | | | | be called "free". Retain the old "finish" names to preserve source compatibility for now. Notes: svn path=/head/; revision=214822
* Add a new libc function: cfmakesane(3).Ed Schouten2010-11-024-6/+37
| | | | | | | | | | | | | | I've noticed various terminal emulators that need to obtain a sane default termios structure use very complex `hacks'. Even though POSIX doesn't provide any functionality for this, extend our termios API with cfmakesane(3), which is similar to the commonly supported cfmakeraw(3), except that it fills the termios structure with sane defaults. Change all code in our base system to use this function, instead of depending on <sys/ttydefaults.h> to provide TTYDEF_*. Notes: svn path=/head/; revision=214680
* Use sysctl kern.sched.cpusetsize to retrieve size of kernel cpuset.David Xu2010-11-021-8/+5
| | | | Notes: svn path=/head/; revision=214653
* Prep for the 9.6-ESV-R2 updateDoug Barton2010-10-312-5/+22
| | | | Notes: svn path=/head/; revision=214585
* When the make target is 'install', don't descend into the clangRui Paulo2010-10-301-3/+5
| | | | | | | | libraries subdirectories since there's nothing to do there. This saves us quite a few seconds off installworld, esp. if the disk I/O is slow. Notes: svn path=/head/; revision=214562
* Regenerate our lib/libpcap/config.h for libpcap 1.1.1.Dimitry Andric2010-10-291-26/+56
| | | | Notes: svn path=/head/; revision=214539
* add pcap-common.c.Rui Paulo2010-10-291-1/+1
| | | | | | | Submitted by: dim Notes: svn path=/head/; revision=214529
* Update for libpcap-1.1.1.Rui Paulo2010-10-291-1/+1
| | | | Notes: svn path=/head/; revision=214519
* - Note that non-superusers are not allowed to set the SF_ARCHIVEDJaakko Heinonen2010-10-291-3/+7
| | | | | | | | | | | | flag. [1] - Note that also fchflags(2) will return EPERM for attempts to set or unset the SF_SNAPSHOT flag. Submitted by: Garrett Cooper [1] MFC after: 1 week Notes: svn path=/head/; revision=214514
* Add sysctl kern.sched.cpusetsize to export the size of kernel cpuset,David Xu2010-10-291-0/+9
| | | | | | | | | also add sysconf() key _SC_CPUSET_SIZE to get sysctl value. Submitted by: gcooper Notes: svn path=/head/; revision=214510
* Return previous sigaction correctly.David Xu2010-10-291-1/+4
| | | | | | | Submitted by: avg Notes: svn path=/head/; revision=214506
* Remove local variable 'first', instead check signal number in memory,David Xu2010-10-291-4/+1
| | | | | | | | because the variable can be in register, second checking the variable may still return true, however this is unexpected. Notes: svn path=/head/; revision=214500
* Find a jail's type as part of jailparam_init rather than waiting untilJamie Gritton2010-10-271-10/+4
| | | | | | | | | it's absolutely necessary. MFC after: 1 week Notes: svn path=/head/; revision=214434
* Check small set and reject it, this is how kernel did. Always use theDavid Xu2010-10-271-37/+32
| | | | | | | size kernel is using. Notes: svn path=/head/; revision=214413
* - Revert r214409.David Xu2010-10-271-5/+6
| | | | | | | - Use long word to figure out sizeof kernel cpuset, hope it works. Notes: svn path=/head/; revision=214412
* Remove locking and unlock in pthread_mutex_destroy, becauseDavid Xu2010-10-271-25/+2
| | | | | | | | it can not fix race condition in application code, as a result, the problem described in PR threads/151767 is avoided. Notes: svn path=/head/; revision=214410
* Fix typo.David Xu2010-10-251-1/+1
| | | | Notes: svn path=/head/; revision=214335
* Get cpuset in pthread_attr_get_np() and free it in pthread_attr_destroy().David Xu2010-10-252-10/+31
| | | | | | | MFC after: 7 days Notes: svn path=/head/; revision=214334
* Fix PIC_RETURN when abicalls are not defined.Jayachandran C.2010-10-241-1/+1
| | | | | | | Submitted by: Artem Belevich (artemb at gmail dot com) Notes: svn path=/head/; revision=214260
* Move variable declarations into the conditional block where they areEd Maste2010-10-241-1/+1
| | | | | | | | | | used, to fix warning if WITH_SSL is not set. Submitted by: Sean Bruno MFC after: 1 week Notes: svn path=/head/; revision=214256
* Revert to r214147, errno is not clobbered as originallyBenedict Reuschling2010-10-221-2/+0
| | | | | | | thought. Notes: svn path=/head/; revision=214200
* Document strtonum()s behavior of setting errno to 0 when no error is found.Benedict Reuschling2010-10-211-0/+2
| | | | | | | | | | PR: docs/143330 Submitted by: Efstratios Karatzas (gpf dot kira at gmail dot com) Discussed with: ru@ MFC after: 7 days Notes: svn path=/head/; revision=214148
* Sync with OpenBSD rev. 1.13:Benedict Reuschling2010-10-211-2/+1
| | | | | | | | | | | strtonum does not require limits.h Obtained from: OpenBSD Discussed with: ru@ MFC after: 5 days Notes: svn path=/head/; revision=214147
* Fix error handling logic of pututxline(3).Ed Schouten2010-10-211-12/+21
| | | | | | | | | Instead of only returning NULL when the entry is invalid and can't be matched against the current database, also return it when it cannot open the log files properly. Notes: svn path=/head/; revision=214134
* mdoc: make pages render with mandocUlrich Spörlein2010-10-213-4/+3
| | | | | | | | | It's a bit more pedantic regarding .Bl list elements. This has an added benefit of unbreaking the ipfw(8) manpage, where groff was silently skipping one list element. Notes: svn path=/head/; revision=214132