summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2011-12-12implement -C (alternative config file) for apropos(1) and mandocdb(8);Ingo Schwarze
ok kristaps@
2011-12-10Bugfixes from kristaps@:Ingo Schwarze
(1) Always show architecture-independent manuals, even when an architecture is specified on the command line. (2) Do not leak memory when a manual is skipped because it's the wrong section or architecture.
2011-12-10Avoid leaking index records:Ingo Schwarze
Before allocating a record for a file, first make sure we actually want to use the file.
2011-12-10Fix selection of arch-specific manuals:Ingo Schwarze
(1) Correctly compare cat vs. man paths. (2) Compare arch (and section) names case-insensitively. Problem noticed by kristaps@.
2011-12-10mail.c was removed 3 yrs 5 months ago.lum
2011-12-10Use clock_gettime() to get a high precision timestamp, instead ofPhilip Guenthe
converting gettimeofday()'s output, and pass utimes() NULL to get the time from inside the kernel instead ok espie@, stress testing on NFS by deraadt@
2011-12-09zap trailing whitespace, from jmcAlexandre Ratchov
2011-12-09fix usage string: remove -M from aucat and -l from aucat and sndiodAlexandre Ratchov
from jmc
2011-12-09Change the way the working directory for new processes is discovered. IfNicholas Marriott
default-path isn't empty, it is used. Otherwise: 1) If tmux neww is run from the command line, the working directory of the client is used. 2) Otherwise sysctl KERN_PROC_CWD is used to retrieve the current working directory of the process in the active pane. 3) If that fails, the directory where the session was created is used. Support code by Romain Francois, OpenBSD specific bits by me. Note this requires a recent userland and kernel with KERN_PROC_CWD.
2011-12-09add a new sndiod audio/midi daemon and hide aucat server-specificAlexandre Ratchov
options.
2011-12-09Improve parsing of preformatted manuals:Ingo Schwarze
* If the first section is empty, reuse the file name as the description. * Strip backspace encoding from the description. * Make the loops more readable using string(3) functions. * Put fclose() at the end, as line isn't valid afterwards. From kristaps@, tweaked a bit by me.
2011-12-09In default mode, use realpath(3) on the "dir" argumentsIngo Schwarze
and put canonicalized absolute pathnames into the database; from kristaps@.
2011-12-09sort output case-insensitively; from kristaps@Ingo Schwarze
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.