aboutsummaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Copy elftoolchain binutils replacements from vendor branchEd Maste2014-11-2753-0/+21697
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=275192
* Add support for 64-byte CQE size.Hans Petter Selasky2014-11-265-15/+29
| | | | | | | | Sponsored by: Mellanox Technologies MFC after: 3 days Notes: svn path=/head/; revision=275109
* Only pass 6 arguments to the 'run' function on amd64. amd64'sJohn Baldwin2014-11-251-14/+10
| | | | | | | | | | makecontext on FreeBSD only supports a maximum of 6 arguments. This fixes the setcontext_link test on amd64. PR: 194828 Notes: svn path=/head/; revision=275033
* Import libgpio.Rui Paulo2014-11-241-0/+1
| | | | | | | | | | | | | | This is a thin wrapper around the kernel interface which should make it easier to write GPIO applications. gpioctl(8) will be converted to use this library in a separate commit. Differential Revision: https://reviews.freebsd.org/D1183 Reviewed by: adrian, loos Discussed on: arm@, embedded@ Relnotes: yes Notes: svn path=/head/; revision=274987
* Fix an error (case on a .Nm) preventing mandoc from rendering the manpageBaptiste Daroussin2014-11-231-15/+15
| | | | | | | Fix mandoc warnings: extrat space at end of lines Notes: svn path=/head/; revision=274927
* Add missing bits svn merge did not catchBaptiste Daroussin2014-11-226-0/+1110
| | | | Notes: svn path=/head/; revision=274888
* Update sqlite3 to 3.8.7.2Baptiste Daroussin2014-11-226-4742/+9007
| | | | Notes: svn path=/head/; revision=274884
* Update mandoc to 1.13.1Baptiste Daroussin2014-11-22110-5178/+16307
| | | | Notes: svn path=/head/; revision=274880
* Avoid undefined behaviour in gas's rotate_left() macro for n == 0.Dimitry Andric2014-11-221-1/+1
| | | | | | | | | | | | Otherwise, clang can effectively remove the first iteration of the for loops where this macro is invoked, and as a result, "cmp r0, #99" fails to assemble. Obtained from: joerg at netbsd MFC after: 3 days Notes: svn path=/head/; revision=274856
* Fix the following -Werror warning from clang 3.5.0, while buildingDimitry Andric2014-11-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | usr.bin/cpio on amd64 (or any arch with 64-bit time_t): contrib/libarchive/cpio/cpio.c:1143:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value] if (abs(mtime - now) > (365/2)*86400) ^ contrib/libarchive/cpio/cpio.c:1143:6: note: use function 'labs' instead if (abs(mtime - now) > (365/2)*86400) ^~~ labs 1 error generated. This is because time_t is a long on amd64. To avoid the warning, just copy the equivalent test from a few lines before, which is used in the Windows case, and which is type safe. Reviewed by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D1198 Notes: svn path=/head/; revision=274846
* Improve support for XSAVE with debuggers.John Baldwin2014-11-212-0/+3
| | | | | | | | | | | | | | | | | | | | | | - Dump an NT_X86_XSTATE note if XSAVE is in use. This note is designed to match what Linux does in that 1) it dumps the entire XSAVE area including the fxsave state, and 2) it stashes a copy of the current xsave mask in the unused padding between the fxsave state and the xstate header at the same location used by Linux. - Teach readelf() to recognize NT_X86_XSTATE notes. - Change PT_GET/SETXSTATE to take the entire XSAVE state instead of only the extra portion. This avoids having to always make two ptrace() calls to get or set the full XSAVE state. - Add a PT_GET_XSTATE_INFO which returns the length of the current XSTATE save area (so the size of the buffer needed for PT_GETXSTATE) and the current XSAVE mask (%xcr0). Differential Revision: https://reviews.freebsd.org/D1193 Reviewed by: kib MFC after: 2 weeks Notes: svn path=/head/; revision=274817
* Upgrade libxo to 0.1.6.Marcel Moolenaar2014-11-185-32/+57
| | | | | | | | | | Summary of changes: 1. Coverity defect fixes Obtained from: https://github.com/Juniper/libxo/releases/tag/0.1.6 Notes: svn path=/head/; revision=274672
* Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) withEnji Cooper2014-11-1752-109/+109
| | | | | | | | | | | | their #ifdef equivalents for everything changed in contrib/netbsd-tests. There are some items from the vendor tree that use #if defined(__FreeBSD__) or #if defined(__NetBSD__) which are being left alone Requested by: bde, rpaulo Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274626
* - Skip over the testcases that call cbrtl on platforms where LDBL_PREC == 53Enji Cooper2014-11-161-0/+8
| | | | | | | | | | | | (arm, mips, powerpc). This fixes the build on these platforms, based on some ad hoc tinderbox runs I did a while ago - Skip cast the arguments to powl as long double so powl properly interprets those arugments at compile-time when picking the type Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274601
* - Expect exp2_powers to fail on FreeBSD/i386Enji Cooper2014-11-161-0/+9
| | | | | | | | | - Expect exp2_values to fail on FreeBSD due to the small epsilon Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274600
* Alias isinff to isinf on FreeBSDEnji Cooper2014-11-161-0/+4
| | | | | | | | | isinf on FreeBSD automatically picks the appropriate type per math.h Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274599
* Reset errno to 0 before running scalbn to be sure that the tested errno isEnji Cooper2014-11-161-0/+3
| | | | | | | | | valid Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274598
* Skip the long-double epsilon checks on FreeBSD/i386Enji Cooper2014-11-161-0/+2
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274597
* Call sem_unlink on semaphores before attempting to create themEnji Cooper2014-11-161-0/+6
| | | | | | | | | | | Due to the lack of uniqueness in the semaphore name, and the fact that the tests don't have cleanup routines, an interrupted test can leave a semaphore "laying around", causing all subsequent attempts to run the test to fail I will file a NetBSD PR for this issue soon Notes: svn path=/head/; revision=274579
* Add missing sys/time.h #include for timespecsub macro in ↵Enji Cooper2014-11-163-0/+12
| | | | | | | lib/libnetbsd/sys/time.h Notes: svn path=/head/; revision=274577
* Port helper program to FreeBSD, similar to ../../lib/libc/stdlib/h_atexit.cEnji Cooper2014-11-161-0/+20
| | | | | | | | Submitted by: pho In collaboration with: kib Notes: svn path=/head/; revision=274576
* #ifdef out a printf on !NetBSD that causes the testcase to fail when comparingEnji Cooper2014-11-161-0/+2
| | | | | | | | | the output from the helper program Submitted by: pho Notes: svn path=/head/; revision=274575
* Add pthread_np.h #include and initialize the pthread attribute on FreeBSDEnji Cooper2014-11-161-0/+7
| | | | | | | Submitted by: pho Notes: svn path=/head/; revision=274574
* Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSDEnji Cooper2014-11-161-0/+4
| | | | | | | | PR: 191906 In collaboration with: pho Notes: svn path=/head/; revision=274573
* Only expect timeouts on powerpc with NetBSDEnji Cooper2014-11-161-0/+12
| | | | | | | Submitted by: pho Notes: svn path=/head/; revision=274572
* Use _exit instead of exit so the file descriptors aren't flushed twice in theEnji Cooper2014-11-161-0/+8
| | | | | | | | | child processes Submitted by: pho Notes: svn path=/head/; revision=274571
* MFV of 274557,tzdata{2014j}Edwin Groothuis2014-11-166-115/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release 2014j - 2014-11-10 17:37:11 -0800 Changes affecting current and future time stamps Turks & Caicos' switch from US eastern time to UTC-4 year-round did not occur on 2014-11-02 at 02:00. It's currently scheduled for 2015-11-01 at 02:00. (Thanks to Chris Walton.) Changes affecting past time stamps Many pre-1989 time stamps have been corrected for Asia/Seoul and Asia/Pyongyang, based on sources for the Korean-language Wikipedia entry for time in Korea. (Thanks to Sanghyuk Jung.) Also, no longer guess that Pyongyang mimicked Seoul time after World War II, as this is politically implausible. Some more zones have been turned into links, when they differed from existing zones only for older time stamps. As usual, these changes affect UTC offsets in pre-1970 time stamps only. Their old contents have been moved to the 'backzone' file. The affected zones are: Africa/Addis_Ababa, Africa/Asmara, Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala, Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and Indian/Mayotte. Changes affecting commentary The commentary is less enthusiastic about Shanks as a source, and is more careful to distinguish UT from UTC. Notes: svn path=/head/; revision=274559
* The fix imported into llvm in r274442 contains some C++11 constructs,Dimitry Andric2014-11-132-2/+75
| | | | | | | | | | | | | | which gcc in base cannot handle. Replace these with C++98 equivalents. While here, add the patch for the adapted fix. Reported by: bz, kib Pointy hat to: dim MFC after: 1 week X-MFC-With: r274442 Notes: svn path=/head/; revision=274483
* Regen test cases for yacc(1) after r274460. YYINT is int now.Jung-uk Kim2014-11-1329-29/+29
| | | | | | | PR: 194982 Notes: svn path=/head/; revision=274475
* Fix previous change to this file (r273811).Navdeep Parhar2014-11-121-4/+5
| | | | | | | | | This has been submitted upstream and should show up there soon. Submitted by: Hariprasad at Chelsio dot com Notes: svn path=/head/; revision=274450
* Pull in r221709 from upstream llvm trunk (by Frédéric Riss):Dimitry Andric2014-11-122-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | Totally forget deallocated SDNodes in SDDbgInfo. What would happen before that commit is that the SDDbgValues associated with a deallocated SDNode would be marked Invalidated, but SDDbgInfo would keep a map entry keyed by the SDNode pointer pointing to this list of invalidated SDDbgNodes. As the memory gets reused, the list might get wrongly associated with another new SDNode. As the SDDbgValues are cloned when they are transfered, this can lead to an exponential number of SDDbgValues being produced during DAGCombine like in http://llvm.org/bugs/show_bug.cgi?id=20893 Note that the previous behavior wasn't really buggy as the invalidation made sure that the SDDbgValues won't be used. This commit can be considered a memory optimization and as such is really hard to validate in a unit-test. This should fix abnormally large memory usage and resulting OOM crashes when compiling certain ports with debug information. Reported by: Dmitry Marakasov <amdmi3@amdmi3.ru> Upstream PRs: http://llvm.org/PR19031 http://llvm.org/PR20893 MFC after: 1 week Notes: svn path=/head/; revision=274442
* Upgrade libxo to 0.1.5Marcel Moolenaar2014-11-1111-22/+45
| | | | | | | Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=274405
* Test errno against EEXIST as well.Xin LI2014-11-111-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=274383
* Rename variable name from 'index' to 'idx' to avoid shadowing index(3).Xin LI2014-11-111-5/+5
| | | | | | | | Noticed by: dim MFC after: 2 weeks Notes: svn path=/head/; revision=274370
* Revert WiP to contrib/tzcode accidentally committed with r274364Enji Cooper2014-11-111-10/+2
| | | | Notes: svn path=/head/; revision=274365
* Add baud rate support to telnet(1)Enji Cooper2014-11-1111-136/+209
| | | | | | | | | | | | | | | | This implements part of RFC-2217 It's based off a patch originally written by Sujal Patel at Isilon, and contributions from other Isilon employees. PR: 173728 Phabric: D995 Reviewed by: markj, markm MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=274364
* Add llvm patch corresponding to r274286.Dimitry Andric2014-11-081-0/+55
| | | | Notes: svn path=/head/; revision=274294
* Pull in r201784 from upstream llvm trunk (by Benjamin Kramer):Dimitry Andric2014-11-081-3/+3
| | | | | | | | | | | | | | | | AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets. There is code in the wild that relies on $0 not being expanded. This fixes some cases of using $ signs in literals being incorrectly assembled. Reported by: Richard Henderson Upstream PR: http://llvm.org/PR21500 MFC after: 3 days Notes: svn path=/head/; revision=274286
* Staticize the test plans.Dag-Erling Smørgrav2014-11-053-3/+3
| | | | Notes: svn path=/head/; revision=274145
* Expect lib.libc.sys.getcontext_test.setcontext_link to fail on amd64; addEnji Cooper2014-11-051-0/+14
| | | | | | | | | | | | | | | | | | | | | | additional debugging to make the underlying problem more visible Calling setcontext(2) on amd64 as shown in the test program is failing on amd64, not i386, with a return code of -1 and an errno of EINVAL Further investigation is being done in the PR to determine the root cause for the failure PR: 194828 Tested with the following configuration: - amd64/i386 - 11.0-CURRENT @ r273153 - 100 times in a tight loop as root with the following commands... -- kyua test lib/libc -- kyua test lib/libc/sys -- kyua test lib/libc/sys/getcontext_test Notes: svn path=/head/; revision=274143
* Remove expected failure from lib.libc.sys.t_mincore:mincore_residEnji Cooper2014-11-051-3/+0
| | | | | | | | | | | | | | | | | The failure was added based on observation seen on 11.0-CURRENT @ r273153, not based on internal testing at EMC/Isilon PR: 194829 Tested with the following configuration: - amd64/i386 - 11.0-CURRENT @ r273153 - 100 times in a tight loop as root with the following commands... -- kyua test lib/libc -- kyua test lib/libc/sys -- kyua test lib/libc/sys/mincore_test Notes: svn path=/head/; revision=274142
* [SA-14:25] Fix kernel stack disclosure in setlogin(2) / getlogin(2).Dag-Erling Smørgrav2014-11-041-14/+22
| | | | | | | | | [SA-14:26] Fix remote command execution in ftp(1). Approved by: so (des) Notes: svn path=/head/; revision=274106
* Fix the Jenkins test run by skipping the negative testcases earlierEnji Cooper2014-11-041-9/+11
| | | | | | | | | | | | | | | | | | | | The problem is that lib.libc.locale.t_io:bad_big5_wprintf was printing out illegal Unicode characters, which causes XML parsers to bail immediately, e.g. % kyua report-junit > ~/report.junit % python2 -c 'import xml.dom.minidom as md; md.parse("/home/ngie/report.junit")' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/xml/dom/minidom.py", line 1918, in parse return expatbuilder.parse(file) File "/usr/local/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse result = builder.parseFile(fp) File "/usr/local/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile parser.Parse(buffer, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 27137, column 13 Notes: svn path=/head/; revision=274090
* Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after ↵Enji Cooper2014-11-0414-40/+22
| | | | | | | | | | | atf-c/config.h was removed from the build Pointyhat to: me (again, for not running make delete-old after running test builds) Notes: svn path=/head/; revision=274079
* Finish off lib/libc/stdlib/t_strtod.c port by checking for "y" twice onEnji Cooper2014-11-041-1/+7
| | | | | | | | | FreeBSD, and always assume long long double exists on FreeBSD Submitted by: pho Notes: svn path=/head/; revision=274072
* rpc_control on FreeBSD is a public-ish API (not prefixed with __), not privateEnji Cooper2014-11-031-0/+4
| | | | | | | | | like NetBSD Submitted by: pho Notes: svn path=/head/; revision=274067
* Port lib/libc/ssp to FreeBSDEnji Cooper2014-11-035-1/+199
| | | | | | | | | | In most cases, the buffers and data were resized, but when dealing with the helpers, some of the code was adjusted to fail more reliably Submitted by: pho Notes: svn path=/head/; revision=274066
* inet_network on FreeBSD returns NULL when provided "0x" to inet_networkEnji Cooper2014-11-031-0/+4
| | | | | | | Submitted by: pho Notes: svn path=/head/; revision=274062
* Port t_db.sh to FreeBSDEnji Cooper2014-11-031-0/+20
| | | | | | | | | | | | - The blocksize on FreeBSD is 32kB, not 64kB - Add some detection for MK_DICT == no; /nonexistent is echoed along with atf_skip to ensure that the test will fail if dict(..) is called in the non-final stage of the pipeline Submitted by: pho Notes: svn path=/head/; revision=274061
* Port h_hash and t_sha2 to FreeBSDEnji Cooper2014-11-012-0/+34
| | | | | | | | | | t_sha2 contains dirty copy-paste hacks that need to be fixed with the openssh OpenBSD compat layer Submitted by: pho Notes: svn path=/head/; revision=273952