summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [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
* | | Fix a bug in the userland rpc library, where it would use armacklem2011-04-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | negative return value from write to update its position in a buffer. The patch, courtesy of Andrey Simonenko, also simplifies a conditional by removing the "i != cnt" clause, since it is always true at this point in the code. The bug caused problems for mountd, when it generated a large reply to an exports RPC request. Submitted by: simon at comsys.ntu-kpi.kiev.ua MFC after: 2 weeks
* | | Document SHA256/512 modes.markm2011-04-091-2/+8
| | | | | | | | | | | | MFC after: 1 month
* | | Add SHA256/512 ($5$ and $6$) to crypt(3). Used in linux-world, doesn'tmarkm2011-04-096-1/+1009
| | | | | | | | | | | | | | | | | | | | | | | | hurt us. PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month
* | | Add SHA512 (Actually, this is Colin Percival's code for SHA256, withmarkm2011-04-097-165/+707
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | relevant constants changed). While I'm here clean up the tests and Makefile. PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month
* | | Make it possible to use permission sets (full_set, modify_set, read_settrasz2011-04-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | and write_set) with setfacl(1). PR: kern/154113 Submitted by: Shawn Webb <lattera at gmail dot com> (earlier version) MFC after: 1 month
* | | Allow strerror(0) and strerror_r(0, ...).jilles2011-04-053-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Of course, strerror_r() may still fail with ERANGE. Although the POSIX specification said this could fail with EINVAL and doing this likely indicates invalid use of errno, most other implementations permitted it, various POSIX testsuites require it to work (matching the older sys_errlist array) and apparently some applications depend on it. PR: standards/151316 MFC after: 1 week
* | | * Add the readline(3) API to libedit. The libedit versions ofobrien2011-04-058-4/+2997
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {readline,history}.h are in /usr/include/edit so as to not conflict with the GNU libreadline versions. To use the libedit readline(3) one should add "-I/usr/include/edit" to their Makefile (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree). * Enable its use in the BSD licensed utilities that support readline(3). * To make it easier to sync libedit development with NetBSD, histedit.h is moved into libedit's directory as history shows shown we keep merging it into that location. Obtained from: NetBSD Sponsored by: Juniper Networks
OpenPOWER on IntegriCloud