summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-01-05In no-fill mode, avoid bogus blank lines in two situations:Ingo Schwarze
1. After the last child; the parent will take care of the line break. 2. At the .YS macro; the end of the preceding .SY already broke the line.
2019-01-05Simplify and clarify (i.e. shrink) code processingKenneth R Westerback
the bpf captures.
2019-01-05In groff, when the .SY block macro occurs in no-fill mode,Ingo Schwarze
the output line gets broken after the head. Do the same.
2019-01-05Slowly start doing more HTML output tests, in this case for theIngo Schwarze
interaction of .nf and .RS, related to man_macro.c rev. 1.106. HTML regression testing is tricky because it is extremely prone to over-testing, i.e. unintentional testing for volatile formatting details which are irrelevant for deciding whether the HTML output is good or bad. Minor changes to the formatter - which is still heavily under development - might result in the necessity to repeatedly adjust many test cases. Then again, HTML syntax rules are so complicated that without regression testing, the risk is simply too high that later changes will re-introduce issues that were already fixed earlier. Let's just try to design the tests very carefully in such a way that the *.out_html files contain nothing that is likely to change, and defer testing in cases where the HTML output is not yet clean enough to allow designing tests in such a way.
2019-01-05KNF nit.Kenneth R Westerback
2019-01-05In HTML output, man(7) .RS blocks get formatted as <div class="Bd-indent">,Ingo Schwarze
and i can see no reasonable alternative: they do indeed represent indented displays. They certainly require flow context and make no sense in phrasing context. Consequently, they have to suspend no-fill mode during their head, in just the same way as other paragraph-type macros do it. This fixes HTML syntax errors that resulted from .nf followed by .RS.
2019-01-05fix previous commitMark Kettenis
"please commit asap" deraadt@
2019-01-05Correctly account for the memory allocated when creating a set.Claudio Jeker
Should hopefully fix the error seen on systems after a few reloads where the size became negative. OK benno@
2019-01-05Expand a macro instruction for clang. Unlike gas, the integratedVisa Hankala
assembler does not handle the large immediate value automatically.
2019-01-05Replace two-operand instruction aliases that clang does notVisa Hankala
understand with the three-operand instructions. No binary change with gas.
2019-01-05match arm64 and armv7 and print unconfigured simplebus devices on octeonJonathan Gray
ok and tested by visa@
2019-01-05Add em_pch_cnp to IS_ICH8 macro. Missed when adding em_pch_cnp.Jonathan Gray
2019-01-05regenJonathan Gray
2019-01-05add more intel core and 300 series u idsJonathan Gray
2019-01-05we assumed that there was no such thing as an "mda session" so the logsGilles Chehade
displayed 0000000000000000 as the session id for mda deliveries, but we were wrong. there's actually an identifier that's associated to a batch of envelopes to be delivered to the same user, and this most definitely is a session id for that user.
2019-01-05revert this change, it was committed by accidentGilles Chehade
2019-01-05minor cleanup, no functional change:Ingo Schwarze
* delete one irrelevant FIXME; no more fixed lengths in HTML, please * simplify some conditions * avoid testing pointers as truth values, use "!= NULL" * sort some declarations * delete some pointless blank lines
2019-01-05introduce smtp 'timeout' reporting event to notify filters that a timeoutGilles Chehade
occured during the smtp session
2019-01-05Now that the NODE_NOFILL flag in the syntax tree is accurate,Ingo Schwarze
use it in the man(7) HTML formatter rather than keeping fill mode state locally, resulting in massive simplification (minus 40 LOC). Move the html_fillmode() state handler function to the html.c module such that both the man(7) and the roff(7) formatter (and in the future, also the mdoc(7) formatter) can use it. Give it a query mode, to be invoked with TOKEN_NONE.
2019-01-05no-fill mode has to be suspended during tbl(7) rendering, tooIngo Schwarze
2019-01-05move the DATA bytes accounting a bit earlier so that we don't have to dealGilles Chehade
with it using special cases for when filters are enabled or not.
2019-01-05match arm64 and print unconfigured simplebus devices on armv7Jonathan Gray
ok dlg@ kettenis@
2019-01-05enable ohci at fdt on RAMDISK as wellJonathan Gray
ok dlg@
2019-01-05minor cleanup, no functional change:Ingo Schwarze
* in node type switches, explicitly handle all types, sort them, and abort() on those that cannot occur * avoid testing pointers as truth values, use "!= NULL" * avoid testing "constant == variable", use "variable == constant" * prefer sizeof(var) over sizeof(type) * delete one duplicate function * sort some declarations * delete some useless blank lines
2019-01-05mention fdt attachmentsJonathan Gray
2019-01-05Some high-level block macros have an effect similar to temporarilyIngo Schwarze
suspending no-fill mode during their head. Model this with an additional roff parser state flag ROFF_NONOFILL. That is much simpler than it would be to save and restore the ROFF_NOFILL flag itself, in particular since the latter can be switched (with lasting effect) by the .nf and .fi requests even while its effect is temporarily suspended. This commit does not change formatting yet, but prepares for future formatting simplifications and improvements.
2019-01-04enable ohci at fdtDavid Gwynne
2019-01-04add support for ohci, as found on the pine64David Gwynne
this currently relies on the usbphy code in the ehci fdt glue to work, but this is a work in progress. there's an extra printf of fdt in the dmesg to make the ohci checkrev code not look terrible. ok kettenis@
2019-01-04Don't reopen file if its stdin.Martijn van Duren
From leo_tck at volny dot cz OK millert@
2019-01-04make kernel build without MPLS/mpe/mpwSebastian Benoit
ok claudio@ dlg@
2019-01-04make kernel build without INET6 again.Sebastian Benoit
ok dlg@
2019-01-04Make gas ignore the ".set hardfloat" directive on mips64.Visa Hankala
The directive is needed in certain parts of the kernel code when compiling using clang. By ignoring the directive, the old toolchain will still be able to build the kernel after the code has been adjusted for clang. OK kettenis@
2019-01-04fix the dates that got broken by cvs commitIngo Schwarze
2019-01-04Test interaction of low-level roff(7) filling requests with .Bd in generalIngo Schwarze
and filling in .Bd -centered in particular; related to mdoc_term.c rev. 1.271.
2019-01-04Two functional improvements to filling in terminal output.Ingo Schwarze
1. Fully support no-fill mode in mdoc(7), even when invoked with low-level roff(7) .nf requests. As a side effect, this substantially simplifies the implementation of .Bd -unfilled and .Bd -literal. 2. Let .Bd -centered fill its text, using the new TERMP_CENTER flag. That finally fixes the long-standing bug that it used to operate in no-fill mode, which was known to be wrong for at least five years. This also simplifies the implementation of .Bd -centered considerably.
2019-01-04eliminate function-static attempt counters for passwd/kbdintDamien Miller
authmethods by moving them to the client authctxt; Patch from Markus Schmidt, ok markus@
2019-01-04Simplify the roff(7) .ce and .rj terminal formatter by using theIngo Schwarze
new TERMP_CENTER and TERMP_RIGHT flags. No functional change.
2019-01-04fix memory leak of ciphercontext when rekeying; bz#2942Damien Miller
Patch from Markus Schmidt; ok markus@
2019-01-04Implement centering and adjustment to the right margin directly inIngo Schwarze
the terminal filling routine, controlled by new flags TERMP_CENTER and TERMP_RIGHT. This became possible by the recent term_flushln() rewrite. No functional change yet, but to be used by upcoming commits.
2019-01-04Oops, i forgot to adjust this file to the changes in roff.h rev. 1.49.Ingo Schwarze
Provide a handler for the new .nf and .fi roff(7) request nodes, avoiding a potential crash, and correctly restore the former fill more at .Ed even when there was .nf or .fi inside the block.
2019-01-04test the roff(7) .ce and .rj requests;Ingo Schwarze
they were already supported in the past
2019-01-03add a simplebus print function so unconfigured devices appear in dmesg.David Gwynne
this was avoided previously because during the early stages of the port, there were mostly unsupported devices. the situation is a bit better now, so make the missing drivers more obvious so people can get interested. ok kettenis@
2019-01-03Unbreak build under OPT_DEBUGkn
In r1.39 I removed the `af' parameter from `unmask()' but accidently zapped the macro's closing paranthese. Since DEBUG() is needlessly under an OPT_DEBUG guard, this was not effecting normal builds. Add the missing ')' and remove the ifdef. OK sashan
2019-01-03Fix a collection of covering unveil bugs that prevent unveil's of upperBob Beck
level directories from working when you don't traverse into them starting from /. Most found by brynet@ and a few others. ok brynet@ deraadt@
2019-01-03Drop two unused settings.Jeremie Courreges-Anglas
2019-01-03No support for vax any more, simplify setup.Jeremie Courreges-Anglas
2019-01-03Rewrite the line filling function for terminal output yet again.Ingo Schwarze
This function has always been among the most complicated parts of mandoc, and it repeatedly needed substantial functional enhancements. The present rewrite is required to prepare for the implementation of simultaneous filling and centering of output lines. The previous implementation looked at each word in turn and printed it to the output stream as soon as it was found to still fit on the current output line. Obviously, that approach neither allows centering nor adjustment to the right margin. The new implementation first decides which part of the paragraph to put onto the current output line, also measuring the display width of that part, even if that part consists of multiple words including intervening whitespace. This will allow moving the whole output line to the right as desired before printing it, for example to center it or to adjust it to the right margin. The function is split into three parts, each much shorter, solving a better defined task, much easier to understand and better commented: 1. the steering function term_flushln() looping over output lines; 2. the calculation function term_fill() looping over input characters; 3. and the output function term_field() looping over printed characters. No functional change yet.
2019-01-03Crank MAXTSIZ to next pow2 (256MB) because a few piggy binariesTheo de Raadt
compiled with retpoline enabled are even piggier now. diagnosed with robert kettenis and drahn
2019-01-03Fix .end symbol.Visa Hankala
From Mikhael Skvortsov
2019-01-03The need for separate bpf and routing message buffers was eliminatedKenneth R Westerback
when dhclient moved to processing the entire buffer rather than trying to process one packet per dispatch() loop. So use ifi->rbuf for both purposes, resizing it during initialization to accommodate the larger of the routing socket read size or the bpf socket read size. Eliminates a calloc()/free() per routing socket read.