summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2010-08-20Centralize handling of literal tabs in term_flushln() in one place,Ingo Schwarze
making the code simpler and easier to understand. No functional change.
2010-08-20When a column contains trailing spaces, calculate the paddingIngo Schwarze
to the start of the next column correctly. Fixing a problem found by jmc@ in sysctl(3), reminded by kettenis@.
2010-08-20.Bl -column phrases ignore spacing rules for trailing punctuationIngo Schwarze
and render it just like normal text. Minimal fix of a formatting bug in operator(7) reported by ray@.
2010-08-20fix previous: when bailing out due to -Wstop,Ingo Schwarze
skip output functions, but not *_endparse; problem reported by kristaps@
2010-08-20polish the code: remove few unused #includes, add missing ones,Alexandre Ratchov
fix NULL vs 0, etc. No behaviour change.
2010-08-20Implement a simple, consistent user interface for error handling.Ingo Schwarze
We now have sufficient practical experience to know what we want, so this is intended to be final: - provide -Wlevel (warning, error or fatal) to select what you care about - provide -Wstop to stop after parsing a file with warnings you care about - provide consistent exit status codes for those warnings you care about - fully document what warnings, errors and fatal errors mean - remove all other cruft from the user interface, less is more: - remove all -f knobs along with the whole -f option - remove the old -Werror because calling warnings "fatal" is silly - always finish parsing each file, unless fatal errors prevent that This commit also includes a couple of related simplifications behind the scenes regarding error handling. Feedback and OK kristaps@; Joerg Sonnenberger (NetBSD) and Sascha Wildner (DragonFly BSD) agree with the general direction.
2010-08-19Do not call event_del() for signals after fork(), just use sigaction()Nicholas Marriott
directly instead - calling libevent functions after fork() w/o event_reinit() is a bad idea, even if in this case it was harmless.
2010-08-19Do not need to dup() the tty fd sent from the client because it isNicholas Marriott
already dup()d again later. Fixes a leak seen by espie@.
2010-08-19fix NULL pointer deref in midicat option parsing when ``-'' isAlexandre Ratchov
used as filename
2010-08-18Add a cross reference to patch(1)Ingo Schwarze
as suggested by Thomas de Grivel <billitch at gmail dot com> on tech@. While here, remove the SEE ALSO entries (but not the cross references at the appropriate places!) to fnmatch(3), re_format(7), and pr(1). Their relevance is restricted to one single option each, the latter is mostly obsolete nowadays anyway, and the number of SEE ALSO entries is so large that SEE ALSO is starting to look confusing. "yes" jmc@
2010-08-18Remove the standard pod2man \*(C+ pre-predefined string ("C++").Ingo Schwarze
It is always defined in the preamble using .ds when used in manuals. Since we now support .ds, it is no longer necessary to provide it. Triggered by a bug report from Thomas Jeunet, patch by kristaps@.
2010-08-18Ignore \h (local horizontal motion) and \v (local vertical motion) escapesIngo Schwarze
just in the same way as \s (font size) escapes, and handle \s escapes not having an explicit plus or minus sign. This fixes the very ugly rendering of "C++" in gcc(1). Reported by Thomas Jeunet, fixed by kristaps@.
2010-08-18Correctly print .Lk arguments in -Tascii.Ingo Schwarze
Issue reported by Aldis Berzoja, fix by kristaps@.
2010-08-18Remove mandoc(1) compatibility notes that are no longer relevant;Ingo Schwarze
from kristaps@.
2010-08-18Turn the non-trivial PS_GROWBUF macro into a function.Ingo Schwarze
Don't use MAX, it doesn't exist in the default namespace on Solaris. From Joerg Sonnenberger, with a critical fix by kristaps@.
2010-08-18Simplify and sync the code and comments for copying the macro nameIngo Schwarze
in man_pmacro() and mdoc_pmacro(). In particular, no need to use isgraph(3) here, that has already been done in main.c. Joint work by Kristaps and myself, ok kristaps@.
2010-08-18Use isascii(3) to make sure we really throw away non-ASCII characters,Ingo Schwarze
because isgraph(3) returns true for some eight-bit characters. ok kristaps@
2010-08-17several fixes from netbsd:Jasper Lievisse Adriaanse
Coverity CID 1660: Plug memory leaks. Coverity CID 2989: Use the error path to return. Coverity CID 3212: Don't return, goto out in all cases so that cleanup happens. ok otto@
2010-08-16backout previous temporarily; discussed with deraadt@Damien Miller
2010-08-12OpenSSL_add_all_algorithms is the name of the function we have a man pageTed Unangst
for, so use that. ok djm
2010-08-12some inconsequential cleanups. ok deraadtTed Unangst
2010-08-12close any extra file descriptors inherited from parent at start andDamien Miller
reopen stdin/stdout to /dev/null when forking for ControlPersist. prevents tools that fork and run a captive ssh for communication from failing to exit when the ssh completes while they wait for these fds to close. The inherited fds may persist arbitrarily long if a background mux master has been started by ControlPersist. cvs and scp were effected by this. "please commit" markus@
2010-08-12make fgetln fixups look like the man page. correct a pair of brances andTed Unangst
some other style tweaks
2010-08-11plug several resource leaksJasper Lievisse Adriaanse
help and ok millert@ (ok deraadt@ for an earlier version of this diff)
2010-08-11Do not allow duplicate session names to be created, reported by DominikNicholas Marriott
Honnef, patch from Thomas Adam.
2010-08-11Handle failure to change mode, to avoid dying when switching into copyNicholas Marriott
mode when already in a different mode. Reported by "Florian".
2010-08-11Usage string fixes from Ben Boeckel.Nicholas Marriott
2010-08-11Treat trying to link or move to the same window as an error to avoidNicholas Marriott
removing it accidentally.
2010-08-11Change the way backoff works. Instead of stopping reading from the ptyNicholas Marriott
when the client tty backs up too much, just stop updating the tty and only update the internal screen. Then when the tty recovers, force a redraw. This prevents a dodgy client from causing other clients to go into backoff while still allowing tmux to be responsive (locally) when seeing lots of output.
2010-08-11Show which pane is active in the list-panes output, suggested by DominikNicholas Marriott
Honnef.
2010-08-10s/Usage/usage/Igor Sobrado
2010-08-10add a description for bsd.sp where appropriate; while here, writeIgor Sobrado
"multiprocessor" in a consistent way. written with lots of good advice from jmc@, who noted that changing hier(7) was not enough and carefully reviewed this diff. ok jmc@
2010-08-09Match -m prompt string in man page with code. From Daniel MalamentRay Lai
danielm at bluetiger dot net, PR 6234. OK millert
2010-08-09Remove extra `.' from -m prompt string. From Daniel Malament danielmRay Lai
at bluetiger dot net, PR 6234. OK millert
2010-08-08use the same template for all FILES sections; i.e. -compact/.Pp where weJason McIntyre
have multiple items, and .Pa for path names;
2010-08-08crank to 5.6Damien Miller
2010-08-08convert some of the weirder displays into lists, to avoid mangling;Jason McIntyre
2010-08-07Groff allows the initial macro on a line to be delimited by a spaceIngo Schwarze
of by a tab; so allow the tab in mandoc, too. Bug found by me, fix by kristaps@, "sure" deraadt@.
2010-08-07In -Thtml output, preserve blank lines at the end of .Bd -literal.Ingo Schwarze
Patch from kristaps@, analoguous to mdoc_term.c rev. 1.100. With permission from deraadt@ to still fix bugs in mandoc.
2010-08-05Fix a trio of bugs in the local/remote window calculation for datagramDamien Miller
data channels (i.e. TunnelForward): Calculate local_consumed correctly in channel_handle_wfd() by measuring the delta to buffer_len(c->output) from when we start to when we finish. The proximal problem here is that the output_filter we use in portable modified the length of the dequeued datagram (to futz with the headers for !OpenBSD). In channel_output_poll(), don't enqueue datagrams that won't fit in the peer's advertised packet size (highly unlikely to ever occur) or which won't fit in the peer's remaining window (more likely). In channel_input_data(), account for the 4-byte string header in datagram packets that we accept from the peer and enqueue in c->output. report, analysis and testing 2/3 cases from wierbows AT us.ibm.com; "looks good" markus@
2010-08-04exit(2) on xcalloc failure. From Daniel Dickman <didickman () gmailRay Lai
! com>, thanks! OK deraadt
2010-08-04switch back to kqueue for now, since (a) kqueue has been fixed to dealTheo de Raadt
with strange devices and (b) since there appears to be a bull in the poll code in libevent as well... requested by nicm who is away
2010-08-04In .Bd -literal, break the output line after the last element of eachIngo Schwarze
input line, not after the first element. Since free-form text lines only have a single element in literal mode, this is only relevant for macro lines inside literal displays, and only for those containing more than one macro. Fixes e.g. awk(1) and boot_config(8). Note this fix differs from what kristaps@ committed to bsd.lv because those changes introduce regressions with respect to blank lines in literal mode. With permission from deraadt@ to still fix bugs in mandoc.
2010-08-04Add missing #ifndef YY_NO_INPUT around the input() function whenTodd C. Miller
"%option noinput" is specified. OK deraadt@
2010-08-04clean for -WuninitializedDamien Miller
2010-08-04Support CA keys in PKCS#11 tokens; feedback and ok markus@Damien Miller
2010-08-04commited the wrong version of the hostbased certificate diff; thisDamien Miller
version replaces some strlc{py,at} verbosity with xasprintf() at the request of markus@
2010-08-04enable certificates for hostbased authentication, from Iain Morgan;Damien Miller
"looks ok" markus@
2010-08-04tighten the rules for certificate encoding by requiring that optionsDamien Miller
appear in lexical order and make our ssh-keygen comply. ok markus@
2010-08-04Remove mentions of weird "addr/port" alternate address format for IPv6Damien Miller
addresses combinations. It hasn't worked for ages and we have supported the more commen "[addr]:port" format for a long time. ok jmc@ markus@