summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2011-12-04Fix parsing of file names given on the command line; i broke itIngo Schwarze
when adding support for formatted manual pages.
2011-12-04Fix some warnx() calls which should be fprintf plus KNF.Christiano F. Haesbaert
2011-12-04When a man document contains nothing at all except one or more invalidIngo Schwarze
macros, do not die on an assertion, but show correct error messages. Assertions of meta data validity suggested by joerg@. ok joerg@
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@
2011-12-03remove useless "#ifdef __linux__" that crept in,Ingo Schwarze
and trivial sync to bsd.lv (two new comments)
2011-12-03Make the mandocdb(8) format endian-neutral by storing integer dataIngo Schwarze
in network byte order; from kristaps@. Hopefully, this finishes the database format. This commit requires another rebuild of your mandoc databases by running "sudo mandocdb".
2011-12-02update currency exchange rates;Jason McIntyre
2011-12-02don't use a "server" flag, just check if we expose sub-devicesAlexandre Ratchov
2011-12-02reuse midi-control code to implement midi thru boxes and removeAlexandre Ratchov
the old midithru implementation; less code, less bugs. As a side effect, midi output doesn't implement running status "compression" any more.
2011-12-02initialize device reference counter, unbreaks -aoffAlexandre Ratchov
with MALLOC_OPTIONS=J
2011-12-02remove unused 'reqrate' parameterAlexandre Ratchov
2011-12-02don't add .wav header to .syx filesAlexandre Ratchov
2011-12-02In man(7), when no explicit volume name is given, use the defaultIngo Schwarze
volume name for the respective manual section, just like in mdoc(7). This gives us nicer page headers for cvs(1), lynx(1), tic(1), mkhybrid(8), and many curses(3) manuals. ok kristaps@ To not break compatibility, i wrote a corresponding patch for GNU troff which Werner Lemberg accepted upstream at rev. 1.65 of: http://cvs.savannah.gnu.org/viewvc/groff/tmac/an-old.tmac?root=groff
2011-12-02fix bz#1934: newer OpenSSL versions will require HMAC_CTX_Init beforeDamien Miller
HMAC_init (this change in policy seems insane to me) ok dtucker@
2011-12-02fix bz#1948: ssh -f doesn't fork for multiplexed connection.Damien Miller
ok dtucker@
2011-12-01Log terminal overrides.Nicholas Marriott
2011-12-01Fix mandocdb(8) to pass over the type when pruning the database.Ingo Schwarze
This fixed `-d' perpetually adding the same files. While here, remove -vv, clean up the code and document it. From kristaps@.
2011-12-01Add home and end keys for command prompt, from Matthias Lederhofer.Nicholas Marriott
2011-12-01Make M-f and M-b work the same at the command prompt as in copy mode,Nicholas Marriott
pointed out by Romain Francoise.
2011-11-29Sync to bsd.lv, mostly from kristaps@.Ingo Schwarze
Make `-i' only apply to regular expressions. For substring matches, always use strcasestr(). Also, improve some manuals and comments.
2011-11-29minor whitespace fixDavid Gwynne
2011-11-29use a u_int64_t for the state id in pfsync_state. this makes it consistentDavid Gwynne
with every other thing that stores the state id (including other pfsync messages). includes improvements to the systat code to consider the creatorid as well as the state id in its cache to avoid collisions between states created on different hosts. tested by me in production and on amd64 talking to sparc64. ok henning@
2011-11-29Missing wordlen check from version 1.20. Spotted by matthew@lum
2011-11-29tables of matchable keys; from kristaps@Ingo Schwarze
2011-11-28Fix a few grating comment typos.Matthew Dempsky
2011-11-28jmc's suggested text for the ctags man page update was slightylum
different in the committed version. Change to his original text, requested by him.
2011-11-28Change behaviour of M-q (fill-paragraph) to allowlum
double-space after /[.?!]\)?/ From a diff sent to tech@ by Matthew Dempsky some months ago.
2011-11-28Add some ctags support to mg. From Sunil Nimmagadda.lum
Man page review and suggestions from jmc@ Revewied and tested by myself, and ok deraadt@
2011-11-28Discuss the default behaviour up front before talking about optionsIngo Schwarze
modifying it; based on a remark by kristaps@. While here, mention parsing of unformatted files and the changed index format and fix a few minor issues.
2011-11-28Put back the chdir(2) to the right man page tree before parsing manuals;Ingo Schwarze
this got lost during the bsd.lv sync in rev. 1.10; oops. This is required for processing .so links: otherwise, several files in Xenocara fail to parse and cause ugly complaints instead.
2011-11-28Implement whatis(1) as a special apropos(1) mode as a part ofIngo Schwarze
the mandoc(1) binary; not yet enabled for the general public. Intended to replace src/usr.bin/whatis at a later time. Coded by kristaps@, with a few tweaks by me. To test this: $ mandocdb # unless you have already done so earlier $ sudo ln -s /usr/bin/mandoc /usr/bin/whatis.m $ whatis.m mandoc apropos whatis $ whatis.m man
2011-11-27Reimplement the global command line options -a and -vIngo Schwarze
as static global variables, reducing the maze of arguments passed around among various static functions. Suggested by kristaps@.
2011-11-27Save the manual type (mdoc, man, or cat) in the index fileIngo Schwarze
of the mandoc databases, as suggested by kristaps@. Given the well-structured code, this is surprisingly simple. This changes the mandoc.index database format. Run "sudo mandocdb" to regenerate your databases.
2011-11-27Rudimentary handling of formatted manuals ("cat pages").Ingo Schwarze
Coded on the train back from p2k11 in Budapest. Kristaps has seen the patch and agreed with the direction.
2011-11-26Resync to bsd.lv, most code from kristaps@.Ingo Schwarze
In particular, support the MANPATH environment variable and don't confuse index record numbers when working with multiple mandoc databases at once. Besides, remove lots of gratuitious code and whitespace differences.
2011-11-26minor sync to bsd.lvIngo Schwarze
2011-11-20Move mmc/mtc and volume control bits from struct aproc to structAlexandre Ratchov
dev. Allows volume settings to be saved while the device is kept closed. Besides that, no behabiour changes.
2011-11-19Avoid a NULL pointer access if an .Rs block body contains nothingIngo Schwarze
but invalid nodes. Output still differs a lot from groff, but at least let's not crash. Problem found and patch provided by joerg@, thanks!
2011-11-18Support parenthised subexpressions in apropos(1);Ingo Schwarze
written by kristaps@, massive conflict resolution by me. Lightly tested, putting it in for polishing it in-tree. This concludes p2k11 for me, thanks robert@!
2011-11-17+.Xr cvs 1 ,Jason McIntyre
from Michael W. Bombardieri;
2011-11-17Change the search type mask from 32 to 64 bit such that a full setIngo Schwarze
of search types can be supported in the future. While here, replace a couple of memcpy(3)s by proper, statically type-checked assignments, and de-obfuscate some magical numbers using sizeof().
2011-11-17Fix a pasto that prevented detection of mandoc.index dbopen(3) failure.Ingo Schwarze
And as suggested by kristaps@, improve a lot of comments.
2011-11-17Minimal man.conf(5) _whatdb support for mandocdb(8) and apropos(1),Ingo Schwarze
and add the standard options -M and -m to apropos(1). Including a bugfix to prevent mandocdb(8) from leaking database file descriptors.
2011-11-17ISO style "%Y-%m-%d" dates are common in man(7) .TH.Ingo Schwarze
They have been considered valid in the past, but were reformatted to the mdoc(7) "Month day, year" style. To make page footers more similar to groff, no longer reformat them, just print them as they are. This doesn't change anything with respect to what's considered valid or what is warned about. Putting this in now such that i can improve the unit test suite.
2011-11-17 - Fix parts of xenocara on static arches such as vax.Jasper Lievisse Adriaanse
reported by todd@ and sebastia@ tested by sebastia@ with xdm on vax.
2011-11-16mark the device as closed before closing streams attached to it.Alexandre Ratchov
otherwise a stream may try to close the device a second time.
2011-11-16prefix device-specific messages by the device name, since weAlexandre Ratchov
support multiple devices
2011-11-16When processing .Sh HEAD, as soon as we know which section this is,Ingo Schwarze
fix up the section attributes of the HEAD, it's parent BLOCK, and all its (text) children. This is required because the section attributes get set when each node is allocated, i.e. before processing the content of the node itself. Thus, the listed nodes got the section attribute of the preceding section. No need to fix up the BODY, all is fine there already. Found while implementing TYPE_Sh for mandocdb(8).
2011-11-16When a .TP block is broken but already contains a head element,Ingo Schwarze
do not abort(), but delete the head together with the block itself. Problem found and patch provided by joerg@, thanks!
2011-11-16Support multiple search terms, and logical operations -a and -oIngo Schwarze
to combine them. The default remains -o; usual precedence applies. No explicit grouping by parentheses yet. from kristaps@