summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2010-12-31fix trailing whitespace;Jason McIntyre
2010-12-30Remove some unused defines.Nicholas Marriott
2010-12-30Fix BUFFERS section now they are global.Nicholas Marriott
2010-12-30Change from a per-session stack of buffers to one global stack which isNicholas Marriott
much more convenient and also simplifies lot of code. This renders copy-buffer useless and makes buffer-limit now a server option. By Tiago Cunha.
2010-12-30Add syslog.h, wchar.h, and wctype.h #includes and functions.Philip Guenthe
ok millert@
2010-12-30Add a function to create window flags rather than doing the same thingNicholas Marriott
in two places. From Thomas Adam.
2010-12-29Support all four of the xterm mouse modes. Based on a diff from hsim atNicholas Marriott
gmx.li.
2010-12-29Allow the config file parser and source-file to return "don't exit" toNicholas Marriott
the client to let attach work from configuration files.
2010-12-29the random ioctl stuff is not very useful. I want to see all theTheo de Raadt
non-essential parts of rnd.c removed so that we can keep our eye on what the code should be doing. ok tedu who had a similar diff in the past
2010-12-29Reorg by Kristaps: In libmdoc, replace the union of pointers to structsIngo Schwarze
of macro-specific data by a pointer to a union of structs, which makes the code simpler and more robust at the expense of a small memory overhead. Merging was somewhat difficult because we mustn't break tbl(1) support which the bsd.lv version does not yet have.
2010-12-28- add /usr/lib/pkgconfig/ to the paths to look for .pc files, and searchJasper Lievisse Adriaanse
there first (as the original pkgconfig does too).
2010-12-27Remove two #defines that are unused since the *_action.c removal;Ingo Schwarze
from kristaps@.
2010-12-27In case an ID attribute is written in pieces, only protect the firstIngo Schwarze
piece with a prepended 'x', not each piece, such that quoted and unquoted .Sh, .Ss, and .Sx arguments are compatible with each other. Fixing a bug reported by Nicolas Joly <njoly at NetBSD dot org>, avoiding a regression in my first patch as pointed out by njoly as well. "feel free to do so" kristaps@
2010-12-27mktemp(3) (and thus mktemp(1)) no longer use the process ID whenTodd C. Miller
replacing the Xs, it is now purely random. Also replace a use of .Fn that should be .Xr. OK jmc@
2010-12-27tweak previous;Jason McIntyre
2010-12-27Add a missing .Pp and sort options alphabetically, from Tiago Cunha.Nicholas Marriott
2010-12-26Behave more like groff (both old and new): Specifying both .%T and .%J inIngo Schwarze
an .Rs block causes the title to be quoted instead of underlined, such that journal title and article title appear visually different. Original diff from kristaps@, simplified by me, tweaked again by kristaps@.
2010-12-26nits with current being NULL or not.Marc Espie
okay miod@
2010-12-25Yet another batch of -Thtml polishing from kristaps@:Ingo Schwarze
In particular, use <SMALL> for .SM and <CODE> for .Dl. Use <B> for bold and <I> for italic in general. Also call this mandoc 1.10.8 now, as it is functionally equivalent, even though one one set of refactoring patches has not been merged yet because it conflicts with our tbl(1) handling.
2010-12-24don't send the actual forced command in a debug message; ok markus deraadtDamien Miller
2010-12-23server_kill_window can modify the RB tree so don't use RB_FOREACH, fixesNicholas Marriott
crash seen by Dan Harnett.
2010-12-23Style tweaks.Nicholas Marriott
2010-12-22Use yet more standard HTML tags,Ingo Schwarze
this time some more <P> and <TABLE> instead of <DIV>. From kristaps@.
2010-12-22More small -Thtml improvements by kristaps@,Ingo Schwarze
in particular, use <B>, <I> and <U> where appropriate. Provide relative widths for header and footer lines. Manuals: More concise short descriptions of output modes. Correct a few places still talking about CSS2 to say CSS1. Code examples should use .Dl, not .D1.
2010-12-21Migrate .An to use a pointer to its data, like everybody else.Ingo Schwarze
In preparation for a simpler ref-counted system for node data. From kristaps@.
2010-12-21Vertical spacing improvements from kristaps@, small tweaks by me:Ingo Schwarze
Add a "last child" member to struct mdoc_node. Remove .Pp or .Lp if it is the first or last child of an .Sh or .Ss body. Thus, no need to do the same in the front-ends any longer. Tolerate some cases of .Pp inside .Bl.
2010-12-21Store sessions in an RB tree by name rather than a list, this is tidierNicholas Marriott
and allows them to easily be shown sorted in various lists (list-sessions/choose-sessions). Keep a session index which is used in a couple of places internally but make it an ever-increasing number rather than filling in gaps with new sessions.
2010-12-21ip6s_exthdrtoolong is always zero so remove it here which is the last user.Claudio Jeker
OK mikeb@, henning@, deraadt@
2010-12-21Kristaps questioned the efficiency of the algorithm used in roff.c r1.23.Ingo Schwarze
An indeed, this optimization (using suggestions by Joerg Sonnenberger) saves about 40% of the processing time needed for the roff_res() function when processing typical manuals. No functional change, and the new code is not harder to understand. ok kristaps@
2010-12-21Sane behaviour for the growing of very small buffers:Ingo Schwarze
Always grow at least to the minimum requested size. Before this, a buffer of 1 byte was grown to 2 bytes, which was too small and sometimes caused segfaults. ok kristaps@
2010-12-20Fix another stray addition that was too early. Oops.Nicholas Marriott
2010-12-20Undo a change to next/previous session that got mixed in prematurely.Nicholas Marriott
2010-12-20Dead sessions are never on the active sessions list, so the SESSION_DEADNicholas Marriott
flag is effectively unused. Remove it.
2010-12-20Use pointer rather than index for the client's last session.Nicholas Marriott
2010-12-20Unify the way sessions are used by callbacks - store the address and useNicholas Marriott
the reference count, then check it is still on the global sessions list in the callback.
2010-12-19Don't nuke the index counter when a session group comes up.Nicholas Marriott
2010-12-19Add other-pane-height and other-pane-width options, allowing the widthNicholas Marriott
or height of the smaller panes in the main-horizontal and main-vertical layouts to be set. Mostly from David Goodlad.
2010-12-19Handle .Bk in -Thmtl the same way as in -Tascii.Ingo Schwarze
From kristaps@.
2010-12-19Handle .Bk the same way as groff 1.20.1:Ingo Schwarze
.Bk without arguments defaults to -words. .Bk with invalid arguments (including -lines) has no effect. ok kristaps@
2010-12-19Significant improvements to -Thtml by kristaps@:Ingo Schwarze
Use less <DIV>, use more <H1>, <H2>, <P>, <BR>, <PRE>, <UL>, <OL>, <DL> etc. Triggered by input from Will Backman. Remove CSS2 note in mandoc.1, which is no longer true.
2010-12-19Remove `i' and `r' macro handlers. These macros, originally part of theIngo Schwarze
me package, aren't recognised by "groff -mandoc" so we don't need to do so either. Besides, they are not used in base or Xenocara, and only at two or three places in one single port, which are probably typos. From kristaps@.
2010-12-15fix ControlMaster=ask regressionDamien Miller
reset SIGCHLD handler before fork (and restore it after) so we don't miss the the askpass child's exit status. Correct test for exit status/signal to account for waitpid() failure; with claudio@ ok claudio@ markus@
2010-12-14don't mention key type in key-changed-warning, since we also printMarkus Friedl
this warning if a new key type appears. ok djm@
2010-12-13Read ${X} environment variables in strings and $HOME from the globalNicholas Marriott
environment rather than getenv, this allows them to be updated during the configuration file.
2010-12-13Call setusercontext() with the LOGIN_SETENV flag for "su -l" to pick upTodd C. Miller
environment variables specified in login.conf. Based on a diff from robert@. OK robert@ otto@
2010-12-11Track the last session for a client and add a flag to switch-client andNicholas Marriott
a key binding (L) to move a client back to its last session.
2010-12-11Fix rectangle copy to behave like emacs - the cursor is not part of theNicholas Marriott
selection on the right edge but on the left it is.
2010-12-11Oops, these functions return a const char *, so make the local variableNicholas Marriott
const as well.
2010-12-11Make the prompt history global for all clients which is much more useful ↵Nicholas Marriott
than per-client history.
2010-12-11Make SYNOPSIS sections and code having .nr nS enabledIngo Schwarze
behave as if the whole code were wrapped in .Bk/.Ek, i.e. keeping input lines together on output lines. This is compatible with new groff behaviour and deviates from historical groff. Tweaked version of a patch sent by kristaps@ on July 16, 2010. ok kristaps@ jmc@ sobrado@ millert@