aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge r309688: address regressions in SA-16:37.libc.Gleb Smirnoff2016-12-071-6/+5
| | | | | | | | | PR: 215105 Submitted by: <jtd2004a sbcglobal.net> Approved by: so Notes: svn path=/releng/9.3/; revision=309697
* Fix possible login(1) argument injection in telnetd(8). [SA-16:36]Gleb Smirnoff2016-12-061-17/+34
| | | | | | | | | | | | | | | Fix link_ntoa(3) buffer overflow in libc. [SA-16:37] Fix warnings about valid time zone abbreviations. [EN-16:19] Update timezone database information. [EN-16:20] Security: FreeBSD-SA-16:36.telnetd Security: FreeBSD-SA-16:37.libc Errata Notice: FreeBSD-EN-16:19.tzcode Errata Notice: FreeBSD-EN-16:20.tzdata Approved by: so Notes: svn path=/releng/9.3/; revision=309637
* o Fix invalid TCP checksums with pf(4). [EN-16:02.pf]Gleb Smirnoff2016-01-141-5/+28
| | | | | | | | | | | | | | | | | | | | | | | o Fix YP/NIS client library critical bug. [EN-16:03.yplib] o Fix SCTP ICMPv6 error message vulnerability. [SA-16:01.sctp] o Fix ntp panic threshold bypass vulnerability. [SA-16:02.ntp] o Fix Linux compatibility layer incorrect futex handling. [SA-16:03.linux] o Fix Linux compatibility layer setgroups(2) system call. [SA-16:04.linux] o Fix TCP MD5 signature denial of service. [SA-16:05.tcp] o Fix insecure default bsnmpd.conf permissions. [SA-16:06.bsnmpd] Errata: FreeBSD-EN-16:02.pf Errata: FreeBSD-EN-16:03.yplib Security: FreeBSD-SA-16:01.sctp, CVE-2016-1879 Security: FreeBSD-SA-16:02.ntp, CVE-2015-5300 Security: FreeBSD-SA-16:03.linux, CVE-2016-1880 Security: FreeBSD-SA-16:04.linux, CVE-2016-1881 Security: FreeBSD-SA-16:05.tcp, CVE-2016-1882 Security: FreeBSD-SA-16:06.bsnmpd, CVE-2015-5677 Approved by: so Notes: svn path=/releng/9.3/; revision=293896
* [EN-15:08] Revised: Improvements to sendmail TLS/DH interoperability.Xin LI2015-06-302-9/+9
| | | | | | | | | [EN-15:09] Fix inconsistency between locale and rune locale states. Approved by: so Notes: svn path=/releng/9.3/; revision=284986
* Update base system file(1) to 5.22 to address multiple denial ofXin LI2015-06-092-64/+160
| | | | | | | | | service issues. [EN-15:06] Approved by: so Notes: svn path=/releng/9.3/; revision=284194
* Time zone data file update. [EN-14:10]Xin LI2014-10-211-7/+10
| | | | | | | | | Change crypt(3) default hashing algorithm back to DES. [EN-14:11] Approved by: so Notes: svn path=/releng/9.3/; revision=273438
* Set static abitag to the current value of __FreeBSD_version.Glen Barber2014-07-101-1/+1
| | | | | | | | Approved by: re (implicit) Sponsored by: The FreeBSD Foundation Notes: svn path=/releng/9.3/; revision=268511
* MFS r268218 (MFC r267912, r267915):Hajimu UMEMOTO2014-07-031-13/+29
| | | | | | | | | | | - Exclude loopback address rather than loopback interface. - style(9) Spotted by: melifaro Approved by: re (gjb) Notes: svn path=/releng/9.3/; revision=268220
* MFS r268053 (MFC r267800):Hajimu UMEMOTO2014-07-011-1/+2
| | | | | | | | | | Exclude IPv4 address from doing longest match. It prevented DNS based load balancing. Approved by: re (delphij) Notes: svn path=/releng/9.3/; revision=268107
* MFS r267876 (MFC r267616):Hajimu UMEMOTO2014-07-011-28/+62
| | | | | | | | | | | | | | | | | Retooling addrconfig() to exclude addresses on loopback interfaces when looking for configured addresses. This change is based upon the code from the submitter, and made following changes: - Exclude addresses assigned on interfaces which are down, like NetBSD does. - Exclude addresses assigned on interfaces which are ifdisabled. PR: 190824 Submitted by: Justin McOmie Approved by: re (marius) Notes: svn path=/releng/9.3/; revision=268106
* MFC r267335:Dimitry Andric2014-06-141-32/+43
| | | | | | | | | | | | | In some scenarios, when generating llvm/clang .inc.h files, multiple source files could be passed to tblgen or clang-tblgen, leading to a "Too many positional arguments specified" error message. Fix this by replacing the too-generic ${.ALLSRC} sources with explicit paths. Reported by: rysto32@gmail.com, rodrigc Approved by: re (gjb) Notes: svn path=/stable/9/; revision=267484
* Cumulative update to arc4random(3).Xin LI2014-06-121-76/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r227519, r227520, r238118, r241046: r227519 (das) Sync the style, comments, and variable names of arc4random.c with OpenBSD's version (r1.22). No functional changes, as verified with md5. r227520 (das) Further reduce diffs with OpenBSD's arc4random. The main functional change here is to ensure that when a process forks after arc4random is seeded, the parent and child don't observe the same random sequence. OpenBSD's fix introduces some additional overhead in the form of a getpid() call. The only significant remaining difference between our arc4random and OpenBSD's is in how we seed the generator in arc4_stir(). r238118 (pjd): Prefer sysctl to open/read/close for obtaining random data. This method is more sandbox-friendly and also should be faster as only one syscall is needed instead of three. In case of an error fall back to the old method. r241046 (jilles) libc: Use O_CLOEXEC for various internal file descriptors. Approved by: re (gjb) Notes: svn path=/stable/9/; revision=267379
* MFC r260913,266895:Nathan Whitehorn2014-06-081-0/+35
| | | | | | | | | | | | | | | Add a new flag to /etc/ttys: onifconsole. This is equivalent to "on" if the device is an active kernel console and "off" otherwise. This is designed to allow serial-booting x86 systems to provide a login prompt on the serial line by default without providing one on all systems by default. Set this flag on x86 systems for ttyu0. Comments and suggestions by: grehan, dteske, jilles Approved by: re (gjb) Relnotes: yes Notes: svn path=/stable/9/; revision=267243
* MFH r266813: Don't break the legacy applications which setHajimu UMEMOTO2014-06-051-1/+5
| | | | | | | | | just 2 bytes to salt. Approved by: re (gjb) Notes: svn path=/stable/9/; revision=267116
* MFC r266664:Hans Petter Selasky2014-06-041-0/+2
| | | | | | | | | | | Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API from sourceforge. PR: usb/190204 Approved by: re, gjb @ Notes: svn path=/stable/9/; revision=267055
* MFC r266285,266866:Benjamin Kaduk2014-06-021-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r266285 | bjk | 2014-05-16 23:05:52 -0400 (Fri, 16 May 2014) | 9 lines Correct documentation of the limit on how much memory can be mlock()ed vm.max_wired is a system-wide limit, not per-process. Reword the section to make this more clear. PR: docs/189214 Submitted by: Lawrence Chen (original text) Approved by: hrs (mentor) ------------------------------------------------------------------------ r266866 | bjk | 2014-05-29 22:16:28 -0400 (Thu, 29 May 2014) | 5 lines Minor mdoc fix Submitted by: hrs Approved by: hrs (mentor, implicit) ------------------------------------------------------------------------ PR: 189214 Approved by: re (gjb), hrs (mentor) Notes: svn path=/stable/9/; revision=266982
* MFC r265925:Dimitry Andric2014-05-274-29/+15
| | | | | | | | | | | | | | | | | | | Upgrade our copy of llvm/clang to 3.4.1 release. This release contains mostly fixes, for the following upstream bugs: http://llvm.org/PR16365 http://llvm.org/PR17473 http://llvm.org/PR18000 http://llvm.org/PR18068 http://llvm.org/PR18102 http://llvm.org/PR18165 http://llvm.org/PR18260 http://llvm.org/PR18290 http://llvm.org/PR18316 http://llvm.org/PR18460 http://llvm.org/PR18473 http://llvm.org/PR18515 http://llvm.org/PR18526 http://llvm.org/PR18600 http://llvm.org/PR18762 http://llvm.org/PR18773 http://llvm.org/PR18860 http://llvm.org/PR18994 http://llvm.org/PR19007 http://llvm.org/PR19010 http://llvm.org/PR19033 http://llvm.org/PR19059 http://llvm.org/PR19144 http://llvm.org/PR19326 Approved by: re (kib) Notes: svn path=/stable/9/; revision=266759
* MFH (r260904): fix format stringDag-Erling Smørgrav2014-05-253-136/+77
| | | | | | | | | | | MFH (r261230,r261263): fix issues with buffering / stalling MFH (r261284): bump copyright dates MFH (r266291): look for root certs in /usr/local first Approved by: re (gjb) Notes: svn path=/stable/9/; revision=266654
* Update clang target triple for FreeBSD 9.3-PRERELEASE.Glen Barber2014-05-221-2/+2
| | | | | | | | | This is a direct commit to stable/9. Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/9/; revision=266563
* MFC r265534:Peter Holm2014-05-211-5/+7
| | | | | | | | | | | msync(2) must return ENOMEM and not EINVAL when the address is outside the allowed range or when one or more pages are not mapped. This according to The Open Group Base Specifications Issue 7. Sponsored by: EMC / Isilon storage division Notes: svn path=/stable/9/; revision=266498
* MFC r265847:Konstantin Belousov2014-05-171-29/+36
| | | | | | | | | Fix sem_unlink(3) to properly invalidate the semaphores name cache. PR: standards/189353 Notes: svn path=/stable/9/; revision=266327
* MFC r246894 (by davidxu):Konstantin Belousov2014-05-171-2/+2
| | | | | | | Make more code be protected by internal mutex. Notes: svn path=/stable/9/; revision=266326
* MFC r246872 (by davidxu):Konstantin Belousov2014-05-171-9/+3
| | | | | | | Simplify code by using flag O_EXLOCK. Notes: svn path=/stable/9/; revision=266325
* MFC r265845:Konstantin Belousov2014-05-171-2/+2
| | | | | | | Style. Notes: svn path=/stable/9/; revision=266324
* MFC r266053:Dimitry Andric2014-05-171-78/+93
| | | | | | | | | | | | | | | | | | | | Use the new -d option that was added to tblgen between llvm/clang 3.3 and 3.4 to generate dependency files for the '.inc.h' files generated from .td files, and .sinclude those dependency files in clang.build.mk. This will make future incremental builds of lib/clang and usr.bin/clang work correctly, whenever any of the .td files get modified. Note that this will not fix any problems with incremental builds from *before* this revision, since there will not yet be any generated dependency files. A quick workaround is to run the following: find /usr/obj -type f -name '*.inc.h' | xargs rm and then a regular incremental buildworld (e.g. with -DNO_CLEAN). Notes: svn path=/stable/9/; revision=266309
* MFC: r265238Christian Brueffer2014-05-161-8/+6
| | | | | | | | | | Properly free resources in case of error. CID: 1007032 Found with: Coverity Prevent(tm) Notes: svn path=/stable/9/; revision=266245
* MFC r260257:Michael Tuexen2014-05-141-9/+18
| | | | | | | | | | | | | Fix several bugs in sctp_bindx(): * Set errno to EAFNOSUPPORT if an address is provided which is neither AF_INET nor AF_INET6. * Don't modify the arguments. * Don't smash the stack when provided with a non-zero port. * Handle the case correctly where the first address provided is an IPv6 address. Notes: svn path=/stable/9/; revision=266069
* MFC r255695:Michael Tuexen2014-05-131-3/+4
| | | | | | | Remove an unused variable and fix a memory leak in sctp_connectx(). Notes: svn path=/stable/9/; revision=265965
* MFH (r233462, r236438): mdoc fixesDag-Erling Smørgrav2014-05-112-113/+92
| | | | | | | | | MFH (r261913): switch default to sha512 MFH (r264964): rewrite so DES still works when not the default MFH (r262945): clean up man page Notes: svn path=/stable/9/; revision=265880
* MFC r265464:Xin LI2014-05-091-1/+1
| | | | | | | | | | | | | Sort .ALLSRC before concatenating files together. This makes sure that the file are always built the same. (Note that Header and Localstuff must appear first and in that order, the sorting does not affect as a coincident effect). Submitted by: sjg Notes: svn path=/stable/9/; revision=265757
* MFC r265202:Pedro F. Giffuni2014-05-092-7/+1
| | | | | | | | | | | | Remove some unreachable breaks in regex. This is based on a much bigger cleanup done in Illumos. Reference: https://www.illumos.org/issues/2077 Notes: svn path=/stable/9/; revision=265727
* MFC r264436:Mark Johnston2014-04-291-3/+3
| | | | | | | | | Fix some off-by-one errors. The kve_end and rdl_eaddr fields contain the first address after the end of the map entry and should therefore be excluded. Notes: svn path=/stable/9/; revision=265074
* MFC: r264585Christian Brueffer2014-04-241-0/+1
| | | | | | | | | Add a missing break in the TCP case. Reviewed by: bms Notes: svn path=/stable/9/; revision=264871
* MFC r264344:Hans Petter Selasky2014-04-182-0/+5
| | | | | | | | Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0 APIs to increase the maximum bandwidth limit. Notes: svn path=/stable/9/; revision=264637
* MFC r237528:Tijl Coosemans2014-04-151-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a symlink to sys/elf32.h, sys/elf64.h, and sys/elf_common.h. When building libelf in the bootstrap stage this would include the tree versions of, for example, sys/_types.h. This would work as long as the tree's version of this file was close enough to the system's version of the file. If, however, there was a change in the tree such that the location of a typedef was moved this would cause problems. In this case the version of sys/_types.h in the tree no longer defines __wchar_t and expects it to to be defined in machine/_types.h, however we pick up machine/_types.h from the system and find it is not defined there. The solution is to restrict the parts of sys er include from the tree to those that are needed. This fixes the recent Tinderbox failure. MFC r237531: Add the sys directory we create to the list of items to clean. MFC r238741: Don't ever build files depending on the directory where they are placed in. It is obvious that its modification time will change with each such file builded. This bug cause whole libelf to rebuild itself each second make run (and relink that files on each first make run) in the loop. Notes: svn path=/stable/9/; revision=264506
* MFC r263778:Dimitry Andric2014-04-092-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a SUBDIR_PARALLEL option to bsd.subdir.mk, to allow make to process all the SUBDIR entries in parallel, instead of serially. Apply this option to a selected number of Makefiles, which can greatly speed up the build on multi-core machines, when using make -j. This can be extended to more Makefiles later on, whenever they are verified to work correctly with parallel building. I tested this on a 24-core machine, with make -j48 buildworld (N = 6): before stddev after stddev ======= ====== ======= ====== real time 1741.1 16.5 959.8 2.7 user time 12468.7 16.4 14393.0 16.8 sys time 1825.0 54.8 2110.6 22.8 (user+sys)/real 8.2 17.1 E.g. the build was approximately 45% faster in real time. On machines with less cores, or with lower -j settings, the speedup will not be as impressive. But at least you can now almost max out a machine with buildworld! Submitted by: jilles MFC r263833: Enable parallel building for gnu/usr.bin and usr.bin/clang too. Notes: svn path=/stable/9/; revision=264303
* MFC r262613:Dimitry Andric2014-03-2624-2/+152
| | | | | | | | | | | | | | | | | | | | | | | | Merge the projects/clang-sparc64 branch back to head. This brings in several updates from the llvm and clang trunks to make the sparc64 backend fully functional. Apart from one patch to sys/sparc64/include/pcpu.h which is still under discussion, this makes it possible to let clang fully build world and kernel for sparc64. Any assistance with testing this on actual sparc64 hardware is greatly appreciated, as there will unavoidably be bugs left. Many thanks go to Roman Divacky for his upstream work on getting the sparc64 backend into shape. MFC r262985: Repair a few minor mismerges from r262261 in the clang-sparc64 project branch. This is also to minimize differences with upstream. Notes: svn path=/stable/9/; revision=263764
* MFC r263289: Update NetBSD Foundation copyrights to 2-clause BSDEd Maste2014-03-241-7/+0
| | | | | | | | | | | | | | The NetBSD Foundation states "Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Foundation to a 2-clause license." This change removes clauses 3 and 4 from copyright / license blocks that list The NetBSD Foundation as the only copyright holder. Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/9/; revision=263688
* MFC 254790 (by emaste):Dimitry Andric2014-03-2141-146/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import llvm r187614 (git 44c8e34), for lldb's use: Author: Daniel Malea <daniel.malea@intel.com> Date: Thu Aug 1 21:18:16 2013 +0000 Fixed the Intel-syntax X86 disassembler to respect the (existing) option for hexadecimal immediates, to match AT&T syntax. This also brings a new option for C-vs-MASM-style hex. Patch by Richard Mitton Reviewed: http://llvm-reviews.chandlerc.com/D1243 MFC 258003 (by emaste): Merge upstream LLVM r182803: [Mips] Add Mips specific dynamic table entry tags. This is to support an upcoming LLDB snapshot update. Reviewed by: dim@ Sponsored by: DARPA, AFRL MFC 258005: Merge upstream LLVM r192118: Formally added an explicit enum for DWARF TLS support. No functionality change. Reviewed by: dim@ Sponsored by: DARPA, AFRL MFC 261991: Upgrade our copy of llvm/clang to 3.4 release. This version supports all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y. The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html> MFC 262303: Pull in r197521 from upstream clang trunk (by rdivacky): Use the integrated assembler by default on FreeBSD/ppc and ppc64. Requested by: jhibbits MFC 262611: Pull in r196874 from upstream llvm trunk: Fix a crash that occurs when PWD is invalid. MCJIT needs to be able to run in hostile environments, even when PWD is invalid. There's no need to crash MCJIT in this case. The obvious fix is to simply leave MCContext's CompilationDir empty when PWD can't be determined. This way, MCJIT clients, and other clients that link with LLVM don't need a valid working directory. If we do want to guarantee valid CompilationDir, that should be done only for clients of getCompilationDir(). This is as simple as checking for an empty string. The only current use of getCompilationDir is EmitGenDwarfInfo, which won't conceivably run with an invalid working dir. However, in the purely hypothetically and untestable case that this happens, the AT_comp_dir will be omitted from the compilation_unit DIE. This should help fix assertions occurring with ports-mgmt/tinderbox, when it is using jails, and sometimes invalidates clang's current working directory. Reported by: decke MFC 262809: Pull in r203007 from upstream clang trunk: Don't produce an alias between destructors with different calling conventions. Fixes pr19007. (Please note that is an LLVM PR identifier, not a FreeBSD one.) This should fix Firefox and/or libxul crashes (due to problems with regparm/stdcall calling conventions) on i386. Reported by: multiple users on freebsd-current PR: bin/187103 MFC 263048: Repair recognition of "CC" as an alias for the C++ compiler, since it was silently broken by upstream for a Windows-specific use-case. Apparently some versions of CMake still rely on this archaic feature... Reported by: rakuco MFC 263049: Garbage collect the old way of adding the libstdc++ include directories in clang's InitHeaderSearch.cpp. This has been superseded by David Chisnall's commit in r255321. Moreover, if libc++ is used, the libstdc++ include directories should not be in the search path at all. These directories are now only used if you pass -stdlib=libstdc++. Notes: svn path=/stable/9/; revision=263509
* MFH (r254407, r254960, r255371): misc cleanupDag-Erling Smørgrav2014-03-204-181/+9
| | | | | | | | MFH (r255386): make libssh private MFH (r255369, r255376, r255393, r262530): import OpenPAM Nummularia Notes: svn path=/stable/9/; revision=263421
* MFC r260150: MFV r259170:Xin LI2014-03-191-0/+1
| | | | | | | | | | | | | | 4370 avoid transmitting holes during zfs send 4371 DMU code clean up illumos/illumos-gate@43466aae47bfcd2ad9bf501faec8e75c08095e4f NOTE: Make sure the boot code is updated if a zpool upgrade is done on boot zpool. Notes: svn path=/stable/9/; revision=263398
* Merge r262690 from head to stable/9:Robert Watson2014-03-191-1/+1
| | | | | | | | | | | | When querying a process's umask via sysctl in libprocstat(), don't print a warning if EPERM is returned as this is an expected failure mode rather than error -- similar to current handling of ESRCH. This makes the output of 'procstat -as' vastly more palatable. Sponsored by: DARPA, AFRL Notes: svn path=/stable/9/; revision=263343
* MFC r263021:Bryan Drewery2014-03-191-0/+6
| | | | | | | Support Last-Modified behind proxies which return UTC instead of GMT. Notes: svn path=/stable/9/; revision=263326
* MFC r263107:David Xu2014-03-171-0/+1
| | | | | | | | | | To avoid missing a chance to cancel thread, call _pthread_testcancel at the beginning of _sem_timedwait. Submitted by: Eric van Gyzen &lt; eric at vangyzen dot net &gt; Notes: svn path=/stable/9/; revision=263255
* MFC: r262398,r262399,r262410,r262975Baptiste Daroussin2014-03-112-0/+22
| | | | | | | | | | | | | | | | | Import libucl into head UCL is heavily infused by nginx configuration as the example of a convenient configuration system. However, UCL is fully compatible with JSON format and is able to parse json files. UCL is used by pkg(8) for its configuration file as well for the manifest format in packages, it will be used in base for the pkg boostrap (signature checking and configuration file parsing.) libucl has been developped and is maintained by vsevolod@ Notes: svn path=/stable/9/; revision=263032
* MFC r261283:Dimitry Andric2014-03-051-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Import libc++ 3.4 release. This contains a lot of bugfixes, and some preliminary support for C++1y. MFC r261604: HEAD is not buildable for the past day. Commit a 'quick fix' in order to permit buildworld to complete. Reviewed by: theraven MFC r261608: Apply a cleaner solution for the sign warnings that can occur when compiling libc++'s <locale> header with -Wsystem-headers on. This has also been submitted upstream. Reported by: asomers MFC r261801: An ABI incompatibility crept into the libc++ 3.4 import in r261283. It was caused by upstream libc++ commit r194536, which aimed to make the headers more standards-compliant, by making std::pair's copy constructor trivial. Unfortunately, this could cause certain C++ applications using shared libraries built against the previous version of libc++ to crash. Fix the ABI incompatibility by making std::pair's copy constructor non-trivial again. Please note: Any C++ applications or shared libraries built with libc++ between r261283 and this revision should be recompiled. Reported by: stefanf Notes: svn path=/stable/9/; revision=262801
* MFV 262445:Erwin Lansing2014-03-038-7/+37
| | | | | | | | | | | | | | | Update BIND to 9.9.5 Release note: https://lists.isc.org/pipermail/bind-announce/2013-September/000871.html https://lists.isc.org/pipermail/bind-announce/2014-January/000896.html Note this is a commit straight to stable as BIND no longer exists in head. Sponsored by: DK Hostmaster A/S Notes: svn path=/stable/9/; revision=262706
* MFC: r262296Christian Brueffer2014-02-281-3/+3
| | | | | | | | | | Match the correct variable to the variable description. PR: 121173 Submitted by: Thomas Mueller <tmueller at sysgo.com> Notes: svn path=/stable/9/; revision=262589
* MFC 250691:John Baldwin2014-02-191-4/+7
| | | | | | | | Return one-based key so that user can check if the key is ever allocated in the first place. Notes: svn path=/stable/9/; revision=262221
* MFC r241046: libc: Use O_CLOEXEC for various internal file descriptors.Jilles Tjoelker2014-02-1211-13/+15
| | | | | | | | | | | This fixes a race condition where another thread may fork(), unintentionally passing the descriptor to the child process. This commit only adds O_CLOEXEC flags to open() or openat() calls where no fcntl(fd, F_SETFD, FD_CLOEXEC) follows. Notes: svn path=/stable/9/; revision=261813