Commit Graph

13614 Commits

Author SHA1 Message Date
sjg
b4dd1ca28c Avoid calling sysconf for every file loaded.
At start of a meta build this can be measurable overhead.

Patch from bdrewery at freebsd.org
2018-02-22 01:59:28 +00:00
sjg
13b51c6c09 Var_Set: avoid SIGSEGV if val is NULL
A NULL val is handled gracefully (by VarAdd) when
var is not previously set, so we ought not crash
the second time.

PR: 53034
2018-02-18 00:52:42 +00:00
sjg
5984bab77d Avoid unused variable warning 2018-02-13 19:37:30 +00:00
sjg
9d28f87b89 Do not treat .info as warning for -W
Reported by: lwhsu at FreeBSD.org
2018-02-12 21:38:09 +00:00
christos
a58fb25d66 more volatile to appease gcc. 2018-02-11 02:51:58 +00:00
dholland
32cded6cc9 Typos. 2018-02-08 09:05:16 +00:00
christos
fa1c26bf9a mark old compat functions. 2018-02-06 20:15:39 +00:00
christos
e7129348cf use OPENSSL_API_COMPAT 2018-02-06 20:10:05 +00:00
christos
5b83cee45e use OpenSSL-1.1 apis 2018-02-06 19:51:03 +00:00
christos
96cef95189 use BN_is_prime_ex 2018-02-06 19:32:49 +00:00
christos
59b2928637 explicitly include <string.h> since OpenSSL-1.1 does not do it for us. 2018-02-06 19:26:02 +00:00
christos
fa34604a3c Adjust to OpenSSL 1.1 2018-02-06 17:58:19 +00:00
mrg
4695f70791 fixes for GCC 6.4:
- fix an indentation issue in radioioctl().
- fix an indentation issue in mpt_run_xfer().
- grep's printline() has some {} placement issues.
2018-02-05 22:14:26 +00:00
jmcneill
95031fc0dd Fix tools build 2018-02-04 17:33:34 +00:00
jmcneill
4c511e4691 Add support for writing "AArch64 Linux kernel image" format images.
These images begin with a 64-byte header that includes a load offset,
image size, some flags, and a small (2 word) area at the start for
executable code.

These images are compatible with U-Boot's "booti" command, and can be
used to make U-Boot relocate our kernel to a 2MB aligned base address.
After relocation, U-Boot will jump to the code at the beginning of the
header, where we encode a relative branch forward instruction to branch
to the beginning of the kernel at offset +0x40.
2018-02-04 15:44:51 +00:00
mrg
aa20739e7d fixes for GCC 6.4:
mail's execute() needs a volatile for setjmp().

telnet has a missing {} issue.

isdnd's print_config() has a missing/wrong {} issue, and
its p_q931bc() has inconsistent indentation (but not any
actual problem.)

map-mbone's accept_neighbors2() compares a vs. a instead
of a vs. b.

sysinst's pm_cgd_check() has missing {} issue.

timed's main() has missing {} issue.
2018-02-04 09:01:12 +00:00
sevan
7a75668892 drop main() prototype 2018-01-23 22:12:52 +00:00
christos
632b456bd3 fix indent 2018-01-15 22:14:24 +00:00
christos
fbbe58556f Add a _Noreturn token 2018-01-15 21:58:54 +00:00
wiz
e7721e081a Stop using Tn. New sentence, new line. 2018-01-09 09:24:22 +00:00
christos
b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
christos
541fa6f429 Don't print duplicate definitions for inline symbols. 2017-12-26 17:02:19 +00:00
maya
47dee010ce Return a non-zero (one) exit code on failure for one of the files
But keep on processing them, like ls, rm, and other programs do
2017-12-25 05:08:49 +00:00
plunky
666f6884ad consistent style: connect(2), socket(2) and setsockopt(2) return -1
for error so check for this specifically rather than < 0
2017-12-21 09:04:34 +00:00
plunky
655a736e6f fix width of .Bl list 2017-12-21 09:02:47 +00:00
plunky
516fe55a41 fix offset/indent of list 2017-12-21 08:59:27 +00:00
kre
c56c6100f2 Add names of a few more ICMPv6 messages, from RFC6275 (Mobile IPv6)
and RFC4286 (Multicast Router Discovery.) and as shown in the IANA
parameters page available at:
  https://www.ietf.org/assignments/icmpv6-parameters/icmpv6-parameters.txt

Also make the array be explicitly 256 entries long, one for each possible
code, which will detect attempts to insert names without deleting the
place holder (and mean a good solid NULL de-ref if too many place holders
are deleted, rather than just random results.)
2017-12-19 17:05:15 +00:00
bouyer
878cb1cfc5 Fix fallout from hid factorisation:
- need to install sys/dev/hid/hid.h for userland
- include it where needed - most of the time in place if usb/usbhid.h
2017-12-10 20:38:13 +00:00
leot
2c348fc3b0 Fix a typo.
(or, `Emily Dickinson' - the American poet - was born on the same date)
2017-12-09 23:16:27 +00:00
sjg
156dbb683c Ensure VAR+=val on command line is handled correctly
If VAR is not previously set, call Var_Set to deal with
the special case of VAR_CMD.

If VAR is previously set, and ctxt is VAR_CMD we should do the update
even if VAR_FROM_CMD is set.
2017-12-08 03:36:42 +00:00
mrg
2c65d957b0 deref the right address to get the pool_allocator. 2017-12-04 03:05:57 +00:00
mrg
cd83415f42 remove now wrong comment. minor KNF. 2017-12-03 21:10:01 +00:00
mrg
67dafd4718 fix the kvm version of counting pool pages for vmstat -s. 2017-12-03 21:09:01 +00:00
dholland
d3bb758424 Mention the Sand Creek massacre. 2017-12-02 18:07:34 +00:00
mrg
277fd3d5f5 add two new members to uvmexp_sysctl{}: bootpages and poolpages.
bootpages is set to the pages allocated via uvm_pageboot_alloc().
poolpages is calculated from the list of pools nr_pages members.

this brings us closer to having a valid total of pages known by
the system, vs actual pages originally managed.

XXX: poolpages needs some handling for PR_RECURSIVE pools still.
2017-12-02 08:15:42 +00:00
christos
3ee01a2ea9 - make the level computation consistent
- keep going only if things changed.
2017-11-28 15:31:33 +00:00
christos
dd0971df99 use a reference count to avoid deleting psrefs still in use. 2017-11-27 00:25:46 +00:00
jdolecek
c8469e9019 need getle16() for ext.sub_tag too
PR bin/52762 by Yosuke Sugahara
2017-11-25 17:18:15 +00:00
christos
a8dccd7b32 Make outfile always allocated, free it to set it to NULL, and don't move it
around.
2017-11-25 15:39:17 +00:00
christos
e4a9783186 - Instead of checking the recursion level before we recurse, check in on
function entry.
- Always decrement the level and reset levelparent on exit.
2017-11-24 23:42:36 +00:00
christos
0daba4343e Tidy up error messages, line wraps, initialization. NFC. 2017-11-24 18:45:59 +00:00
snj
4678f4dd6f add -b to usage. 2017-11-22 02:52:42 +00:00
kre
23014bc41f Issue PWD commands to the server only when we actually
need the results, not speculatively, just in case we might.

Allows operation with some broken servers that get confused
by PWD commands in some situations, and saves server round
trips in the (modern) common case of
	ftp ftp://path/name
where we never need to know the results from PWD.
2017-11-20 21:11:36 +00:00
christos
536abc0958 Don't print instances we've already printed. 2017-11-19 01:46:29 +00:00
kre
b83cb69bb5 Remove a stray left over debug printf that crashes the builds (ab==NULL). 2017-11-19 00:41:10 +00:00
sjg
b958c10a1a Do not append to variable set on command line
POSIX requires that variables set on the command line
be immutable.
Var_Append needs to pass FIND_CMD and skip append
if found variable has VAR_FROM_CMD flag set.
2017-11-18 22:34:04 +00:00
christos
3011cfe714 Allow multiple attachments methods to the same child+parent combination:
foo* at bar? with baz
    foo* at bar? with barf

Do this by scanning the list of iba's and allocating a new cfparent for
each. Keep track of the shared parent+child combinations by using the
same id for them.
2017-11-18 18:44:20 +00:00
christos
3434d2c82b - Factor out the remove_pspec code into a function.
- Avoid NULL pointer when printing an error.
2017-11-18 18:41:44 +00:00
christos
021dbaa0a1 add more debugging, no functional change. 2017-11-18 18:39:16 +00:00
christos
de334c4e67 avoid creating infinite loops. 2017-11-18 01:11:05 +00:00