Commit Graph

298 Commits

Author SHA1 Message Date
Ruslan Ermilov
18adde964d Pull up vendor changes. 2010-01-15 15:10:29 +00:00
Ruslan Ermilov
1b2ef7353d Moved the doc-str-Lb-libulog string definition to where it belongs. 2010-01-15 14:05:06 +00:00
Ruslan Ermilov
4d433b8ccd Pull up vendor changes. The following local changes made obsolete:
- Addition of several FreeBSD versions.
- r192561 that attempted to fix UTF-8 issues.
2010-01-15 13:59:50 +00:00
Ruslan Ermilov
0e96a56a89 Flatten out vendor tree. 2010-01-15 12:01:25 +00:00
Ed Schouten
2208eadf43 Add a new library: libulog.
One of the things I really want to do, is to get rid of the limitations
of our current utmp(5) mechanism:

- It only allows 8 byte TTY device names.
- The hostname only allows 16 bytes of storage.

I'm not a big fan of <utmpx.h>, but I think we should at least try to
add parts of it. Unfortunately we cannot implement <utmpx.h>, because we
miss various fields, such as ut_id, ut_pid, etc. The API provided by
libulog shares some similarities with <utmpx.h>, so it shouldn't be too
hard to port these applications eventually. In most simple cases, it
should just be a matter of removing the ulog_ prefix everywhere.

As a bonus, it also implements a function called ulog_login_pseudo(),
which allows unprivileged applications to write log entries, provided
they have a valid file descriptor to a pseudo-terminal master device.

libulog will allow a smoother transition to a new file format by adding
a library interface to deal with utmp/wtmp/lastlog files. I initially
thought about adding the functionality to libutil, but because I'm not
planning on keeping this library around forever, we'd better keep it
separated.

Next items on the todo list:

1. Port applications in the base system (and ports) to libulog, instead
   of letting them use <utmp.h>.
2. Remove <utmp.h>, implement <utmpx.h> and reimplement this library on
   top.
3. Port as many applications as possible back to <utmpx.h>.
2009-12-03 15:48:24 +00:00
Dag-Erling Smørgrav
62aa21ae86 When man pages are formatted in UTF-8, .Fl is encoded as U+2212 "MINUS
SIGN" instead of U+002D "HYPHEN-MINUS".  This is unfortunate for two
reasons: 1) this is not the character which is actually used on the
command line, and 2) it makes it impossible to search a man page for a
specific command-line option.

This patch fixes this, but there are other unresolved issues, such as
confusion between -, \- and hy: while the latter is always (and only)
used for hyphenation, both - and \- are used for negation and
subtraction, and \- is used for command-line options and sometimes
also for parenthesis.  IMHO, the correct Unicode characters are:

 - hyphenation: either U+2010 or U+00AD, most likely the former (the
   latter is the so-called soft hyphen, used to indicate a point at
   which a text processor is allowed to hyphenate a word)

 - negation and subtraction: U+2212

 - parenthesis: in English, U+2214, with spaces suppressed before and
   after; in some others (such as Norwegian), U+2213 with spaces
   retained.

 - command-line options: U+002D, because that is what is actually used
   on the command line.

However, fixing this would require extensive modifications to (at least)
the doc and man macro sets...

MFC after:	1 week
2009-05-21 17:56:00 +00:00
Ruslan Ermilov
80cc270287 MFV: recent mdoc(7) changes.
Approved by:	re (kensmith)
2007-10-04 04:38:23 +00:00
Ruslan Ermilov
95261a8d0f Pull up current -mdoc version from vendor. This includes the
following changes:

: 2007-10-02  Ruslan Ermilov  <ru@FreeBSD.org>
:
:         * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
:         FreeBSD 5.5 and 7.0.
:
:         * tmac/doc-syms: Give better names for System V releases.

: 2007-05-30  Werner LEMBERG <wl@gnu.org>
:
:         * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
:         Recommend `tbl' instead of `-column' lists for more complicated
:         cases.
2007-10-03 06:04:40 +00:00
Ruslan Ermilov
2cd96fdf2c This commit was generated by cvs2svn to compensate for changes in r172423,
which included commits to RCS files with non-trunk default branches.
2007-10-03 06:04:40 +00:00
Ruslan Ermilov
3d4c5c90cb MFV: Sync with vendor branch. 2006-12-25 09:03:10 +00:00
Ruslan Ermilov
5bba0737f1 Pull up current -mdoc version from vendor.
- New Darwin, FreeBSD, and NetBSD versions.
- DragonFly support including the new .Dx macro.
- New .St strings: -isoC-amd1, -isoC-tcor1, -isoC-tcor2, and -ieee1275-94.
2006-12-25 08:59:09 +00:00
Ruslan Ermilov
16fa9cc022 This commit was generated by cvs2svn to compensate for changes in r165538,
which included commits to RCS files with non-trunk default branches.
2006-12-25 08:59:09 +00:00
Ruslan Ermilov
b281aca4ad Pull up from the FSF branch. 2006-01-12 15:31:41 +00:00
Ruslan Ermilov
b99439c39a Merge support for new BSD releases from upstream:
- Darwin 8.[0-3].0
- FreeBSD 4.11, 5.4, 6.0, 6.1
- NetBSD 3.0
2006-01-12 15:26:11 +00:00
Ruslan Ermilov
401070f083 This commit was generated by cvs2svn to compensate for changes in r154258,
which included commits to RCS files with non-trunk default branches.
2006-01-12 15:26:11 +00:00
Ruslan Ermilov
5ca88fcbc5 Update upgrade instructions. 2005-10-20 11:18:24 +00:00
Ruslan Ermilov
ed6ac7236a Merge Groff 1.19.2 changes. 2005-10-20 10:53:15 +00:00
Ruslan Ermilov
982fd8a3e4 Use stock (FSF) version of this file. 2005-10-20 10:52:34 +00:00
Ruslan Ermilov
22481ce32f Removed files not present in v1.19.2 import. 2005-10-20 10:47:26 +00:00
Ruslan Ermilov
d870518220 This commit was generated by cvs2svn to compensate for changes in r151500,
which included commits to RCS files with non-trunk default branches.
2005-10-20 10:47:26 +00:00
Ruslan Ermilov
22e7cbb874 Virgin import of FSF groff v1.19.2 2005-10-20 10:45:19 +00:00
Ruslan Ermilov
1c7b34d8d7 This commit was generated by cvs2svn to compensate for changes in r151497,
which included commits to RCS files with non-trunk default branches.
2005-10-20 10:45:19 +00:00
Ruslan Ermilov
2ed83d261b MFV: Latest mdoc(7) fixes. 2005-01-25 09:32:56 +00:00
Ruslan Ermilov
bc33253bf8 Bring in latest mdoc(7) fixes over here. 2005-01-25 09:29:48 +00:00
Ruslan Ermilov
3899af05ce This commit was generated by cvs2svn to compensate for changes in r140801,
which included commits to RCS files with non-trunk default branches.
2005-01-25 09:29:48 +00:00
Ruslan Ermilov
32fe84f7e8 Pull up a vendor fix for a problem exposed by tr/tr.1,v 1.30. 2005-01-14 09:50:45 +00:00
Ruslan Ermilov
7643035a1c This commit was generated by cvs2svn to compensate for changes in r140229,
which included commits to RCS files with non-trunk default branches.
2005-01-14 09:50:45 +00:00
Joseph Koshy
548c9b4376 Revert rev 1.66. This file needs to track its upstream source.
Requested by:	ru
2004-12-17 16:29:54 +00:00
Joseph Koshy
e791235b73 Support for ".Fx 6.0".
Reviewed by:	ru
2004-12-17 14:10:44 +00:00
Ruslan Ermilov
6f9868d148 Pull up the latest minor fixes. 2004-10-05 06:14:29 +00:00
Ruslan Ermilov
04e67b43ff This commit was generated by cvs2svn to compensate for changes in r136136,
which included commits to RCS files with non-trunk default branches.
2004-10-05 06:14:29 +00:00
Ruslan Ermilov
abcbe24601 Sync with FSF. 2004-07-30 08:14:00 +00:00
Ruslan Ermilov
e4bda9ead6 Pull up latest mdoc(7) changes:
: 2004-05-10  Werner LEMBERG  <wl@gnu.org>
:
: 	* tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
: 	doc-str-Lb-librt): Reset font.
: 	(Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
: 	Provide `doc-str-Lb' to reset font.
: 	* tmac/groff_mdoc.man: Updated.

: 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
:
: 	* tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
: 	* tmac/groff_mdoc.man: Updated.
2004-07-30 08:12:09 +00:00
Ruslan Ermilov
001a0cba02 This commit was generated by cvs2svn to compensate for changes in r132873,
which included commits to RCS files with non-trunk default branches.
2004-07-30 08:12:09 +00:00
Ruslan Ermilov
cf607fd656 From ChangeLog:
: 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
: 	* doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
: 	and \n[mo] to avoid dependency on current date.
2004-06-14 09:09:06 +00:00
Ruslan Ermilov
89e04eca44 This commit was generated by cvs2svn to compensate for changes in r130457,
which included commits to RCS files with non-trunk default branches.
2004-06-14 09:09:06 +00:00
Ruslan Ermilov
5f383c5de8 Pull up latest mdoc(7) changes. 2004-04-16 07:12:38 +00:00
Ruslan Ermilov
b1725c05e9 Pull up latest mdoc(7) changes:
: 2004-04-14  Thomas Klausner <wiz@netbsd.org>
:
: 	* tmac/doc-common (doc-volume-as-*): Use lowercase names.
: 	(doc-operating-system-*): Updated.
: 	* tmac/doc-syms (doc-str-St-*): Various small fixes.
: 	(doc-str-Lb-*): Add more library names.
2004-04-16 07:08:33 +00:00
Andrey A. Chernov
b3ab6e504b Back out getopt* adding here per maintainer request 2004-02-25 03:10:14 +00:00
Andrey A. Chernov
738f8e7150 Remove unneeded files 2004-02-17 03:43:12 +00:00
Ruslan Ermilov
e66afe03de MFV: The -d option. 2003-11-02 07:27:40 +00:00
Ruslan Ermilov
f5b8c6dcbc Sort encodings. 2003-11-02 07:25:24 +00:00
Ruslan Ermilov
7743fe0e1b From ChangeLog:
: 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
:
: 	* src/roff/nroff/nroff.sh: Add option -d for completeness.
: 	* src/roff/nroff/nroff.man: Updated.
2003-11-02 06:56:52 +00:00
Ruslan Ermilov
641e45f5da Sync with FSF branch. 2003-09-20 21:20:01 +00:00
Ruslan Ermilov
cd060126ad Keep up with recent mdoc(7) changes, that include:
- If no .Os call is made, don't print the OS info at all.
- Allow for multiple .Lb calls in the LIBRARY section.
- Improved documentation on punctuation characters.
2003-09-20 21:13:43 +00:00
Ruslan Ermilov
5249fed37f This commit was generated by cvs2svn to compensate for changes in r120297,
which included commits to RCS files with non-trunk default branches.
2003-09-20 21:13:43 +00:00
Ruslan Ermilov
9d1be4e42e Unbreak Russian KOI8-R support. 2003-09-08 17:46:33 +00:00
Ruslan Ermilov
700a09db9e Fix for troff mode. The
.Pp
.Bd -literal
...

fragment resulted in two vertical spaces.  From ChangeLog:

2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>

        * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2003-07-05 22:58:04 +00:00
Ruslan Ermilov
7ca1ec2c8c This commit was generated by cvs2svn to compensate for changes in r117264,
which included commits to RCS files with non-trunk default branches.
2003-07-05 22:58:04 +00:00
Ruslan Ermilov
504586cecd MFV. 2003-07-03 18:01:20 +00:00