aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove repeated words.Joel Dahl2012-06-053-3/+3
| | | | Notes: svn path=/head/; revision=236626
* 1) Although unpublished version of standardAndrey A. Chernov2012-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 Notes: svn path=/head/; revision=236618
* 1) IEEE Std 1003.1-2008, "errno" section, is explicit thatAndrey A. Chernov2012-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 Notes: svn path=/head/; revision=236582
* Install libcxxrt's C++ ABI and unwind headers. This is done in libc++'sDimitry Andric2012-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 Notes: svn path=/head/; revision=236444
* Tabify libcxxrt and libc++'s Makefiles.Dimitry Andric2012-06-022-154/+154
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=236442
* Remove invalid remark about pipes.Ed Schouten2012-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 Notes: svn path=/head/; revision=236441
* mdoc: minor Bl improvements.Joel Dahl2012-06-027-33/+42
| | | | Notes: svn path=/head/; revision=236438
* Style(9) improvements: remove unnecessary parenthesis, improve orderGuy Helmer2012-06-011-50/+52
| | | | | | | | | | of local variable declarations, remove bogus casts, and resolve long lines. Reviewed by: bde Notes: svn path=/head/; revision=236402
* Add characters mapping for codepages used in Germany.Eitan Adler2012-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 Notes: svn path=/head/; revision=236376
* Only set _w to 0 when the file stream is not currently reading. WithoutEitan Adler2012-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 Notes: svn path=/head/; revision=236288
* Upgrade to BIND version 9.8.3, the latest from ISC.Doug Barton2012-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. Notes: svn path=/head/; revision=236196
| * Vendor import of BIND 9.8.3vendor/bind9/9.8.3Doug Barton2012-05-2820-214/+629
| | | | | | | | | | Notes: svn path=/vendor/bind9/dist/; revision=236171 svn path=/vendor/bind9/9.8.3/; revision=236172; tag=vendor/bind9/9.8.3
* | libfetch: Avoid SIGPIPE on network connections.Jilles Tjoelker2012-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 Notes: svn path=/head/; revision=236193
* | - Include forgotten bsd.own.mk and fix conditionGabor Kovesdan2012-05-281-1/+3
| | | | | | | | | | | | | | Reported by: Jan Beich <jbeich@tormail.org> Notes: svn path=/head/; revision=236185
* | Allow inclusion of libc++ <cmath> to work after including math.hDavid Chisnall2012-05-271-43/+36
| | | | | | | | | | | | | | | | | | Submitted by: Yamaya Takashi Reviewed by: das MFC after: 1 week Notes: svn path=/head/; revision=236148
* | Return EBUSY for PTHREAD_MUTEX_ADAPTIVE_NP too when the mutex could notDavid Xu2012-05-271-0/+1
| | | | | | | | | | | | | | | | | | | | be acquired. PR: 168317 MFC after: 3 days Notes: svn path=/head/; revision=236135
* | Update to OpenPAM Micrampelis.Dag-Erling Smørgrav2012-05-261-2/+15
|\ \ | | | | | | | | | Notes: svn path=/head/; revision=236109
| * | Vendor import of OpenPAM Micrampelis.Dag-Erling Smørgrav2012-05-2629-465/+1357
| | | | | | | | | | | | Notes: svn path=/vendor/openpam/dist/; revision=236099
| * | Merge upstream r509: don't log an error in the common case (ENOENT).Dag-Erling Smørgrav2011-12-221-3/+5
| | | | | | | | | | | | Notes: svn path=/vendor/openpam/dist/; revision=228809
* | | Passing NULL as a key casues a segfault when loading SSH 1 keys. UseDag-Erling Smørgrav2012-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | an empty string instead. Notes: svn path=/head/; revision=236106
* | | Clarify the SEEK_HOLE description, it repositions the file pointer.Konstantin Belousov2012-05-261-4/+4
| | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=236042
* | | - Add support for BSD iconv when it is build into libcGabor Kovesdan2012-05-252-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: bin/162670 Submitted by: Jan Beich <jbeich@tormail.net> MFC after: 2 weeks Notes: svn path=/head/; revision=236028
* | | Doh... Don't add __eabi to an old version tag (i.e. FBSD_1.0). Add it to theMarcel Moolenaar2012-05-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | current one (= FBSD_1.3). Pointed out by: kib Notes: svn path=/head/; revision=236006
* | | Consitently use "__LP64__".David E. O'Brien2012-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | [there are 33 __LP64__'s in the kernel (minus cddl/ and contrib/), and 11 _LP64's] Notes: svn path=/head/; revision=235939
* | | Allow building for the PowerPC EABI by providing a dummy __eabi()Marcel Moolenaar2012-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. Notes: svn path=/head/; revision=235929
* | | Fixes to man8 groff mandoc style, usage mistakes, or typos.Warren Block2012-05-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=235873
| | |
| \ \
*-. \ \ Upgrade our copy of llvm/clang to 3.1 release. Release notes can beDimitry Andric2012-05-232-4/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | found at: http://llvm.org/releases/3.1/docs/ReleaseNotes.html MFC after: 3 days Notes: svn path=/head/; revision=235864
| | * | | Vendor import of llvm release_31 r156863 (the actual 3.1 release):vendor/llvm/llvm-release_31-r156863Dimitry Andric2012-05-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/branches/release_31@156863 Notes: svn path=/vendor/llvm/dist/; revision=235860 svn path=/vendor/llvm/llvm-release_31-r156863/; revision=235861; tag=vendor/llvm/llvm-release_31-r156863
| | * | | Vendor import of llvm release_31 final r156748:vendor/llvm/llvm-release_31-r156748Dimitry Andric2012-05-221-28/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_31/final@156748 Notes: svn path=/vendor/llvm/dist/; revision=235807 svn path=/vendor/llvm/llvm-release_31-r156748/; revision=235808; tag=vendor/llvm/llvm-release_31-r156748
| * | | | Vendor import of clang release_31 r156863 (the actual 3.1 release):vendor/clang/clang-release_31-r156863Dimitry Andric2012-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/branches/release_31@156863 Notes: svn path=/vendor/clang/dist/; revision=235862 svn path=/vendor/clang/clang-release_31-r156863/; revision=235863; tag=vendor/clang/clang-release_31-r156863
| * | | | Vendor import of clang release_31 final r156748:vendor/clang/clang-release_31-r156748Dimitry Andric2012-05-2215-298/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_31/final@156748 Notes: svn path=/vendor/clang/dist/; revision=235809 svn path=/vendor/clang/clang-release_31-r156748/; revision=235810; tag=vendor/clang/clang-release_31-r156748
* | | | | Add two new locale-specific man pages:Isabell Long2012-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 Notes: svn path=/head/; revision=235848
* | | | | Update copyright date.Michael Tuexen2012-05-231-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=235827
* | | | | The fix in r235291 re-broke the "allow.nomount" case. Re-fix itJamie Gritton2012-05-221-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by testing for the right parameter name. Notes: svn path=/head/; revision=235799
* | | | | Add missing header needed by free()Kevin Lo2012-05-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: tinderbox Notes: svn path=/head/; revision=235767
* | | | | Add checks for memory allocation failures in appropriate places, andGuy Helmer2012-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) Notes: svn path=/head/; revision=235740
* | | | | Apply style(9) to return and switch/case statements.Guy Helmer2012-05-211-19/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: delphij (prior version of the patch) Notes: svn path=/head/; revision=235739
* | | | | Disable NLS catalog use in libc if built with WITHOUT_NLS option.Gleb Kurtsou2012-05-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Functions affected: strerror, strsignal, gai_strerror. Notes: svn path=/head/; revision=235720
* | | | | Don't link against libssp if MK_SSP is set to no.Marcel Moolenaar2012-05-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that this still misses a proper dependency at this time. Notes: svn path=/head/; revision=235653
* | | | | Put my name as copyright owner of lib/libc/gen/dirfd.c added in r235647.Gleb Kurtsou2012-05-191-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: kib@ Notes: svn path=/head/; revision=235649
* | | | | Hide DIR definition by making it an opaque struct typedef.Gleb Kurtsou2012-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 Notes: svn path=/head/; revision=235647
* | | | | Use the LLINDEX macro to access the link-level I/F index. This makesMarcel Moolenaar2012-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. Notes: svn path=/head/; revision=235640
* | | | | Don't depend on getline being on the build machine. That'sMarcel Moolenaar2012-05-192-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not the case for FreeBSD 7.x machines. Notes: svn path=/head/; revision=235638
* | | | | Don't cast inode number or file size down to long or unsigned.Gleb Kurtsou2012-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 Notes: svn path=/head/; revision=235602
* | | | | Import work done under project/nand (@235533) into head.Grzegorz Bernacki2012-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 Notes: svn path=/head/; revision=235537
* | | | | HID Report ID is unsigned value, so clear the rest of bits from possibleAlexander Motin2012-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sign expansion. Notes: svn path=/head/; revision=235510
* | | | | Switch sparc64 to using libcompiler_rt; since r230021 we have a workaroundMarius Strobl2012-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. Notes: svn path=/head/; revision=235487
* | | | | Merge from vendor branch: update libpcap to 1.2.1.Xin LI2012-05-142-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=235426
* | | | | mdoc: avoid unterminated quoted strings.Joel Dahl2012-05-131-5/+5
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=235401
* | | | | Minor mdoc nits.Joel Dahl2012-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=235400