summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade libcompiler_rt from revision 117047 to 132478.ed2011-06-031-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems there have only been a small amount to the compiler-rt source code in the mean time. I'd rather have the code in sync as much as possible by the time we release 9.0. Changes: - The libcompiler_rt library is now dual licensed under both the University of Illinois "BSD-Like" license and the MIT license. - Our local modifications for using .hidden instead of .private_extern have been upstreamed, meaning our changes to lib/assembly.h can now be reverted. - A possible endless recursion in __modsi3() has been fixed. - Support for ARM EABI has been added, but it has no effect on FreeBSD (yet). - The functions __udivmodsi4 and __divmodsi4 have been added. Requested by: many, including bf@ and Pedro Giffuni
| * Import compiler-rt r132478.ed2011-06-0274-149/+855
| |
| * Import compiler-rt r127823.ed2011-03-17189-373/+457
| | | | | | | | | | | | | | Changes: - License change; now it's also dual licensed under the MIT licence. - Addition of divmodsi4 and udivmodsi4.
* | mdoc: reorder sections consistentlyuqs2011-06-021-3/+3
| |
* | posix_spawn(): Do not fail when trying to close an fd that is not open.jilles2011-05-301-5/+2
| | | | | | | | | | | | | | | | | | | | | | As noted in Austin Group issue #370 (an interpretation has been issued), failing posix_spawn() because an fd specified with posix_spawn_file_actions_addclose() is not open is unnecessarily harsh, and there are existing implementations that do not fail posix_spawn() for this reason. Reviewed by: ed MFC after: 10 days
* | Clean up the unneeded cpp macro INLINE_REM_PIO2L.kargl2011-05-305-11/+2
| | | | | | | | | | Reviewed by: das Approved by: das (mentor)
* | - Move some internal functions to the private namespacegabor2011-05-271-9/+12
| | | | | | | | | | Submitted by: kan Approved by: delphij (mentor)
* | [mdoc] Fixed .Dt call.ru2011-05-251-1/+1
| |
* | On amd64, change clang's default triple to 'x86_64-unknown-freebsd9.0',dim2011-05-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | similar to what we do for binutils. When clang's default triple starts with 'amd64-', it does not pass a proper -target-cpu option to its first stage. This can lead to problems, for example when structs are memcpy'd, and clang erroneously assumes they are 16-byte aligned. It will then use the 'movaps' SSE instruction to implement the copy, which results in a bus error if the struct is really 8-byte aligned. I encountered this issue when gcc's /usr/libexec/cc1 started crashing with SIGBUS, after rebuilding world with clang ToT, but it also affects the version of clang that we have in the tree. We were just lucky until now, apparently. :)
* | Release allocated memory in procstat_close().pluknet2011-05-181-0/+1
| | | | | | | | Reviewed by: stass
* | mq_setattr(2): Add missing const to man page.jilles2011-05-171-2/+2
| | | | | | | | | | | | The declaration in the header file is correct. MFC after: 1 week
* | Ok, so we use different comment conventions in Symbol.map and Version.defphk2011-05-171-3/+1
| | | | | | | | "#notimpressed" as my twittering friends would say.
* | Backout libinstall.a -> libpkg commit.flz2011-05-1715-3285/+0
| | | | | | | | Discussed with: erwin, brooks, bapt
* | Bump shlib versionphk2011-05-173-3/+38
| | | | | | | | | | Instigate symbol versioning Pray that I don't break the build.
* | - Whitespace fix.stas2011-05-151-1/+1
| |
* | - Add symbol versioning to libprocstat.stas2011-05-143-0/+24
| | | | | | | | Suggested by: kib
* | Disconnect sun4v architecture from the three.attilio2011-05-145-19/+0
| | | | | | | | | | | | | | | | | | Some files keep the SUN4V tags as a code reference, for the future, if any rewamped sun4v support wants to be added again. Reviewed by: marius Tested by: sbruno Approved by: re
* | Update sticky(7) cross references.pluknet2011-05-132-4/+4
| | | | | | | | | | PR: docs/124468 X-MFC with: r218998
* | Mark all socket and file descriptors close-on-exec.des2011-05-132-0/+4
| | | | | | | | | | PR: bin/151866 MFC after: 3 weeks
* | - Don't try to build NWFS support module if NCP/IPX is disabled in the build.stas2011-05-122-3/+9
| | | | | | | | | | | | | | - Rename ZFS definition to LIBPROCSTAT_ZFS to be consistent with NWFS and to prevent possible collisions. Reported by: many
* | Builds cleanly at the default WARNS level (WARNS=6).des2011-05-121-1/+0
| |
* | Increase WARNS to 4.des2011-05-123-3/+3
| |
* | Mechanical whitespace cleanup.des2011-05-121-100/+100
| |
* | Increase WARNS to 3.des2011-05-122-2/+2
| |
* | - Commit work from libprocstat project. These patches add support for runtimestas2011-05-1221-2/+2853
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | file and processes information retrieval from the running kernel via sysctl in the form of new library, libprocstat. The library also supports KVM backend for analyzing memory crash dumps. Both procstat(1) and fstat(1) utilities have been modified to take advantage of the library (as the bonus point the fstat(1) utility no longer need superuser privileges to operate), and the procstat(1) utility is now able to display information from memory dumps as well. The newly introduced fuser(1) utility also uses this library and able to operate via sysctl and kvm backends. The library is by no means complete (e.g. KVM backend is missing vnode name resolution routines, and there're no manpages for the library itself) so I plan to improve it further. I'm commiting it so it will get wider exposure and review. We won't be able to MFC this work as it relies on changes in HEAD, which was introduced some time ago, that break kernel ABI. OTOH we may be able to merge the library with KVM backend if we really need it there. Discussed with: rwatson
* | Document the behavior of `elf_getdata()` and `elf_rawdata()` withkaiw2011-05-071-4/+5
| | | | | | | | | | | | zero-sized ELF sections. Obtained from: elftoolchain
* | For zero-sized sections, set the `d_buf` field of the `Elf_Data`kaiw2011-05-071-1/+2
| | | | | | | | | | | | descriptor returned by `elf_rawdata()` to NULL. Obtained from: elftoolchain
* | Add the ability to search for all the inlined instances of a given function.obrien2011-05-077-1/+280
| | | | | | | | | | Reviewed by: jb Obtained from: Juniper Networks
* | * Update copyright notice.tuexen2011-05-051-78/+63
| | | | | | | | | | | | | | * Cleanup usage of iov's. * Add support for SCTP_TIMEOUTS socketoption. * Fix a bug in sctp_recvmsg(): return the msg_flags in case of an error. * Fix a bug in the error handling of sctp_peeloff(): return the -1.
* | Don't duplicate define the stdint types.obrien2011-05-051-10/+1
| |
* | libarchive is mixing libmd and libcrypto -- correct to use one or the other.obrien2011-05-053-10/+24
| | | | | | | | | | | | | | | | | | | | [mixing the two can be quite bad -- they define the same context structures, but with differing structure members (and sizes)] Update the hash function support comments, and update config_freebsd.h to match. Approved by: kientzle
* | s/shaN_crypt/crypt_shaN/g to be a more consistent with the existing naming.obrien2011-05-054-14/+14
| | | | | | | | Reviewed by: markm
* | Fix prototype for ffsll(3) and fls(3).delphij2011-05-031-2/+2
| | | | | | | | | | | | PR: docs/156796 Submitted by: Jean-Yves Migeon <jeanyves.migeon free.fr> MFC after: 3 days
* | Rename DEBUG macro to TFTP_DEBUG, to be more consistent withrodrigc2011-05-031-5/+5
| | | | | | | | debug macros in other files.
* | - Comment out unused variable.rodrigc2011-05-031-2/+2
| | | | | | | | - Add parentheses around expression to eliminate compiler warning.
* | Add #include <netinet/in_pcb.h> for missing forward declation ofrodrigc2011-05-032-0/+2
| | | | | | | | struct inpcb.
* | Switch to ANSI function prototypes in a few places.rodrigc2011-05-036-43/+22
| | | | | | | | Get rid of some unused parameter warnings.
| |
| \
*-. \ Upgrade our copy of llvm/clang to r130700, from upstream's trunk.dim2011-05-0225-36/+81
|\ \ \
| | * | Vendor import of clang trunk r130700:dim2011-05-02306-15140/+29868
| | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/trunk@130700
| * | | Vendor import of llvm trunk r130700:dim2011-05-02541-14884/+30343
| | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/trunk@130700
| * | | Vendor import of llvm trunk r126547:dim2011-02-2696-1496/+2250
| | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/trunk@126547
* | | | Improve the accuracy from a max ULP of ~2000 to max ULP < 0.79kargl2011-04-295-98/+321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on i386-class hardware for sinl and cosl. The hand-rolled argument reduction have been replaced by e_rem_pio2l() implementations. To preserve history the following commands have been executed: svn cp src/e_rem_pio2.c ld80/e_rem_pio2l.h mv ${HOME}/bde/ld80/e_rem_pio2l.c ld80/e_rem_pio2l.h svn cp src/e_rem_pio2.c ld128/e_rem_pio2l.h mv ${HOME}/bde/ld128/e_rem_pio2l.c ld128/e_rem_pio2l.h The ld80 version has been tested by bde, das, and kargl over the last few years (bde, das) and few months (kargl). An older ld128 version was tested by das. The committed version has only been compiled tested via 'make universe'. Approved by: das (mentor) Obtained from: bde
* | | | Protect the reachover built symbols after the SHA256/512 crypt(3) addition.obrien2011-04-271-1/+3
| | | |
* | | | - Clarification on kld_file_stat.sizegjb2011-04-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - While here, remove a few C comments that don't seem to contribute anything additional to the man page. PR: 146047 Submitted by: arundel MFC after: 3 days
* | | | r179417 introduced a bug into pthread_once(). Previously pthread_once()rstone2011-04-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | used a global pthread_mutex_t for synchronization. r179417 replaced that with an implementation that directly used atomic instructions and thr_* syscalls to synchronize callers to pthread_once. However, calling pthread_mutex_lock on the global mutex implicitly ensured that _thr_check_init() had been called but with r179417 this was no longer guaranteed. This meant that if you were unlucky enough to have your first call into libthr be a call to pthread_once(), you would segfault when trying to access the pointer returned by _get_curthread(). The fix is to explicitly call _thr_check_init() from pthread_once(). Reviewed by: davidxu Approved by: emaste (mentor) MFC after: 1 week
* | | | Add the posix_fallocate(2) syscall. The default implementation inmdf2011-04-183-1/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vop_stdallocate() is filesystem agnostic and will run as slow as a read/write loop in userspace; however, it serves to correctly implement the functionality for filesystems that do not implement a VOP_ALLOCATE. Note that __FreeBSD_version was already bumped today to 900036 for any ports which would like to use this function. Also reserve space in the syscall table for posix_fadvise(2). Reviewed by: -arch (previous version)
* | | | getfh(2): Add xrefs for fhopen(2), open(2), stat(2).jilles2011-04-141-1/+5
| | | | | | | | | | | | | | | | MFC after: 1 week
* | | | Add $FreeBSD$'s.obrien2011-04-142-0/+4
| | | |
* | | | Remove vestiges of disklabel(5).pluknet2011-04-141-1/+0
| | | | | | | | | | | | | | | | | | | | Reviewed by: uqs MFC after: 5 days
* | | | Add support for IEE/IEC (and now also SI) power of two notions ofdelphij2011-04-123-27/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prefixes (Ki, Mi, Gi...) for humanize_number(3). Note that applications has to pass HN_IEC_PREFIXES to use this feature for backward compatibility reasons. Reviewed by: arundel MFC after: 2 weeks
OpenPOWER on IntegriCloud