aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libc: Remove futimens() and utimensat() compat stubs.Jilles Tjoelker2017-06-074-221/+1
| | | | | | | | | | | | | | The futimens() and utimensat() compat stubs allowed using these functions on kernels that did not have the system calls yet (10.2, old 11-current). Also remove the documentation of the [ENOTSUP] error that could occur with an old kernel. A -DNO_CLEAN build may fail because the depend files refer to the deleted files. Notes: svn path=/head/; revision=319663
* Add MLINKS for atf-sh(3) to each of the functions it implementsEnji Cooper2017-06-071-1/+23
| | | | | | | | | | | This hopefully will make atf-sh(3) easier to understand for newcomers, without having to go through the atf-sh(3) level of indirection. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319662
* Remove incorrect manpage link I added for atf_check(1) in r319659 forEnji Cooper2017-06-071-0/+2
| | | | | | | | | | completeness. MFC after: never Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319661
* Revert r319659Enji Cooper2017-06-071-1/+0
| | | | | | | | | | | | I missed the fact that atf-sh(3) already documents atf_check(3). I'll be adding an manpage link for that instead in the next commit. MFC after: 1 week MFC with: r319659 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319660
* Add an MLINK for atf_check(1) -> atf-check(1)Enji Cooper2017-06-071-0/+1
| | | | | | | | | | | | This is being done to make the documentation for atf-check(1) easier to find/more intuitive for new users, because atf_check is the atf-run(1) shell version of the standalone atf-check(1) command, which is used in atf-sh(3) test programs. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319659
* vm.defer_swapspace_pageouts was removed in r308474.Bryan Drewery2017-06-071-3/+0
| | | | | | | Reported by: pstef Notes: svn path=/head/; revision=319658
* vm.defer_swapspace_pageouts was removed in r308474.Bryan Drewery2017-06-071-2/+1
| | | | Notes: svn path=/head/; revision=319657
* Add more #ifdef arch checks to the linuxkpiJustin Hibbits2017-06-074-5/+10
| | | | | | | | | | | | arm, mips, and powerpc all implement pmap_mapdev_attr() and pmap_unmapdev(), so add those archs to the checks. powerpc also includes the atomic_swap_*() functions, so add that to the supported list as well. Not tested except by compiling powerpc. Reviewed by: markj Notes: svn path=/head/; revision=319656
* Originally, this file could be compiled as a user-space application forAlan Cox2017-06-071-13/+7
| | | | | | | | | | | | testing purposes. However, over the years, various changes to the kernel have broken this feature. This revision applies some fixes to get user- space compilation working again. There are no changes in this revision to code that is used by the kernel. MFC after: 3 days Notes: svn path=/head/; revision=319655
* Change R88E_EFUSE_MAX_LEN to use the same value as the vendor's driverKevin Lo2017-06-071-1/+1
| | | | | | | | | that contains the length of the efuse content. Reviewed by: avos Notes: svn path=/head/; revision=319649
* Add some basic tests for chmod(1)Enji Cooper2017-06-074-0/+171
| | | | | | | | MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319642
* Provide typedef for socket upcall function.Gleb Smirnoff2017-06-072-6/+5
| | | | | | | While here change so_gen_t type to modern uint64_t. Notes: svn path=/head/; revision=319641
* Remove a piece of dead code.Gleb Smirnoff2017-06-071-4/+0
| | | | Notes: svn path=/head/; revision=319640
* When the input parameter node is NULL, memory is allocated to it.Stephen J. Kiernan2017-06-061-1/+3
| | | | | | | | | | | | | | To later free the memory, introduce a new variable lnode to track when this happens. Submitted by: Thomas Rix <trix@juniper.net> Reviewed by: emax Approved by: sjg (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9878 Notes: svn path=/head/; revision=319639
* Before returning because of an memory allocation error, free the memoryStephen J. Kiernan2017-06-061-0/+1
| | | | | | | | | | | | | | | already allocated to buf. Found using clang's static analyzer - scan-build Submitted by: Thomas Rix <trix@juniper.net> Reviewed by: stevek Approved by: sjg (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9852 Notes: svn path=/head/; revision=319638
* Add testcases for `cat -b`Enji Cooper2017-06-064-0/+26
| | | | | | | | MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319637
* The memory assigned to the local variable 'copy' needs to be freed.Stephen J. Kiernan2017-06-061-0/+1
| | | | | | | | | | | | | Found using clang's static analyzer - scan-build Submitted by: Thomas Rix <trix@juniper.net> Reviewed by: ed Approved by: sjg (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9663 Notes: svn path=/head/; revision=319636
* sh: Call fc -e editor with interrupts enabled.Jilles Tjoelker2017-06-061-1/+1
| | | | | | | | | | | Starting the fc -e editor can execute arbitrary script, and executing arbitrary script with INTOFF in effect may cause unexpected results. This change (together with other changes) serves mainly to allow asserting that INTOFF is not in effect when starting the evaluation of a node. Notes: svn path=/head/; revision=319635
* Add additional testcases for cat(1)Enji Cooper2017-06-066-0/+62
| | | | | | | | | | | | | | | | Verify the following additional cases: - -s (in isolation, in addition to the -se testcase obtained via the NetBSD test). - -vt Submitted by: shivansh Reviewed by: asomers (earlier diff), ngie MFC after: 1 month Sponsored by: Google, Inc (GSoC 2017) Differential Revision: D11020 Notes: svn path=/head/; revision=319634
* Starting in r118390, swaponsomething() began to reserve the blocks at theAlan Cox2017-06-061-1/+1
| | | | | | | | | | | | | beginning of a swap area for a disk label. However, neither r118390 nor r118544, which increased the reservation from one to two blocks, correctly accounted for these blocks when updating the variable "swap_pager_avail". This change corrects that error. Reviewed by: kib MFC after: 5 days Notes: svn path=/head/; revision=319627
* Add basic tests for echo(1)Enji Cooper2017-06-064-0/+68
| | | | | | | | | | | | | | | | Verify that echo(1) does not... - ... print the trailing newline character with option '-n'. - ... print the trailing newline character when '\c' is appended to the end of the string. Submitted by: shivansh Reviewed by: asomers, ngie MFC after: 1 month Sponsored by: Google, Inc (GSoC 2017) Differential Revision: D11036 Notes: svn path=/head/; revision=319626
* Ensure ${_CW} is uppercase when passing '-c' to mk-vmimage.sh,Glen Barber2017-06-061-1/+1
| | | | | | | | | | | otherwise with 'CLOUDWARE=vagrant-virtualbox', the path to the configuration file may be incorrect. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=319621
* Fix init order in the LinuxKPI for IDR support after recent changes.Hans Petter Selasky2017-06-061-1/+1
| | | | | | | | | | | CPU_FOREACH() is not available until SI_SUB_CPU at SI_ORDER_ANY when the LinuxKPI is loaded as part of the kernel. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=319620
* tsearch_test: Test twalk & add some determinism.Will Andrews2017-06-061-1/+29
| | | | Notes: svn path=/head/; revision=319613
* When the function blist_fill() was added to the kernel in r107913, the swapAlan Cox2017-06-062-12/+4
| | | | | | | | | | | | | | | | | | | | pager used a different scheme for striping the allocation of swap space across multiple devices. And, although blist_fill() was intended to support fill operations with large counts, the old striping scheme never performed a fill larger than the stripe size. Consequently, the misplacement of a sanity check in blst_meta_fill() went undetected. Now, moving forward in time to r118390, a new scheme for striping was introduced that maintained a blist allocator per device, but as noted in r318995, swapoff_one() was not fully and correctly converted to the new scheme. This change completes what was started in r318995 by fixing the underlying bug in blst_meta_fill() that stops swapoff_one() from simply performing a single blist_fill() operation. Reviewed by: kib MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D11043 Notes: svn path=/head/; revision=319612
* Jails: Optionally prevent jailed root from binding to privileged portsAllan Jude2017-06-063-6/+22
| | | | | | | | | | | | | | You may now optionally specify allow.noreserved_ports to prevent root inside a jail from using privileged ports (less than 1024) PR: 217728 Submitted by: Matt Miller <mattm916@pulsar.neomailbox.ch> Reviewed by: jamie, cem, smh Relnotes: yes Differential Revision: https://reviews.freebsd.org/D10202 Notes: svn path=/head/; revision=319611
* usr.sbin/sesutil: 'locate all off' does not deactivate empty slotsAllan Jude2017-06-061-5/+4
| | | | | | | | | | | | PR: 217409 Reported by: asomers Reviewed by: asomers, bapt MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D10458 Notes: svn path=/head/; revision=319610
* Revert r319608, the dtb path was correct the first time. Sigh.Glen Barber2017-06-051-1/+1
| | | | | | | | | MFC after: 3 days MFC with: r319603, r319608 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=319609
* Fix the source path for the cubieboard2 dtb hard link.Glen Barber2017-06-051-1/+1
| | | | | | | | | MFC after: 3 days MFC with: r319603 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=319608
* The variable "breakout" is used like a Boolean, so actually define it asAlan Cox2017-06-051-4/+3
| | | | | | | | | | one. Reviewed by: kib MFC after: 5 days Notes: svn path=/head/; revision=319605
* Halve the memory being internally allocated by the blist allocator. InAlan Cox2017-06-053-7/+6
| | | | | | | | | | | | | | | short, half of the memory that is allocated to implement the radix tree is wasted because we did not change "u_daddr_t" to be a 64-bit unsigned int when we changed "daddr_t" to be a 64-bit (signed) int. (See r96849 and r96851.) Reviewed by: kib, markj Tested by: pho MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D11028 Notes: svn path=/head/; revision=319604
* Create a hard link for sun7i-a20-cubieboard2.dtb to allow theGlen Barber2017-06-051-0/+2
| | | | | | | | | | cubieboard2 to find the correct dtb file. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=319603
* Clarify -q is only for pgrep.Bryan Drewery2017-06-051-1/+3
| | | | | | | | MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319602
* ANSIfy md5 functionsToomas Soome2017-06-051-14/+5
| | | | | | | | | | Update the function declarations. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D11055 Notes: svn path=/head/; revision=319601
* Add sysctl vfs.ino64_trunc_error controlling action on truncatingKonstantin Belousov2017-06-054-26/+54
| | | | | | | | | | | | | | | | | | | | | inode number or link count for the ABI compat binaries. Right now, and by default after the change, too large 64bit values are silently truncated to 32 bits. Enabling the knob causes the system to return EOVERFLOW for stat(2) family of compat syscalls when some values cannot be completely represented by the old structures. For getdirentries(2), knob skips the dirents which would cause non-trivial truncation of d_ino. EOVERFLOW error is specified by the X/Open 1996 LFS document ('Adding Support for Arbitrary File Sizes to the Single UNIX Specification'). Based on the discussion with: bde Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=319600
* Remove unused tlb_write_random().Edward Tomasz Napierala2017-06-051-7/+0
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=319598
* Remove extraneous parentheses.Edward Tomasz Napierala2017-06-051-2/+1
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=319597
* Decode arguments to dup, dup2, getdirentries, pread, and pwrite.John Baldwin2017-06-052-1/+24
| | | | | | | | | | | | | | | | - dup and dup2 print fd arguments in decimal. - pread and pwrite are similar to read and write with the addition of the file offset. - getdirentries displays the output entries as a string for now and also prints the value returned in *basep. Eventually the buffer for getdirentries should perhaps be decoded as an array of dirent structures. PR: 214885 Submitted by: Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> Notes: svn path=/head/; revision=319595
* META_MODE: Force a host tool rebuild for ino64 in r318736.Bryan Drewery2017-06-051-0/+2
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319594
* META_MODE: Add framework to force rebuilding for major ABI changes.Bryan Drewery2017-06-053-4/+49
| | | | | | | | | | | | | | | | | | | | | | | Normally META_MODE ignores host files for "meta mode" decisions on whether a file should be rebuilt or not. This is because a simple installworld can update timestamps and cause the next build to rebuild all host tools, when the previous ones may not have any changes in the source tree. These tools are normally still ABI compatible. They are only rebuilt if NO_META_IGNORE_HOST is set from the workaround/hack in r301467. One of the major problems with this is when a host tool has objects spread across many revisions that have mixed-ABI. For example, if struct stat were to change on the host, some objects for a tool may have different ideas of that struct's definition. If just 1 source file were modified and rebuilt and linked into the tool, then that toll will have mixed-ABI objects and crash. This exact thing happened with the ino64 commit in r301467 followed by a trivial update to libbfd in r318750. The resulting binary would crash in buildworld. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319593
* META_MODE: Allow not ignoring host headers with NO_META_IGNORE_HOST_HEADERS.Bryan Drewery2017-06-051-4/+8
| | | | | | | | | | | | | See r301467 for more details on NO_META_IGNORE_HOST. Usually the full list of host ignores should have no real impact on the host tools. The headers however may reliably define what the ABI is for the host. It may be useful to allow using the headers for the build but still not caring about things like /bin/sh, /lib/libedit.so, etc. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319592
* sh: Make sure to process SIGINT if SETINTON re-enables processing.Jilles Tjoelker2017-06-041-1/+1
| | | | | | | | If INTON re-enables interrupts, it processes any interrupt that occurred while interrupts were disabled. Make SETINTON do the same. Notes: svn path=/head/; revision=319591
* tests/sys/aio: Add missing mode to open() calls with O_CREAT.Jilles Tjoelker2017-06-041-3/+3
| | | | Notes: svn path=/head/; revision=319590
* [iwm] Remove support for fw older than -17 and -22Adrian Chadd2017-06-042-25/+1
| | | | | | | | | * iwm(4) didn't use any of these definitions yet, anyway. Obtained from: dragonflybsd.git f95003b8f1f7382c8396a6d408e3072632afdd3d Notes: svn path=/head/; revision=319589
* [iwmfw] bump built firmware now to version 22 for 7265D and 8000C.Adrian Chadd2017-06-042-2/+2
| | | | Notes: svn path=/head/; revision=319588
* [iwmfw] 8000C ver 22 firmware.Adrian Chadd2017-06-041-0/+47134
| | | | Notes: svn path=/head/; revision=319586
* [iwmfw] add 7265D-22 firmwareAdrian Chadd2017-06-041-0/+22855
| | | | Notes: svn path=/head/; revision=319584
* [ath_hal] add USB reset PLL work around for AR9331/AR9344 (Hornet/Wasp.)Adrian Chadd2017-06-041-2/+27
| | | | | | | | | | | | | | | | | | It turns out that this is useful on hornet and wasp SoCs but it isn't enabled in ye olde HAL /unless/ you were using a version from one of the business units building USB targetted devices. It eventually got fixed for all of them as people started wanting to use the USB ports on their SoCs (eg for flash storage, bluetooth, 4G/LTE widgets, etc.) This is actually a fix from ath9k but I'm merging it with the available-but- disabled code in the QCA reference HAL. Tested: * AR9331 SoC Notes: svn path=/head/; revision=319583
* [iwm] Ignore IWM_DEBUG_LOG_MSG notifications.Adrian Chadd2017-06-041-1/+8
| | | | | | | | | | | * Firmware versions 21 and 22 generate some IWM_DEBUG_LOG_MSG notifications, which seem to be harmless. Avoid spamming the system log with "frame ... UNHANDLED (this should not happen)" messages. Obtained from: dragonflybsd.git dda889ac57d8e5b46bb1b1ecf53c17a18481c7c8 Notes: svn path=/head/; revision=319582
* [iwm] Set command code for PHY_DB as well.Adrian Chadd2017-06-043-3/+3
| | | | | | | Obtained from: dragonflybsd.git 58318c956a74382d1286ccabaf767012fdcfe1a2 Notes: svn path=/head/; revision=319581