The NetBSD Project

CVS log for src/usr.bin/man/man.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / man

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.73 / (download) - annotate - [select for diffs], Tue May 10 00:42:00 2022 UTC (22 months, 2 weeks ago) by gutteridge
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.4 (colored)

man.c: minor KNF

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Sun Mar 13 09:54:01 2022 UTC (2 years ago) by martin
Branch: netbsd-8
Changes since 1.66: +16 -9 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.4 (colored)

Pull up following revision(s) (requested by gutteridge in ticket #1737):

	usr.bin/man/man.c: revision 1.69
	usr.bin/man/man.c: revision 1.70
	usr.bin/man/man.c: revision 1.72

man.c: fix -m option so it works as documented

Refactoring work in man.c r. 1.40 from twelve years ago introduced a
regression where input from the -m option was appended rather than
prepended to the search paths. Problem reported by C. Chapman on
netbsd-users.

man: fix type mismatch between enum and int (since yesterday)
No binary change.

man: remove unused global variable 'instype' (since yesterday)
No functional change.

Revision 1.67.4.2 / (download) - annotate - [select for diffs], Sun Mar 13 09:52:20 2022 UTC (2 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.67.4.1: +16 -9 lines
Diff to previous 1.67.4.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored) to selected 1.4 (colored)

Pull up following revision(s) (requested by gutteridge in ticket #1433):

	usr.bin/man/man.c: revision 1.69
	usr.bin/man/man.c: revision 1.70
	usr.bin/man/man.c: revision 1.72

man.c: fix -m option so it works as documented

Refactoring work in man.c r. 1.40 from twelve years ago introduced a
regression where input from the -m option was appended rather than
prepended to the search paths. Problem reported by C. Chapman on
netbsd-users.

man: fix type mismatch between enum and int (since yesterday)
No binary change.

man: remove unused global variable 'instype' (since yesterday)
No functional change.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Mar 8 23:13:05 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.4 (colored)

man: remove unused global variable 'instype' (since yesterday)

No functional change.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Mar 8 23:09:36 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.70: +36 -36 lines
Diff to previous 1.70 (colored) to selected 1.4 (colored)

man: remove trailing whitespace

No binary change.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Mar 8 23:05:32 2022 UTC (2 years ago) by rillig
Branch: MAIN
Changes since 1.69: +6 -5 lines
Diff to previous 1.69 (colored) to selected 1.4 (colored)

man: fix type mismatch between enum and int (since yesterday)

No binary change.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Mar 7 22:43:39 2022 UTC (2 years ago) by gutteridge
Branch: MAIN
Changes since 1.68: +15 -9 lines
Diff to previous 1.68 (colored) to selected 1.4 (colored)

man.c: fix -m option so it works as documented

Refactoring work in man.c r. 1.40 from twelve years ago introduced a
regression where input from the -m option was appended rather than
prepended to the search paths. Problem reported by C. Chapman on
netbsd-users.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:44 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.67: +5 -3 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.4 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.67.4.1 / (download) - annotate - [select for diffs], Thu Apr 9 11:28:32 2020 UTC (3 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.67: +5 -3 lines
Diff to previous 1.67 (colored) to selected 1.4 (colored)

Pull up following revision(s) (requested by maya in ticket #824):

	usr.bin/man/man.c: revision 1.68

Exit successfully after printing the search path, stop further processing.

Continuing to process had the unintended effect that `man` failed to find
a matching manual page for {EMPTY LIST OF REQUESTED MANUAL PAGES}, and
exited with 1.

Prompted by a fish shell snippet that tried and failed to distinguish between
FreeBSD man (-p takes argument) and NetBSD man (-p no argument) by comparing
`man -p` exit code.

ok riastradh, logix (which also pointed out the manual page SYNOPSIS is
saying man -p should be used this way).

Revision 1.68 / (download) - annotate - [select for diffs], Mon Apr 6 19:53:22 2020 UTC (3 years, 11 months ago) by maya
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.67: +5 -3 lines
Diff to previous 1.67 (colored) to selected 1.4 (colored)

Exit successfully after printing the search path, stop further processing.

Continuing to process had the unintended effect that `man` failed to find
a matching manual page for {EMPTY LIST OF REQUESTED MANUAL PAGES}, and
exited with 1.

Prompted by a fish shell snippet that tried and failed to distinguish between
FreeBSD man (-p takes argument) and NetBSD man (-p no argument) by comparing
`man -p` exit code.

ok riastradh, logix (which also pointed out the manual page SYNOPSIS is
saying man -p should be used this way).

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:11 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.66: +3 -4 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jun 15 20:16:35 2018 UTC (5 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp
Branch point for: phil-wifi, netbsd-9
Changes since 1.66: +3 -4 lines
Diff to previous 1.66 (colored) to selected 1.4 (colored)

move 'utsname' to the main() function scope, so that the reference to
it outside the block remains valid.

should fix an asan reported issue.

Revision 1.64.6.2 / (download) - annotate - [select for diffs], Thu May 11 02:58:42 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.64.6.1: +16 -27 lines
Diff to previous 1.64.6.1 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.4 (colored)

Sync with HEAD

Revision 1.66 / (download) - annotate - [select for diffs], Tue May 2 14:19:23 2017 UTC (6 years, 10 months ago) by abhinav
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.65: +16 -27 lines
Diff to previous 1.65 (colored) to selected 1.4 (colored)

Teach man -p to respect the MANPATH environment variable and the -M option.

Currently, `man -p` generates its output based on the value of the _default tag
in man.conf. However, man(1) modifies its search path based on the value of the
MANPATH variable and the list of directories specified via the -M option. In such
a case, `man -p` does not represent the correct search path. This commit intends
to fix this.

This change has the side effect that now the output of `man -p` will also include
the machine class specific subdirectories (such as man8/x86), while previously it
did not. The output would include subdirectories only for those machine classes
which are specified in the man.conf file.

Also, with this change, it is possible to run makemandb(8), by setting MANPATH
environment variable (e.g. env MANPATH=/usr/share/man makemandb).

Patch reviewed by wiz@

Revision 1.64.6.1 / (download) - annotate - [select for diffs], Tue May 2 03:19:23 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored) to selected 1.4 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.65 / (download) - annotate - [select for diffs], Thu Apr 27 09:31:50 2017 UTC (6 years, 11 months ago) by abhinav
Branch: MAIN
CVS Tags: prg-localcount2-base1
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored) to selected 1.4 (colored)

Fix comment indentation at couple of places: Use \t instead of space

Revision 1.64 / (download) - annotate - [select for diffs], Thu Jun 16 15:10:58 2016 UTC (7 years, 9 months ago) by abhinav
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored) to selected 1.4 (colored)

Document -f option for man(1).
Also remove unsupported options for `man -k` from the synopsis and usage.

Revision 1.63 / (download) - annotate - [select for diffs], Sat May 21 17:21:40 2016 UTC (7 years, 10 months ago) by abhinav
Branch: MAIN
Changes since 1.62: +4 -4 lines
Diff to previous 1.62 (colored) to selected 1.4 (colored)

Remove unused include and unused constant. Ok from christos@.

Revision 1.61.4.1 / (download) - annotate - [select for diffs], Tue Jan 5 22:18:27 2016 UTC (8 years, 2 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.61: +9 -5 lines
Diff to previous 1.61 (colored) next main 1.62 (colored) to selected 1.4 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #1057):
	usr.bin/man/man.c: revision 1.62
For an argument to be interpreted as a local file name, bypassing the
search rules in man.conf or MANPATH, it must begin with "/", "./", or
"../".  Simply testing whether it contains "/" is wrong, because it
breaks usage like "man 8 vax/boot".
This reverts revision 1.57 dated 2013-10-06,
"Be more permissive in interpreting man pages as filenames".

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:00 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.44: +106 -69 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.4 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Aug 14 15:31:12 2014 UTC (9 years, 7 months ago) by apb
Branch: MAIN
Changes since 1.61: +9 -5 lines
Diff to previous 1.61 (colored) to selected 1.4 (colored)

For an argument to be interpreted as a local file name, bypassing the
search rules in man.conf or MANPATH, it must begin with "/", "./", or
"../".  Simply testing whether it contains "/" is wrong, because it
breaks usage like "man 8 vax/boot".

This reverts revision 1.57 dated 2013-10-06,
"Be more permissive in interpreting man pages as filenames".

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:42:46 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.43.2.1: +106 -69 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored) to selected 1.4 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.61 / (download) - annotate - [select for diffs], Mon Feb 17 03:10:12 2014 UTC (10 years, 1 month ago) by uwe
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7
Changes since 1.60: +15 -3 lines
Diff to previous 1.60 (colored) to selected 1.4 (colored)

config() in manconf.c now verifies _build (and _crunch) command
templates with fmtcheck(3) so annotate the printf that uses these
commands as safe with a __format_arg wrapper and drop
-Wno-format-nonliteral.

XXX: Using local wrapper for now, solving this in general would be
nice, but it raises namespace pollution issues.

XXX^2: catman(8) also uses manconf.c and uses _build and _crunch so it
can also benefit from this (but see above).

Revision 1.60 / (download) - annotate - [select for diffs], Mon Oct 28 23:46:17 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.59: +51 -36 lines
Diff to previous 1.59 (colored) to selected 1.4 (colored)

Instead of guessing the suffix in the code, use the suffix list previously
loaded via man.conf(5). While there, zap unused iteration code.
(Franco Fichtner)

Revision 1.59 / (download) - annotate - [select for diffs], Sun Oct 6 17:14:49 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.58: +6 -4 lines
Diff to previous 1.58 (colored) to selected 1.4 (colored)

add more compression suffixes and local suffixes.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Oct 6 16:43:41 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.57: +10 -5 lines
Diff to previous 1.57 (colored) to selected 1.4 (colored)

Recognize .gz and .bz2 suffixes so $ man ./man.1.gz works. From Franco Fichter
via dfly.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Oct 6 16:29:26 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.56: +5 -5 lines
Diff to previous 1.56 (colored) to selected 1.4 (colored)

Be more permissive in interpreting man pages as filenames, from Franco
Fichter via dfly. fixes:
	$ man usr.bin/man/man.1

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jul 30 15:10:04 2013 UTC (10 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.55: +5 -5 lines
Diff to previous 1.55 (colored) to selected 1.4 (colored)

Mark the dead.

Revision 1.44.10.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:39 2013 UTC (10 years, 8 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.44: +43 -40 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.4 (colored)

sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jul 19 05:05:59 2013 UTC (10 years, 8 months ago) by uwe
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.54: +12 -10 lines
Diff to previous 1.54 (colored) to selected 1.4 (colored)

Constify some more.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jul 19 04:59:46 2013 UTC (10 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.53: +8 -8 lines
Diff to previous 1.53 (colored) to selected 1.4 (colored)

Spell "keywords" without space.  Fix couple of typos.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jul 19 04:55:05 2013 UTC (10 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.52: +8 -10 lines
Diff to previous 1.52 (colored) to selected 1.4 (colored)

manual_find_buildkeyword() - now that we control the format string, we
may use asterisk precision specification instead of temporary
modifying the _build string itself.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jul 19 04:18:10 2013 UTC (10 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.51: +7 -6 lines
Diff to previous 1.51 (colored) to selected 1.4 (colored)

Fix manual_find_buildkeyword() to not use non-literal printf format.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jul 18 16:33:31 2013 UTC (10 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.4 (colored)

Don't access memory outside the array if tmpdirlen == 0.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jul 18 16:28:52 2013 UTC (10 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.49: +4 -19 lines
Diff to previous 1.49 (colored) to selected 1.4 (colored)

use -Wno-format and revert "fixstring"

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 18 16:01:25 2013 UTC (10 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.48: +7 -9 lines
Diff to previous 1.48 (colored) to selected 1.4 (colored)

Set the string to NUL instread of providing an new empty string (from uwe)

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jul 18 15:39:08 2013 UTC (10 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.47: +35 -16 lines
Diff to previous 1.47 (colored) to selected 1.4 (colored)

WARNS=6
- fix cast qual issues
- don't use snprintf on a user-provided buffer

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jul 18 04:05:32 2013 UTC (10 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored) to selected 1.4 (colored)

Revert previous; other errors from WARNS=3 obscured the error in jump().

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jul 18 04:02:31 2013 UTC (10 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored) to selected 1.4 (colored)

Constify jump() arguments appropriately.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 18 03:48:22 2013 UTC (10 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored) to selected 1.4 (colored)

Move manstate::pagerlen so that its "length of the above" comment makes sense.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:36 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.43: +9 -3 lines
Diff to previous 1.43 (colored) to selected 1.4 (colored)

sync with head

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jan 3 17:49:57 2012 UTC (12 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: tls-maxphys, riastradh-drm2
Changes since 1.43: +9 -3 lines
Diff to previous 1.43 (colored) to selected 1.4 (colored)

If the default path doesn't result in a match, bail out early instead of
running into a segmentation fault. Based on patch by Abhinav Upadhyay.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:44 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.41: +58 -5 lines
Diff to previous 1.41 (colored) next main 1.42 (colored) to selected 1.4 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jun 14 20:08:45 2011 UTC (12 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.42: +3 -2 lines
Diff to previous 1.42 (colored) to selected 1.4 (colored)

Fix usage in man page and sync usage in executable with it.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jun 14 18:53:48 2011 UTC (12 years, 9 months ago) by joerg
Branch: MAIN
Changes since 1.41: +57 -5 lines
Diff to previous 1.41 (colored) to selected 1.4 (colored)

Add support for man -p to print the search path for manual pages (not
including cat page directories).

From Abhinav Upadhyay as part of Google's Summer of Code 2011

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jul 7 21:24:34 2010 UTC (13 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.40: +4 -3 lines
Diff to previous 1.40 (colored) to selected 1.4 (colored)

get the value of the entry for the class not the key.

Revision 1.40 / (download) - annotate - [select for diffs], Sun May 23 22:04:36 2010 UTC (13 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.39: +50 -46 lines
Diff to previous 1.39 (colored) to selected 1.4 (colored)

- centralize the snprintf code.
- use err where appropriate.
- add machclass which should be x86 when i386 and amd64 and can be specified
  in man.conf as:
	_i386	x86
	_amd64	x86
  so that we can support merged pages. Nothing uses this yet.

Revision 1.37.10.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:27:11 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.37: +94 -24 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.4 (colored)

sync to netbsd-5

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Thu Oct 8 08:15:24 2009 UTC (14 years, 5 months ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.37: +94 -24 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.4 (colored)

Pull up the following revisions(s) (requested by cegger in ticket #1076):
	usr.bin/man/man.1:	revision 1.21
	usr.bin/man/man.c:	revision 1.39

Allow man(1) to accept a pathname to a man file (e.g. man ./man.1)

Revision 1.39 / (download) - annotate - [select for diffs], Wed Oct 7 08:30:31 2009 UTC (14 years, 5 months ago) by cegger
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.38: +94 -24 lines
Diff to previous 1.38 (colored) to selected 1.4 (colored)

Mimic OSX behaviour:

On OS X it is possible to specify the manpage filename
with a full or relative path like this:

   man ./foo.5

or

   man /cd/foo/bar.1.gz

This is really helpful to view the manpage quickly while editing it.

patch presented on current-users@ and tech-userlevel@:
http://mail-index.netbsd.org/current-users/2009/10/06/msg010767.html
http://mail-index.netbsd.org/tech-userlevel/2009/10/06/msg002675.html

No objections

Revision 1.38 / (download) - annotate - [select for diffs], Tue Oct 6 06:43:15 2009 UTC (14 years, 5 months ago) by cegger
Branch: MAIN
Changes since 1.37: +32 -33 lines
Diff to previous 1.37 (colored) to selected 1.4 (colored)

- use EXIT_FAILURE/EXIT_SUCCESS
- whitespace nits
- ansify cleanup()/usage()
- remove pointless parenthesis on return

Revision 1.36.8.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:29:16 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.4 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jul 21 14:19:24 2008 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: netbsd-5, matt-nb5-mips64
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored) to selected 1.4 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:36:06 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.35: +4 -11 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.4 (colored)

sync with HEAD

Revision 1.36 / (download) - annotate - [select for diffs], Fri Oct 5 07:38:52 2007 UTC (16 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa
Changes since 1.35: +4 -11 lines
Diff to previous 1.35 (colored) to selected 1.4 (colored)

Convert to using raise_default_signal(3).

Revision 1.35 / (download) - annotate - [select for diffs], Mon Feb 5 19:46:24 2007 UTC (17 years, 1 month ago) by jwise
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.34: +7 -7 lines
Diff to previous 1.34 (colored) to selected 1.4 (colored)

Since MAN_DEBUG is constant, go from if (MAN_DEBUG) to #if MAN_DEBUG

Revision 1.34 / (download) - annotate - [select for diffs], Mon May 1 23:22:48 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.33: +6 -3 lines
Diff to previous 1.33 (colored) to selected 1.4 (colored)

Coverity CID 2996: Don't return without closing fp.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Apr 10 14:39:06 2006 UTC (17 years, 11 months ago) by chuck
Branch: MAIN
Changes since 1.32: +325 -216 lines
Diff to previous 1.32 (colored) to selected 1.4 (colored)

modified man(1):
 - avoid double slashes when displaying man pages (got tired
   of '/usr/share/man//cat1/man.0').
 - got rid of __P() while working on it.
 - incorporate some of my old notes explaining how manpath works into the
   comments of the code itself.
 - renamed some of the vars so that the code is consistent throughout
   (and hopefully clearer and easier to understand)
 - fixed relative man paths for multiple man pages (man did a chdir()
   on the first man page it had to format --- this broke any remaining
   relative path man pages left to process).   save old directory and
   fchdir() back to it after formatting.
 - improved doc on "man -h" which does more than just whatis(1) [e.g.
   "man -h fopen" prints the required include files and the prototypes
   rather than just the one-liner you get with whatis(1)]
 - manconf.c now fills in the "len" length field in the TAG/ENTRY
   structures (man now uses len).

revise man.conf file reading stuff to return error on failure in
addentry/gettag (fka getlist) rather than just err()ing out.   this
allows man(1) to call cleanup and delete its tmp files rather than
just leave them floating.  revise other apps using this code
(makewhatis, apropos, catman, whatis) to expect this.  also remove
__P on updated files.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Apr 8 23:27:03 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.31: +4 -3 lines
Diff to previous 1.31 (colored) to selected 1.4 (colored)

change an int to size_t

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:36 2004 UTC (20 years, 2 months ago) by jmmv
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) to selected 1.4 (colored)

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Aug 7 11:15:10 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.29: +3 -7 lines
Diff to previous 1.29 (colored) to selected 1.4 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Sun Nov 3 19:46:26 2002 UTC (21 years, 4 months ago) by he
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.27.2.1: +36 -45 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored) to selected 1.4 (colored)

Pull up revision 1.28 (requested by he in ticket #787):
  Make these compile again, after the changes in ticket #787.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Sun Nov 3 13:49:13 2002 UTC (21 years, 4 months ago) by he
Branch: netbsd-1-6
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.4 (colored)

Pull up revision 1.29 (requested by thorpej in ticket #787):
  Rename man/config.{c,h} to man/manconf.{c,h}, so we do not
  have to worry about problems including "config.h" when
  building as a host tool.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Sep 13 15:56:38 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) to selected 1.4 (colored)

Rename man/config.{c,h} to man/manconf.{c,h}, so we don't have to
worry about problems including "config.h" when building as a host
tool.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jun 11 04:39:52 2002 UTC (21 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.27: +36 -45 lines
Diff to previous 1.27 (colored) to selected 1.4 (colored)

- getlist(): add "int create" arg, which creates list if it's not present
  (using guts of now defunct addlist())
- use TAILQ_*() macros appropriately when manipulating tailqs

Revision 1.27 / (download) - annotate - [select for diffs], Thu Mar 14 05:24:14 2002 UTC (22 years ago) by groo
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6
Changes since 1.26: +35 -7 lines
Diff to previous 1.26 (colored) to selected 1.4 (colored)

Fix longstanding misuse of glob(3) and fnmatch(3) in man page search.
glob(3)-special characters are now escaped in the supplied man page names.

Makes ``man ['' work without mysterious quoting.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Feb 19 23:03:49 2001 UTC (23 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored) to selected 1.4 (colored)

convert to use getprogname()

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Fri Jun 23 16:39:48 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.22: +145 -130 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.4 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 12 14:53:48 2000 UTC (23 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.24: +19 -13 lines
Diff to previous 1.24 (colored) to selected 1.4 (colored)

Allow "-s" to specify a section name, ala the SysV man command.
Unlike the SysV man command, this doesn't allow for the -s argument
to be a list.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 7 18:52:31 2000 UTC (23 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored) to selected 1.4 (colored)

check_pager() was using an uninitialized variable; fix it.

Revision 1.23 / (download) - annotate - [select for diffs], Sat May 27 21:33:26 2000 UTC (23 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.22: +136 -127 lines
Diff to previous 1.22 (colored) to selected 1.4 (colored)

allow to specify relative paths for sections in man.conf - they are used
	similarily to _subdir, but only when appropriate
fix -m handling, so that e.g. "man -m . 3 printf" works as it should
add new -S flag, to specify a string the result path has to contain
g/c some unused stuff

Written by Chuck Cranor, with only cosmetic changes & const poisoning by me.

Revision 1.15.2.3 / (download) - annotate - [select for diffs], Sun Apr 30 11:27:57 2000 UTC (23 years, 11 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.15.2.2: +25 -10 lines
Diff to previous 1.15.2.2 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.4 (colored)

Pull up revisions 1.18-1.22 (requested by kim):
  Pull up various changes from the trunk:
   o fix signal handlers to avoid obscure exit codes
   o clean up after SIGPIPE
   o try TMPDIR env variable, fall back to _PATH_TMP
   o fall back to more if PAGER is set but null
   o use uname(3) to determine MACHINE type

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Sun Apr 30 11:11:45 2000 UTC (23 years, 11 months ago) by he
Branch: netbsd-1-4
Changes since 1.15.2.1: +3 -2 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) to selected 1.4 (colored)

Pull up revision 1.17 (requested by kim):
  Fix a problem where files were not removed on SIGPIPE.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jan 9 04:54:54 2000 UTC (24 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.21: +12 -8 lines
Diff to previous 1.21 (colored) to selected 1.4 (colored)

Use uname(3) to determine MACHINE type.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:37:05 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored) to selected 1.4 (colored)

Pull up to last week's -current.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Nov 2 10:56:51 1999 UTC (24 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) to selected 1.4 (colored)

revert previous

Revision 1.20 / (download) - annotate - [select for diffs], Tue Nov 2 10:53:42 1999 UTC (24 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.4 (colored)

remove superfluous '-' in getopt string

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 22 15:09:45 1999 UTC (24 years, 8 months ago) by kleink
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.18: +7 -4 lines
Diff to previous 1.18 (colored) to selected 1.4 (colored)

Try $TMPDIR first, then fall back to _PATH_TMP.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 22 03:02:36 1999 UTC (24 years, 8 months ago) by itohy
Branch: MAIN
Changes since 1.17: +10 -2 lines
Diff to previous 1.17 (colored) to selected 1.4 (colored)

A caught signal is blocked in the handler and
must be unblocked to do the default action.
The old code may generate weird exit status
on signals.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Wed Jun 23 14:20:51 1999 UTC (24 years, 9 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.15: +8 -6 lines
Diff to previous 1.15 (colored) to selected 1.4 (colored)

pullup 1.15->1.16 (kleink)

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 19 05:25:31 1999 UTC (24 years, 9 months ago) by itohy
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored) to selected 1.4 (colored)

Remove temp file on SIGPIPE (such as "man sh | head").

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 13 19:38:04 1999 UTC (24 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.15: +8 -6 lines
Diff to previous 1.15 (colored) to selected 1.4 (colored)

Fall back to more(1) if PAGER is set but null.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Nov 6 22:33:47 1998 UTC (25 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4
Changes since 1.14: +13 -8 lines
Diff to previous 1.14 (colored) to selected 1.4 (colored)

char -> unsigned char

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 8 01:36:04 1998 UTC (25 years, 5 months ago) by wsanchez
Branch: MAIN
Changes since 1.13: +7 -3 lines
Diff to previous 1.13 (colored) to selected 1.4 (colored)

We can't define MACHINE from a makefile in Rhapsody, because you might be cross
  compiling, or building a fat (multi-architecture) binary.  Our compiler
  defines __ARCHITECTURE__ for this use.
Fixed an off-by-one error that may occasionally cause man to seg fault. Found
  by using a special strict malloc() implementation.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 25 20:59:39 1998 UTC (25 years, 7 months ago) by ross
Branch: MAIN
Changes since 1.12: +9 -8 lines
Diff to previous 1.12 (colored) to selected 1.4 (colored)

Add { and } to shut up egcs. Reformat the more questionable code.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jul 6 14:23:32 1998 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.11: +12 -8 lines
Diff to previous 1.11 (colored) to selected 1.4 (colored)

Since GLOB_NOCHECK is not set, explicitly check for a return value of
GLOB_NOMATCH from glob().  Noticed by Juergen Hannken-Illjes.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 19 23:02:44 1998 UTC (25 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.10: +3 -4 lines
Diff to previous 1.10 (colored) to selected 1.4 (colored)

GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Wed Nov 26 04:22:35 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.9: +12 -10 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.4 (colored)

Pull rev 1.10 up from trunk (tv)

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 23 23:24:14 1997 UTC (26 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.9: +12 -10 lines
Diff to previous 1.9 (colored) to selected 1.4 (colored)

When man was "fixed" to chdir() to the man root as historical man does,
it broke the -M option on relative paths (the chdir works as it should,
but the relative man page path is still used whole in nroff).  This
repairs the situation by chopping the full pathname in half--one part
for the chdir, one part for the filename.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Oct 17 06:42:11 1997 UTC (26 years, 5 months ago) by mikel
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.8: +22 -18 lines
Diff to previous 1.8 (colored) to selected 1.4 (colored)

cleanup for WARNS=1

Revision 1.8 / (download) - annotate - [select for diffs], Wed Sep 10 07:13:51 1997 UTC (26 years, 6 months ago) by mikel
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.4 (colored)

resize a pathname buffer to MAXPATHLEN; from Matthias Scheler in PR 4101

Revision 1.7 / (download) - annotate - [select for diffs], Thu Sep 28 06:05:34 1995 UTC (28 years, 6 months ago) by tls
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.6: +31 -25 lines
Diff to previous 1.6 (colored) to selected 1.4 (colored)

Sync with 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Thu Sep 28 05:41:29 1995 UTC (28 years, 6 months ago) by tls
Branch: CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +3 -3 lines
Diff to previous 1.1.1.1 (colored) to selected 1.4 (colored)

imported from 44lite2

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 20 04:09:32 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +4 -5 lines
Diff to previous 1.5 (colored) to selected 1.4 (colored)

Pay attention to the section number, even if MANPATH or -M is specified.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Jan 16 09:35:27 1995 UTC (29 years, 2 months ago) by mycroft
Branch: CSRG
CVS Tags: lite-1
Changes since 1.1: +13 -13 lines
Diff to previous 1.1 (colored) to selected 1.4 (colored)

Import original 4.4-Lite version.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 16 09:29:10 1995 UTC (29 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Sync with 4.4-Lite, plus local changes.

Revision 1.4 / (download) - annotate - [selected], Fri Jun 3 22:38:11 1994 UTC (29 years, 10 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.3: +26 -2 lines
Diff to previous 1.3 (colored)

Fix from Christos Zoulas which makes relative paths in .so lines work when
man pages are formatted.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 17 02:15:13 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +10 -10 lines
Diff to previous 1.2 (colored) to selected 1.4 (colored)

fix from bostic for multiple match problem

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 18 00:46:49 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.4 (colored)

fix from Keith White <kwhite@csi.UOttawa.CA>, to DTRT when man -w's output
is redirected.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Dec 21 02:59:33 1993 UTC (30 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: BOSTIC-1
Diff to selected 1.4 (colored)

add man(1) ; part of new man(1) package from Bostic

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>