summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r318436:ngie2017-06-016-1/+206
| | | | | | | | | | | | | | | | | usr.bin/getconf: add some initial tests Items tested via this commit are: - Some basic POSIX constants. - Some valid programming environments with -v. - Some invalid programming environments via -v. NOTE: this test makes assumptions about ILP32/LP32 vs LP64 that are currently not true on all architectures to avoid hardcoding some architectures in the tests. I'm working on improving getconf(1) to be more sane about handling ILP32/LP32 vs LP64. Future commits are coming soon to address this. Tested with: amd64, i386
* MFC r318434:ngie2017-06-011-2/+3
| | | | | | Make the `.gperf.c` suffix rule depend on fake-gperf.awk Parameterize out fake-gperf.awk to avoid duplicating the path
* MFC r318177:ngie2017-06-012-4/+2
| | | | | | Unconditionally install udp(4) and udplite(4) again I added this to the MK_USB != no block in error in r278202.
* MFC r319157:ngie2017-06-011-1/+2
| | | | | | | | fma_test: mute a warning about unreachable code on amd64 by restructuring the #ifdef block to only handle the rest of the logic in the loop in the #else case. CID: 1346844
* MFC r319158:ngie2017-06-011-1/+1
| | | | | | | | logarithm_test: assert that feclearexcept succeeds This helps ensure that test preconditons are fulfilled. CID: 1346572
* MFC r318175,r318178,r318179:ngie2017-06-011-4/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | r318175: procstat(1): clarify the Signal Disposition section - Fix a typo (SIGIGN -> SIG_IGN). Use .Dv when referencing SIG_IGN. - Use semi-colons as soft breaks when separating sentences for the FLAGS section. - Tweak wording for C slightly to flow better and to be a bit more technically correct (signals with handlers installed will be caught by the target program). - Reference signal(3) in the SEE ALSO section. r318178: procstat(1): document all possible `PRO` (network protocol) values Reference the appropriate section 4 manpages for networking protocols. r318179: procstat(1): also reference icmp(4) and sctp(4) This was missed in the previous commit by accident. MFC with: r318178
* MFC r319156,r319159:ngie2017-06-012-1/+2
| | | | | | | | | | | | | | | | | | r319156: :nvlist_unpack__duplicate_key : check the result of nvlist_pack(3) This fixes a potential NULL pointer dereference. CID: 1362051 r319159: :dnvlist_get_string__default_value: fix a bogus string comparison test Check actual_value vs "5", not "5" vs itself. CID: 1362021
* MFC r319137:kib2017-06-011-4/+5
| | | | Correct explanation of the dynamic tokens handling.
* MFC r319138:kib2017-06-011-0/+71
| | | | Document direct execution mode for rtld.
* MFC r318592: compress: Allow uncompress -c with multiple pathnames,jilles2017-05-312-1/+23
| | | | | | | | | | | | as required by POSIX. Per POSIX, allow passing multiple pathnames to uncompress -c, concatenating the uncompressed data. Passing multiple pathnames to compress -c remains disallowed, since the result cannot be decompressed. PR: 219387
* MFC r318586vangyzen2017-05-311-5/+6
| | | | | | | | | | | dma.8: fix problems reported by igor and 'mandoc -Tlint' dma.8:77:contraction:Queue the mail, but [don't] attempt to deliver it. dma.8:85:repeated:s [are are] ignored. dma.8:87:contraction:[Don't] run in the background. dma.8:201:contraction:Use the catch-all alias only if you [don't] want any local mail to be mandoc: dma.8:308:5: WARNING: macro neither callable nor escaped: Sm
* MFC r318585vangyzen2017-05-311-4/+4
| | | | | | dma.8: use the correct name for 'SECURETRANSFER' The code uses 'SECURETRANS', but the config file uses 'SECURETRANSFER'.
* MFC r319022vangyzen2017-05-311-9/+1
| | | | | | | | | | | | | | | Fix INSTALL_AS_USER with external nsswitch databases The INSTALL_AS_USER option tells "install" to use the current user name as the owner of the installed file. The "install" command executed by the build is statically linked, so it does not load nsswitch modules, such as nss_ldap.so, so it fails when the user is only defined in such a database. Fix it to use the current UID instead of user name. This works for all users. I expect it is also slightly more efficient. Sponsored by: Dell EMC
* MFC r319020vangyzen2017-05-312-25/+27
| | | | | | | | | | | Fix INSTALL_AS_USER Move INSTALL_AS_USER into bsd.init.mk to maximize the chance that it has final authority over fooOWN and fooGRP. Reviewed by: sjg Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D10810
* Document r319349, byacc(1) version 20170201.gjb2017-05-311-0/+3
| | | | Sponsored by: The FreeBSD Foundation
* MFC: r313105, r313106jkim2017-05-3125-214/+7113
| | | | Update byacc to 20170201.
* Document r319244, rpcbind(8) warmstart support knob.gjb2017-05-311-0/+6
| | | | Sponsored by: The FreeBSD Foundation
* Document r319269, cxgbe(4) firmware update.gjb2017-05-311-4/+4
| | | | Sponsored by: The FreeBSD Foundation
* MFC r319086:kib2017-05-311-2/+5
| | | | Mention that the basep argument to getdirentries(2) can be NULL.
* MFC r317632:ngie2017-05-311-1/+2
| | | | | | Fix "make cscope-clean" when .OBJDIR already exists The cscope generated files are always put in .CURDIR .
* MFC r316742:ngie2017-05-311-2/+2
| | | | | | Clarify units for mediasize and sectorsize in DoFile(..) They're byte quantities.
* MFC r316740:ngie2017-05-311-1/+2
| | | | | | | | Clarify `minfree` warning message in check_space(..) - State that the units are kB. - Be more complete/concise in terms of what is required (in this case `minfree` must be at least `X`kB)
* MFC r317311,r317312,r319019:ngie2017-05-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | r317311: Check for failures from getpagesize(3) Return errno on failure, similar to the open(2) call above it. CID: 1193753 r317312: Fix type for `pagesize` to match the return type for getpagesize(3) to fix the build Pointyhat to: ngie r319019: Remove getpagesize(3) error checking added in r317312 getpagesize(3) no longer fails as of r317436.
* MFC r319056,r319058,r319059,r319060,r319061,r319078:ngie2017-05-312-31/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r319056: tests/sys/file/ftruncate_test: use an exit code of 1 instead of -1 with err*(3). An exit code of -1 is implementation defined -- it's best to stick with something well-defined (1). r319058: Create a deterministic file in the kyua sandbox, instead of a temporary file outside the kyua sandbox This helps ensure that the file is removed at test exit, and as a side effect, cures a warning about umasks with Coverity. r319059: Use an exit code of 1 instead of -1 for reasons noted in r319056 r319060: Use main(void) instead of main(argc __unused, argv __unused) r319061: Don't leak accept_fd on thread completion CID: 1296068 r319078: Tweak r319058 slightly - Specify an explicit mode when using O_CREAT per open(2). - Fix the error message (add missing enclosing parentheses). MFC with: r319058
* MFC ↵ngie2017-05-319-98/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r319027,r319028,r319029,r319030,r319031,r319033,r319034,r319035,r319036,r319037,r319038,r319039,r319040,r319041,r319042,r319043,r319044,r319045,r319046: r319027: lib/libc/tests/nss: use calloc appropriately The pattern used prior to this commit was `calloc(1, n * sizeof(type))`; the pattern that should be used however is `calloc(n, sizeof(type))`. r319028: Sort make variables to suit style.Makefile(5) This is being done prior to functional changes. r319029: Staticize functions and remove unused variables to aid with bumping WARNS r319030: Fix -Wsign-compare warnings r319031: getusershell_test: staticize run_tests(..) to fix warnings r319033: getserv_test: fix -Wsign-compare and -Wmissing-prototypes warnings r319034: getaddrinfo_test: fix -Wsign-compare warnings r319035: getrpc_test: fix -Wmissing-prototypes and -Wsign-compare warnings r319036: getproto_test: fix -Wmissing-prototypes and -Wsign-compare warnings r319037: getaddrinfo_test: mark unused function parameters __unused to fix -Wunused warnings r319038: getusershell_test: mark mdata parameter in compare_usershell __unused r319039: getserv_test: mark unused parameters __unused to fix corresponding warnings r319040: getrpc_test: fix -Wunused warnings - Mark unused function parameters unused. - Remove an unused function prototype. r319041: getproto_test: fix -Wunused warnings Mark unused parameters __unused in functions. r319042: gethostby_test: fix multiple warning types - Fix -Wmissing-declaration warning by staticizing run_tests. - Fix -Wsign-compare warnings by casting size_t types to int for comparisons. Reindent some of the code in sdump_hostent(..) to accomodate the overall changes. r319043: getpw_test: fix -Wunused warnings - Mark unused parameters __unused. - Put dump_passwd under DEBUG as it's only used in that case. r319044: getgr_test: fix -Wunused warnings r319045: Fix -Wunused and -Wshadow warnings r319046: Fix a -Wunused-but-set-variable warning reported by gcc 6.3.0
* MFC r306691,310036:delphij2017-05-31135-4656/+5441
| | | | Merge byacc 20161202.
* MFC r319062:ngie2017-05-311-0/+1
| | | | | | Initial `srv` before using it in bind(2) CID: 1357526
* MFC r304106:delphij2017-05-318-5/+198
| | | | | | | Add timingsafe_bcmp and timingsafe_memcmp. Obtained from: OpenBSD Reviewed by: trasz
* MFC r316649 (kan):delphij2017-05-311-1/+1
| | | | Add missing double quote to fix r316635 commit.
* MFC r318514-r318515, r318517, r318917delphij2017-05-313-66/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r318514: Use size_t. Inspired by: OpenBSD src/lib/libc/stdlib/qsort.c,v 1.11 r318515: The current qsort(3) implementation ignores the sizes of partitions, and always perform recursion on the left partition, then use a tail call to handle the right partition. In the worst case this could require O(N) levels of recursions. Reduce the possible recursion level to log2(N) by always recursing on the smaller partition instead. Obtained from: PostgreSQL 9d6077abf9d6efd992a59f05ef5aba981ea32096 r318517: Sync qsort.c with userland r318515. (Note that MIN macro is removed in favor of sys/param.h's version). PR: 213922 r318917: Disconnect heimdal version of qsort.c from build because we are already using libc's version of qsort. PR: bin/213922
* MFC r311989 (cem):delphij2017-05-3111-29/+29
| | | | libkern: Remove obsolete 'register' keyword
* MFC r316635:delphij2017-05-311-13/+3
| | | | | | Enable 16-bit longest_match for x86. This gives a ~2% improvement in compression tests.
* MFC r313327:delphij2017-05-311-1/+1
| | | | Reflect actual NetBSD revision we already have.
* MFC r313695, r313760, r314769, r314863, r314865, r316125delphij2017-05-31184-11667/+24285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r313695: MFV r313676: libpcap 1.8.1 r313760: MFV r313759: license change for a few headers (4 clause BSD to 3 clause BSD). X-MFC-with: r313695 r314769: Remove compatibility with old libpcap. Differential Revision: https://reviews.freebsd.org/D9606 r314863: Stop installing pcap-int.h, which is the internal interface for libpcap. Reference: https://github.com/the-tcpdump-group/libpcap/issues/560 PR: 217221 r314865: Bump __FreeBSD_version for removal of pcap-int.h. PR: 217221 r316125: MFV r316124: Fix build when WITHOUT_INET6. Reported by: Randy Westlund <rwestlun gmail com>
* MFC r315272, r315370delphij2017-05-314-1/+44
| | | | | | | | | | | | | | | | | | | | | | | r315272: Implement INHERIT_ZERO for minherit(2). INHERIT_ZERO is an OpenBSD feature. When a page is marked as such, it would be zeroed upon fork(). This would be used in new arc4random(3) functions. PR: 182610 Reviewed by: kib (earlier version) Differential Revision: https://reviews.freebsd.org/D427 r315370: The adj_free and max_free values of new_entry will be calculated and assigned by subsequent vm_map_entry_link(), therefore, remove the pointless copying. Submitted by: alc
* MFC r315615:delphij2017-05-311-2/+2
| | | | Make space style consistent with earlier entries.
* MFC r318975:delphij2017-05-311-4/+6
| | | | | | | | Tighten /entropy permissions. PR: 219527 Reported by: Lu Tung-Pin <lutungpin at openmailbox.org> Submitted by: jilles
* MFC r318774:np2017-05-311-5/+3
| | | | | | | cxgbe/iw_cxgbe: sodisconnect failures are harmless and should not be treated as fatal errors. Sponsored by: Chelsio Communications
* MFC r318762:np2017-05-3114-29344/+32101
| | | | | | | | | | | cxgbe(4): Update the T4, T5, and T6 firmwares to 1.16.45.0. The latest firmware has a number of link related fixes, support for a new custom card, and the fix for a bug that affected rate limiting on FreeBSD. Relnotes: Yes Sponsored by: Chelsio Communications
* MFC r314176 and r318973.np2017-05-307-87/+20686
| | | | | | | | | | | r314176: Add support for RDMA from userspace with T6 cards. r318973: libcxgb4: Use memcpy instead of copying WRs 8B at a time in the userspace RDMA library for cxgbe(4). Sponsored by: Chelsio Communications
* Regenerate src.conf(5)ngie2017-05-301-60/+853
|
* MFC r313169,r319246:ngie2017-05-3016-44/+56
| | | | | | | | | | | r313169 (by wblock): Clarify some option descriptions, add a line of text to makeman to add the slightest hint of a shade of a clue of what it does. r319246: Use .Xr to reference libblacklist(3), blacklistctl(8), and blacklistd(8)
* MFC r317168:ngie2017-05-304-778/+9
| | | | | | | | | | | Add a knob, WITH*_RPCBIND_WARMSTART_SUPPORT, to allow the end-user to build rpcbind(8) with/without warmstart support. The knob defaults to off to preserve POLA for the feature. See rpcbind(8) for more details about the warmstart feature. Relnotes: yes
* MFC r317155,r317162,r317163,r317164:ngie2017-05-302-6/+29
| | | | | | | | | | | | | | | | | | | | | | | r317155: rpcbind(8): wordsmith -h description and mention -W in the SYNOPSIS section -W was already documented in the OPTIONS section. r317162: rpcbind(8): add a description for /var/run/rpcbind.sock under the FILES section r317163: rpcbind(8): post-humously document -w (warmstart) support added in r74462 warmstart support saves portmap/rpcbind(8) registration state on exit and restores the saved registration state on restart. r317164: Fix indentation per style.Makefile(5)
* MFC r318305: makeman: reword description, based on feedback from wblockemaste2017-05-301-7/+7
|
* MFC arch.7 man page describing some arch-specific detailsemaste2017-05-302-0/+352
| | | | | | | | | MFC of r318386, r317938, r317844, r317843, r317840, r317835, r317809, r317790, r317754, r317708, r317681, r312563, r308251, r308130, r307687, r303153, r303134, r303045, r303044, r303033 Changes by br, emaste, jhb, jhibbits, kevlo, kib Sponsored by: The FreeBSD Foundation
* MFC r318316: uniq: allow -c to be used with -d or -uemaste2017-05-302-20/+9
| | | | | | | | | | | | | | | | | | | Bring in some bits from NetBSD and lift the restriction in uniq(1) that -c cannot be used with the -d and -u options. This restriction seems unnecessary and is supported at least by GNU, OpenBSD, and NetBSD. Lift the restriction and simplify the show() logic a little bit to maintain functionality when -c is provided with -d/-u. Also with this change, -d and -u are now actually a mutually exclusive, albeit valid, combination. Given that they both indicate opposite behavior, uniq(1) will no longer output anything if both -d and -u are supplied. This is in line with NetBSD as well as GNU. Adjust the man page and usage() to reflect that -c is its own standalone option. PR: 200553 Submitted by: Kyle Evans <kevans91@ksu.edu>
* MFC r318689: Add parent interface reference counting to if_vlan.mav2017-05-301-14/+26
| | | | Using plain ifunit() looks like a request for troubles.
* MFC r318593:asomers2017-05-302-10/+13
| | | | | | Fix build of AIO tests with -DDEBUG Also, redefine some constants for clarity. No functional change.
* MFC r318141, r318143-r318144asomers2017-05-302-3/+8
| | | | | | | | | | | | | | | | | | | | | | | r318141: strcpy => strlcpy Reported by: Coverity CID: 1352771 Sponsored by: Spectra Logic Corp r318143: strcpy => strlcpy Reported by: Coverity CID: 1006715 Sponsored by: Spectra Logic Corp r318144: Don't depend on assert(3) getting evaluated Reported by: imp X-MFC-With: 318141, 318143 Sponsored by: Spectra Logic Corp
OpenPOWER on IntegriCloud