summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
2010-05-26sync manualsIngo Schwarze
2010-05-26When a word does not fully fit onto the output line, but it containsIngo Schwarze
at least one hyphen, we already had support for breaking the line a the last fitting hyphen. This patch improves this functionality by only breaking at hyphens in free-form text, and by not breaking at hyphens * at the beginning or end of a word or * immediately preceded or followed by another hyphen or * escaped by a preceding backslash. Before this patch, differences in break-at-hyphen support were one of the major sources of noise in automatic comparisons to mdoc(7) groff output. Now, the remaining differences are hard to find among the noise coming from other sources. Where there are still differences, what we do seems to be better than what groff does, see e.g. the chio(1) exchange and position commands for one of the now rare examples. idea and coding by kristaps@ Besides, this was the last substantial code difference left between bsd.lv and openbsd.org. We are now in full sync.
2010-05-25Don't die if the client has been detached when the job finishes, justNicholas Marriott
don't display the output.
2010-05-25Fix an out-of-date comment.Nicholas Marriott
2010-05-25no more f77;Jason McIntyre
2010-05-25enable support for ``extended'' .wav files since certain programsAlexandre Ratchov
use this format instead of the non-extended one (ex. audio/libao) spotted/suggested by naddy
2010-05-25document that ".if n" is true; requested by kristaps@Ingo Schwarze
2010-05-24- note -o as an extensionJason McIntyre
- sync usage() and synopsis
2010-05-24document ignorance of .ds, .rm and .tr;Ingo Schwarze
requested by kristaps@
2010-05-24document the -o optionTheo de Raadt
2010-05-24Support the -o operation in the non-binutils version, since someTheo de Raadt
architectures still use this (debug kernel builds want to have it). ok miod
2010-05-24plug second meta.source leak in .UT handling; from kristaps@Ingo Schwarze
2010-05-24lift 64-byte max width for Sh (now BUFSIZ); from kristaps@Ingo Schwarze
2010-05-24fix memory leak for .AT; from kristaps@Ingo Schwarze
2010-05-24Fix segfault in mixing old enum types for -Thtml -mdoc; from kristaps@.Ingo Schwarze
2010-05-24sync to bsd.lv: remove needless #include <time.h>Ingo Schwarze
2010-05-24remove the now unused #define MAN_EL_USE,Ingo Schwarze
forgotten when backing my .if/.ie/.el out of libman
2010-05-24The inputIngo Schwarze
.Bl -tag .Sm off .It ... triggered an assertion, which it shouldn't; the warning that .Bl -tag "requires the width argument" is enough. From Joerg Sonnenberger.
2010-05-24sync to bsd.lv:Ingo Schwarze
modern groff produces three blank lines before the man(7) footer; from Joerg Sonnenberger.
2010-05-24Fix the code to add a line break before .Nm in the SYNOPSIS;Ingo Schwarze
patch from Joerg Sonnenberger; this finally fixes the test(1) SYNOPSIS.
2010-05-24Increase performance by saving the list type in struct mdoc_node.Ingo Schwarze
This will eventually be used so that mdoc_macro can know whether to dump list line arguments into the body (`Bl -column' overflowing). Remove a2list() and arg_listtype() because of this. From kristaps@. While merging, fix a regression in mdoc_term.c, print_bvspace(): The bsd.lv version of this broke vertical spacing in .Bl -column.
2010-05-23fix the build (oops, sorry!):Ingo Schwarze
sigvec(3) triggers MANDOCERR_BODYLOST, which must not be fatal
2010-05-23Unified error and warning message system for all of mandoc,Ingo Schwarze
featuring three message levels, as agreed during the mandoc hackathon: * FATAL parser failure, cannot produce any output from this input file: eventually, we hope to convert most of these to ERRORs. * ERROR, meaning mandoc cannot cope fully with the input syntax and will probably lose information or produce structurally garbled output; it will try to produce output anyway but exit non-zero at the end, which is eventually intended to make the ports infrastructure happy. * WARNING, meaning you should clean up the input file, but output is probably mostly OK, so this will not cause error-exit at the end. This commit is mostly just converting the old system to the new one; before the classification will become really reliable, we must check all messages. In particular, * set up a new central message string table in main.c * drop the old message string tables from man.c and mdoc.c * get rid of the piece-meal merr enums in libman and libmdoc * reduce number of error/warning functions from 16 to 6 (still a lot...) While here, handle a few problems more gracefully: * allow .Rv and .Ex to work without a prior .Nm * allow .An to ignore extra arguments * allow undeclared columns in .Bl -column Written by kristaps@.
2010-05-23implement .AT and .UC; from Joerg SonnenbergerIngo Schwarze
2010-05-23Small fix for `D1' and `Bd' in -Thtml; from kristaps@.Ingo Schwarze
2010-05-23Pass in the session, rather than the client, to window modes' key()Nicholas Marriott
function. We were only ever using the client to find the session anyway. This allows send-key to work properly for manipulating copy mode from outside tmux. From Micah Cowan.
2010-05-23remove unused functionCharles Longeau
from tobias@ (loooooong time ago) ok henning@ claudio@ tobias@
2010-05-21colon() returns char*, so s/return (0)/return NULL/Damien Miller
2010-05-20Move the permit-* options to the non-critical "extensions" field for v01Damien Miller
certificates. The logic is that if another implementation fails to implement them then the connection just loses features rather than fails outright. ok markus@
2010-05-20fix logspam when key options (from="..." especially) deny non-matching keys;Damien Miller
reported by henning@ also bz#1765; ok markus@ dtucker@
2010-05-20Support nested roff instructions:Ingo Schwarze
* allow roff_parseln() to be re-run * allow roff_parseln() to manipulate the line buffer offset * support the offset in the man and mdoc libraries * adapt .if, .ie, .el, .ig, .am* and .de* support * interpret some instructions even in conditional-negative context Coded by kristaps during the last day of the mandoc hackathon. To avoid regressions in the OpenBSD tree, commit this together with some small local additions: * detect roff block end "\}" even on macro lines * actually implement the ".if n" conditional * ignore .ds, .rm and .tr in libroff Also back my old .if/.ie/.el-handling out of libman, reverting: man.h 1.15 man.c 1.25 man_macro.c 1.15 man_validate.c 1.19 man_action.c 1.15 man_term.c 1.28 man_html.c 1.9.
2010-05-19Enhance paste-buffer to allow lines to be separated by any string, fromNicholas Marriott
Andrea Barisani.
2010-05-19remove unused variablesCharles Longeau
ok claudio@ michele@
2010-05-18use the right capitalization for "HyperText Transfer Protocol (HTTP)"Igor Sobrado
and "server". fixes for bgplg(8) and relayd.conf(5) suggested by jmc@, good catch! ok jmc@
2010-05-17The function term_flushln() had effectively forked wrt to bsd.lv.Ingo Schwarze
This is the OpenBSD part of the main step to bring it back in sync. At the same time, this prevents trailing whitespace in the output: We delay writing blanks until we are sure printable characters follow. This is achieved by * not using vbl any longer for the control of line breaking * such that vbl can sum up all kinds of white space * before writing a word, printing all the blanks collected in vbl * within the word, adding NBSP chars to vbl, then continuing with the word * after the word, adding blanks to vbl, then starting the next word
2010-05-16Rewrite the main mdoc text parser, mdoc_ptext()Ingo Schwarze
to make it easier to understand and to fix various bugs: * strip white space from the end MDOC_TEXT elements in literal mode * in literal mode, a line may be blank even when containing tabs * escaped backslashes do not escape following characters ok kristaps@
2010-05-16mux support for remote forwarding with dynamic port allocation,Markus Friedl
use with LPORT=`ssh -S muxsocket -R0:localhost:25 -O forward somehost` feedback and ok djm@
2010-05-16sync to bsd.lv: enable .Bl documentationIngo Schwarze
2010-05-16add forgotten header file, duh...Ingo Schwarze
this is needed by Makefile rev. 1.37
2010-05-16allow the single quote as a control character in place of the dotIngo Schwarze
at all relevant places; from kristaps@
2010-05-16In theory, Kristaps never intended to write a roff parser,Ingo Schwarze
but in practice, most real legacy man(7)uals are using so much low level roff that we can't really get away without at least partially handling some roff instructions. As doing this in man(7) only has become messy and as even some mdoc(7) pages need it, start a minimal partial roff preprocessor. As a first step, move handling of .am[i], .de[i] and .ig there. Do not use the roff preprocessor for new manuals! Now that we have three main parser libraries - roff, man and mdoc - each one having its own error handling is becoming messy, too. Thus, start unifying message handling in one central place, introducing a new generic function mmsg(). coded by kristaps@
2010-05-15mdoc_isdelim now returns enum mdelim, not int any more;Ingo Schwarze
noticed by kristaps@ using lint
2010-05-15For .IP, a single space after the head is sufficient;Ingo Schwarze
by Joerg Sonnenberger.
2010-05-15add libelf and libterminfo;Ingo Schwarze
by Joerg Sonnenberger
2010-05-15Joerg Sonnenberger rewrote the comment stripping and line mergingIngo Schwarze
to be easier to follow and slightly faster.
2010-05-15More systematic output width handling by Joerg Sonnenberger:Ingo Schwarze
* save and restore the output width when switching to MANT_LITERAL * add an argument to ascii_alloc to specify the output width * set the default output width to 80 minus 2 characters * OpenBSD local: set the output width to 65 characters for -man
2010-05-15allow non-numeric manual sections in -mdoc;Ingo Schwarze
while here, allow LIBRARY in section 9; by kristaps@
2010-05-15removed restriction on integer manual sections in -man;Ingo Schwarze
by kristaps@
2010-05-15Bugfxing and cleanup by Joerg Sonnenberger, edited by kristaps@:Ingo Schwarze
* Flag errors and warnings in global variables. * Exit with error code if either is not null on exit. * Push down the buffers to the functions using them. * Handle the stdin/file argument in one function. * Use mmap when possible or else read the whole file into a single buffer. * Push buffer resizing into its own function.