Commit Graph

179 Commits

Author SHA1 Message Date
Ruslan Ermilov
7ed5e54567 -pthread -> -lc_r 2001-01-24 13:55:37 +00:00
Ruslan Ermilov
86a64baacd Add librpcsvc. 2001-01-17 18:19:06 +00:00
Ruslan Ermilov
5ba22da471 Reduce diffs (mostly whitespace) to mdocNG.
Obtained from:	mdocNG through NetBSD
2001-01-12 15:20:26 +00:00
Ruslan Ermilov
9fa792216e Make .Ft and .Vt macros accept punctuation characters as
arguments, make .Vt usable outside the SYNOPSIS section.

Obtained from:	mdocNG (not yet submitted for inclusion)
2001-01-12 15:14:28 +00:00
Ruslan Ermilov
ebaf16d373 Fixed the ``undesirable hyphenation'' problem, most noticeable with Xr.
Obtained from:	mdocNG
2001-01-11 09:18:31 +00:00
Ruslan Ermilov
bc5b7aaa50 Fixed the bug in D1 macro where it would eat its first (text) argument.
Obtained from:	mdocNG
2001-01-11 09:16:28 +00:00
Ruslan Ermilov
ec99c9e90b Fixed the ``no space after a .Fl'' problem.
Example:

.Fl flag .
The space is missing.

Obtained from:	mdocNG
2000-12-15 14:57:11 +00:00
Ruslan Ermilov
e64b430e47 Prepare for FreeBSD 4.3, we already have the manpage that refers to it. 2000-12-14 11:50:42 +00:00
Ruslan Ermilov
78621becb9 Do not duplicate our efforts checking FreeBSD version. For a new version,
simply define the empty string before the .Fx macro definition, like this:

.ds Fx*4.3
2000-12-06 18:31:21 +00:00
Ruslan Ermilov
4c5804ea54 Install the stock (as supplied by groff(1) distribution) tmac.an
and tmac.andoc files.  The man(1), catman(1) and bsd.man.mk have
been modified to call groff(1) with -mandoc argument.
2000-12-06 17:02:33 +00:00
Ruslan Ermilov
081b301be3 Backout rev 1.2 (emulate :o' and /o' letters using 'o'),
since they are already emulated in tmac.tty-char.
2000-12-06 12:45:10 +00:00
Ruslan Ermilov
c0f2657bc2 Reduce the diffs with the stock (FSF) version. 2000-12-06 09:32:10 +00:00
Ruslan Ermilov
0138a93062 Backout rev 1.2 (workaround for gcc 2.60 expression evaluation
bug) as later versions of gcc have apparently this bug fixed.
2000-12-06 09:21:36 +00:00
Ruslan Ermilov
a022bb6ce3 Use stock (FSF) version of this file. 2000-12-06 08:49:05 +00:00
Ruslan Ermilov
6d856126f9 Resolve conflicts after v1.16.1 import. 2000-12-05 19:06:41 +00:00
Ruslan Ermilov
efa37f53c6 Removed yacc(1) output files. 2000-12-05 18:53:29 +00:00
Ruslan Ermilov
f10b398a26 Removed files not present in v1.16.1 import. 2000-12-05 18:52:33 +00:00
Ruslan Ermilov
c8d1b47c7f Virgin import of FSF groff v1.16.1 2000-12-05 18:49:44 +00:00
Ruslan Ermilov
a8c609dad1 This commit was generated by cvs2svn to compensate for changes in r69626,
which included commits to RCS files with non-trunk default branches.
2000-12-05 18:49:44 +00:00
Ben Smithurst
33bbe5bb02 Add the appropriate magic to make .Fx 4.1.1 work. 2000-11-23 11:17:33 +00:00
Ruslan Ermilov
2ba69799de Make An macro understand two special arguments, -nosplit
and -split.  See the mdoc.samples(7) manpage for details.

Reviewed by:	sheldonh
2000-11-22 08:39:17 +00:00
Sheldon Hearn
3ec9f22241 Add libcompat record for .Lb macro. 2000-11-20 15:07:14 +00:00
Ruslan Ermilov
aaf0d9a64c While in the SYNOPSIS section, Nm macro always required an
argument to setup indentation for the rest of the synopsis
line and to automatically emit a line break for a non-first
synopsis line.  It does not require it anymore.

The following now works as expected:

.Sh NAME
.Nm utility
.Sh SYNOPSIS
.Nm
.Cm start
.Nm
.Cm stop
2000-11-18 17:34:55 +00:00
Ruslan Ermilov
7897159684 Fixed Nm macro so that it accepts punctuation characters as argument.
For example, neither of the following worked before:

     .Nm ,       name,
     .Nm .       name.
     .Nm :       name:
     .Dq Nm      ``name''
     .Op Nm .    [name].
2000-11-17 15:30:41 +00:00
Ruslan Ermilov
9e202696b0 Make the question mark (`?') a valid punctuation character.
One can now, for example, write:

.Sh EXAMPLES
Have you read the
.Xr mdoc 7 ?
.Pp
Do you like
.Fx ?

The mdoc.samples(7) page has been automatically updated to
record this change.
2000-11-16 17:04:14 +00:00
Ruslan Ermilov
82490b9ad8 Fix problem with extra space after an Xr, because aZ was being called twice.
Fix the no-space-after-a-period-in-macro problem.

Obtained from:	NetBSD
2000-11-16 16:05:13 +00:00
Ruslan Ermilov
5e8eaa452b Fixed the last-minute bug I have made in previous revision (.ie -> .if). 2000-11-13 16:23:00 +00:00
Ruslan Ermilov
44977436b7 Really make the Fx macro parsed and callable. 2000-11-13 15:22:57 +00:00
Ruslan Ermilov
6c9e7248c0 Cleaned up the .St macro.
Obtained from:	NetBSD
2000-10-11 09:51:27 +00:00
David E. O'Brien
a404a90a1b Add a macro for ISO C99 ("isoC-99"). 2000-10-10 23:14:55 +00:00
Ruslan Ermilov
427f20937d Fix the `missing footer' problem. See the comment for details.
Obtained from:	NetBSD
2000-10-06 13:22:24 +00:00
Ruslan Ermilov
05afaf4b47 Removed files not present in v1_15 import. 2000-09-22 10:05:18 +00:00
Ruslan Ermilov
7a0a11ad32 Fixed the `mysterious blank lines' problem. This was due to unconditional
use of the .ne requests.  groff(1) apparently inserts some virtual trap at
the end of each page, and this was causing the .ne request to output extra
lines.  Solution is to only use them in troff mode.

Also fixed a related bug in .It macros, where it would insert a page break
in the middle of a sentence.

Removed the end of page trap in nroff mode, as this causes .sp requests to
sometimes eat the space due to the nearby trap.

Removed blank line that appeared as the first line on each nroff-formatted
manual page.

Obtained from:	NetBSD
2000-09-21 17:02:15 +00:00
Ruslan Ermilov
35cf65631c Teach .Fx and .Os about FreeBSD 4.2. 2000-09-01 10:30:40 +00:00
Alexey Zelkin
b0f28b7f4a Add libusb record for .Lb macro 2000-08-29 15:15:48 +00:00
Brian Feldman
2f3f4cfcb8 s/Diggest/Digest/ 2000-07-28 01:54:17 +00:00
Andrey A. Chernov
53ace76468 Remove stale file - moved to new location 2000-05-07 13:34:40 +00:00
Alexey Zelkin
392e724c06 Update my copyright. Add license. 2000-05-04 18:21:11 +00:00
Alexey Zelkin
8cc2d40041 Set `Er' default value to 17n (length("EPROTONOSUPPORT") + 1)
Discussed long time ago at -committers
2000-05-04 12:56:53 +00:00
Alexey Zelkin
b4bc89bdd1 Add libipsec to the list of known libraries for .Lb macro 2000-05-01 14:32:43 +00:00
Alexey Zelkin
b673230313 Fix typo
Noticed by:	jasone
2000-04-28 09:30:57 +00:00
Alexey Zelkin
10181a4a7e Suggest to use -pthreads instead of -lc_r
Noticed by:	John-Mark Gurney <gurney_j@efn.org>
2000-04-27 08:54:09 +00:00
Alexey Zelkin
988d59a7ab Add note about synchronization of .Lb macro code and its section
in mdoc.samples(7)
2000-04-23 14:53:57 +00:00
Alexey Zelkin
efa90abcbe Teach .Lb macro about other libraries. 2000-04-22 15:48:32 +00:00
Alexey Zelkin
ddd1f930f3 Introduce new mdoc macro -- Lb. It will be used to define library ownership
for function. For example: for stat(2) syscall (owned by libc)  we will add
following code:

.Sh LIBRARY
.Lb libc

and it will be rendered to:

LIBRARY
     Standard C Library (libc, -lc)

Suggested by:		mpp
Idea obtained from:	NetBSD
2000-04-21 09:35:43 +00:00
Ruslan Ermilov
b0642e8fda Teach Fx and Os about FreeBSD 4.1 and FreeBSD 5.0. 2000-03-13 19:44:24 +00:00
Joerg Wunsch
6297a0e23f Fix a problem that caused the generation of an (almost) empty first
page of -mdoc manual pages in troff mode.  The problem has been
introduced in rev 1.12; apparently ending a line inside a macro
definition with \c doesn't behave as Bill expected, and troff was
fooled to believe previous output was already pending thus a new page
needed to be emitted.  Using a troff comment .\" instead of \c seems
to solve this, alas the brain^Wnice sed(1) magic needs to be taught to
_not_ strip those comments now.

I think -stable is not affected by this.
2000-01-27 17:56:41 +00:00
Jeroen Ruigrok van der Werven
f793f3b35e The groff package is not maintained by jjc@jclark.com anymore.
Reflect this change in the upgrade file.
2000-01-12 10:35:57 +00:00
Jeroen Ruigrok van der Werven
49cdd23549 Fix conflicts which arose during import, also add $FreeBSD$. 2000-01-12 10:26:36 +00:00
Jeroen Ruigrok van der Werven
e159d2bd86 Virgin import of FSF groff v1.15 2000-01-12 09:51:43 +00:00
Jeroen Ruigrok van der Werven
444af277af This commit was generated by cvs2svn to compensate for changes in r55839,
which included commits to RCS files with non-trunk default branches.
2000-01-12 09:51:43 +00:00
Alexey Zelkin
2fbeee0c6c Teach .Os macro about 3.4-RELEASE and 3.5-RELEASE.
Allow to specify major version number only (like ``.Os FreeBSD 3''.
2000-01-07 12:54:00 +00:00
Alexey Zelkin
0434a6f844 Teach .Fx macro about 3.4-RELEASE and 3.5-RELEASE 2000-01-07 12:51:34 +00:00
Andrey A. Chernov
2adca0d334 Oops, fix typo in prev commit 2000-01-06 12:48:48 +00:00
Andrey A. Chernov
2b1956a854 Don't set \(hy to char173 for koi8-r 2000-01-06 12:47:21 +00:00
Alexey Zelkin
61452e405e Mention -p and -t options. 1999-09-24 11:37:06 +00:00
Alexey Zelkin
25b666e0ca Learn nroff about -p and -t options. It allows to preprocess
file with pic(1) and tbl(1).

Not objected to:	mpp
1999-09-23 13:40:28 +00:00
Andrey A. Chernov
62e93e1c86 moved to tmac/locale 1999-09-23 02:56:00 +00:00
Alexey Zelkin
72f89f7ee3 Allow .Rv macro to be used in 7th section also. This patch
will fix  "Usage: .Rv ..." error at mdoc.samples.7

Ok'ed by:	mpp
1999-09-22 22:36:16 +00:00
Alexey Zelkin
630bf98376 Allow "Alpha" as 2nd argument for .Dt macro. So, we can go
with "Alpha architecture" manpages.
1999-09-22 21:38:40 +00:00
Andrey A. Chernov
f273033f60 pick up locales from locale subdir
Submitted by:  "Alexey Zelkin" <phantom@crimea.edu>
1999-09-11 20:01:41 +00:00
Andrey A. Chernov
36fa8b8137 koi8-r mandoc tweaks
Submitted by: "Alexey Zelkin" <phantom@crimea.edu>
1999-09-11 19:49:21 +00:00
Andrey A. Chernov
2054e06633 source hyphen.us-ru from locale subdir 1999-09-11 19:32:14 +00:00
Ruslan Ermilov
93baf5748b Add FreeBSD 3.3 to the Fx and Os macros. 1999-09-07 10:33:34 +00:00
Andrey A. Chernov
dd15a36091 Tune table since 0200-0206 is not available, add more chars 1999-07-31 15:51:57 +00:00
Andrey A. Chernov
4616b73ba5 bad news: chars 0200-0206 used internally in troff, make them back illegal 1999-07-31 15:15:15 +00:00
Andrey A. Chernov
8ebb4e385e make all chars above 127 legal 1999-07-31 14:57:13 +00:00
Andrey A. Chernov
6b2ae6bb1a change prev. commit: emulate latin1 on ascii if latin1 chars are
in the text as groff authors suppose
1999-07-31 14:16:04 +00:00
Andrey A. Chernov
9bb5be80ec Add more koi8-r chars 1999-07-31 13:17:47 +00:00
Andrey A. Chernov
224f446249 Pick hardcoded latin1 chars definitions only if -Tlatin1 1999-07-31 12:00:58 +00:00
Andrey A. Chernov
199f4ec6ac Sense $LANG only if $LC_CTYPE is not set 1999-07-30 16:34:06 +00:00
Mike Pritchard
f7141d9373 Teach the .At macro about releases v2, v3, v4, and v5 of AT&T UNIX. 1999-07-30 12:33:26 +00:00
Warner Losh
758ce8b4e2 Force safer mode of operation for man's use of *roff.
Obtained from: OpenBSD's nroff.sh 1.2 by aaron@openbsd.org
1999-07-30 05:20:17 +00:00
Andrey A. Chernov
a26aa2519f Fix -T doubling 1999-06-07 19:28:47 +00:00
Bill Fenner
632a869805 Add 3.2 to the list of legal FreeBSD versions for the .Os FreeBSD macro. 1999-05-14 17:35:17 +00:00
Bill Fenner
cd72c5ff16 Add 3.2 to the list of legal FreeBSD versions for the .Fx macro. 1999-05-14 17:32:21 +00:00
Joseph Koshy
4fb051df9b Complete the list of FreeBSD version numbers accepted by the .Fx macro.
PR:		docs/11705
Submitted by:	Stephen J. Roznowski <sjr@home.net>
1999-05-14 07:03:18 +00:00
David E. O'Brien
c1e7f73edd Fix conflicts. 1999-03-15 09:18:28 +00:00
David E. O'Brien
4ff90835e2 Virgin import of FSF groff v1.11 1999-03-15 08:36:16 +00:00
David E. O'Brien
6b23715173 This commit was generated by cvs2svn to compensate for changes in r44777,
which included commits to RCS files with non-trunk default branches.
1999-03-15 08:36:16 +00:00
Bill Fenner
1a8f70b737 Make .Os behave as defined (unrecognized arguments displayed as given).
Add a warning for unknown BSD versions.
Make ".Os FreeBSD" work without a warning (fix bug in previous commit).
1999-02-18 16:54:24 +00:00
Bill Fenner
5922dcdc1a Change .Fx macro to always display "FreeBSD" and its argument, whether
the argument is a known FreeBSD version or not.
Output an nroff error if .Fx is used with an unknown FreeBSD version.
Change .Nx and .Ox macros to always display the argument, whether
 the argument is a known version or not.  This eliminates much of the
 need to syncrhonize .Nx and .Ox with their source OS's -- only the
 exceptions (like ".Nx 1.2a" -> "NetBSD 1.2A") where the argument is
 not directly copied to the output need to be added.
1999-02-15 07:27:18 +00:00
Bill Fenner
c0d0c7a4f8 Always define oS to be "FreeBSD $2", no matter whether or not we
know the version number given as the argument to ".Os FreeBSD xxx".
Output nroff warning when we see a version number that we don't
know about.
1999-02-15 07:24:09 +00:00
Kazutaka YOKOTA
9c3f00c738 - Add FreeBSD 2.2.7, 2.2.8, 3.1, and 4.0 to the Fx and Os macros.
- Add 2.2.1 and 2.2.2 missing in a couple of places too.

(This is an interim measure and a better way of redefining these macros
is in discussion.)
1999-02-07 05:36:30 +00:00
John Polstra
e9dd419a1b Correct the previous Y2K "fix". It caused man page dates to come
out like "January 19, 99+1900".
1999-01-19 17:55:23 +00:00
Garrett Wollman
2af878cba4 Add a macro for ISO/IEC 9945-1: 1996, the official designation of the most
recent POSIX.1 standard.
1999-01-03 00:58:50 +00:00
David E. O'Brien
e6f93514c8 The \*(td string macro, which is supposed to display today's date in the form
"October 14, 1998".  A Y2k fix makes it now display "October 14, 98+1900".
Appears you can perform arithmetic in a string definition.

PR:		gnu/8321
Reviewed by:	Andrew J. Korty <ajk@purdue.edu>
1998-12-06 05:54:26 +00:00
Garrett Wollman
f0da769a73 Add a .St -p1003.1g. 1998-09-12 21:31:21 +00:00
Alexander Langer
805749c0db Added .St -susv2 --> Version 2 of the Single UNIX Specification 1998-09-07 18:52:57 +00:00
Dmitrij Tejblum
c713c527bb Add XPG4.2. 1998-07-08 15:05:05 +00:00
Steve Price
a205fdb540 Fix spelling error.
PR:		6572
Submitted by:	Kazuo Horikawa <horikawa@jp.freebsd.org>
1998-05-11 03:44:55 +00:00
Bruce Evans
8c4461a8ff Removed yacc output files so that it is impossible to mix them with
new ones that we generate.
1998-03-27 11:14:12 +00:00
Bruce Evans
eab034e45d Removed yacc output files so that it is impossible to mix them with
new ones that we generate.  We used to always mix the old header with
the new .cc file.  This worked because Cygnus's yacc is surprisingly
compatible with our yacc.
1998-03-27 11:13:47 +00:00
Wolfram Schneider
721d426d82 Add OS macros for FreeBSD 2.2.6, OpenBSD 2.2, OpenBSD 2.3. 1997-12-28 18:20:05 +00:00
Jordan K. Hubbard
57ff4097d0 diff to /usr/share/tmac/mdoc/mdoc-syms to accept
.Fx 2.2.1
   .Fx 2.2.2
Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1997-12-27 05:55:15 +00:00
James Raynard
002706979c Year 2000 fixes for groff
PR:		4930
Submitted by:	Stephen J. Roznowski
1997-12-20 22:29:55 +00:00
Wolfram Schneider
99352561f6 .Ox macro needs to support "OpenBSD 2.1"
PR: docs/4561
Submitted by: Norihiro Kumagai <kuma@slab.tnr.sharp.co.jp>
1997-09-19 21:37:05 +00:00
Wolfram Schneider
11210c4ed5 Add a simple manpage. 1997-09-15 16:08:56 +00:00
Andrey A. Chernov
dfb33229a0 Sense *.ISO_8859-1 and *.KOI8-R locales from environment
PR: 4290
Submitted by: "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
1997-09-15 02:03:13 +00:00
Wolfram Schneider
c455f09b2d Add a simple manpage. 1997-09-14 23:43:22 +00:00