summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove repeated words.joel2012-06-053-3/+3
|
* 1) Although unpublished version of standardache2012-06-051-17/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://austingroupbugs.net/view.php?id=385#c713 (Resolved state) recommend this way for the current standard (called "earlier" in the text) "However, earlier versions of this standard did not require this, and the same example had to be written as: // buf was obtained by malloc(buflen) ret = write(fd, buf, buflen); if (ret < 0) { int save = errno; free(buf); errno = save; return ret; } " from feedback I have for previous commit it seems that many people prefer to avoid mass code change needed for current standard compliance and prefer to track unpublished standard instead, which requires now that free() itself must save errno, not its usage code. So, I back out "save errno across free()" part of previous commit, and will fill PR for changing free() isntead. 2) Remove now unused serrno. MFC after: 1 week
* 1) IEEE Std 1003.1-2008, "errno" section, is explicit thatache2012-06-041-6/+16
| | | | | | | | | | | | | | | | | "The setting of errno after a successful call to a function is unspecified unless the description of that function specifies that errno shall not be modified." However, free() in IEEE Std 1003.1-2008 does not mention its interaction with errno, so MAY modify it after successful call (it depends on particular free() implementation, OS-specific, etc.). So, save errno across free() calls to make code portable and POSIX-conformant. 2) Remove unused serrno assignment. MFC after: 1 week
* Install libcxxrt's C++ ABI and unwind headers. This is done in libc++'sdim2012-06-021-0/+7
| | | | | | | Makefile, so these headers go into the same destination directory as libc++'s own headers, currently /usr/include/c++/v1. MFC after: 3 days
* Tabify libcxxrt and libc++'s Makefiles.dim2012-06-022-154/+154
| | | | MFC after: 3 days
* Remove invalid remark about pipes.ed2012-06-021-2/+2
| | | | | | | | | The stat structures returned on pipes seems to contain all the information required by POSIX. Especially the wording "and thus to a pipe" makes little sense, because it seems to imply a certain relationship between sockets and pipes that simply isn't there. MFC after: 2 weeks
* mdoc: minor Bl improvements.joel2012-06-027-33/+42
|
* Style(9) improvements: remove unnecessary parenthesis, improve orderghelmer2012-06-011-50/+52
| | | | | | | of local variable declarations, remove bogus casts, and resolve long lines. Reviewed by: bde
* Add characters mapping for codepages used in Germany.eadler2012-06-011-0/+76
| | | | | | | | | | (not verified by me to be accurate) PR: bin/163847 Submitted by: Gabor Fischer <Gabor.Fischer@gmx.net> Reviewed by: bp Approved by: cperciva MFC after: 3 weeks
* Only set _w to 0 when the file stream is not currently reading. Withouteadler2012-05-301-1/+1
| | | | | | | | | | this fflush may fail to write data in the buffer. PR: kern/137819 Submitted by: Eric Blake <ebb9@byu.net> Reviewed by: theraven Approved by: cperciva MFC after: 2 weeks
* Upgrade to BIND version 9.8.3, the latest from ISC.dougb2012-05-283-0/+56
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Feature Change * BIND now recognizes the TLSA resource record type, created to support IETF DANE (DNS-based Authentication of Named Entities) Bug Fix * The locking strategy around the handling of iterative queries has been tuned to reduce unnecessary contention in a multi- threaded environment. Other critical bug fixes are included. All BIND users are encouraged to upgrade.
| * Vendor import of BIND 9.8.3dougb2012-05-2820-214/+629
| |
| * Vendor import of BIND 9.8.2dougb2012-04-04741-1733/+2514
| |
| * Vendor import of BIND 9.8.1-P1dougb2011-11-171-3/+3
| |
* | libfetch: Avoid SIGPIPE on network connections.jilles2012-05-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | To avoid unexpected process termination from SIGPIPE when writing to a closed network connection, enable SO_NOSIGPIPE on all network connections. The POSIX standard MSG_NOSIGNAL is not used since it requires modifying all send calls to add this flag. This is particularly nasty for SSL connections. Reviewed by: des Tested by: bapt MFC after: 5 days
* | - Include forgotten bsd.own.mk and fix conditiongabor2012-05-281-1/+3
| | | | | | | | Reported by: Jan Beich <jbeich@tormail.org>
* | Allow inclusion of libc++ <cmath> to work after including math.htheraven2012-05-271-43/+36
| | | | | | | | | | | | Submitted by: Yamaya Takashi Reviewed by: das MFC after: 1 week
* | Return EBUSY for PTHREAD_MUTEX_ADAPTIVE_NP too when the mutex could notdavidxu2012-05-271-0/+1
| | | | | | | | | | | | | | be acquired. PR: 168317 MFC after: 3 days
* | Update to OpenPAM Micrampelis.des2012-05-261-2/+15
|\ \
| * | Vendor import of OpenPAM Micrampelis.des2012-05-2629-465/+1357
| | |
| * | Merge upstream r509: don't log an error in the common case (ENOENT).des2011-12-221-3/+5
| | |
* | | Passing NULL as a key casues a segfault when loading SSH 1 keys. Usedes2012-05-261-1/+1
| | | | | | | | | | | | an empty string instead.
* | | Clarify the SEEK_HOLE description, it repositions the file pointer.kib2012-05-261-4/+4
| | | | | | | | | | | | MFC after: 3 days
* | | - Add support for BSD iconv when it is build into libcgabor2012-05-252-0/+14
| | | | | | | | | | | | | | | | | | PR: bin/162670 Submitted by: Jan Beich <jbeich@tormail.net> MFC after: 2 weeks
* | | Doh... Don't add __eabi to an old version tag (i.e. FBSD_1.0). Add it to themarcel2012-05-251-1/+4
| | | | | | | | | | | | | | | | | | current one (= FBSD_1.3). Pointed out by: kib
* | | Consitently use "__LP64__".obrien2012-05-241-1/+1
| | | | | | | | | | | | | | | [there are 33 __LP64__'s in the kernel (minus cddl/ and contrib/), and 11 _LP64's]
* | | Allow building for the PowerPC EABI by providing a dummy __eabi()marcel2012-05-243-1/+35
| | | | | | | | | | | | | | | | | | | | | function. The purpose of the __eabi() function is to set up the runtime and is called first thing by main(). The runtime is already set up for us prior to caling main, so there's nothing to do for us in the EABI case.
* | | Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-241-2/+2
| | | | | | | | | | | | | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* | | Upgrade our copy of llvm/clang to 3.1 release. Release notes can bedim2012-05-232-4/+4
| | | | | | | | | | | | | | | | | | found at: http://llvm.org/releases/3.1/docs/ReleaseNotes.html MFC after: 3 days
* | | Add two new locale-specific man pages:issyl02012-05-233-1/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | - libc/stdio/scanf_l.3 - libc/stdio/printf_l.3 Reviewed by: theraven Approved by: gabor (mentor) MFC after: 5 days
* | | Update copyright date.tuexen2012-05-231-2/+3
| | | | | | | | | | | | MFC after: 3 days
* | | The fix in r235291 re-broke the "allow.nomount" case. Re-fix itjamie2012-05-221-12/+14
| | | | | | | | | | | | by testing for the right parameter name.
* | | Add missing header needed by free()kevlo2012-05-221-0/+1
| | | | | | | | | | | | Reported by: tinderbox
* | | Add checks for memory allocation failures in appropriate places, andghelmer2012-05-211-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | avoid creating bad entries in the grp list as a result of memory allocation failures while building new entries. PR: bin/83340 Reviewed by: delphij (prior version of patch)
* | | Apply style(9) to return and switch/case statements.ghelmer2012-05-211-19/+22
| | | | | | | | | | | | Reviewed by: delphij (prior version of the patch)
* | | Disable NLS catalog use in libc if built with WITHOUT_NLS option.gleb2012-05-211-0/+2
| | | | | | | | | | | | Functions affected: strerror, strsignal, gai_strerror.
* | | Don't link against libssp if MK_SSP is set to no.marcel2012-05-191-1/+5
| | | | | | | | | | | | Note that this still misses a proper dependency at this time.
* | | Put my name as copyright owner of lib/libc/gen/dirfd.c added in r235647.gleb2012-05-191-7/+4
| | | | | | | | | | | | Requested by: kib@
* | | Hide DIR definition by making it an opaque struct typedef.gleb2012-05-1913-7/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce dirfd() libc exported symbol replacing macro with same name, preserve _dirfd() macro for internal use. Replace dirp->dd_fd with dirfd() call. Avoid using dirfd as variable name to prevent shadowing global symbol. Sponsored by: Google Summer Of Code 2011
* | | Use the LLINDEX macro to access the link-level I/F index. This makesmarcel2012-05-194-4/+4
| | | | | | | | | | | | | | | | | | | | | it possible to work with a different type for the sdl_index field -- it only requires a recompile. Obtained from: Juniper Networks, Inc.
* | | Don't depend on getline being on the build machine. That'smarcel2012-05-192-2/+5
| | | | | | | | | | | | not the case for FreeBSD 7.x machines.
* | | 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.
OpenPOWER on IntegriCloud