summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2011-12-08bugfix: make reclaiming of index slots actually work;Ingo Schwarze
index_prune always counted the free slots, but didn't tell anybody about them, so they weren't reused
2011-12-07fix some harmless and/or unreachable int overflows;Damien Miller
reported Xi Wang, ok markus@
2011-12-07Implement search support for 24 additional macros, extract more informationIngo Schwarze
from Fn, and lift section restrictions from An Cd Er Ev Fn Fo In Pa St Va Vt by removing 4 handler functions and 50 lines of code. ok kristaps@
2011-12-05Use absolute filenames while pushing and popping off the stack.lum
This fixes a segv discovered by Olivier A and reported to Sunil Nimmagadda, who provided the actual fix. Tested by myself and Oliver A.
2011-12-05As requested by kristaps@, add and improve comments related to -Omdoc;Ingo Schwarze
while here, clean up some redundant initializations in print_man_head().
2011-12-04revert:Damien Miller
> revision 1.32 > date: 2011/12/02 00:41:56; author: djm; state: Exp; lines: +4 -1 > fix bz#1948: ssh -f doesn't fork for multiplexed connection. > ok dtucker@ it interacts badly with ControlPersist
2011-12-04Support "jump to" like vi in copy mode using t and T keys. Also add xNicholas Marriott
and X for delete in edit mode. From Ben Boeckel, thanks.
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.