Commit Graph

75 Commits

Author SHA1 Message Date
lukem 334bc46aa5 - 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
2002-06-11 04:39:52 +00:00
bouyer cbfb5548f9 Wrap RCSID in #ifdef/#endif, for build.sh -t on non-NetBSD system. 2002-03-22 18:20:58 +00:00
groo 004beaa10c 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.
2002-03-14 05:24:14 +00:00
wiz e76f885fb8 Xr makewhatis 8, not 1. 2002-03-08 22:18:04 +00:00
jdolecek 626d582bcc xref makewhatis(8), it now uses man.conf too 2002-03-08 22:12:22 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz b35695c778 Sort sections. 2001-12-01 20:35:54 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
lukem 0668bf9a80 _whatdb has supported glob(3)ing pathnames for over 3 years ... 2001-06-25 21:37:24 +00:00
pooka 2eb8dafad8 Remove /usr/X11/man/whatis.db from path list, as it can no longer found
in /etc/man.conf
2001-04-20 11:45:37 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
fredb 0b2cf3e7f9 Supply missing "as". 2000-08-13 06:30:14 +00:00
simonb a097e35162 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.
2000-06-12 14:53:48 +00:00
thorpej c57ef7446d check_pager() was using an uninitialized variable; fix it. 2000-06-07 18:52:31 +00:00
jdolecek ebd1202e64 g/c removelist()/renamelist(), the only user (catman(8)) was modified to not use them 2000-05-29 21:10:42 +00:00
dante 9c7cc2f669 Add a comment to note that removelist() and renamelist() are used by catman(8) 2000-05-28 19:30:19 +00:00
he e1e867b2a6 Well, the removelist and renamelist functions were not unused;
they are still used by catman.  Add them back.
2000-05-28 16:23:55 +00:00
jdolecek c1f28b097c 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.
2000-05-27 21:33:26 +00:00
tsutsui 5cb06e6456 Use uname(3) to determine MACHINE type. 2000-01-09 04:54:53 +00:00
kristerw e71aea426d Typos (from OpenBSD) 1999-11-19 22:29:24 +00:00
lukem 3f8c4dac86 revert previous 1999-11-02 10:55:47 +00:00
lukem 0895d2339e remove superfluous '-' in getopt string 1999-11-02 10:52:49 +00:00
fredb 66635b21d1 Doc previously undocumented `-k' option, correctly note mutually exclusive
options, various stylistic changes.
Closes PR bin/8325.
1999-09-08 20:32:03 +00:00
kleink 6546b1feed Try $TMPDIR first, then fall back to _PATH_TMP. 1999-07-22 15:09:45 +00:00
itohy b70a1b7220 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.
1999-07-22 03:02:36 +00:00
itohy 0953ea242f Remove temp file on SIGPIPE (such as "man sh | head"). 1999-06-19 05:25:31 +00:00
kleink ad4023c857 Fall back to more(1) if PAGER is set but null. 1999-06-13 19:38:04 +00:00
dante d3b97ee431 Handle '_crunch' section.
Add removelist() function
Add renamelist() function
1999-04-04 16:57:36 +00:00
dante ff3f665d94 Document '_crunch' section. 1999-04-04 16:27:28 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
christos 1a67b18deb char -> unsigned char 1998-11-06 22:29:44 +00:00
wsanchez 76c99f3c0a 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.
1998-10-08 01:36:04 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
kleink d39ba37ccb Since GLOB_NOCHECK is not set, explicitly check for a return value of
GLOB_NOMATCH from glob().  Noticed by Juergen Hannken-Illjes.
1998-07-06 14:23:31 +00:00
kleink fc5d36f8e4 GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
1998-06-19 22:58:04 +00:00
fair 6394d4858b Added .Xr mdoc 7 and .Xr mdoc.samples 7 per PR#5284 1998-04-12 07:39:17 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
tv 13b09649c2 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.
1997-11-23 23:24:14 +00:00
mikel 5238c16301 kill redundant copy of src/etc/man.conf 1997-10-29 05:06:41 +00:00
lukem 6d1c625f54 fix up .Nm usage 1997-10-19 05:05:24 +00:00
mikel 78b44c8f92 cleanup for WARNS=1 1997-10-17 06:42:09 +00:00
mikel 37c88d8964 resize a pathname buffer to MAXPATHLEN; from Matthias Scheler in PR 4101 1997-09-10 07:13:51 +00:00
jtc 0076a482bb fix typo 1995-12-05 03:33:39 +00:00
tls 7f429c3306 Sync with 4.4BSD-Lite2 1995-09-28 06:05:11 +00:00
tls 5b36a1959d imported from 44lite2 1995-09-28 05:41:29 +00:00
mycroft c79429853d Pay attention to the section number, even if MANPATH or -M is specified. 1995-04-20 04:09:32 +00:00
mycroft db6e530eb0 Sync with 4.4-Lite, plus local changes. 1995-01-16 09:29:08 +00:00
cgd 7bcf9338df specify man pages the new way. 1994-12-22 12:29:38 +00:00
jtc dfab265f6e Fix from Christos Zoulas which makes relative paths in .so lines work when
man pages are formatted.
1994-06-03 22:38:11 +00:00