summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r300428:ngie2016-06-081-1/+1
| | | | | | | | | Fix humanized decoding of struct stat with respect to .st_mtim st_mtim was being incorrectly described as "stime=", not "mtime=". This was introduced with the original feature commit (r176471). PR: 209699
* MFC r299844,r300931:ngie2016-06-082-2/+2
| | | | | | | | | | | | | | | | | | | r299844: Make hostid_save depend on hostid r300931: Make netif REQUIRE hostid As noted in the PR, if etc/rc.d/zvol is removed, netif will be run before hostid, and the MAC address generated for any bridge devices will be non-deterministic. Make the MAC address generated be deterministic for bridge devices by explicitly REQUIRE'ing hostid. This fixes up the rest of the PR, inadvertently committed in r299844 PR: 195188
* MFC r299843:ngie2016-06-082-1/+2
| | | | | | | Fix broken dependency with routed when MK_ROUTED != no Remove routed as a requirement in NETWORKING, and put it in routed as a BEFORE requirement instead
* MFC r299839,r299840,r299841:ngie2016-06-087-5/+11
| | | | | | | | | | | | | | | | | r299839: Make FILESYSTEMS, dumpon, and var not depend on zfs and zvol Make zfs and zvol come before all of the items that depended on them previously r299840: Conditionalize etc/rc.d/{zfs,zvol} install on MK_ZFS != no r299841: Remove etc/rc.d/{zfs,zvol} if MK_ZFS != no
* MFC r299833:ngie2016-06-081-2/+2
| | | | | | | | Fix fully canonicalized example for `myvariable.27...` `6` doesn't occur in the OID; it was spurious Bump .Dd for the change
* MFC r299657:ngie2016-06-081-0/+2
| | | | Include arpa/inet.h to get the htonl(3) definition
* MFC r300691:kib2016-06-081-7/+28
| | | | Fix issues found by Coverity in the rtld-elf.c:gethints().
* MFC r301102:cy2016-06-081-2/+2
| | | | | | Don't rely on $ntpd_enable to periodically fetch the latest leapfile. Suggested by: cperciva
* MFC r301139truckman2016-06-081-1/+1
| | | | | | | | | | | | The (i < PROMPTLEN - 1) test added by r300442 in the code for the default case of \c in the prompt format string is a no-op. We already passed this test at the top of the loop, and i has not yet been incremented in this path. Change this test to (i < PROMPTLEN - 2). Reported by: Coverity CID: 1008328 Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D6552
* MFC r300564truckman2016-06-071-21/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix CID 1006692 in /usr/sbin/pw pw_log() function and other fixes The length of the name returned from the $LOGNAME and $USER can be very long and it was being concatenated to a fixed length buffer with no bounds checking. Fix this problem by limiting the length of the name copied. Additionally, this name is actually used to create a format string to be used in adding log file entries so embedded % characters in the name could confuse *printf(), and embedded whitespace could confuse a log file parser. Handle the former by escaping each % with an additional %, and handle the latter by simply stripping it out. Clean up the code by moving the variable declarations to the top of the function, formatting them to conform with style, and moving intialization elsewhere. Reduce code indentation by returning early in a couple of places. Reported by: Coverity CID: 1006692 Reviewed by: markj (previous version) Differential Revision: https://reviews.freebsd.org/D6490
* MFC r299921truckman2016-06-071-0/+1
| | | | | | | | Add an assertion to catch a potential underflow in an array index calculation, though this should not happen in the current code. Reported by: Coverity CID: 1008486
* MFC r301235:pfg2016-06-061-2/+2
| | | | | | | | | | dhclient(1): correct obvious mismatch in get_char(). Correct switch between current and previous line buffers when encountering a carriage return in the input. CID: 1305719 Obtained from: OpenBSD (CVS rev. 1.30)
* MFC r297052:grembo2016-06-062-18/+39
| | | | Update fetch.1 and fetch.3 to reflect libfetch's actual use of CA bundles
* MFC r301203kadesai2016-06-064-13/+43
| | | | | | r301203: Added support for Avago/Broadcom Cutlass(12 Gbps- 16 port count) controllers. Sponsored by: AVAGO Technologies/Broadcom Limited
* MFC: r301115ache2016-06-054-0/+8
| | | | | | Don't use fixup for C99 and up, the compiler result is already correct. Suggested by: bde
* MFC: r301448ache2016-06-051-2/+2
| | | | | Reflect error indication according to POSIX and what those functions currently do.
* MFC r301206:pfg2016-06-051-1/+3
| | | | | | | | usb/uhso: Don't bail out on first USB error. CID: 1305680 Submitted by: hselasky MFC after: 3 days
* MFC: r300956ache2016-06-051-41/+11
| | | | | | | | | | | | 1) Unifdef USE_WEAK_SEEDING since it is too obsolete to support and makes reading hard. 2) Instead of doing range transformation in each and every function here, do it single time directly in do_rand(). One "mod" operation overhead is not a big deal, but the code looks nicer and possible future functions additions or PRNG change do not miss range transformations neither have unneeded ones. 3) Use POSIX argument types for visible functions (cosmetic).
* Prepare for merge of r300956. One year old r288030 which fix prototypesache2016-06-051-4/+3
| | | | | can't be merged without conflicts and require merging of other versions too and I don't want to go deep in that unmerged commits chain.
* MFC: r300953ache2016-06-051-47/+15
| | | | | | | | | | | | | | | | | | 1) Unifdef USE_WEAK_SEEDING it is too obsolete to support and makes reading harder. 2) ACM paper require seed to be in [1, 2^31-2] range, so use the same range shifting as already done for rand(3). Also protect srandomdev() + TYPE_0 case (non default) from negative seeds. 3) Don't check for valid "type" range in setstate(), it is always valid as calculated. Instead add a check that rear pointer not exceeed end pointer. MFC: r300965 Micro optimize: C standard guarantees that right shift for unsigned value fills left bits with zero, and we have exact 32bit unsigned value (uint32_t), so there is no reason to add "& 0x7fffffff" here.
* MFC r300429:dchagin2016-06-051-2/+0
| | | | Remove a now unused global declaration of some sysentvec struct.
* MFC r300959:kib2016-06-051-0/+1
| | | | | Do not leak the vm object lock when swap reservation failed, in vm_object_coalesce().
* MFC r300431:dchagin2016-06-051-4/+12
| | | | | | | | Convert proto family in both directions. The linux and native values for local and inet are identical, but for inet6 values differ. PR: 155040 Reported by: Simon Walton
* MFC r300569:dchagin2016-06-051-1/+1
| | | | | | Don't leak fp in case where fo_ioctl() returns an error. Reported by: C Turt <ecturt@gmail.com>
* MFC r300416:dchagin2016-06-051-2/+11
| | | | | | | Add a missing errno translation for SO_ERROR optname. PR: 135458 Reported by: Stefan Schmidt
* MFC r300415:dchagin2016-06-055-26/+6
| | | | Add macro to convert errno and use it when appropriate.
* MFC r300413:dchagin2016-06-051-84/+144
| | | | | | | | | | Due to lack the priority propagation feature replace sx by mutex. WIth this commit NPTL tests are ends in 1 minute faster. MFC r300414: For future use move futex timeout code to the separate function and switch to the high resolution sbintime_t.
* MFC r300412:dchagin2016-06-051-3/+4
| | | | | Add my copyright as I rewrote most of the futex code. Minor style(9) cleanup while here.
* MFC r300411:dchagin2016-06-051-117/+109
| | | | Minor style(9) cleanup, no functional changes.
* MFC r300359, r300360:dchagin2016-06-059-36/+36
| | | | | Correct an argument param of linux_sched_* system calls as a struct l_sched_param does not defined due to it's nature.
* MFC r300341:bdrewery2016-06-042-2/+0
| | | | FTS: Remove stale reference to nfs4 fs which was removed in r192578.
* MFC r300849arybchik2016-06-041-1/+1
| | | | | | | sfxge(4): fix typo in monitor types strings in common code Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300848arybchik2016-06-041-1/+1
| | | | | | | | | | | sfxge(4): avoid necessity to add one more constant condition note Use for forever loop instead of while. Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300847arybchik2016-06-041-2/+3
| | | | | | | | | sfxge(4): cope with always true unsigned comparison with 0 to make lint happier Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300846arybchik2016-06-041-1/+1
| | | | | | | | | sfxge(4): unsigned 1 should be shifted to produce bitmask Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300845arybchik2016-06-041-1/+10
| | | | | | | | | sfxge(4): cope with lint for EFX_SET_OWORD_BIT() with const bit arg Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300844arybchik2016-06-041-2/+1
| | | | | | | | | sfxge(4): remove set but not used variable Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300842arybchik2016-06-042-2/+0
| | | | | | | | | sfxge(4): remove unreachable break after goto Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300841arybchik2016-06-043-0/+3
| | | | | | | | | sfxge(4): add constant condition note to make lint happier Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300840arybchik2016-06-048-1/+25
| | | | | | | | | sfxge(4): note unused variables to make lint happier Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300739arybchik2016-06-041-1/+1
| | | | | | | | | sfxge(4): correct parenthesis location in if coundition Found by lint on illumos. Submitted by: Garrett D'Amore <garrett at damore.org> Sponsored by: Solarflare Communications, Inc.
* MFC r300609arybchik2016-06-042-1/+6
| | | | | | | sfxge(4): enable Medford support Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r300608arybchik2016-06-041-1/+1
| | | | | | sfxge(4): bump driver version to the closest out-of-tree version Sponsored by: Solarflare Communications, Inc.
* MFC r300607arybchik2016-06-0472-72/+72
| | | | | | sfxge(4): cleanup: update copyright to 2016 Sponsored by: Solarflare Communications, Inc.
* MFC r300606arybchik2016-06-043-0/+16
| | | | | | | | | | | sfxge(4): provide option to disable not a local MAC address check Option EFSYS_OPT_ALLOW_UNCONFIGURED_NIC disables check that the adapter MAC address is not a local address (beginning 02). Submitted by: Laurence Evans <levans at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r300605arybchik2016-06-042-3/+19
| | | | | | | | sfxge(4): be ready to receive events immediately after event queues are created Submitted by: Mark Spender <mspender at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc.
* MFC r300505arybchik2016-06-041-16/+0
| | | | | | | | | | | | sfxge(4): cleanup: remove unused EFX preempt macros The EFSYS_PREEMPT_DISABLE() and EFSYS_PREEMPT_ENABLE() macros were used to ensure correct timing of I2C operations. The APIs for I2C operations have been removed, so these macros have no callers. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r300135arybchik2016-06-041-2/+2
| | | | | | sfxge(4): cleanup: remove trailing whitespaces Sponsored by: Solarflare Communications, Inc.
* MFC r300011arybchik2016-06-041-4/+5
| | | | | | | | | | | | sfxge(4): only raise an exception after MC assert or reboot in the common code Fix efx_mcdi_request_poll so it only raises an exception if EIO is reported from a detected MC assert or reboot. This prevents an unnecessary exception being raised if an MCDI response error code is trandlated to EIO. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
* MFC r300010arybchik2016-06-041-0/+3
| | | | | | | sfxge(4): restore clearing of MCDI new epoch flag in common code Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc.
OpenPOWER on IntegriCloud