summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Don't cast inode number or file size down to long or unsigned.gleb2012-05-182-4/+4
| | | | | | | Since ino_t size is about to change to 64-bits, casts to long would truncate 64-bit numbers on 32-bit archs. Sponsored by: Google Summer of Code 2011
* Import work done under project/nand (@235533) into head.gber2012-05-177-0/+1371
| | | | | | | | | | | | | | The NAND Flash environment consists of several distinct components: - NAND framework (drivers harness for NAND controllers and NAND chips) - NAND simulator (NANDsim) - NAND file system (NAND FS) - Companion tools and utilities - Documentation (manual pages) This work is still experimental. Please use with caution. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks
* HID Report ID is unsigned value, so clear the rest of bits from possiblemav2012-05-161-1/+1
| | | | sign expansion.
* Switch sparc64 to using libcompiler_rt; since r230021 we have a workaroundmarius2012-05-151-1/+1
| | | | | in place allowing it to be used there and since r235388 (see also r235486) we also have usable div/mod optimizations like libgcc has.
* Merge from vendor branch: update libpcap to 1.2.1.delphij2012-05-142-4/+39
| | | | MFC after: 2 weeks
* mdoc: avoid unterminated quoted strings.joel2012-05-131-5/+5
|
* Minor mdoc nits.joel2012-05-131-1/+1
|
* Minor mdoc nits.joel2012-05-122-4/+4
|
* Remove tab from kernel configuration option. This is consistent with the restjoel2012-05-121-1/+1
| | | | of our manual pages.
* General mdoc(7) and typo fixes.gjb2012-05-121-1/+2
| | | | | | PR: 167804 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* mdoc: end list context with El.joel2012-05-121-0/+1
|
* The linker isn't consistent in the ordering of dynamic sysctls, so don'tjamie2012-05-111-13/+25
| | | | | assume that the unnamed final component of "security.jail.param.foo." is one less than the "foo" component. It might be one greater instead.
* General mdoc(7) and typo fixes.gjb2012-05-1128-55/+56
| | | | | | PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* According to SUSv4, realpath(3) must fail ifkib2012-05-112-12/+29
| | | | | | | | | | | | | | | | | [ENOENT] A component of file_name does not name an existing file or file_name points to an empty string. [ENOTDIR] A component of the path prefix is not a directory, or the file_name argument contains at least one non- <slash> character and ends with one or more trailing <slash> characters and the last pathname component names an existing file that is neither a directory nor a symbolic link to a directory. Add checks for the listed conditions, and set errno accordingly. Update the realpath(3) manpage to mention SUS behaviour. Remove the requirement to include sys/param.h before stdlib.h. PR: 128933 MFC after: 3 weeks
* Fix copy/paste error in lib/libc/locale/toupper.c.dim2012-05-101-1/+1
| | | | Submitted by: Kohji Okuno <okuno.kohji@jp.panasonic.com>
* Create a common function lookup() to search a chan, this eliminatesdavidxu2012-05-101-5/+9
| | | | redundant SC_LOOKUP() calling.
* Remove reference to non-existent FreeBSD Security Architectureeadler2012-05-091-3/+1
| | | | | Approved by: cperciva MFC after: 3 days
* Plug a leak.kib2012-05-081-2/+5
| | | | | Submitted by: Greg Bednarek <gbednarek averesystems com> MFC after: 1 week
* General mdoc(7) and typo fixes.gjb2012-05-0813-17/+20
| | | | | PR: 167713 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
* Add missing LibUSB 1.0 API function: libusb_get_string_descriptor().hselasky2012-05-074-1/+28
| | | | Reported by: Xiaofan Chen
* Fix mis-merged line, move SC_LOOKUP() call todavidxu2012-05-051-1/+1
| | | | upper level.
* Make sure a few new internal clang headers get installed, I missed thesedim2012-05-051-1/+7
| | | | | | | | | | | | | | in the last import. They are sometimes needed when you want to use advanced instructions. Also, add clang's internal stdalign.h header to ObsoleteFiles.inc, since it is redundant: we already have a stdalign.h header in /usr/include. Pointy hat to: dim PR: kern/167574 Submitted by: jkim Reported by: Oliver Hartmann <ohartman@zedat.fu-berlin.de> MFC after: 2 weeks
* Remove debug output.tuexen2012-05-041-1/+0
| | | | MFC after: 3 days
*-. Upgrade our copy of llvm/clang to r155985, from upstream's release_31dim2012-05-039-33/+19
|\ \ | | | | | | | | | | | | | | | | | | branch. This brings us very close to the 3.1 release, which is planned for May 14th. MFC after: 2 weeks
| | * Vendor import of clang release_31 branch r155985:dim2012-05-03108-3394/+2861
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/branches/release_31@155985
| * | Vendor import of llvm release_31 branch r155985:dim2012-05-03122-8479/+3307
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/branches/release_31@155985
* | | MFp4:davidxu2012-05-033-1/+10
| | | | | | | | | | | | | | | | | | | | | Enqueue thread in LIFO, this can cause starvation, but it gives better performance. Use _thr_queuefifo to control the frequency of FIFO vs LIFO, you can use environment string LIBPTHREAD_QUEUE_FIFO to configure the variable.
* | | Don't reuse credentials if redirected to a different host.des2012-04-301-1/+3
| | | | | | | | | | | | | | | Submitted by: Niels Heinen <heinenn@google.com> MFC after: 3 weeks
* | | Since the socket is non-blocking, it is necessary to use select(2) evendes2012-04-301-17/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | when there is no timeout, because read(2) will return immediately if there is no data waiting in the TCP buffer, causing fetch_read() to busy-loop on slow connections. MFC after: 3 weeks Noticed by: Yanhui Shen <shen.elf@gmail.com>
* | | Remove incorrect __restrict qualifier on several pointersdumbbell2012-04-302-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The typical case was: static __inline int convert_ccl(FILE *fp, char * __restrict p, [...]) { [...] if (p == SUPPRESS_PTR) { [...] } else { [...] } [...] } This qualifier says that the pointer is the only one at that time pointing to the resource. Here, clang considers that "p" will never match "SUPPRESS_PTR" and optimize the if{} block out. This leads to segfaults in programs calling vfscanf(3) and vfwscanf(3) with just the format string (no arguments following it). The following softwares were reported to abort with segmentation fault and this patch fixes it: o cmake o smartd o devel/ORBit2 dim@ opened an LLVM PR to discuss this clang optimization: http://llvm.org/bugs/show_bug.cgi?id=12656 Tested by: bsam@
* | | fix a further typo in the pdfork(2) man page.rwatson2012-04-301-1/+1
| | | | | | | | | | | | | | | Submitted by: Norman Hardy MFC after: 3 days
* | | The returned file descriptor from pdfork(2) is via fdp, not pidp.rwatson2012-04-301-2/+2
| | | | | | | | | | | | | | | Submitted by: Norman Hardy MFC after: 3 days
* | | Fix a bug in *wscanf's handling of non-wide %s, %c, and %[das2012-04-301-44/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conversions. Both the specification and the documentation say the width is interpreted as the max number of wide characters to read, but the implementation was interpreting it as the number of bytes to convert. (See also r105317.) This change has security implications for any applications that depend on the buggy behavior, but the impact in practice is probably nil. Any such application would already be buggy on other platforms that get the semantics right. Also, these conversions are rarely used; %ls, %lc, and %l[ are more appropriate.
* | | pread(2) might fail with EBUSY, so document iteadler2012-04-291-0/+2
| | | | | | | | | | | | | | | | | | | | | PR: docs/167201 Submitted by: Kurt Jaeger <fbsd-ports@opsec.eu> Approved by: cperciva MFC after: 3 days
* | | Allow users of gprof to get per run output files (using the pid)eadler2012-04-292-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: bin/99800 Submitted by: Peter Jeremy <peterjeremy@optushome.com.au> Reviewed by: jilles (code) Reviewed by: dwhite (doc) Approved by: cperciva MFC after: 1 week
* | | Previously, vfscanf()'s wide character processing functions weredas2012-04-293-150/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reading wide characters manually. With this change, they now use fgetwc(). To make this work, we use an internal version of fgetwc() with a few extensions: it takes an mbstate * because non-wide streams don't have a built-in mbstate, and it indicates the number of bytes read. vfscanf() now resembles vfwscanf() more closely. Minor functional improvements include working xlocale support in vfscanf(), setting the stream error indicator on encoding errors, and proper handling of shift-based encodings. (Actually, making shift-based encodings work with non-wide streams is hopeless, but the implementation now matches the broken specification.)
* | | Fix small documentation mistakes.jlh2012-04-282-2/+2
| | | | | | | | | | | | | | | Submitted by: brueffer Approved by: kib (mentor)
* | | Import stdbuf(1) and the shared library it relies on.jlh2012-04-285-0/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tool changes the default buffering behaviour of standard stdio streams. It only works on dynamic binaries. To make it work for static ones it would require cluttering stdio because there no single entry point. PR: 166660 Reviewed by: current@, jhb Approved by: kib (mentor) MFC after: 1 week
* | | Fix several memory and lock leaks on the out of memory condition.kib2012-04-282-2/+22
| | | | | | | | | | | | | | | Reported by: Matt Miller <matt matthewjmiller net> MFC after: 1 week
* | | Remove the RFC 1319 MD2 Message-Digest Algorithm routines from libmd.obrien2012-04-285-309/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. The licensing terms for the MD2 routines from RFC is not under a BSD-like license. Instead it is only granted for non-commercial Internet Privacy-Enhanced Mail. 2. MD2 is quite deprecated as it is no longer considered a cryptographically strong algorithm. Discussed with: so (cperciva), core
* | | Move sctp_sendv and sctp_recvv to FBSD_1.3 as suggested bytuexen2012-04-261-2/+5
| | | | | | | | | | | | | | | | | | | | | Konstantin Belousov. MFC after: 1 week. X-MFC with: r234715
* | | Export symbols for sctp_sendv() and sctp_recvv().tuexen2012-04-261-0/+2
| | | | | | | | | | | | MFC after: 1 week
* | | Use the .Bx macro instead of BSDeadler2012-04-261-1/+3
| | | | | | | | | | | | | | | | | | | | | Submitted by: ru Approved by: ru MFC after: 3 days X-MFC-With: r234700
* | | A new jail(8) with a configuration file, ultimately to replace the workjamie2012-04-261-39/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | currently done by /etc/rc.d/jail. MFC after: 3 months
| * | | Remove a section that went to jail(8), and fix a small grammar error.jamie2010-10-201-39/+1
| | | |
| * | | Import section 2 man files so I can update jail(2).jamie2010-10-20192-0/+34710
| |\ \ \
| * | | | A new jail(8) with a configuration file, to replace the work currently donejamie2010-10-194207-758191/+0
| | | | | | | | | | | | | | | | | | | | by /etc/rc.d/jail.
* | | | | Document the standardization status of err* and warn*eadler2012-04-261-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: docs/164939 Submitted by: Niclas Zeising <zeising@daemonic.se> Approved by: bcr MFC after: 3 days
* | | | | Correct r228114 and use the same implementation for tilde.h as for history.hobrien2012-04-262-2/+33
| | | | |
* | | | | Fix typo.hselasky2012-04-251-1/+1
| | | | |
OpenPOWER on IntegriCloud