summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | Do not increment num_args if strsep(3) returned an empty field.pluknet2011-04-041-3/+4
| | | | | | | | | | | | | | | | | | | | | That fixes devstat_buildmatch(3) crashes with certain strings. Reported by: arundel MFC after: 2 weeks
* | | Fix mdoc errors.kib2011-04-011-3/+2
| | | | | | | | | | | | | | | Submitted by: ru MFC after: 3 days
* | | Expose the rctl(2) API in libc.trasz2011-03-301-0/+5
| | |
* | | Use FD_CLOEXEC explicitly.pluknet2011-03-301-1/+1
| | | | | | | | | | | | MFC after: 3 days
* | | Don't calculate len too early.pjd2011-03-261-1/+1
| | |
* | | Follow style(9) in example code and handle opendir(3) error.pjd2011-03-261-4/+7
| | |
* | | Document O_CLOEXEC.kib2011-03-251-4/+16
| | | | | | | | | | | | | | | Reviewed by: jhb MFC after: 1 week
* | | Add missing resource limits:pluknet2011-03-241-12/+14
| | | | | | | | | | | | | | | | | | | | | - RLIMIT_NPTS - RLIMIT_SWAP MFC after: 1 week
* | | humanize_number(3) multiply the input number by 100, which could cause andelphij2011-03-231-16/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | integer overflow when the input is very large (for example, 100 Pi would become about 10 Ei which exceeded signed int64_t). Solve this issue by splitting the division into two parts and avoid the multiplication. PR: bin/146205 Reviewed by: arundel MFC after: 1 month
* | | Move the code around so that libc behaviour does not depend on a variabletrasz2011-03-221-8/+4
| | | | | | | | | | | | that was supposed to be kernel-only. There should be no functional changes.
* | | s/buffer/buf as is used in the code.gjb2011-03-211-5/+5
| | | | | | | | | | | | | | | Submitted by: arundel (via doc@) MFC after: 3 days
* | | index(3): Mention that index/rindex are deprecated and not specified byjilles2011-03-201-1/+14
| | | | | | | | | | | | | | | | | | POSIX.1-2008. MFC after: 1 week
* | | When building libc with the syscall compatibility, don't also generate themarcel2011-03-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | syscall assembly files. This results in conflicting dependencies and can cause unexpected results for parallel builds. This is because the .c file and the .S file both generate the same .o file. Submitted by: Simon Gerraty <sjg@juniper.net> Sponsored by: Juniper Networks
* | | Don't add sigwait.c to MISRCS here when sigwait.c lives under ../sys andmarcel2011-03-171-1/+1
| | | | | | | | | | | | it's already added to SRCS there.
* | | From fts.c comment:pjd2011-03-162-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "FTS_NOSTAT" option can avoid a lot of calls to stat(2) if it knows that a directory could not possibly have subdirectories. This is decided by looking at the link count: a subdirectory would increment its parent's link count by virtue of its own ".." entry. This assumption only holds for UFS-like filesystems that implement links and directories this way, so we must punt for others. It looks like ZFS is a UFS-like file system, as the above also holds for ZFS. Add ZFS to the list of file systems that allow for such optimization. MFC after: 1 month
* | | rfork(2): Discourage rfork_thread-like approaches.jilles2011-03-151-17/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Calling rfork_thread(3) does not interoperate with pthreads and global state is not properly protected. Remove the BUGS section suggesting LinuxThreads entirely. With the current pthread library libthr, all threads are kernel-level entities so there seems little reason to use LinuxThreads.
* | | Take two. Add the missing file that should have been committedkargl2011-03-123-1/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with r219571 and re-enable building of cbrtl. Implement the long double version for the cube root function, cbrtl. The algorithm uses Newton's iterations with a crude estimate of the cube root to converge to a result. Reviewed by: bde Approved by: das
* | | Temporary disable the building of cbrtl until Ikargl2011-03-122-2/+1
| | | | | | | | | | | | | | | | | | | | | can determine why svn will not allow one to commit a new file. Approved by: das (implicit)
OpenPOWER on IntegriCloud