summaryrefslogtreecommitdiffstats
path: root/usr.bin/catman
Commit message (Collapse)AuthorAgeFilesLines
* Add missing static keywords to catman(1)ed2011-11-061-1/+1
|
* For POLA reasons, disable SGR sequences in catpages.uqs2011-08-051-1/+1
| | | | | | | | See r222647 for a similar change to bsd.doc.mk after SGR was generally turned on in groff. Suggested by: ru Approved by: re (kib)
* Unbreak catman(1) by removing calls to col(1).uqs2011-08-031-1/+1
| | | | | | | | | | | col(1) was mangling the SGR escapes and is not strictly required. See r222647, r222648, r222650, and r222653 for more details. Reported by: delphij Reviewed by: ru Approved by: re (kib) MFC after: 3 weeks
* Modernize scandir(3) and alphasort(3) interfaces according to the IEEEkib2010-01-041-2/+8
| | | | | | | | | | | | | | | | | | | | Std 1003.1-2008. Both Linux and Solaris conforms to the new definitions, so we better follow too (older glibc used old BSDish alphasort prototype and corresponding type of the comparision function for scandir). While there, change the definitions of the functions to ANSI C and fix several style issues nearby. Remove requirement for "sys/types.h" include for functions from manpage. POSIX also requires that alphasort(3) sorts as if strcoll(3) was used, but leave the strcmp(3) call in the function for now. Adapt in-tree callers of scandir(3) to new declaration. The fact that select_sections() from catman(1) could modify supplied struct dirent is a bug. PR: standards/142255 MFC after: 2 weeks
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Restore the check against running as root that I accidentally removed inbrooks2009-06-201-0/+9
| | | | r194493.
* When checking if we can write to a file, use access() instead of abrooks2009-06-191-28/+2
| | | | | | | manual permission check based on stat output. Also, get rid of the executability check since it is not used. MFC after: 2 weeks
* Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98.ru2005-12-052-5/+24
| | | | Reviewed by: nyan
* Sync program's usage() with manpage's SYNOPSIS.ru2005-05-211-1/+2
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Look into machine-specific manpage subdirectories too.ru2004-12-222-4/+18
| | | | | PR: bin/72243 MFC after: 3 weeks
* Fixed the only warning and mark as WARNS=6 clean.ru2004-12-222-1/+3
|
* - Fixed handling of manpage subdirectories:ru2004-12-221-20/+12
| | | | | | | | | | catman /usr/share/man/man8 cd /usr/share/man; catman man8 - Don't print false warnings about invalid cat pages which are machine-specific cat page subdirectories (visible with -v). - Fixed one memory leak.
* Add (unsigned char) cast to ctype macrosache2003-06-101-2/+2
|
* Use setlocale & nl_langinfo to parse locale nameache2003-06-101-12/+12
|
* Remove deprecated locale namesache2003-06-101-2/+0
|
* Fixed catman(1) so that if the source files are compressed,ru2003-05-211-6/+8
| | | | | | | | | | the preformatted files are compressed with the same program as the source, and if the source files are uncompressed, the preformatted files are also uncompressed. PR: bin/52213 Submitted by: Krister Joas <krister@gazonk.net>, ru Approved by: re (jhb)
* mdoc(7) police: sort xrefs in SEE ALSO.ru2002-12-131-1/+1
|
* Mostly support alternate manpage zipping.obrien2002-10-291-16/+35
|
* Revert last delta. SGR support in grotty(1) is disabled system-wideru2002-10-181-1/+1
| | | | in /usr/share/tmac/troffrc pending the issue resolution on -arch.
* Groff 1.18.1 comes in with ANSI color support, enabled by default.ru2002-10-111-1/+1
| | | | | | | | | | | | | | In "nroff" mode, italic font renders as an underlined text, which makes it indistinguishable from the bold text on color monitors (cons25 terminal type), yet it requires the less(1)'s -R option. (Refer to the new grotty(1) manpage for details.) So turn off the color support for now (when generating catpages), until we figure out what do we do with this new feature. I have a patch for grotty(1) that tells it to use the "reverse video" attribute to render the italic font. Once this is accepted, we can turn color support back on (if there won't be any objections from the community).
* No need to declare optind as an external int.dwmalone2002-09-041-1/+0
|
* mdoc(7) police: tidy up.ru2002-05-301-12/+12
|
* Add C rewrites of catman and makewhatis. These aren't quite asmarkm2002-05-183-0/+892
the submitter supplied them, as I did some WARNS=n fixups (mostly const-ification). Submitted by: John Rochester <john@jrochester.org>
OpenPOWER on IntegriCloud