From cdf00c1095f9e7dd26dccad3049442684768da62 Mon Sep 17 00:00:00 2001
From: Ingo Schwarze <schwarze@usta.de>
Date: Sun, 30 Aug 2015 15:22:10 +0200
Subject: [PATCH:xorg-docs 1/5] remove bogus \/ escapes
some X manuals use then escape sequence \/ when they want to render
a slash. That's bad because \/ is not a slash but an italic
correction, never producing any output, having no effect at all in
terminal output, and only changing spacing in a minor way in typeset
output.
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
---
man/X.man | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/man/X.man b/man/X.man
index 16b4c96..bc9fc1a 100644
--- a/man/X.man
+++ b/man/X.man
@@ -224,7 +224,7 @@ The hostname part of the display name should be the empty string.
For example: \fI:0\fP, \fI:1\fP, and \fI:0.1\fP. The most efficient
local transport will be chosen.
.TP 8
-.I TCP\/IP
+.I TCP/IP
.br
The hostname part of the display name should be the server machine's
hostname or IP address. Full Internet names, abbreviated names, IPv4
@@ -487,7 +487,7 @@ implementation dependent.
If the name is not found, the color is looked up in the
X server's database.
The text form of this database is commonly stored in the file
-\fI\__datadir__/X11/rgb.txt\fP.
+\fI__datadir__/X11/rgb.txt\fP.
.PP
A numerical color specification
consists of a color space name and a set of values in the following syntax:
@@ -1164,7 +1164,7 @@ A wide variety of error messages are generated from various programs.
The default error handler in \fIXlib\fP (also used by many toolkits) uses
standard resources to construct diagnostic messages when errors occur. The
defaults for these messages are usually stored in
-\fI\__datadir__/X11/XErrorDB\fP. If this file is not present,
+\fI__datadir__/X11/XErrorDB\fP. If this file is not present,
error messages will be rather terse and cryptic.
.PP
When the X Toolkit Intrinsics encounter errors converting resource strings to
--
1.7.9.2
From 02a513c7847ce37ba3bc1e6f2f5ed5a77062a60d Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Tue, 27 Oct 2015 17:49:44 -0700
Subject: [PATCH:xorg-docs 2/5] X.man: give pointers to specs & other docs
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
---
man/X.man | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/man/X.man b/man/X.man
index bc9fc1a..057a7b8 100644
--- a/man/X.man
+++ b/man/X.man
@@ -76,6 +76,20 @@ the \fIXlib - C Language X Interface\fP manual,
the \fIX Window System Protocol\fP specification,
the \fIX Toolkit Intrinsics - C Language Interface\fP manual,
and various toolkit documents.
+.\" Use .UR macro from groff's man(7) if available, otherwise just
+.\" display URL as plain text for other processors.
+.if !d UR \{
+.de UR
+.RI < \\$1 >
+..
+.de UE
+.RI \\$1
+.. \}
+.\"
+Those manuals, specifications, & documents may be found in
+__datadir__/doc or on the X.Org Foundation website at
+.UR "http://www.x.org/releases/current/doc/"
+.UE .
.PP
The number of programs that use \fIX\fP is quite large.
Programs provided in the core X.Org Foundation distribution include:
@@ -1269,10 +1283,17 @@ the appropriate instance name can be placed before the asterisk:
.BR Xvfb (__appmansuffix__),
.BR Xvnc (__appmansuffix__),
.BR XWin (__appmansuffix__).
+.PP
.\" specifications
.I "Xlib \- C Language X Interface\fR,\fP"
and
.I "X Toolkit Intrinsics \- C Language Interface"
+.PP
+Those specifications, and additional specifications & documentation for the
+X Window System may also be found in __datadir__/doc or on the X.Org Foundation
+website at
+.UR "http://www.x.org/releases/current/doc/"
+.UE .
.SH TRADEMARKS
.PP
X Window System is a trademark of The Open Group.
--
1.7.9.2
From b0348bd9f9c79b87c93e2d71dba674ebcb31d8f7 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Tue, 27 Oct 2015 18:15:06 -0700
Subject: [PATCH:xorg-docs 3/5] X.man: update program lists/info for modern
era
We no longer have a monolithic X.Org distribution, nor a separate
user-contributed distribution from X.Org, but instead many OS distros.
Also stop recommending so much abandonware, but do point out the programs
we've added over the years and still maintain.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
---
man/X.man | 53 +++++++++++++++++++++++++----------------------------
1 file changed, 25 insertions(+), 28 deletions(-)
diff --git a/man/X.man b/man/X.man
index 057a7b8..d07e69e 100644
--- a/man/X.man
+++ b/man/X.man
@@ -92,42 +92,37 @@ __datadir__/doc or on the X.Org Foundation website at
.UE .
.PP
The number of programs that use \fIX\fP is quite large.
-Programs provided in the core X.Org Foundation distribution include:
+Sample programs provided by the X.Org Foundation include:
a terminal emulator, \fIxterm\fP;
a window manager, \fItwm\fP;
+a compositing manager, \fIxcompmgr\fP;
a display manager, \fIxdm\fP;
a console redirect program, \fIxconsole\fP;
-a mail interface, \fIxmh\fP;
-a bitmap editor, \fIbitmap\fP;
+utilities for managing input and output devices, \fIxinput\fP and \fIxrandr\fP;
resource listing/manipulation tools, \fIappres\fP, \fIeditres\fP;
access control programs, \fIxauth\fP, \fIxhost\fP, and \fIiceauth\fP;
-user preference setting programs, \fIxrdb\fP, \fIxcmsdb\fP,
+user preference setting programs, \fItransset\fP, \fIxrdb\fP, \fIxcmsdb\fP,
\fIxset\fP, \fIxsetroot\fP, \fIxstdcmap\fP, and \fIxmodmap\fP;
clocks, \fIxclock\fP and \fIoclock\fP;
-a font displayer, \fIxfd\fP;
-utilities for listing information about fonts, windows, and displays,
-\fIxlsfonts\fP, \fIxwininfo\fP, \fIxlsclients\fP,
-\fIxdpyinfo\fP, \fIxlsatoms\fP, and \fIxprop\fP;
+font display utilities, \fIxfd\fP and \fIxfontsel\fP;
+utilities for listing information about displays, extensions, and resources,
+\fIxdpyinfo\fP, \fIxdriinfo\fP, \fIxvinfo\fP, \fIxwininfo\fP, \fIxlsclients\fP,
+\fIxprop\fP, \fIxlsatoms\fP, \fIxlsclients\fP, and \fIxlsfonts\fP;
screen image manipulation utilities, \fIxwd\fP, \fIxwud\fP, and \fIxmag\fP;
a performance measurement utility, \fIx11perf\fP;
a font compiler, \fIbdftopcf\fP;
-a font server and related utilities, \fIxfs\fP, \fIfsinfo\fP, \fIfslsfonts\fP, \fIfstobdf\fP;
+a font server and related utilities, \fIxfs\fP, \fIxfsinfo\fP, \fIfslsfonts\fP, \fIfstobdf\fP;
a display server and related utilities, \fIXserver\fP, \fIrgb\fP, \fImkfontdir\fP;
a clipboard manager, \fIxclipboard\fP;
keyboard description compiler and related utilities, \fIxkbcomp\fP, \fIsetxkbmap\fP
\fIxkbprint\fP, \fIxkbbell\fP, \fIxkbevd\fP, \fIxkbvleds\fP, and \fIxkbwatch\fP;
a utility to terminate clients, \fIxkill\fP;
-a firewall security proxy, \fIxfwp\fP;
-a proxy manager to control them, \fIproxymngr\fP;
-a utility to find proxies, \fIxfindproxy\fP;
-web browser plug-ins, \fIlibxrx.so\fP and \fIlibxrxnest.so\fP;
-an RX MIME-type helper program, \fIxrx\fP;
and a utility to cause part or all of the screen to be redrawn, \fIxrefresh\fP.
.PP
Many other utilities, window managers, games, toolkits, etc. are included
-as user-contributed software in the X.Org Foundation distribution, or are
+as packages in many operating system distributions, or are
available on the Internet.
-See your site administrator for details.
+See your site administrator or distro package manager for details.
.SH "STARTING UP"
.PP
There are two main ways of getting the X server and an initial set of
@@ -376,12 +371,12 @@ to explicitly draw the window's region on the screen with the pointer, for
example).
.PP
Since window managers are regular (albeit complex) client programs,
-a variety of different user interfaces can be built. The X.Org Foundation distribution
-comes with a window manager named \fItwm\fP which supports overlapping windows,
+a variety of different user interfaces can be built. The X.Org Foundation
+provides a window manager named \fItwm\fP which supports overlapping windows,
popup menus, point-and-click or click-to-type input models, title bars, nice
icons (and an icon manager for those who don't like separate icon windows).
.PP
-See the user-contributed software in the X.Org Foundation distribution for other
+See your distro package manager for other
popular window managers.
.SH "FONT NAMES"
Collections of characters for displaying text and symbols in X are known as
@@ -1218,19 +1213,16 @@ the appropriate instance name can be placed before the asterisk:
.BR bdftopcf (__appmansuffix__),
.BR bitmap (__appmansuffix__),
.BR editres (__appmansuffix__),
-.BR fsinfo (__appmansuffix__),
.BR fslsfonts (__appmansuffix__),
.BR fstobdf (__appmansuffix__),
.BR iceauth (__appmansuffix__),
-.BR imake (__appmansuffix__),
-.BR makedepend (__appmansuffix__),
.BR mkfontdir (__appmansuffix__),
+.BR mkfontscale (__appmansuffix__),
.BR oclock (__appmansuffix__),
-.BR proxymngr (__appmansuffix__),
.BR rgb (__appmansuffix__),
.BR resize (__appmansuffix__),
-.BR rstart (__appmansuffix__),
.BR smproxy (__appmansuffix__),
+.BR transset (__appmansuffix__),
.BR twm (__appmansuffix__),
.BR x11perf (__appmansuffix__),
.BR x11perfcomp (__appmansuffix__),
@@ -1238,13 +1230,16 @@ the appropriate instance name can be placed before the asterisk:
.BR xclipboard (__appmansuffix__),
.BR xclock (__appmansuffix__),
.BR xcmsdb (__appmansuffix__),
+.BR xcompmgr (__appmansuffix__),
.BR xconsole (__appmansuffix__),
.BR xdm (__appmansuffix__),
.BR xdpyinfo (__appmansuffix__),
+.BR xdriinfo (__appmansuffix__),
+.BR xev (__appmansuffix__),
.BR xfd (__appmansuffix__),
-.BR xfindproxy (__appmansuffix__),
+.BR xfontsel (__appmansuffix__),
.BR xfs (__appmansuffix__),
-.BR xfwp (__appmansuffix__),
+.BR xfsinfo (__appmansuffix__),
.BR xhost (__appmansuffix__),
.BR xinit (__appmansuffix__),
.BR xkbbell (__appmansuffix__),
@@ -1259,17 +1254,19 @@ the appropriate instance name can be placed before the asterisk:
.BR xlsclients (__appmansuffix__),
.BR xlsfonts (__appmansuffix__),
.BR xmag (__appmansuffix__),
-.BR xmh (__appmansuffix__),
.BR xmodmap (__appmansuffix__),
.BR xprop (__appmansuffix__),
+.BR xrandr (__appmansuffix__),
.BR xrdb (__appmansuffix__),
.BR xrefresh (__appmansuffix__),
-.BR xrx (__appmansuffix__),
+.BR xrestop (__appmansuffix__),
+.BR xscope (__appmansuffix__),
.BR xset (__appmansuffix__),
.BR xsetroot (__appmansuffix__),
.BR xsm (__appmansuffix__),
.BR xstdcmap (__appmansuffix__),
.BR xterm (__appmansuffix__),
+.BR xvinfo (__appmansuffix__),
.BR xwd (__appmansuffix__),
.BR xwininfo (__appmansuffix__),
.BR xwud (__appmansuffix__).
--
1.7.9.2
From 9e48239436c256ff695cefea1433cdb2868667a9 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Tue, 27 Oct 2015 19:06:53 -0700
Subject: [PATCH:xorg-docs 4/5] X.man: document protocol/ syntax in display
string
See http://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html#Opening_the_Display
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
---
man/X.man | 25 ++++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/man/X.man b/man/X.man
index d07e69e..a4f4614 100644
--- a/man/X.man
+++ b/man/X.man
@@ -1,4 +1,4 @@
-.\" t
+'\" t
.\"
.\" Copyright (c) 1994, 2004 The Open Group
.\" Copyright \(co 2000 The XFree86 Project, Inc.
@@ -165,15 +165,34 @@ form:
.RS
\fIhostname:displaynumber.screennumber\fP
.RE
+or
+.RS
+\fIprotocol/hostname:displaynumber.screennumber\fP
+.RE
.sp
This information is used by the application to determine how it should
connect to the server and which screen it should use by default
(on displays with multiple monitors):
.TP 8
+.I protocol
+The \fIprotocol\fP specifies the protocol to use for communication.
+Exactly which protocols are supported is platform dependent, but most
+commonly supported ones are:
+.TS
+l l.
+tcp TCP over IPv4 or IPv6
+inet TCP over IPv4 only
+inet6 TCP over IPv6 only
+unix UNIX Domain Sockets (same host only)
+local Platform preferred local connection method
+.TE
+If the protocol is not specified, Xlib uses whatever it believes is the
+most efficient transport.
+.TP 8
.I hostname
The \fIhostname\fP specifies the name of the machine to which the display is
-physically connected. If the hostname is not given, the most efficient way of
-communicating to a server on the same machine will be used.
+physically connected. If the hostname is not given, a connection to a server
+on the same machine will be used.
.TP 8
.I displaynumber
The phrase "display" is usually used to refer to a collection of monitors that
--
1.7.9.2
From 299e213f14d8d1586eb5d47d974c4fcffc807679 Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Tue, 27 Oct 2015 19:27:49 -0700
Subject: [PATCH:xorg-docs 5/5] X.man: move XLOCAL documentation from Xorg(1)
man page
These settings affect clients, not server, so belong here, next to
the information about how to set $DISPLAY.
Also updated to drop ISC and correct description of Unix domain sockets.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
---
man/X.man | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/man/X.man b/man/X.man
index a4f4614..8aa4014 100644
--- a/man/X.man
+++ b/man/X.man
@@ -260,6 +260,55 @@ addresses, and IPv6 addresses are all allowed. For example:
\fIx.org:0\fP, \fIexpo:0\fP, \fI[::1]:0\fP,
\fI198.112.45.11:0\fP, \fIbigmachine:1\fP, and \fIhydra:0.1\fP.
.PP
+.SH "LOCAL CONNECTIONS"
+For operating systems that support local connections other than Unix
+Domain sockets (SVR3 and SVR4), there is a compiled-in list specifying
+the order in which local connections should be attempted. This list
+can be overridden by the
+.I XLOCAL
+environment variable described below. If the display name indicates a
+best-choice connection should be made (e.g.
+.BR :0.0 ),
+each connection mechanism is tried until a connection succeeds or no
+more mechanisms are available.
+.PP
+The
+.I XLOCAL
+environment variable should contain a list of one more
+more of the following:
+.PP
+.RS 8
+.nf
+NAMED
+PTS
+SCO
+UNIX
+.fi
+.RE
+.PP
+which represent SVR4 Named Streams pipe, Old-style USL Streams pipe,
+SCO XSight Streams pipe, and Unix domain sockets, respectively. You can
+select a single mechanism (e.g.
+.IR XLOCAL=NAMED ),
+or an ordered list (e.g. \fIXLOCAL="NAMED:PTS:SCO"\fP).
+This variable overrides the compiled-in defaults. For SVR4 it is
+recommended that
+.I NAMED
+be the first preference connection. The default setting is
+platform-dependent.
+.PP
+To globally override the compiled-in defaults, you should define (and
+export if using
+.B sh
+or
+.BR ksh )
+.I XLOCAL
+globally. If you use startx(1) or xinit(1), the definition should be
+at the top of your
+.I .xinitrc
+file. If you use xdm(1), the definitions should be early on in the
+.I __projectroot__/lib/X11/xdm/Xsession
+script.
.SH "ACCESS CONTROL"
An X server can use several types of access control. Mechanisms provided
in Release 7 are:
--
1.7.9.2