summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
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@
2011-11-16Don't leak list in complete_cmd_parse if there are no commands found.Owain Ainsworth
Discovered when I was ``borrowing'' this code for something else. ok djm@
2011-11-16Don't create a history file called -... doh. Pointed out by jmc.Nicholas Marriott
2011-11-16consider there's no dependency between two aprocs, ifAlexandre Ratchov
one of them is NULL
2011-11-15Add word movement and editing command for command prompt editing, fromNicholas Marriott
Ben Boeckel.
2011-11-15Move word-separators to be a session rather than window option, from BenNicholas Marriott
Boeckel.
2011-11-15Add a pane_index format string and use it, from Ben Boeckel.Nicholas Marriott
2011-11-15Make window_pane_index work the same as window_index, from Ben Boeckel.Nicholas Marriott
2011-11-15Disable LESSHISTFILE by default, requested by deraadt.Nicholas Marriott
2011-11-15make midi 'owner' pointer per-outputAlexandre Ratchov
2011-11-15add missing full stop;Jason McIntyre
2011-11-15Add a "device number" component in sndio(7) device names, allowing aAlexandre Ratchov
single aucat instance to handle all audio and MIDI services. Since this partially breaks compatibility, this is a opportunitiy to fix few other design mistakes (eg ':' being used by inet6, type name vs api name confusion, etc..). This leads to the following names: type[@hostname][,unit]/devnum[.option] The device number is the minor device number for direct hardware access (ie the 'N' in /dev/audioN). For aucat, this is the occurence number of the -f (or -M) option. There's a compatibility hook to keep old names working if only one aucat server is running.
2011-11-14Store page titles in the correct case, and by default, onlyIngo Schwarze
put stuff into the database that man(1) will be able to retrieve. However, support an option to use all directories and files. Kristaps@ agreed with the general direction and provided some feedback.
2011-11-13Implement mdoc(7)-like output style variant for man(7) documents:Ingo Schwarze
* one instead of three blank lines after the page header; * one instead of three blank lines before the page footer; * source instead of title(section) in the lower right corner. Select this style variant with the undocumented command line option -Omdoc.
2011-11-13Make the man(7) page footer the same as in groff.Ingo Schwarze
2011-11-13overful -> overfull;Jason McIntyre
2011-11-13Support -man -Omdoc to format man(7) manuals in mdoc(7) output style;Ingo Schwarze
so far, this is only accepting the option, i will commit the (few) formatting tweaks separately. This is intentionally undocumented for two reasons: (1) We dream of making it the default at some point, so the option will hopefully go away again. (2) It is not needed for production, but mostly for automated man(7) to mdoc(7) output comparisons, to help -Tman development.
2011-11-13Make the default left text margin configurable from the command line,Ingo Schwarze
just like the default right margin already is. This may be useful for people with expensive screen real estate. Besides, it helps automated man(7) to mdoc(7) output comparisons to validate -Tman output. ok kristaps@ on an earlier version
2011-11-13Rewrite the expression parser for a more concise syntax:Ingo Schwarze
apropos [search_type[,...]=]substring apropos search_type[,...][,i]~regex ... and expression evaluation must take the search type into account. This allows to: * drop the global -I option and * drop the enum match, just using a boolean int. "go ahead" kristaps@
2011-11-13Inventing new keywords for mostly the same thing when a well-establishedIngo Schwarze
set of keywords already exists is a bad idea, so reuse the mdoc(7) macro names as apropos(1) search types. This is a gain in brevity as well. Some time ago, kristaps@ agreed in principle. The search type bit field constants are used by both mandocdb(8) and apropos(1) and should better stay in sync, so give them their own header file.
2011-11-13Split the common code to be reused by other mandocdb clients,Ingo Schwarze
for example the future man.cgi, out of apropos.c (which still contains the apropos(1) main program, command line handling, and the terminal output formatter) into apropos_db.{h,c} (which now contains the database searching backend code). ... and actually commit the two new files. Oops.
2011-11-13Split the common code to be reused by other mandocdb clients,Ingo Schwarze
for example the future man.cgi, out of apropos.c (which still contains the apropos(1) main program, command line handling, and the terminal output formatter) into apropos_db.{h,c} (which now contains the database searching backend code). While here, * Drop the -e option; to search for exact strings, use REs. * Drop the -r option (more changes related to this coming soon). * Use the traditional -s and -S instead of inventing our own options. * Drop the sort option (at least for now), it got in the way. Written by kristaps@.
2011-11-13Fix two crashes that occur when walking very large (i.e. real-world) trees:Ingo Schwarze
1) Avoid excessive, needless recursion lest you overflow the stack; 2) Close dir file descriptors, lest you run out of descriptors. ok kristaps@
2011-11-12mark some arguments "const" that will not be changed; from kristaps@Ingo Schwarze
2011-11-12Parse and ignore the C font family in \f escapes.Ingo Schwarze
Helps with some real-world manuals that (incorrectly) assume that the C font family means "constant width". Suggested by Andreas Vogele, patch by kristaps@.
2011-11-12update currency exchange rates;Jason McIntyre
2011-11-09Fix a trivial copy-and-paste error (sx->sy), from Chris Johnsen.Nicholas Marriott
2011-11-08use -A with traceroute; ok sthenTheo de Raadt
2011-11-08Pass install the -S option to avoid a window where the target isn'tPhilip Guenthe
executable (by mode or content), which can trip up builds with 'make -j' (The generic fix is in share/mk/*; some Makefiles have their own INSTALL lines) ok millert@ deraadt@
2011-11-06improve gm4 compatibility, from Robert Young, thanks !Marc Espie
note that patsubst is non-standard. okay miod@, deraadt@
2011-11-05When the HEAD scope of .TP is broken by another block macro,Ingo Schwarze
do not abort with a FATAL error, but report a regular ERROR, remove the broken .TP from the syntax tree, and prod on. Reported repeatedly by ports people, at least by brad@ and jeremy@. Also fixes rendition(4) in Xenocara.
2011-11-05update currency exchange rates;Jason McIntyre
2011-11-05Missing bits for new keys and buffer indexes, from Tiago CunhaNicholas Marriott
2011-11-05Option to change status line (message) background when using vi keys andNicholas Marriott
in command mode. From Ben Boeckel.
2011-11-03Garbage collect an unused variable.Ingo Schwarze
Found by Michael W. Bombardieri <mwb at bom dot nom dot co> using lint. ok deraadt@
2011-11-03When .TH sets no data, leave the date field in the page footer blank,Ingo Schwarze
do not use the current date. This removes a gratuitous output difference with respect to groff. ok kristaps@
2011-11-03Correct .Eo spacing:Ingo Schwarze
no space between the delimiters and the enclosed text. The mdoc_html.c part was added by kristaps; ok kristaps@.