summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2018-08-29Reset line flag when clearing selection, GitHub issue 1454.Nicholas Marriott
2018-08-29recognize kcov ioctl commands; ok deraadt@ mpi@ visa@anton
2018-08-29Keep any text killed in the command prompt with C-w and yank it withNicholas Marriott
C-y, only use the top buffer if no text has previously been killed. This and previous change promped by discussion with kn@.
2018-08-29Add C-Left and C-Right as aliases for M-b and M-f.Nicholas Marriott
2018-08-29Add set-case-replaced to toggle case-preserving replace on or off.Reyk Floeter
By default, replacing "foo" with "bar" turns "FOO" into "BAR". With case-replace turned off, "FOO" will turn into "bar". OK florian@ tb@
2018-08-28Drop SSLv2, SSLv3 support.cheloha
No need to check for SSLv2/3 sessions when printing the tally mark. Also do SSLv23_client_method -> TLS_client_method. ok jsing@
2018-08-28fix misplaced parenthesis inside if-clause. it's harmless and the only issue isRicardo Mestre
showing an unknown error (since it's not defined) during fatal(), if it ever an error occurs inside that condition. OK deraadt@ markus@ djm@
2018-08-28fix build with DEBUG_PK enabledRicardo Mestre
OK dtucker@
2018-08-28Check for SSL_write(3) error.cheloha
jsing@ notes that this is not a complete solution, as we don't account for retries or partial writes, but that this is a step in a right direction. May want to revisit this later to provide a complete solution. ok jsing@
2018-08-27Reduce excessive right padding in tagged list heads.Ingo Schwarze
The 1.2em was an approximate equivalent of the 2n traditionally used for terminal display, but it is much too wide for HTML rendering. Issue reported by mikeb@.
2018-08-27Memory leaks, from Gang Fan in GitHub issue 1453.Nicholas Marriott
2018-08-26Handle fork() errors. The Perl fork() wrapper returns undef ratherChristian Weisgerber
than -1 on error. ok jca@
2018-08-26Support nesting of elements with next-line scope.Ingo Schwarze
For example, ksh93(1) needs this for .B\n.SM.
2018-08-26Add q: format prefix to escape sh(1) special characters. Suggested byNicholas Marriott
someone ages ago and then more recently in GitHub issue 1449.
2018-08-25Rudimentary implementation of the roff(7) .char (output glyphIngo Schwarze
definition) request, used for example by groff_hdtbl(7). This simplistic implementation may interact incorrectly with the .tr (input character translation) request. But come on, you are not only using .char *and* .tr, but you do so with respect to the same character in the same manual page?
2018-08-25If man(7) next-line scope is open and the line ends with \c,Ingo Schwarze
the scope remains open. Needed for example for groff_man(7).
2018-08-24update usage for pkcs8;Jason McIntyre
ok tb
2018-08-24Rudimentary implementation of the roff(7) .while request.Ingo Schwarze
Needed for example by groff_hdtbl(7). There are two limitations: It does not support nested .while requests yet, and each .while loop must start and end in the same scope. The roff_parseln() return codes are now more flexible and allow OR'ing options.
2018-08-24The broken pkcs8 formats generated by openssl pkcs -{embed,nooct,nsdb}Theo Buehler
are no longer supported. Remove their documentation. ok jsing
2018-08-24Stop handling broken PKCS#8 formats in openssl(1).Theo Buehler
ok jsing
2018-08-23The upcoming .while request will have to re-execute roff(7) linesIngo Schwarze
parsed earlier, so they will have to be saved for reuse - but the read.c preparser does not know yet whether a line contains a .while request before passing it to the roff parser. To cope with that, save all parsed lines for now. Even shortens the code by 20 lines.
2018-08-23all_jobs can be static.Nicholas Marriott
2018-08-23A sequence of increasingly restrictive pledges was already presentTheo de Raadt
in su. Rearrange them slightly, so that a unveil's can be added also. (Sometimes you only learn a required path late in the game, you don't know them upfront at program start. That is the tricky bit)
2018-08-23Move job struct into job.c.Nicholas Marriott
2018-08-23Implement the roff(7) .shift and .return requests,Ingo Schwarze
for example used by groff_hdtbl(7) and groff_mom(7). Also correctly interpolate arguments during nested macro execution even after .shift and .return, implemented using a stack of argument arrays. Note that only read.c, but not roff.c can detect the end of a macro execution, and the existence of .shift implies that arguments cannot be interpolated up front, so unfortunately, this includes a partial revert of roff.c rev. 1.209, moving argument interpolation back into the function roff_res().
2018-08-23memleak introduced in r1.83; from Colin WatsonDamien Miller
2018-08-22Use a monotonic clock for the benchmark timeout.cheloha
While here, we don't need the app_timer_* wrapper function, it only obfuscates things, so delete it. Also while here, totalTime only needs to be assigned once. ok tb@
2018-08-22Add StatusLeft and StatusRight mouse key modifiers for the left andNicholas Marriott
right parts of the status line.
2018-08-21Implement the \\$@ escape sequence (insert all macro arguments,Ingo Schwarze
quoted) in addition to the already supported \\$* (similar, but unquoted). Then use \\$@ to improve the implementation of the .als request (macro alias). Needed by groff_hdtbl(7). Gosh, it feels like the manual pages of the groff package are exercising every bloody roff(7) feature under the sun. In the manual page source code itself, not merely in the implementation of the used macro packages, that is.
2018-08-21Improve the ASCII rendering of \(Po (Pound Sterling)Ingo Schwarze
and of the playing card suits to match groff, using feedback from Ralph Corderoy <ralph at inputplus dot co dot uk>.
2018-08-21Merge duplicate benchmark() GET/SSL_shutdown blocks into doConnection().cheloha
We need to then remove the shadow i from the GET block. While there, move retval's declaration to the beginning of the function. As doConnection() now executes the body of the benchmark's test, rename it to "run_test". Shadow variable spotted by tb@. ok tb@
2018-08-21AIX reports the CODESET as "ISO8859-1" in the POSIX locale.Ingo Schwarze
Treating that as a safe encoding is OK because even when other systems return that string for real ISO8859-1, it is still safe in the sense that it is ASCII-compatible and stateless. Issue reported by Val dot Baranov at duke dot edu. Additional information provided by Michael dot Felt at felt dot demon dot nl. Tested by Michael Felt on AIX 6.1 and by Val Baranov on AIX 7.1. Tweak and OK djm@.
2018-08-21Fix some issues found looking at groff_char(7):Ingo Schwarze
* Add two missing characters, \('Y and \('y. * The Weierstrass p is not capital, see http://unicode.org/notes/tn27/. * Add a groff-compatible ASCII transliteration for U+02DC: "~".
2018-08-20Move offset of window list into status struct.Nicholas Marriott
2018-08-20\f[] means \fP, not \fRIngo Schwarze
2018-08-20Expand \n(.$ (the number of macro arguments) right in roff_userdef(),Ingo Schwarze
before even reparsing the expanded macro. That is the least dirty way to fix the bug that \(.$ remained set after execution of the user-defined macro ended. Any other way to fix it would probably require changes to read.c, which really shouldn't be bothered with such roff(7) internals.
2018-08-20Add -Z to find-window as well.Nicholas Marriott
2018-08-20Fix problems with page scrolling in copy mode, GitHub issue 1440 fromNicholas Marriott
Amos Bird.
2018-08-19Add the \) special character, a variant of \& so arcane that iIngo Schwarze
intentionally leave it undocumented. Abused for example in the groff(7) manual page.
2018-08-19Do alignment of non-numeric strings in numeric cells the same wayIngo Schwarze
as groff, and also honour the explicit alignment indicator "\&". This required an almost complete rewrite of both the measurement function and the formatter function for numeric cells.
2018-08-19Add a flag to force redrawing of the status line even if the contentNicholas Marriott
hasn't changed, needed for resizing.
2018-08-19Don't leak a strdup()'ed string on error in do_accept().Theo Buehler
CID #154702. input & ok inoguchi, ok mestre on first version
2018-08-19do not print horizontal lines inside vertical spansIngo Schwarze
2018-08-19Expand \u and \U escape sequences in command strings, from ChristopherNicholas Marriott
Hunt in GitHub issue 1443.
2018-08-19Mostly complete implementation of the 'c' (character available)Ingo Schwarze
roff conditional, except that the .char request still isn't supported and that behaviour differs from groff in many edge cases. But at least valid character names and numbers are now distinguished from invalid ones. This also fixes the bug that parsing of the 'c' conditional was incomplete, which resulted in leaking the tested character to the input parser at the beginning of the body when the condition was inverted.
2018-08-19Add a client redraw-window flag instead of the redraw-all flag and forNicholas Marriott
all just use the three flags together (window, borders, status).
2018-08-18Bugfix: When a line ends with '\ \"', don't strip the trailing spaceIngo Schwarze
because that turned it into a bogus line continuation.
2018-08-18support the highly surprising escape sequence \# (line continuationIngo Schwarze
with comment); used for example by gropdf(1)
2018-08-18paragraphs can contain .MT and .UR blocksIngo Schwarze
2018-08-18If a tbl(7) column contains both text cells and numeric cells,Ingo Schwarze
horizontally align the numbers in the same way as groff does.