summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libX11/ChangeLog272
-rw-r--r--lib/libX11/README5
-rw-r--r--lib/libX11/compile347
-rw-r--r--lib/libX11/configure20
-rw-r--r--lib/libX11/configure.ac2
-rw-r--r--lib/libX11/include/X11/Xlibint.h29
-rw-r--r--lib/libX11/man/XGetXCBConnection.man1
-rw-r--r--lib/libX11/man/XSetEventQueueOwner.man1
-rw-r--r--lib/libX11/modules/lc/gen/lcGenConv.c28
-rw-r--r--lib/libX11/modules/om/generic/omGeneric.c2
-rw-r--r--lib/libX11/nls/C/XI18N_OBJS2
-rw-r--r--lib/libX11/nls/compose.dir.pre1
-rw-r--r--lib/libX11/nls/en_US.UTF-8/XI18N_OBJS5
-rw-r--r--lib/libX11/nls/iso8859-1/XI18N_OBJS2
-rw-r--r--lib/libX11/nls/locale.dir.pre1
-rw-r--r--lib/libX11/specs/libX11/AppC.xml4
-rw-r--r--lib/libX11/specs/libX11/CH02.xml18
-rw-r--r--lib/libX11/specs/libX11/CH03.xml49
-rw-r--r--lib/libX11/specs/libX11/CH04.xml35
-rw-r--r--lib/libX11/specs/libX11/CH05.xml14
-rw-r--r--lib/libX11/specs/libX11/CH06.xml171
-rw-r--r--lib/libX11/specs/libX11/CH07.xml19
-rw-r--r--lib/libX11/specs/libX11/CH08.xml126
-rw-r--r--lib/libX11/specs/libX11/CH09.xml28
-rw-r--r--lib/libX11/specs/libX11/CH11.xml9
-rw-r--r--lib/libX11/specs/libX11/CH12.xml12
-rw-r--r--lib/libX11/specs/libX11/CH13.xml53
-rw-r--r--lib/libX11/specs/libX11/CH14.xml27
-rw-r--r--lib/libX11/specs/libX11/CH15.xml6
-rw-r--r--lib/libX11/specs/libX11/CH16.xml50
-rw-r--r--lib/libX11/src/Font.c2
-rw-r--r--lib/libX11/src/FontNames.c2
-rw-r--r--lib/libX11/src/GetFPath.c2
-rw-r--r--lib/libX11/src/Host.c53
-rw-r--r--lib/libX11/src/ListExt.c2
-rw-r--r--lib/libX11/src/Makefile.am1
-rw-r--r--lib/libX11/src/Makefile.in6
-rw-r--r--lib/libX11/src/ModMap.c16
-rw-r--r--lib/libX11/src/PutImage.c6
-rw-r--r--lib/libX11/src/XlibInt.c10
-rw-r--r--lib/libX11/src/globals.c6
-rw-r--r--lib/libX11/src/xcms/cmsTrig.c4
42 files changed, 925 insertions, 524 deletions
diff --git a/lib/libX11/ChangeLog b/lib/libX11/ChangeLog
index a09dbbfa4..70cae39e8 100644
--- a/lib/libX11/ChangeLog
+++ b/lib/libX11/ChangeLog
@@ -1,3 +1,275 @@
+commit 44f84223f5e2dd46883fcbd352af2798bfa9aeb6
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Mon Jul 29 21:29:49 2013 -0700
+
+ libX11 1.6.1
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit d19cfaca15826943d3c637ef7fa5db0a23d5feed
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Jul 27 12:19:00 2013 -0700
+
+ Fix undefined XCMSDIR error when building lint library
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 3083cd43d7dcd59da587975e7cadda681cd8a103
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Jul 27 00:36:08 2013 -0700
+
+ Add ku_TR.UTF-8 (Kurdish language, Turkey region) to compose/locale.dir
+
+ Upstreaming from changes originally integrated into OpenSolaris
+ under Sun bug id 6882572.
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: Thomas Klausner <wiz@NetBSD.org>
+
+commit 208e586c808e88a2ee819e4450dc27f557afc2bf
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Jul 27 01:03:18 2013 -0700
+
+ omGeneric: remove space between struct name & member name
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 7db74514e454d3fc4ff70aa08ddac66bfffda4dd
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Tue Jul 23 22:18:46 2013 -0700
+
+ Refactor common code from XAddHost & XRemoveHost into single function
+
+ On the Xlib side, the only real difference is the mode flag we send
+ to the server with the address, so just make that an argument to the
+ function with the common code for packing the address into the request.
+
+ (Aside from labels, gcc 4.7.2 generates identical code before & after
+ this change due to inlining, verified via diff of gcc -S output.)
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 3292195a64a9ce4f0d27134cd544651ec647e728
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Tue Jul 23 22:11:34 2013 -0700
+
+ XSetModifierMapping: Use Data instead of GetReqExtra
+
+ Handle arbitrary length data in the same fashion as other calls,
+ avoiding need to ensure it fits all in the request buffer.
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit feb131b18aee31c2c125dc3275b0260940245882
+Author: Kees Cook <kees@outflux.net>
+Date: Sun Jun 9 11:13:43 2013 -0700
+
+ libX11: check "req" when calling GetReqExtra
+
+ This fixes the two callers of GetReqExtra to check that "req" is non-NULL
+ to avoid crashing now that GetReqExtra does internal bounds-checking on
+ the resulting buffer sizes.
+
+ Additionally updates comment describing return values to use names
+ instead of only literal values.
+
+ Signed-off-by: Kees Cook <kees@outflux.net>
+ Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 54540d7cba0c2bfe9176221c7bca910058d304df
+Author: Kees Cook <kees@outflux.net>
+Date: Sun Jun 9 11:13:42 2013 -0700
+
+ libX11: check size of GetReqExtra after XFlush
+
+ Two users of GetReqExtra pass arbitrarily sized allocations from the
+ caller (ModMap and Host). Adjust _XGetRequest() (called by the GetReqExtra
+ macro) to double-check the requested length and invalidate "req" when
+ this happens. Users of GetReqExtra passing lengths greater than the Xlib
+ buffer size (normally 16K) must check "req" and fail gracefully instead
+ of crashing.
+
+ Any callers of GetReqExtra that do not check "req" for NULL
+ will experience this change, in the pathological case, as a NULL
+ dereference instead of a buffer overflow. This is an improvement, but
+ the documentation for GetReqExtra has been updated to reflect the need
+ to check the value of "req" after the call.
+
+ Bug that manifested the problem:
+ https://bugs.launchpad.net/ubuntu/+source/x11-xserver-utils/+bug/792628
+
+ Signed-off-by: Kees Cook <kees@outflux.net>
+ Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 24d3ee0d08f24e23c91d55702f010f73d7b908e5
+Author: Thomas Klausner <wiz@NetBSD.org>
+Date: Tue Jun 25 22:35:29 2013 +0200
+
+ Tighten out-of-range comparisons.
+
+ [For all of these, LONG_MAX was the correct value to prevent overflows
+ for the recent CVEs. Lowering to INT_MAX catches buggy replies from
+ the server that 32-bit clients would reject but 64-bit would accept,
+ so we catch bugs sooner, and really, no sane & working server should
+ ever report more than 2gb of extension names, font path entries,
+ key modifier maps, etc. -alan- ]
+
+ Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 6d926088d80a08e13e6d6c4ff207b81ad52e667f
+Author: Thomas Klausner <wiz@NetBSD.org>
+Date: Tue Jun 25 18:34:32 2013 +0200
+
+ Fix out-of-range comparison in _XF86BigfontQueryFont
+
+ clang complained (correctly):
+ warning: comparison of constant 768614336404564650 with expression
+ of type 'CARD32' (aka 'unsigned int') is always true
+ [-Wtautological-constant-out-of-range-compare]
+
+ [While LONG_MAX is correct, since it's used in size_t math, the
+ numbers have to be limited to 32-bit range to be usable by 32-bit
+ clients, and values beyond that range are far more likely to be
+ bugs in the data from the server than valid numbers of characters
+ in a font. -alan- ]
+
+ Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 383e2b0d029482a0f4c39fe00e15397538576fc1
+Author: Thomas Klausner <wiz@NetBSD.org>
+Date: Tue Jun 25 18:33:56 2013 +0200
+
+ Check for symbol existence with #ifdef, not #if
+
+ Reviewed-by: Jamey Sharp <jamey@minilop.net>
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 9955d1c8de994a90fe7f2e3187e7362611d7d265
+Author: Thomas Klausner <wiz@NetBSD.org>
+Date: Tue Jun 25 18:33:07 2013 +0200
+
+ Use newer callback-based API for XIM.
+
+ Let libX11 load and make available the newer (X11R6) callback-based
+ API for XIM (expected by emacs).
+
+ This patch updates the files to match the other nls/ files.
+
+ Patch from Ian D. Leroux <idleroux@fastmail.fm> on pkgsrc-users@NetBSD.org
+ following a hint by Nhat Minh LĂȘ <nhat.minh.le@gmail.com>.
+
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit a17ceb7100bd36c2db210473ee701deb5d515731
+Author: Thomas Klausner <wiz@NetBSD.org>
+Date: Tue Jun 25 18:31:32 2013 +0200
+
+ Stop truncating source to destination length if it is larger.
+
+ It seems useless to do that since the code tests for both source
+ length and destination to be non-zero. This fixes a cut'n'paste
+ problem in xterm where the paste length was limited to 1024 (BUFSIZ)
+ in button.c.
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit a336db9a0add3ae0783dda6e52459236622a12af
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Mon Jun 24 23:02:05 2013 -0700
+
+ Require ANSI C89 pre-processor, drop pre-C89 token pasting support
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 9dfb0f3c0a761590bcdc1f3396b1e064da4e18e8
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Fri Jun 7 11:30:11 2013 -0700
+
+ troff macro expansion in specs/libX11
+
+ Many of the custom nroff macros (.ds <macro> <contents>) were left
+ unsubstituted in the nroff->docbook conversion. This substitution
+ is now performed, via the following perl script:
+
+ #! /usr/bin/perl -w -i
+
+ use Text::Wrap;
+
+ while ($_ = <>) {
+ while ($_ =~ m/\((\w+)\b/g) {
+ my $m = $1;
+ if (exists $macro{$m}) {
+ $_ =~ s/\($m/$macro{$m}/;
+ $_ = wrap('', '', $_);
+ $_ =~ s/[ \t]+$//;
+ }
+ }
+
+ if ($_ =~ /\<!-- .ds (\w+) (.*) -->/) {
+ my ($m, $s) = ($1, $2);
+ $macro{$m} = $s;
+ while ($macro{$m} =~ /\\\s*$/) {
+ $macro{$m} =~ s/\\\s*$//ms;
+ $macro{$m} .= <>;
+ chomp($macro{$m});
+ }
+ $macro{$m} =~ s/\\ / /g;
+ } else {
+ print $_;
+ }
+ }
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 20c17bd9ebf767a24643279e45866dddcb57b5ce
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Fri Jun 7 09:27:26 2013 -0700
+
+ specs/libX11: correct prototype for XListPixmapFormats/XImageByteOrder
+
+ The XListPixmapFormats arguments was being shown with XImageByteOrder's
+ name and return types. Appears to have been a glitch in the nroff ->
+ docbook conversion.
+
+ Reported-by: ZHANG Zhaolong <zhangzl2013@126.com>
+ Reviewed-by: Jamey Sharp <jamey@minilop.net>
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit ed3d830243c8a0eefaf24e15b11823272ffe5049
+Author: Thomas Klausner <wiz@NetBSD.org>
+Date: Sun Jun 2 20:49:55 2013 +0200
+
+ Deal with the limited range of VAX floating point numbers when compiling for VAX.
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 0a48235d63639fb917c44d27c86e928e79fbac66
+Author: Eric S. Raymond <esr@thyrsus.com>
+Date: Thu Jun 6 16:43:56 2013 -0400
+
+ Remove call to undefined macro.
+
+commit 9e4719b9b719f2f8d255f6778e2e8c1809e32599
+Author: Eric S. Raymond <esr@thyrsus.com>
+Date: Thu Jun 6 16:42:20 2013 -0400
+
+ Remove call to undefined macro.
+
+commit 8496122eb00ce6cd5d2308ee54f64b68c378e455
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Mon Jun 3 20:06:43 2013 -0700
+
+ Update README to reflect where to find the Xlib specs now
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
commit 655d631e86c95b14888758b27ed2836ca3e3ce86
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Mon Jun 3 19:21:06 2013 -0700
diff --git a/lib/libX11/README b/lib/libX11/README
index befb5a6d9..e551acb52 100644
--- a/lib/libX11/README
+++ b/lib/libX11/README
@@ -1,9 +1,10 @@
libX11 - Core X11 protocol client library
Documentation for this library can be found in the included man pages,
-the xlib spec from the doc/xorg-docs module, also available at:
+and in the Xlib spec from the specs subdirectory, also available at:
- http://xorg.freedesktop.org/releases/X11R7.0/doc/PDF/xlib.pdf
+ http://www.x.org/releases/current/doc/libX11/libX11/libX11.html
+ http://www.x.org/releases/current/doc/libX11/libX11/libX11.pdf
and the O'Reilly Xlib books, which they have made freely available online,
though only for older versions of X11:
diff --git a/lib/libX11/compile b/lib/libX11/compile
index 1b1d23216..7b31d3412 100644
--- a/lib/libX11/compile
+++ b/lib/libX11/compile
@@ -1,4 +1,351 @@
#! /bin/sh
+# Wrapper for compilers which do not understand '-c -o'.
+
+scriptversion=2012-10-14.11; # UTC
+
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+# Written by Tom Tromey <tromey@cygnus.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+nl='
+'
+
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent tools from complaining about whitespace usage.
+IFS=" "" $nl"
+
+file_conv=
+
+# func_file_conv build_file lazy
+# Convert a $build file to $host form and store it in $file
+# Currently only supports Windows hosts. If the determined conversion
+# type is listed in (the comma separated) LAZY, no conversion will
+# take place.
+func_file_conv ()
+{
+ file=$1
+ case $file in
+ / | /[!/]*) # absolute file, and not a UNC file
+ if test -z "$file_conv"; then
+ # lazily determine how to convert abs files
+ case `uname -s` in
+ MINGW*)
+ file_conv=mingw
+ ;;
+ CYGWIN*)
+ file_conv=cygwin
+ ;;
+ *)
+ file_conv=wine
+ ;;
+ esac
+ fi
+ case $file_conv/,$2, in
+ *,$file_conv,*)
+ ;;
+ mingw/*)
+ file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
+ ;;
+ cygwin/*)
+ file=`cygpath -m "$file" || echo "$file"`
+ ;;
+ wine/*)
+ file=`winepath -w "$file" || echo "$file"`
+ ;;
+ esac
+ ;;
+ esac
+}
+
+# func_cl_dashL linkdir
+# Make cl look for libraries in LINKDIR
+func_cl_dashL ()
+{
+ func_file_conv "$1"
+ if test -z "$lib_path"; then
+ lib_path=$file
+ else
+ lib_path="$lib_path;$file"
+ fi
+ linker_opts="$linker_opts -LIBPATH:$file"
+}
+
+# func_cl_dashl library
+# Do a library search-path lookup for cl
+func_cl_dashl ()
+{
+ lib=$1
+ found=no
+ save_IFS=$IFS
+ IFS=';'
+ for dir in $lib_path $LIB
+ do
+ IFS=$save_IFS
+ if $shared && test -f "$dir/$lib.dll.lib"; then
+ found=yes
+ lib=$dir/$lib.dll.lib
+ break
+ fi
+ if test -f "$dir/$lib.lib"; then
+ found=yes
+ lib=$dir/$lib.lib
+ break
+ fi
+ if test -f "$dir/lib$lib.a"; then
+ found=yes
+ lib=$dir/lib$lib.a
+ break
+ fi
+ done
+ IFS=$save_IFS
+
+ if test "$found" != yes; then
+ lib=$lib.lib
+ fi
+}
+
+# func_cl_wrapper cl arg...
+# Adjust compile command to suit cl
+func_cl_wrapper ()
+{
+ # Assume a capable shell
+ lib_path=
+ shared=:
+ linker_opts=
+ for arg
+ do
+ if test -n "$eat"; then
+ eat=
+ else
+ case $1 in
+ -o)
+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
+ eat=1
+ case $2 in
+ *.o | *.[oO][bB][jJ])
+ func_file_conv "$2"
+ set x "$@" -Fo"$file"
+ shift
+ ;;
+ *)
+ func_file_conv "$2"
+ set x "$@" -Fe"$file"
+ shift
+ ;;
+ esac
+ ;;
+ -I)
+ eat=1
+ func_file_conv "$2" mingw
+ set x "$@" -I"$file"
+ shift
+ ;;
+ -I*)
+ func_file_conv "${1#-I}" mingw
+ set x "$@" -I"$file"
+ shift
+ ;;
+ -l)
+ eat=1
+ func_cl_dashl "$2"
+ set x "$@" "$lib"
+ shift
+ ;;
+ -l*)
+ func_cl_dashl "${1#-l}"
+ set x "$@" "$lib"
+ shift
+ ;;
+ -L)
+ eat=1
+ func_cl_dashL "$2"
+ ;;
+ -L*)
+ func_cl_dashL "${1#-L}"
+ ;;
+ -static)
+ shared=false
+ ;;
+ -Wl,*)
+ arg=${1#-Wl,}
+ save_ifs="$IFS"; IFS=','
+ for flag in $arg; do
+ IFS="$save_ifs"
+ linker_opts="$linker_opts $flag"
+ done
+ IFS="$save_ifs"
+ ;;
+ -Xlinker)
+ eat=1
+ linker_opts="$linker_opts $2"
+ ;;
+ -*)
+ set x "$@" "$1"
+ shift
+ ;;
+ *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
+ func_file_conv "$1"
+ set x "$@" -Tp"$file"
+ shift
+ ;;
+ *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
+ func_file_conv "$1" mingw
+ set x "$@" "$file"
+ shift
+ ;;
+ *)
+ set x "$@" "$1"
+ shift
+ ;;
+ esac
+ fi
+ shift
+ done
+ if test -n "$linker_opts"; then
+ linker_opts="-link$linker_opts"
+ fi
+ exec "$@" $linker_opts
+ exit 1
+}
+
+eat=
+
+case $1 in
+ '')
+ echo "$0: No command. Try '$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: compile [--help] [--version] PROGRAM [ARGS]
+
+Wrapper for compilers which do not understand '-c -o'.
+Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
+arguments, and rename the output as expected.
+
+If you are trying to build a whole package this is not the
+right script to run: please start by reading the file 'INSTALL'.
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "compile $scriptversion"
+ exit $?
+ ;;
+ cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
+ func_cl_wrapper "$@" # Doesn't return...
+ ;;
+esac
+
+ofile=
+cfile=
+
+for arg
+do
+ if test -n "$eat"; then
+ eat=
+ else
+ case $1 in
+ -o)
+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
+ # So we strip '-o arg' only if arg is an object.
+ eat=1
+ case $2 in
+ *.o | *.obj)
+ ofile=$2
+ ;;
+ *)
+ set x "$@" -o "$2"
+ shift
+ ;;
+ esac
+ ;;
+ *.c)
+ cfile=$1
+ set x "$@" "$1"
+ shift
+ ;;
+ *)
+ set x "$@" "$1"
+ shift
+ ;;
+ esac
+ fi
+ shift
+done
+
+if test -z "$ofile" || test -z "$cfile"; then
+ # If no '-o' option was seen then we might have been invoked from a
+ # pattern rule where we don't need one. That is ok -- this is a
+ # normal compilation that the losing compiler can handle. If no
+ # '.c' file was seen then we are probably linking. That is also
+ # ok.
+ exec "$@"
+fi
+
+# Name of file we expect compiler to create.
+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
+
+# Create the lock directory.
+# Note: use '[/\\:.-]' here to ensure that we don't use the same name
+# that we are using for the .o file. Also, base the name on the expected
+# object file name, since that is what matters with a parallel build.
+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
+while true; do
+ if mkdir "$lockdir" >/dev/null 2>&1; then
+ break
+ fi
+ sleep 1
+done
+# FIXME: race condition here if user kills between mkdir and trap.
+trap "rmdir '$lockdir'; exit 1" 1 2 15
+
+# Run the compile.
+"$@"
+ret=$?
+
+if test -f "$cofile"; then
+ test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+ test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
+fi
+
+rmdir "$lockdir"
+exit $ret
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
+#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2005-05-14.22
diff --git a/lib/libX11/configure b/lib/libX11/configure
index 32cbd91a2..71157d08b 100644
--- a/lib/libX11/configure
+++ b/lib/libX11/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for libX11 1.6.0.
+# Generated by GNU Autoconf 2.69 for libX11 1.6.1.
#
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
#
@@ -651,8 +651,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='libX11'
PACKAGE_TARNAME='libX11'
-PACKAGE_VERSION='1.6.0'
-PACKAGE_STRING='libX11 1.6.0'
+PACKAGE_VERSION='1.6.1'
+PACKAGE_STRING='libX11 1.6.1'
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
PACKAGE_URL=''
@@ -1509,7 +1509,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures libX11 1.6.0 to adapt to many kinds of systems.
+\`configure' configures libX11 1.6.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1579,7 +1579,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of libX11 1.6.0:";;
+ short | recursive ) echo "Configuration of libX11 1.6.1:";;
esac
cat <<\_ACEOF
@@ -1746,7 +1746,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-libX11 configure 1.6.0
+libX11 configure 1.6.1
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2272,7 +2272,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by libX11 $as_me 1.6.0, which was
+It was created by libX11 $as_me 1.6.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -4490,7 +4490,7 @@ fi
# Define the identity of the package.
PACKAGE='libX11'
- VERSION='1.6.0'
+ VERSION='1.6.1'
cat >>confdefs.h <<_ACEOF
@@ -21450,7 +21450,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by libX11 $as_me 1.6.0, which was
+This file was extended by libX11 $as_me 1.6.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -21516,7 +21516,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-libX11 config.status 1.6.0
+libX11 config.status 1.6.1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/lib/libX11/configure.ac b/lib/libX11/configure.ac
index f533f3c4b..ff04f8a3e 100644
--- a/lib/libX11/configure.ac
+++ b/lib/libX11/configure.ac
@@ -1,7 +1,7 @@
# Initialize Autoconf
AC_PREREQ([2.60])
-AC_INIT([libX11], [1.6.0],
+AC_INIT([libX11], [1.6.1],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libX11])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([src/config.h include/X11/XlibConf.h])
diff --git a/lib/libX11/include/X11/Xlibint.h b/lib/libX11/include/X11/Xlibint.h
index acbad6beb..443155964 100644
--- a/lib/libX11/include/X11/Xlibint.h
+++ b/lib/libX11/include/X11/Xlibint.h
@@ -420,14 +420,8 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
/* GetReqSized is the same as GetReq but allows the caller to specify the
* size in bytes. 'sz' must be a multiple of 4! */
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReqSized(name, sz, req) \
req = (x##name##Req *) _XGetRequest(dpy, X_##name, sz)
-#else
-#define GetReqSized(name, sz, req) \
- req = (x/**/name/**/Req *) _XGetRequest(dpy, X_/**/name, sz)
-#endif
-
/*
* GetReq - Get the next available X request packet in the buffer and
@@ -438,25 +432,14 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
*
*/
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReq(name, req) \
GetReqSized(name, SIZEOF(x##name##Req), req)
-#else /* non-ANSI C uses empty comment instead of "##" for token concatenation */
-#define GetReq(name, req) \
- GetReqSized(name, SIZEOF(x/**/name/**/Req), req)
-#endif
/* GetReqExtra is the same as GetReq, but allocates "n" additional
bytes after the request. "n" must be a multiple of 4! */
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetReqExtra(name, n, req) \
GetReqSized(name, SIZEOF(x##name##Req) + n, req)
-#else
-#define GetReqExtra(name, n, req) \
- GetReqSized(name, SIZEOF(x/**/name/**/Req) + n, req)
-#endif
-
/*
* GetResReq is for those requests that have a resource ID
@@ -464,27 +447,17 @@ extern void *_XGetRequest(Display *dpy, CARD8 type, size_t len);
* "rid" is the name of the resource.
*/
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define GetResReq(name, rid, req) \
req = (xResourceReq *) _XGetRequest(dpy, X_##name, SIZEOF(xResourceReq)); \
req->id = (rid)
-#else
-#define GetResReq(name, rid, req) \
- req = (xResourceReq *) _XGetRequest(dpy, X_/**/name, SIZEOF(xResourceReq)); \
- req->id = (rid)
-#endif
/*
* GetEmptyReq is for those requests that have no arguments
* at all.
*/
-#if !defined(UNIXCPP) || defined(ANSICPP)
+
#define GetEmptyReq(name, req) \
req = (xReq *) _XGetRequest(dpy, X_##name, SIZEOF(xReq))
-#else
-#define GetEmptyReq(name, req) \
- req = (xReq *) _XGetRequest(dpy, X_/**/name, SIZEOF(xReq))
-#endif
/*
* MakeBigReq sets the CARD16 "req->length" to 0 and inserts a new CARD32
diff --git a/lib/libX11/man/XGetXCBConnection.man b/lib/libX11/man/XGetXCBConnection.man
index 3b4ad11f7..7488b6ee7 100644
--- a/lib/libX11/man/XGetXCBConnection.man
+++ b/lib/libX11/man/XGetXCBConnection.man
@@ -30,7 +30,6 @@ xcb_connection_t *XGetXCBConnection(Display *\fIdpy\fP);
.SH ARGUMENTS
.IP \fIdpy\fP 1i
Specifies the connection to the X server.
-.IN "Environment" "DISPLAY"
.SH DESCRIPTION
The \fIXGetXCBConnection\fP function returns the XCB connection associated with
an Xlib Display. Clients can use this XCB connection with functions from the
diff --git a/lib/libX11/man/XSetEventQueueOwner.man b/lib/libX11/man/XSetEventQueueOwner.man
index d9740d4c6..f49ac7149 100644
--- a/lib/libX11/man/XSetEventQueueOwner.man
+++ b/lib/libX11/man/XSetEventQueueOwner.man
@@ -42,7 +42,6 @@ call the XCB event-handling functions.
XCB owns the event queue. Use the XCB event-handling functions. Do not call
the Xlib event-handling functions.
.RE
-.IN "Environment" "DISPLAY"
.SH DESCRIPTION
While a client using Xlib/XCB can issue requests and handle their replies or
errors with either Xlib or XCB, only one can own and handle the event queue.
diff --git a/lib/libX11/modules/lc/gen/lcGenConv.c b/lib/libX11/modules/lc/gen/lcGenConv.c
index 42d63c529..1041dc709 100644
--- a/lib/libX11/modules/lc/gen/lcGenConv.c
+++ b/lib/libX11/modules/lc/gen/lcGenConv.c
@@ -764,9 +764,6 @@ mbstowcs_org(
return( 0 );
}
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
ch = *inbufptr++;
@@ -921,9 +918,6 @@ wcstombs_org(
int defstr_len = strlen(default_string);
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
wc = *inbufptr++;
@@ -1080,9 +1074,6 @@ wcstocts(
int from_size = *from_left;
char *ext_seg_len = NULL;
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
wc = *inbufptr++;
@@ -1272,9 +1263,6 @@ ctstowcs(
return( 0 );
}
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
ch = *inbufptr++;
@@ -1666,9 +1654,6 @@ mbstostr(
return( 0 );
}
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
ch = *inbufptr++;
@@ -1956,10 +1941,6 @@ wcstostr(
const char *default_string = XLC_PUBLIC(lcd, default_string);
int defstr_len = strlen(default_string);
-
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
wc = *inbufptr++;
@@ -2114,9 +2095,6 @@ wctocs(
char *outbufptr = *to;
int from_size = *from_left;
- if (*from_left > *to_left)
- *from_left = *to_left;
-
if (*from_left && *to_left) {
wc = *inbufptr++;
@@ -2427,9 +2405,6 @@ strtombs(
char *outbufptr = *to;
int from_size = *from_left;
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
ch = *inbufptr++;
@@ -2537,9 +2512,6 @@ strtowcs(
wchar_t *outbufptr = (wchar_t *)*to;
int from_size = *from_left;
- if (*from_left > *to_left)
- *from_left = *to_left;
-
while (*from_left && *to_left) {
ch = *inbufptr++;
diff --git a/lib/libX11/modules/om/generic/omGeneric.c b/lib/libX11/modules/om/generic/omGeneric.c
index 7f02c8565..ae43283ec 100644
--- a/lib/libX11/modules/om/generic/omGeneric.c
+++ b/lib/libX11/modules/om/generic/omGeneric.c
@@ -1163,7 +1163,7 @@ parse_fontname(
* a "missing_charset" will be reported to the client
* for this CharSet.
*/
- font_data_return. xlfd_name = NULL;
+ font_data_return.xlfd_name = NULL;
font_data_return.side = XlcUnknown;
ret = parse_fontdata(oc, font_set, font_set->font_data,
diff --git a/lib/libX11/nls/C/XI18N_OBJS b/lib/libX11/nls/C/XI18N_OBJS
index 32e4f3588..3a9a1bb5a 100644
--- a/lib/libX11/nls/C/XI18N_OBJS
+++ b/lib/libX11/nls/C/XI18N_OBJS
@@ -3,6 +3,6 @@
# XI18N objects table for euro locales
#
XLC common/xlibi18n _XlcGenericLoader # XLC_open
-XIM common/ximcp _XimOpenIM # XIM_open
+XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
XOM common/xomGeneric _XomGenericOpenOM # XOM_open
diff --git a/lib/libX11/nls/compose.dir.pre b/lib/libX11/nls/compose.dir.pre
index ef9a519bc..fa267ce4a 100644
--- a/lib/libX11/nls/compose.dir.pre
+++ b/lib/libX11/nls/compose.dir.pre
@@ -391,6 +391,7 @@ en_US.UTF-8/Compose: kn_IN.UTF-8
ko_KR.UTF-8/Compose: ko_KR.UTF-8
en_US.UTF-8/Compose: ks_IN.UTF-8
en_US.UTF-8/Compose: ks_IN@devanagari.UTF-8
+en_US.UTF-8/Compose: ku_TR.UTF-8
en_US.UTF-8/Compose: kw_GB.UTF-8
en_US.UTF-8/Compose: ky_KG.UTF-8
en_US.UTF-8/Compose: lo_LA.UTF-8
diff --git a/lib/libX11/nls/en_US.UTF-8/XI18N_OBJS b/lib/libX11/nls/en_US.UTF-8/XI18N_OBJS
index f201bf435..97b30b976 100644
--- a/lib/libX11/nls/en_US.UTF-8/XI18N_OBJS
+++ b/lib/libX11/nls/en_US.UTF-8/XI18N_OBJS
@@ -3,6 +3,5 @@
# XI18N objects table for euro locales
#
XLC common/xlcUTF8Load _XlcUtf8Loader # XLC_open
-XOM common/xomLTRTTB _XomGenericOpenOM # XOM_open
-XIM common/xiiimp _SwitchOpenIM # XIM_open
-XIM common/xiiimp _XimpLocalOpenIM # XIM_open
+XOM common/xomGeneric _XomGenericOpenOM # XOM_open
+XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
diff --git a/lib/libX11/nls/iso8859-1/XI18N_OBJS b/lib/libX11/nls/iso8859-1/XI18N_OBJS
index 32e4f3588..3a9a1bb5a 100644
--- a/lib/libX11/nls/iso8859-1/XI18N_OBJS
+++ b/lib/libX11/nls/iso8859-1/XI18N_OBJS
@@ -3,6 +3,6 @@
# XI18N objects table for euro locales
#
XLC common/xlibi18n _XlcGenericLoader # XLC_open
-XIM common/ximcp _XimOpenIM # XIM_open
+XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
XOM common/xomGeneric _XomGenericOpenOM # XOM_open
diff --git a/lib/libX11/nls/locale.dir.pre b/lib/libX11/nls/locale.dir.pre
index 4ec929745..ab1bacec6 100644
--- a/lib/libX11/nls/locale.dir.pre
+++ b/lib/libX11/nls/locale.dir.pre
@@ -391,6 +391,7 @@ en_US.UTF-8/XLC_LOCALE: kn_IN.UTF-8
en_US.UTF-8/XLC_LOCALE: ks_IN.UTF-8
en_US.UTF-8/XLC_LOCALE: ks_IN@devanagari.UTF-8
ko_KR.UTF-8/XLC_LOCALE: ko_KR.UTF-8
+en_US.UTF-8/XLC_LOCALE: ku_TR.UTF-8
en_US.UTF-8/XLC_LOCALE: kw_GB.UTF-8
en_US.UTF-8/XLC_LOCALE: ky_KG.UTF-8
en_US.UTF-8/XLC_LOCALE: lo_LA.UTF-8
diff --git a/lib/libX11/specs/libX11/AppC.xml b/lib/libX11/specs/libX11/AppC.xml
index df250275e..0b37048f1 100644
--- a/lib/libX11/specs/libX11/AppC.xml
+++ b/lib/libX11/specs/libX11/AppC.xml
@@ -2468,7 +2468,9 @@ which is the same as
<function>GetReq</function>
except that it takes an additional argument (the number of
extra bytes to allocate in the output buffer after the request structure).
-This number should always be a multiple of four.
+This number should always be a multiple of four. Note that it is possible
+for req to be set to NULL as a defensive measure if the requested length
+exceeds the Xlib's buffer size (normally 16K).
</para>
</sect2>
<sect2 id="Variable_Length_Arguments">
diff --git a/lib/libX11/specs/libX11/CH02.xml b/lib/libX11/specs/libX11/CH02.xml
index 12df68ee4..656dce8b1 100644
--- a/lib/libX11/specs/libX11/CH02.xml
+++ b/lib/libX11/specs/libX11/CH02.xml
@@ -608,7 +608,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the appropriate screen number on the host server.
-<!-- .ds Cn depths -->
</para>
</listitem>
</varlistentry>
@@ -618,7 +617,7 @@ Specifies the appropriate screen number on the host server.
</term>
<listitem>
<para>
-Returns the number of (Cn.
+Returns the number of depths.
</para>
</listitem>
</varlistentry>
@@ -1511,12 +1510,9 @@ To obtain the pixmap format information for a given display, use
<indexterm significance="preferred"><primary>XListPixmapFormats</primary></indexterm>
<!-- .sM -->
</para>
-<para>
-ImageByteOrder(<emphasis remap='I'>display</emphasis>)
-</para>
-<funcsynopsis id='XImageByteOrder'>
+<funcsynopsis id='XListPixmapFormats'>
<funcprototype>
- <funcdef>int <function>XImageByteOrder</function></funcdef>
+ <funcdef>XPixmapFormatValues *<function>XListPixmapFormats</function></funcdef>
<paramdef>Display<parameter> *display</parameter></paramdef>
<paramdef>int<parameter> *count_return</parameter></paramdef>
</funcprototype>
@@ -1530,7 +1526,6 @@ ImageByteOrder(<emphasis remap='I'>display</emphasis>)
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Cn pixmap formats that are supported by the display -->
</para>
</listitem>
</varlistentry>
@@ -1540,7 +1535,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Returns the number of (Cn.
+Returns the number of pixmap formats that are supported by the display.
</para>
</listitem>
</varlistentry>
@@ -1577,7 +1572,7 @@ These are often used by toolkits as well as by simple applications.
<para>
ImageByteOrder(<emphasis remap='I'>display</emphasis>)
</para>
-<funcsynopsis>
+<funcsynopsis id='XImageByteOrder'>
<funcprototype>
<funcdef>int <function>XImageByteOrder</function></funcdef>
<paramdef>Display<parameter> *display</parameter></paramdef>
@@ -3466,7 +3461,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Returns the file descriptors.
-<!-- .ds Cn file descriptors -->
</para>
</listitem>
</varlistentry>
@@ -3476,7 +3470,7 @@ Returns the file descriptors.
</term>
<listitem>
<para>
-Returns the number of (Cn.
+Returns the number of file descriptors.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH03.xml b/lib/libX11/specs/libX11/CH03.xml
index 7d2b20e52..4e599da3b 100644
--- a/lib/libX11/specs/libX11/CH03.xml
+++ b/lib/libX11/specs/libX11/CH03.xml
@@ -1285,8 +1285,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the parent window.
-<!-- .ds Xy , which are the top-left outside corner of the created window's \ -->
-borders and are relative to the inside of the parent window's borders
</para>
</listitem>
</varlistentry>
@@ -1307,9 +1305,9 @@ borders and are relative to the inside of the parent window's borders
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which are the created window's inside dimensions \ -->
-and do not include the created window's borders
+Specify the x and y coordinates, which are the top-left outside corner of
+the created window's borders and are relative to the inside of the parent
+window's borders.
</para>
</listitem>
</varlistentry>
@@ -1330,7 +1328,8 @@ and do not include the created window's borders
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which are the created window's inside
+dimensions and do not include the created window's borders.
The dimensions must be nonzero,
or a
<errorname>BadValue</errorname>
@@ -1547,8 +1546,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the parent window.
-<!-- .ds Xy , which are the top-left outside corner of the new window's borders \ -->
-and are relative to the inside of the parent window's borders
</para>
</listitem>
</varlistentry>
@@ -1569,9 +1566,9 @@ and are relative to the inside of the parent window's borders
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which are the created window's inside dimensions \ -->
-and do not include the created window's borders
+Specify the x and y coordinates, which are the top-left outside corner of
+the new window's borders and are relative to the inside of the parent
+window's borders.
</para>
</listitem>
</varlistentry>
@@ -1592,7 +1589,8 @@ and do not include the created window's borders
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which are the created window's inside
+dimensions and do not include the created window's borders.
The dimensions must be nonzero,
or a
<errorname>BadValue</errorname>
@@ -2550,7 +2548,6 @@ To configure a window's size, location, stacking, or border, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi to be reconfigured -->
</para>
</listitem>
</varlistentry>
@@ -2560,7 +2557,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window to be reconfigured.
</para>
</listitem>
</varlistentry>
@@ -2655,7 +2652,6 @@ To move a window without changing its size, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi to be moved -->
</para>
</listitem>
</varlistentry>
@@ -2665,9 +2661,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
-<!-- .ds Xy , which define the new location of the top-left pixel \ -->
-of the window's border or the window itself if it has no border
+Specifies the window to be moved.
</para>
</listitem>
</varlistentry>
@@ -2688,7 +2682,9 @@ of the window's border or the window itself if it has no border
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which define the new location of the
+top-left pixel of the window's border or the window itself if it has no
+border.
</para>
</listitem>
</varlistentry>
@@ -2767,8 +2763,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the window.
-<!-- .ds Wh , which are the interior dimensions of the window \ -->
-after the call completes
</para>
</listitem>
</varlistentry>
@@ -2789,7 +2783,8 @@ after the call completes
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which are the interior dimensions of the
+window after the call completes.
</para>
</listitem>
</varlistentry>
@@ -2861,7 +2856,6 @@ To change the size and location of a window, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi to be reconfigured -->
</para>
</listitem>
</varlistentry>
@@ -2871,8 +2865,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
-<!-- .ds Xy , which define the new position of the window relative to its parent -->
+Specifies the window to be reconfigured.
</para>
</listitem>
</varlistentry>
@@ -2893,8 +2886,8 @@ Specifies the window (Wi.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which define the interior size of the window -->
+Specify the x and y coordinates, which define the new position of the
+window relative to its parent.
</para>
</listitem>
</varlistentry>
@@ -2915,7 +2908,7 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which define the interior size of the window.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH04.xml b/lib/libX11/specs/libX11/CH04.xml
index 388a6801c..b8e73a469 100644
--- a/lib/libX11/specs/libX11/CH04.xml
+++ b/lib/libX11/specs/libX11/CH04.xml
@@ -61,8 +61,6 @@ a given window, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose list of children, root, parent, and number of children \ -->
-you want to obtain
</para>
</listitem>
</varlistentry>
@@ -72,7 +70,8 @@ you want to obtain
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose list of children, root, parent, and number of
+children you want to obtain.
</para>
</listitem>
</varlistentry>
@@ -165,7 +164,6 @@ To obtain the current attributes of a given window, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose current attributes you want to obtain -->
</para>
</listitem>
</varlistentry>
@@ -175,7 +173,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose current attributes you want to obtain.
</para>
</listitem>
</varlistentry>
@@ -394,7 +392,6 @@ To obtain the current geometry of a given drawable, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Dr , which can be a window or a pixmap -->
</para>
</listitem>
</varlistentry>
@@ -404,7 +401,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the drawable(Dr.
+Specifies the drawable, which can be a window or a pixmap.
</para>
</listitem>
</varlistentry>
@@ -698,7 +695,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the window.
-<!-- .ds Ro that the pointer is in -->
</para>
</listitem>
</varlistentry>
@@ -708,7 +704,7 @@ Specifies the window.
</term>
<listitem>
<para>
-Returns the root window (Ro.
+Returns the root window that the pointer is in.
</para>
</listitem>
</varlistentry>
@@ -1162,7 +1158,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the array of atom names.
-<!-- .ds Cn atom names in the array -->
</para>
</listitem>
</varlistentry>
@@ -1172,7 +1167,7 @@ Specifies the array of atom names.
</term>
<listitem>
<para>
-Specifies the number of (Cn.
+Specifies the number of atom names in the array.
</para>
</listitem>
</varlistentry>
@@ -1321,7 +1316,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the array of atoms.
-<!-- .ds Cn atoms in the array -->
</para>
</listitem>
</varlistentry>
@@ -1331,7 +1325,7 @@ Specifies the array of atoms.
</term>
<listitem>
<para>
-Specifies the number of (Cn.
+Specifies the number of atoms in the array.
</para>
</listitem>
</varlistentry>
@@ -1436,7 +1430,6 @@ To obtain the type, format, and value of a property of a given window, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose property you want to obtain -->
</para>
</listitem>
</varlistentry>
@@ -1446,7 +1439,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose property you want to obtain.
</para>
</listitem>
</varlistentry>
@@ -1707,7 +1700,6 @@ To obtain a given window's property list, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose property list you want to obtain -->
</para>
</listitem>
</varlistentry>
@@ -1717,7 +1709,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose property list you want to obtain.
</para>
</listitem>
</varlistentry>
@@ -1784,7 +1776,6 @@ To change a property of a given window, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose property you want to change -->
</para>
</listitem>
</varlistentry>
@@ -1794,7 +1785,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose property you want to change.
</para>
</listitem>
</varlistentry>
@@ -2093,7 +2084,6 @@ To delete a property on a given window, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose property you want to delete -->
</para>
</listitem>
</varlistentry>
@@ -2103,7 +2093,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose property you want to delete.
</para>
</listitem>
</varlistentry>
@@ -2338,7 +2328,6 @@ To return the selection owner, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Se whose owner you want returned -->
</para>
</listitem>
</varlistentry>
@@ -2348,7 +2337,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the selection atom (Se.
+Specifies the selection atom whose owner you want returned.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH05.xml b/lib/libX11/specs/libX11/CH05.xml
index 501ead0d9..c37eaddb8 100644
--- a/lib/libX11/specs/libX11/CH05.xml
+++ b/lib/libX11/specs/libX11/CH05.xml
@@ -53,7 +53,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies which screen the pixmap is created on.
-<!-- .ds Wh , which define the dimensions of the pixmap -->
</para>
</listitem>
</varlistentry>
@@ -74,7 +73,7 @@ Specifies which screen the pixmap is created on.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which define the dimensions of the pixmap.
</para>
</listitem>
</varlistentry>
@@ -497,7 +496,6 @@ Specifies the <acronym>RGB</acronym> values for the foreground of the source.
<listitem>
<para>
Specifies the <acronym>RGB</acronym> values for the background of the source.
-<!-- .ds Xy , which indicate the hotspot relative to the source's origin -->
</para>
</listitem>
</varlistentry>
@@ -518,7 +516,8 @@ Specifies the <acronym>RGB</acronym> values for the background of the source.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which indicate the hotspot relative to the
+source's origin.
</para>
</listitem>
</varlistentry>
@@ -600,7 +599,6 @@ To determine useful cursor sizes, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Dr , which indicates the screen -->
</para>
</listitem>
</varlistentry>
@@ -610,8 +608,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the drawable(Dr.
-<!-- .ds Wh \ of the cursor that you want the size information for -->
+Specifies the drawable, which indicates the screen.
</para>
</listitem>
</varlistentry>
@@ -632,7 +629,8 @@ Specifies the drawable(Dr.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height of the cursor that you want the size
+information for.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH06.xml b/lib/libX11/specs/libX11/CH06.xml
index b84ce95cc..a82a5e231 100644
--- a/lib/libX11/specs/libX11/CH06.xml
+++ b/lib/libX11/specs/libX11/CH06.xml
@@ -832,7 +832,6 @@ To create a colormap for a screen, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi on whose screen you want to create a colormap -->
</para>
</listitem>
</varlistentry>
@@ -842,7 +841,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window on whose screen you want to create a colormap.
</para>
</listitem>
</varlistentry>
@@ -1056,7 +1055,6 @@ To destroy a colormap, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Cm that you want to destroy -->
</para>
</listitem>
</varlistentry>
@@ -1066,7 +1064,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the colormap (Cm.
+Specifies the colormap that you want to destroy.
</para>
</listitem>
</varlistentry>
@@ -1792,7 +1790,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the colormap.
-<!-- .ds St \ whose color definition structure is to be returned -->
</para>
</listitem>
</varlistentry>
@@ -1802,7 +1799,8 @@ Specifies the colormap.
</term>
<listitem>
<para>
-Specifies the color string(St.
+Specifies the color string whose color definition structure is to be
+returned.
</para>
</listitem>
</varlistentry>
@@ -2296,7 +2294,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the colormap.
-<!-- .ds Pi that map to the cells in the specified colormap -->
</para>
</listitem>
</varlistentry>
@@ -2306,7 +2303,8 @@ Specifies the colormap.
</term>
<listitem>
<para>
-Specifies an array of pixel values (Pi.
+Specifies an array of pixel values that map to the cells in the specified
+colormap.
</para>
</listitem>
</varlistentry>
@@ -3811,7 +3809,6 @@ To set the Client White Point in the CCC, use
<listitem>
<para>
Specifies the CCC.
-<!-- .ds Co new Client White Point -->
</para>
</listitem>
</varlistentry>
@@ -3899,7 +3896,6 @@ a color specification to a device-dependent format and encounters a color
that lies outside the screen's color gamut,
that function will return
<symbol>XcmsFailure</symbol>.
-<!-- .ds Cd the gamut compression procedure -->
</para>
</listitem>
</varlistentry>
@@ -3962,7 +3958,6 @@ Specifies the CCC.
<listitem>
<para>
Specifies the white point adjustment procedure.
-<!-- .ds Cd the white point adjustment procedure -->
</para>
</listitem>
</varlistentry>
@@ -5049,7 +5044,6 @@ are ignored.
<listitem>
<para>
Specifies the target color specification format.
-<!-- .ds Cs zero-intensity red, green, and blue -->
</para>
</listitem>
</varlistentry>
@@ -5060,7 +5054,7 @@ Specifies the target color specification format.
<listitem>
<para>
Returns the color specification in the specified target format
-for (Cs.
+for zero-intensity red, green, and blue.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5115,7 +5109,6 @@ are ignored.
<listitem>
<para>
Specifies the target color specification format.
-<!-- .ds Cs full-intensity blue while red and green are zero -->
</para>
</listitem>
</varlistentry>
@@ -5126,7 +5119,7 @@ Specifies the target color specification format.
<listitem>
<para>
Returns the color specification in the specified target format
-for (Cs.
+for full-intensity blue while red and green are zero.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5181,7 +5174,6 @@ are ignored.
<listitem>
<para>
Specifies the target color specification format.
-<!-- .ds Cs full-intensity green while red and blue are zero -->
</para>
</listitem>
</varlistentry>
@@ -5192,7 +5184,7 @@ Specifies the target color specification format.
<listitem>
<para>
Returns the color specification in the specified target format
-for (Cs.
+for full-intensity green while red and blue are zero.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5247,7 +5239,6 @@ are ignored.
<listitem>
<para>
Specifies the target color specification format.
-<!-- .ds Cs full-intensity red while green and blue are zero -->
</para>
</listitem>
</varlistentry>
@@ -5258,7 +5249,7 @@ Specifies the target color specification format.
<listitem>
<para>
Returns the color specification in the specified target format
-for (Cs.
+for full-intensity red while green and blue are zero.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5313,7 +5304,6 @@ are ignored.
<listitem>
<para>
Specifies the target color specification format.
-<!-- .ds Cs full-intensity red, green, and blue -->
</para>
</listitem>
</varlistentry>
@@ -5324,7 +5314,7 @@ Specifies the target color specification format.
<listitem>
<para>
Returns the color specification in the specified target format
-for (Cs.
+for full-intensity red, green, and blue.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5392,7 +5382,6 @@ for a given Psychometric Hue Angle and <acronym>CIE</acronym> metric lightness (
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Ha maximum chroma -->
</para>
</listitem>
</varlistentry>
@@ -5402,8 +5391,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the hue angle (in degrees) at which to find (Ha.
-<!-- .ds Ls maximum chroma -->
+Specifies the hue angle (in degrees) at which to find maximum chroma.
</para>
</listitem>
</varlistentry>
@@ -5413,9 +5401,7 @@ Specifies the hue angle (in degrees) at which to find (Ha.
</term>
<listitem>
<para>
-Specifies the lightness (L*) at which to find (Ls.
-<!-- .ds Lc maximum chroma -->
-<!-- .ds lC hue angle and lightness -->
+Specifies the lightness (L*) at which to find maximum chroma.
</para>
</listitem>
</varlistentry>
@@ -5425,8 +5411,8 @@ Specifies the lightness (L*) at which to find (Ls.
</term>
<listitem>
<para>
-Returns the <acronym>CIE</acronym> L*a*b* coordinates of (Lc
-displayable by the screen for the given (lC.
+Returns the <acronym>CIE</acronym> L*a*b* coordinates of maximum chroma
+displayable by the screen for the given hue angle and lightness.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5476,7 +5462,6 @@ for a given Psychometric Hue Angle and Psychometric Chroma, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Ha maximum lightness -->
</para>
</listitem>
</varlistentry>
@@ -5486,8 +5471,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the hue angle (in degrees) at which to find (Ha.
-<!-- .ds Ch maximum lightness -->
+Specifies the hue angle (in degrees) at which to find maximum lightness.
</para>
</listitem>
</varlistentry>
@@ -5497,9 +5481,7 @@ Specifies the hue angle (in degrees) at which to find (Ha.
</term>
<listitem>
<para>
-Specifies the chroma at which to find (Ch.
-<!-- .ds Lc maximum lightness -->
-<!-- .ds lC hue angle and chroma -->
+Specifies the chroma at which to find maximum lightness.
</para>
</listitem>
</varlistentry>
@@ -5509,8 +5491,8 @@ Specifies the chroma at which to find (Ch.
</term>
<listitem>
<para>
-Returns the <acronym>CIE</acronym> L*a*b* coordinates of (Lc
-displayable by the screen for the given (lC.
+Returns the <acronym>CIE</acronym> L*a*b* coordinates of maximum lightness
+displayable by the screen for the given hue angle and chroma.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5566,7 +5548,6 @@ for a given Psychometric Hue Angle, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Ha maximum chroma -->
</para>
</listitem>
</varlistentry>
@@ -5576,9 +5557,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the hue angle (in degrees) at which to find (Ha.
-<!-- .ds Lc maximum chroma -->
-<!-- .ds lC hue angle -->
+Specifies the hue angle (in degrees) at which to find maximum chroma.
</para>
</listitem>
</varlistentry>
@@ -5588,8 +5567,8 @@ Specifies the hue angle (in degrees) at which to find (Ha.
</term>
<listitem>
<para>
-Returns the <acronym>CIE</acronym> L*a*b* coordinates of (Lc
-displayable by the screen for the given (lC.
+Returns the <acronym>CIE</acronym> L*a*b* coordinates of maximum chroma
+displayable by the screen for the given hue angle.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5639,7 +5618,6 @@ for a given Psychometric Hue Angle and Psychometric Chroma, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Ha minimum lightness -->
</para>
</listitem>
</varlistentry>
@@ -5649,8 +5627,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the hue angle (in degrees) at which to find (Ha.
-<!-- .ds Ch minimum lightness -->
+Specifies the hue angle (in degrees) at which to find minimum lightness.
</para>
</listitem>
</varlistentry>
@@ -5660,9 +5637,7 @@ Specifies the hue angle (in degrees) at which to find (Ha.
</term>
<listitem>
<para>
-Specifies the chroma at which to find (Ch.
-<!-- .ds Lc minimum lightness -->
-<!-- .ds lC hue angle and chroma -->
+Specifies the chroma at which to find minimum lightness.
</para>
</listitem>
</varlistentry>
@@ -5672,8 +5647,8 @@ Specifies the chroma at which to find (Ch.
</term>
<listitem>
<para>
-Returns the <acronym>CIE</acronym> L*a*b* coordinates of (Lc
-displayable by the screen for the given (lC.
+Returns the <acronym>CIE</acronym> L*a*b* coordinates of minimum lightness
+displayable by the screen for the given hue angle and chroma.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5749,7 +5724,6 @@ for a given Psychometric Hue Angle and <acronym>CIE</acronym> metric lightness (
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Ha maximum chroma -->
</para>
</listitem>
</varlistentry>
@@ -5759,8 +5733,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the hue angle (in degrees) at which to find (Ha.
-<!-- .ds Ls maximum chroma -->
+Specifies the hue angle (in degrees) at which to find maximum chroma.
</para>
</listitem>
</varlistentry>
@@ -5770,9 +5743,7 @@ Specifies the hue angle (in degrees) at which to find (Ha.
</term>
<listitem>
<para>
-Specifies the lightness (L*) at which to find (Ls.
-<!-- .ds Lc maximum chroma -->
-<!-- .ds lC hue angle and lightness -->
+Specifies the lightness (L*) at which to find maximum chroma.
</para>
</listitem>
</varlistentry>
@@ -5782,8 +5753,8 @@ Specifies the lightness (L*) at which to find (Ls.
</term>
<listitem>
<para>
-Returns the <acronym>CIE</acronym> L*u*v* coordinates of (Lc
-displayable by the screen for the given (lC.
+Returns the <acronym>CIE</acronym> L*u*v* coordinates of maximum chroma
+displayable by the screen for the given hue angle and lightness.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5833,7 +5804,6 @@ for a given Psychometric Hue Angle and Psychometric Chroma, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Ha maximum lightness -->
</para>
</listitem>
</varlistentry>
@@ -5843,8 +5813,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the hue angle (in degrees) at which to find (Ha.
-<!-- .ds Ls maximum lightness -->
+Specifies the hue angle (in degrees) at which to find maximum lightness.
</para>
</listitem>
</varlistentry>
@@ -5854,9 +5823,7 @@ Specifies the hue angle (in degrees) at which to find (Ha.
</term>
<listitem>
<para>
-Specifies the lightness (L*) at which to find (Ls.
-<!-- .ds Lc maximum lightness -->
-<!-- .ds lC hue angle and chroma -->
+Specifies the lightness (L*) at which to find maximum lightness.
</para>
</listitem>
</varlistentry>
@@ -5866,8 +5833,8 @@ Specifies the lightness (L*) at which to find (Ls.
</term>
<listitem>
<para>
-Returns the <acronym>CIE</acronym> L*u*v* coordinates of (Lc
-displayable by the screen for the given (lC.
+Returns the <acronym>CIE</acronym> L*u*v* coordinates of maximum lightness
+displayable by the screen for the given hue angle and chroma.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5923,7 +5890,6 @@ for a given Psychometric Hue Angle, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Ha maximum chroma -->
</para>
</listitem>
</varlistentry>
@@ -5933,9 +5899,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the hue angle (in degrees) at which to find (Ha.
-<!-- .ds Lc maximum chroma -->
-<!-- .ds lC hue angle -->
+Specifies the hue angle (in degrees) at which to find maximum chroma.
</para>
</listitem>
</varlistentry>
@@ -5945,8 +5909,8 @@ Specifies the hue angle (in degrees) at which to find (Ha.
</term>
<listitem>
<para>
-Returns the <acronym>CIE</acronym> L*u*v* coordinates of (Lc
-displayable by the screen for the given (lC.
+Returns the <acronym>CIE</acronym> L*u*v* coordinates of maximum chroma
+displayable by the screen for the given hue angle.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -5996,7 +5960,6 @@ for a given Psychometric Hue Angle and Psychometric Chroma, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Ha minimum lightness -->
</para>
</listitem>
</varlistentry>
@@ -6006,8 +5969,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the hue angle (in degrees) at which to find (Ha.
-<!-- .ds Ch minimum lightness -->
+Specifies the hue angle (in degrees) at which to find minimum lightness.
</para>
</listitem>
</varlistentry>
@@ -6017,9 +5979,7 @@ Specifies the hue angle (in degrees) at which to find (Ha.
</term>
<listitem>
<para>
-Specifies the chroma at which to find (Ch.
-<!-- .ds Lc minimum lightness -->
-<!-- .ds lC hue angle and chroma -->
+Specifies the chroma at which to find minimum lightness.
</para>
</listitem>
</varlistentry>
@@ -6029,8 +5989,8 @@ Specifies the chroma at which to find (Ch.
</term>
<listitem>
<para>
-Returns the <acronym>CIE</acronym> L*u*v* coordinates of (Lc
-displayable by the screen for the given (lC.
+Returns the <acronym>CIE</acronym> L*u*v* coordinates of minimum lightness
+displayable by the screen for the given hue angle and chroma.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -6087,7 +6047,6 @@ To obtain the maximum Chroma for a given Hue and Value, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Hu in which to find the maximum Chroma -->
</para>
</listitem>
</varlistentry>
@@ -6097,8 +6056,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the Hue (Hu.
-<!-- .ds Va maximum Chroma -->
+Specifies the Hue in which to find the maximum Chroma.
</para>
</listitem>
</varlistentry>
@@ -6108,9 +6066,7 @@ Specifies the Hue (Hu.
</term>
<listitem>
<para>
-Specifies the Value in which to find the (Va.
-<!-- .ds Lc maximum Chroma along with the actual Hue and Value -->
-<!-- .ds lC maximum Chroma -->
+Specifies the Value in which to find the maximum Chroma.
</para>
</listitem>
</varlistentry>
@@ -6120,7 +6076,8 @@ Specifies the Value in which to find the (Va.
</term>
<listitem>
<para>
-Returns the (Lc at which the (lC was found.
+Returns the maximum Chroma along with the actual Hue and Value at which
+the maximum Chroma was found.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -6170,7 +6127,6 @@ To obtain the maximum Value for a given Hue and Chroma, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Hu in which to find the maximum Value -->
</para>
</listitem>
</varlistentry>
@@ -6180,8 +6136,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the Hue (Hu.
-<!-- .ds Ch maximum Value -->
+Specifies the Hue in which to find the maximum Value.
</para>
</listitem>
</varlistentry>
@@ -6191,9 +6146,7 @@ Specifies the Hue (Hu.
</term>
<listitem>
<para>
-Specifies the chroma at which to find (Ch.
-<!-- .ds Lc maximum Value along with the Hue and Chroma -->
-<!-- .ds lC maximum Value -->
+Specifies the chroma at which to find maximum Value.
</para>
</listitem>
</varlistentry>
@@ -6203,7 +6156,9 @@ Specifies the chroma at which to find (Ch.
</term>
<listitem>
<para>
-Returns the (Lc at which the (lC was found.
+Returns the maximum Value along with the Hue and Chroma at which the
+maximum Value
+was found.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -6256,7 +6211,6 @@ for a specified Hue, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Hu in which to find the maximum Chroma -->
</para>
</listitem>
</varlistentry>
@@ -6266,11 +6220,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the Hue (Hu.
-<!-- .ds Lc color specification in \ -->
-XcmsTekHVC for the maximum Chroma, the Value at which \
-that maximum Chroma is reached, and the actual Hue
-<!-- .ds lC maximum Chroma -->
+Specifies the Hue in which to find the maximum Chroma.
</para>
</listitem>
</varlistentry>
@@ -6280,7 +6230,9 @@ that maximum Chroma is reached, and the actual Hue
</term>
<listitem>
<para>
-Returns the (Lc at which the (lC was found.
+Returns the color specification in XcmsTekHVC for the maximum Chroma, the
+Value at which that maximum Chroma is reached, and the actual Hue at which
+the maximum Chroma was found.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
@@ -6335,7 +6287,6 @@ Chroma at which the maximum Values are reached, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Hu for maximum Chroma/Value samples -->
</para>
</listitem>
</varlistentry>
@@ -6345,7 +6296,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the Hue (Hu.
+Specifies the Hue for maximum Chroma/Value samples.
</para>
</listitem>
</varlistentry>
@@ -6416,7 +6367,6 @@ To obtain the minimum Value for a given Hue and Chroma, use
Specifies the CCC.
The CCC's Client White Point and white point adjustment procedures
are ignored.
-<!-- .ds Hu in which to find the minimum Value -->
</para>
</listitem>
</varlistentry>
@@ -6426,8 +6376,7 @@ are ignored.
</term>
<listitem>
<para>
-Specifies the Hue (Hu.
-<!-- .ds Va minimum Value -->
+Specifies the Hue in which to find the minimum Value.
</para>
</listitem>
</varlistentry>
@@ -6437,9 +6386,7 @@ Specifies the Hue (Hu.
</term>
<listitem>
<para>
-Specifies the Value in which to find the (Va.
-<!-- .ds Lc minimum Value and the actual Hue and Chroma -->
-<!-- .ds lC minimum Value -->
+Specifies the Value in which to find the minimum Value.
</para>
</listitem>
</varlistentry>
@@ -6449,7 +6396,9 @@ Specifies the Value in which to find the (Va.
</term>
<listitem>
<para>
-Returns the (Lc at which the (lC was found.
+Returns the minimum Value and the actual Hue and Chroma at which the
+minimum Value
+was found.
The white point associated with the returned
color specification is the Screen White Point.
The value returned in the pixel member is undefined.
diff --git a/lib/libX11/specs/libX11/CH07.xml b/lib/libX11/specs/libX11/CH07.xml
index b50dc8363..fc3f44d18 100644
--- a/lib/libX11/specs/libX11/CH07.xml
+++ b/lib/libX11/specs/libX11/CH07.xml
@@ -994,7 +994,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the drawable.
-<!-- .ds Vm set using the information in the specified values structure -->
</para>
</listitem>
</varlistentry>
@@ -1004,7 +1003,8 @@ Specifies the drawable.
</term>
<listitem>
<para>
-Specifies which components in the GC are to be (Vm.
+Specifies which components in the GC are to be set using the information in
+the specified values structure.
This argument is the bitwise inclusive OR of zero or more of the valid
GC component mask bits.
</para>
@@ -1081,7 +1081,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the components of the source GC.
-<!-- .ds Vm copied to the destination GC -->
</para>
</listitem>
</varlistentry>
@@ -1091,7 +1090,8 @@ Specifies the components of the source GC.
</term>
<listitem>
<para>
-Specifies which components in the GC are to be (Vm.
+Specifies which components in the GC are to be copied to the destination
+GC.
This argument is the bitwise inclusive OR of zero or more of the valid
GC component mask bits.
</para>
@@ -1168,7 +1168,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Vm changed using information in the specified values structure -->
</para>
</listitem>
</varlistentry>
@@ -1178,7 +1177,8 @@ Specifies the GC.
</term>
<listitem>
<para>
-Specifies which components in the GC are to be (Vm.
+Specifies which components in the GC are to be changed using information in
+the specified values structure.
This argument is the bitwise inclusive OR of zero or more of the valid
GC component mask bits.
</para>
@@ -1264,7 +1264,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Vm returned in the values_return argument -->
</para>
</listitem>
</varlistentry>
@@ -1274,7 +1273,8 @@ Specifies the GC.
</term>
<listitem>
<para>
-Specifies which components in the GC are to be (Vm.
+Specifies which components in the GC are to be returned in the
+values_return argument.
This argument is the bitwise inclusive OR of zero or more of the valid
GC component mask bits.
</para>
@@ -1409,7 +1409,6 @@ resource ID for a given GC, use
</funcprototype>
</funcsynopsis>
<!-- .FN -->
-<!-- .ds Gc for which you want the resource ID -->
<variablelist>
<varlistentry>
<term>
@@ -1417,7 +1416,7 @@ resource ID for a given GC, use
</term>
<listitem>
<para>
-Specifies the GC (Gc.
+Specifies the GC for which you want the resource ID.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH08.xml b/lib/libX11/specs/libX11/CH08.xml
index e4afa37fa..fb76c84d8 100644
--- a/lib/libX11/specs/libX11/CH08.xml
+++ b/lib/libX11/specs/libX11/CH08.xml
@@ -73,8 +73,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the window.
-<!-- .ds Xy , which are relative to the origin of the window \ -->
-and specify the upper-left corner of the rectangle
</para>
</listitem>
</varlistentry>
@@ -95,8 +93,8 @@ and specify the upper-left corner of the rectangle
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which are the dimensions of the rectangle -->
+Specify the x and y coordinates, which are relative to the origin of the
+window and specify the upper-left corner of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -117,7 +115,7 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which are the dimensions of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -344,8 +342,6 @@ Specifies the GC.
Specify the x and y coordinates,
which are relative to the origin of the source rectangle
and specify its upper-left corner.
-<!-- .ds Wh , which are the dimensions of both the source \ -->
-and destination rectangles
</para>
</listitem>
</varlistentry>
@@ -366,9 +362,8 @@ and destination rectangles
</term>
<listitem>
<para>
-Specify the width and height(Wh.
-<!-- .ds Dx , which are relative to the origin of the destination rectangle \ -->
-and specify its upper-left corner
+Specify the width and height, which are the dimensions of both the source
+and destination rectangles.
</para>
</listitem>
</varlistentry>
@@ -389,7 +384,8 @@ and specify its upper-left corner
</term>
<listitem>
<para>
-Specify the x and y coordinates(Dx.
+Specify the x and y coordinates, which are relative to the origin of the
+destination rectangle and specify its upper-left corner.
</para>
</listitem>
</varlistentry>
@@ -540,7 +536,6 @@ Specifies the GC.
Specify the x and y coordinates,
which are relative to the origin of the source rectangle
and specify its upper-left corner.
-<!-- .ds Wh , which are the dimensions of both the source and destination rectangles -->
</para>
</listitem>
</varlistentry>
@@ -561,9 +556,8 @@ and specify its upper-left corner.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
-<!-- .ds Dx , which are relative to the origin of the destination rectangle \ -->
-and specify its upper-left corner
+Specify the width and height, which are the dimensions of both the source
+and destination rectangles.
</para>
</listitem>
</varlistentry>
@@ -584,7 +578,8 @@ and specify its upper-left corner
</term>
<listitem>
<para>
-Specify the x and y coordinates(Dx.
+Specify the x and y coordinates, which are relative to the origin of the
+destination rectangle and specify its upper-left corner.
</para>
</listitem>
</varlistentry>
@@ -1373,7 +1368,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which specify the upper-left corner of the rectangle -->
</para>
</listitem>
</varlistentry>
@@ -1394,8 +1388,8 @@ Specifies the GC.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which specify the dimensions of the rectangle -->
+Specify the x and y coordinates, which specify the upper-left corner of the
+rectangle.
</para>
</listitem>
</varlistentry>
@@ -1416,7 +1410,8 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which specify the dimensions of the
+rectangle.
</para>
</listitem>
</varlistentry>
@@ -1605,8 +1600,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the drawable \ -->
-and specify the upper-left corner of the bounding rectangle
</para>
</listitem>
</varlistentry>
@@ -1627,8 +1620,8 @@ and specify the upper-left corner of the bounding rectangle
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which are the major and minor axes of the arc -->
+Specify the x and y coordinates, which are relative to the origin of the
+drawable and specify the upper-left corner of the bounding rectangle.
</para>
</listitem>
</varlistentry>
@@ -1649,7 +1642,8 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which are the major and minor axes of the
+arc.
</para>
</listitem>
</varlistentry>
@@ -1962,8 +1956,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the drawable \ -->
-and specify the upper-left corner of the rectangle
</para>
</listitem>
</varlistentry>
@@ -1984,8 +1976,8 @@ and specify the upper-left corner of the rectangle
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which are the dimensions of the rectangle to be filled -->
+Specify the x and y coordinates, which are relative to the origin of the
+drawable and specify the upper-left corner of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -2006,7 +1998,8 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which are the dimensions of the rectangle to
+be filled.
</para>
</listitem>
</varlistentry>
@@ -2394,8 +2387,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the drawable \ -->
-and specify the upper-left corner of the bounding rectangle
</para>
</listitem>
</varlistentry>
@@ -2416,8 +2407,8 @@ and specify the upper-left corner of the bounding rectangle
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which are the major and minor axes of the arc -->
+Specify the x and y coordinates, which are relative to the origin of the
+drawable and specify the upper-left corner of the bounding rectangle.
</para>
</listitem>
</varlistentry>
@@ -2438,7 +2429,8 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which are the major and minor axes of the
+arc.
</para>
</listitem>
</varlistentry>
@@ -4523,8 +4515,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the specified drawable \ -->
-and define the origin of the first character
</para>
</listitem>
</varlistentry>
@@ -4545,7 +4535,8 @@ and define the origin of the first character
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which are relative to the origin of the
+specified drawable and define the origin of the first character.
</para>
</listitem>
</varlistentry>
@@ -4619,8 +4610,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the specified drawable \ -->
-and define the origin of the first character
</para>
</listitem>
</varlistentry>
@@ -4641,7 +4630,8 @@ and define the origin of the first character
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which are relative to the origin of the
+specified drawable and define the origin of the first character.
</para>
</listitem>
</varlistentry>
@@ -4780,8 +4770,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the specified drawable \ -->
-and define the origin of the first character
</para>
</listitem>
</varlistentry>
@@ -4802,7 +4790,8 @@ and define the origin of the first character
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which are relative to the origin of the
+specified drawable and define the origin of the first character.
</para>
</listitem>
</varlistentry>
@@ -4876,8 +4865,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the specified drawable \ -->
-and define the origin of the first character
</para>
</listitem>
</varlistentry>
@@ -4898,7 +4885,8 @@ and define the origin of the first character
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which are relative to the origin of the
+specified drawable and define the origin of the first character.
</para>
</listitem>
</varlistentry>
@@ -5020,8 +5008,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the specified drawable \ -->
-and define the origin of the first character
</para>
</listitem>
</varlistentry>
@@ -5042,7 +5028,8 @@ and define the origin of the first character
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which are relative to the origin of the
+specified drawable and define the origin of the first character.
</para>
</listitem>
</varlistentry>
@@ -5116,8 +5103,6 @@ Specifies the drawable.
<listitem>
<para>
Specifies the GC.
-<!-- .ds Xy , which are relative to the origin of the specified drawable \ -->
-and define the origin of the first character
</para>
</listitem>
</varlistentry>
@@ -5138,7 +5123,8 @@ and define the origin of the first character
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which are relative to the origin of the
+specified drawable and define the origin of the first character.
</para>
</listitem>
</varlistentry>
@@ -5456,8 +5442,6 @@ Specifies the offset in Y from the top edge of the image defined
by the
<structname>XImage</structname>
structure.
-<!-- .ds Dx , which are relative to the origin of the drawable \ -->
-and are the coordinates of the subimage
</para>
</listitem>
</varlistentry>
@@ -5478,8 +5462,8 @@ and are the coordinates of the subimage
</term>
<listitem>
<para>
-Specify the x and y coordinates(Dx.
-<!-- .ds Wh \ of the subimage, which define the dimensions of the rectangle -->
+Specify the x and y coordinates, which are relative to the origin of the
+drawable and are the coordinates of the subimage.
</para>
</listitem>
</varlistentry>
@@ -5500,7 +5484,8 @@ Specify the x and y coordinates(Dx.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height of the subimage, which define the dimensions
+of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -5598,8 +5583,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the drawable.
-<!-- .ds Xy , which are relative to the origin of the drawable \ -->
-and define the upper-left corner of the rectangle
</para>
</listitem>
</varlistentry>
@@ -5620,8 +5603,8 @@ and define the upper-left corner of the rectangle
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh \ of the subimage, which define the dimensions of the rectangle -->
+Specify the x and y coordinates, which are relative to the origin of the
+drawable and define the upper-left corner of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -5642,7 +5625,8 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height of the subimage, which define the dimensions
+of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -5787,8 +5771,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Specifies the drawable.
-<!-- .ds Xy , which are relative to the origin of the drawable \ -->
-and define the upper-left corner of the rectangle
</para>
</listitem>
</varlistentry>
@@ -5809,8 +5791,8 @@ and define the upper-left corner of the rectangle
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh \ of the subimage, which define the dimensions of the rectangle -->
+Specify the x and y coordinates, which are relative to the origin of the
+drawable and define the upper-left corner of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -5831,7 +5813,8 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height of the subimage, which define the dimensions
+of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -5867,9 +5850,6 @@ or
<listitem>
<para>
Specifies the destination image.
-<!-- .ds Dx , which are relative to the origin of the destination rectangle, \ -->
-specify its upper-left corner, and determine where the subimage \
-is placed in the destination image
</para>
</listitem>
</varlistentry>
@@ -5890,7 +5870,9 @@ is placed in the destination image
</term>
<listitem>
<para>
-Specify the x and y coordinates(Dx.
+Specify the x and y coordinates, which are relative to the origin of the
+destination rectangle, specify its upper-left corner, and determine where
+the subimage is placed in the destination image.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH09.xml b/lib/libX11/specs/libX11/CH09.xml
index 5636df149..d5d93d0a0 100644
--- a/lib/libX11/specs/libX11/CH09.xml
+++ b/lib/libX11/specs/libX11/CH09.xml
@@ -74,7 +74,6 @@ Specifies the window.
<listitem>
<para>
Specifies the parent window.
-<!-- .ds Xy \ of the position in the new parent window -->
</para>
</listitem>
</varlistentry>
@@ -95,7 +94,7 @@ Specifies the parent window.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates of the position in the new parent window.
</para>
</listitem>
</varlistentry>
@@ -237,7 +236,6 @@ To add or remove a window from the client's save-set, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi that you want to add to or delete from the client's save-set -->
</para>
</listitem>
</varlistentry>
@@ -247,7 +245,8 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window that you want to add to or delete from the client's
+save-set.
</para>
</listitem>
</varlistentry>
@@ -311,7 +310,6 @@ To add a window to the client's save-set, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi that you want to add to the client's save-set -->
</para>
</listitem>
</varlistentry>
@@ -321,7 +319,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window that you want to add to the client's save-set.
</para>
</listitem>
</varlistentry>
@@ -370,7 +368,6 @@ To remove a window from the client's save-set, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi that you want to delete from the client's save-set -->
</para>
</listitem>
</varlistentry>
@@ -380,7 +377,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window that you want to delete from the client's save-set.
</para>
</listitem>
</varlistentry>
@@ -612,7 +609,6 @@ To obtain a list of the currently installed colormaps for a given screen, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi that determines the screen -->
</para>
</listitem>
</varlistentry>
@@ -622,7 +618,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window that determines the screen.
</para>
</listitem>
</varlistentry>
@@ -1549,7 +1545,6 @@ To add a single host, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Ho added -->
</para>
</listitem>
</varlistentry>
@@ -1559,7 +1554,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the host that is to be (Ho.
+Specifies the host that is to be added.
</para>
</listitem>
</varlistentry>
@@ -1608,7 +1603,6 @@ To add multiple hosts at one time, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Ho added -->
</para>
</listitem>
</varlistentry>
@@ -1618,7 +1612,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies each host that is to be (Ho.
+Specifies each host that is to be added.
</para>
</listitem>
</varlistentry>
@@ -1740,7 +1734,6 @@ To remove a single host, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Ho removed -->
</para>
</listitem>
</varlistentry>
@@ -1750,7 +1743,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the host that is to be (Ho.
+Specifies the host that is to be removed.
</para>
</listitem>
</varlistentry>
@@ -1803,7 +1796,6 @@ To remove multiple hosts at one time, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Ho removed -->
</para>
</listitem>
</varlistentry>
@@ -1813,7 +1805,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies each host that is to be (Ho.
+Specifies each host that is to be removed.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH11.xml b/lib/libX11/specs/libX11/CH11.xml
index 001e05d8f..2d0fa0fe6 100644
--- a/lib/libX11/specs/libX11/CH11.xml
+++ b/lib/libX11/specs/libX11/CH11.xml
@@ -63,7 +63,6 @@ Another way is to use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose events you are interested in -->
</para>
</listitem>
</varlistentry>
@@ -73,7 +72,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose events you are interested in.
</para>
</listitem>
</varlistentry>
@@ -926,7 +925,6 @@ To remove the next event that matches both a window and an event mask, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose events you are interested in -->
</para>
</listitem>
</varlistentry>
@@ -936,7 +934,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose events you are interested in.
</para>
</listitem>
</varlistentry>
@@ -1011,7 +1009,6 @@ indicating if the event was returned.
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Wi whose events you are interested in -->
</para>
</listitem>
</varlistentry>
@@ -1021,7 +1018,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window whose events you are interested in.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH12.xml b/lib/libX11/specs/libX11/CH12.xml
index cc14fe649..43953e16b 100644
--- a/lib/libX11/specs/libX11/CH12.xml
+++ b/lib/libX11/specs/libX11/CH12.xml
@@ -605,7 +605,6 @@ To grab a pointer button, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Bu grabbed -->
</para>
</listitem>
</varlistentry>
@@ -615,7 +614,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the pointer button that is to be (Bu or
+Specifies the pointer button that is to be grabbed or
<symbol>AnyButton</symbol>.
</para>
</listitem>
@@ -844,7 +843,6 @@ To ungrab a pointer button, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Bu released -->
</para>
</listitem>
</varlistentry>
@@ -854,7 +852,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the pointer button that is to be (Bu or
+Specifies the pointer button that is to be released or
<symbol>AnyButton</symbol>.
</para>
</listitem>
@@ -3303,7 +3301,6 @@ To obtain the symbols for the specified KeyCodes, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Kc returned -->
</para>
</listitem>
</varlistentry>
@@ -3313,7 +3310,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the first KeyCode that is to be (Kc.
+Specifies the first KeyCode that is to be returned.
</para>
</listitem>
</varlistentry>
@@ -3429,7 +3426,6 @@ To change the keyboard mapping, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Kc changed -->
</para>
</listitem>
</varlistentry>
@@ -3439,7 +3435,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the first KeyCode that is to be (Kc.
+Specifies the first KeyCode that is to be changed.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH13.xml b/lib/libX11/specs/libX11/CH13.xml
index e710414c8..096d86097 100644
--- a/lib/libX11/specs/libX11/CH13.xml
+++ b/lib/libX11/specs/libX11/CH13.xml
@@ -862,7 +862,6 @@ To set output method attributes, use
<listitem>
<para>
Specifies the output method.
-<!-- .ds Al \ to set <acronym>XOM</acronym> values -->
</para>
</listitem>
</varlistentry>
@@ -872,7 +871,8 @@ Specifies the output method.
</term>
<listitem>
<para>
-Specifies the variable-length argument list(Al.
+Specifies the variable-length argument list to set <acronym>XOM</acronym>
+values.
</para>
</listitem>
</varlistentry>
@@ -915,7 +915,6 @@ To query an output method, use
<listitem>
<para>
Specifies the output method.
-<!-- .ds Al \ to get XOM values -->
</para>
</listitem>
</varlistentry>
@@ -925,7 +924,7 @@ Specifies the output method.
</term>
<listitem>
<para>
-Specifies the variable-length argument list(Al.
+Specifies the variable-length argument list to get XOM values.
</para>
</listitem>
</varlistentry>
@@ -1337,7 +1336,6 @@ To create an output context, use
<listitem>
<para>
Specifies the output method.
-<!-- .ds Al \ to set <acronym>XOC</acronym> values -->
</para>
</listitem>
</varlistentry>
@@ -1347,7 +1345,8 @@ Specifies the output method.
</term>
<listitem>
<para>
-Specifies the variable-length argument list(Al.
+Specifies the variable-length argument list to set <acronym>XOC</acronym>
+values.
</para>
</listitem>
</varlistentry>
@@ -1504,7 +1503,6 @@ To set <acronym>XOC</acronym> values, use
<listitem>
<para>
Specifies the output context.
-<!-- .ds Al \ to set <acronym>XOC</acronym> values -->
</para>
</listitem>
</varlistentry>
@@ -1514,7 +1512,8 @@ Specifies the output context.
</term>
<listitem>
<para>
-Specifies the variable-length argument list(Al.
+Specifies the variable-length argument list to set <acronym>XOC</acronym>
+values.
</para>
</listitem>
</varlistentry>
@@ -1581,7 +1580,6 @@ To obtain <acronym>XOC</acronym> values, use
<listitem>
<para>
Specifies the output context.
-<!-- .ds Al \ to get XOC values -->
</para>
</listitem>
</varlistentry>
@@ -1591,7 +1589,7 @@ Specifies the output context.
</term>
<listitem>
<para>
-Specifies the variable-length argument list(Al.
+Specifies the variable-length argument list to get XOC values.
</para>
</listitem>
</varlistentry>
@@ -3170,7 +3168,6 @@ Specifies the number of bytes in the string argument.
<listitem>
<para>
Specifies the number of characters in the string argument.
-<!-- .ds Ov dimensions -->
</para>
</listitem>
</varlistentry>
@@ -3379,7 +3376,6 @@ The caller must pass in arrays of this size.
<listitem>
<para>
Returns the number of characters in the string argument.
-<!-- .ds Ov extents of the entire string -->
</para>
</listitem>
</varlistentry>
@@ -3626,7 +3622,7 @@ Specifies the GC.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates of the position in the new parent window.
</para>
</listitem>
</varlistentry>
@@ -3789,7 +3785,7 @@ Specifies the GC.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates of the position in the new parent window.
</para>
</listitem>
</varlistentry>
@@ -3935,7 +3931,7 @@ Specifies the GC.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates of the position in the new parent window.
</para>
</listitem>
</varlistentry>
@@ -5328,7 +5324,6 @@ To set input method attributes, use
<listitem>
<para>
Specifies the input method.
-<!-- .ds Al \ to set <acronym>XIM</acronym> values -->
</para>
</listitem>
</varlistentry>
@@ -5338,7 +5333,8 @@ Specifies the input method.
</term>
<listitem>
<para>
-Specifies the variable-length argument list(Al.
+Specifies the variable-length argument list to set <acronym>XIM</acronym>
+values.
</para>
</listitem>
</varlistentry>
@@ -5381,7 +5377,6 @@ To query an input method, use
<listitem>
<para>
Specifies the input method.
-<!-- .ds Al \ to get XIM values -->
</para>
</listitem>
</varlistentry>
@@ -5391,7 +5386,7 @@ Specifies the input method.
</term>
<listitem>
<para>
-Specifies the variable length argument list(Al.
+Specifies the variable length argument list to get XIM values.
</para>
</listitem>
</varlistentry>
@@ -6339,7 +6334,6 @@ To create an input context, use
<listitem>
<para>
Specifies the input method.
-<!-- .ds Al \ to set <acronym>XIC</acronym> values -->
</para>
</listitem>
</varlistentry>
@@ -6349,7 +6343,8 @@ Specifies the input method.
</term>
<listitem>
<para>
-Specifies the variable length argument list(Al.
+Specifies the variable length argument list to set <acronym>XIC</acronym>
+values.
</para>
</listitem>
</varlistentry>
@@ -6675,7 +6670,6 @@ To set <acronym>XIC</acronym> values, use
<listitem>
<para>
Specifies the input context.
-<!-- .ds Al \ to set <acronym>XIC</acronym> values -->
</para>
</listitem>
</varlistentry>
@@ -6685,7 +6679,8 @@ Specifies the input context.
</term>
<listitem>
<para>
-Specifies the variable length argument list(Al.
+Specifies the variable length argument list to set <acronym>XIC</acronym>
+values.
</para>
</listitem>
</varlistentry>
@@ -6758,7 +6753,6 @@ To obtain <acronym>XIC</acronym> values, use
<listitem>
<para>
Specifies the input context.
-<!-- .ds Al \ to get XIC values -->
</para>
</listitem>
</varlistentry>
@@ -6768,7 +6762,7 @@ Specifies the input context.
</term>
<listitem>
<para>
-Specifies the variable length argument list(Al.
+Specifies the variable length argument list to get XIC values.
</para>
</listitem>
</varlistentry>
@@ -9881,7 +9875,6 @@ To filter an event, use
</funcprototype>
</funcsynopsis>
<!-- .FN -->
-<!-- .ds Ev event to filter -->
<variablelist>
<varlistentry>
<term>
@@ -9889,8 +9882,7 @@ To filter an event, use
</term>
<listitem>
<para>
-Specifies the (Ev.
-<!-- .ds Wi for which the filter is to be applied -->
+Specifies the event to filter.
</para>
</listitem>
</varlistentry>
@@ -9900,7 +9892,7 @@ Specifies the (Ev.
</term>
<listitem>
<para>
-Specifies the window (Wi.
+Specifies the window for which the filter is to be applied.
</para>
</listitem>
</varlistentry>
@@ -9989,7 +9981,6 @@ or
<listitem>
<para>
Specifies the input context.
-<!-- .ds Ev key event to be used -->
</para>
</listitem>
</varlistentry>
@@ -9999,7 +9990,7 @@ Specifies the input context.
</term>
<listitem>
<para>
-Specifies the (Ev.
+Specifies the key event to be used.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH14.xml b/lib/libX11/specs/libX11/CH14.xml
index 6dc947a9c..d7bbf5e67 100644
--- a/lib/libX11/specs/libX11/CH14.xml
+++ b/lib/libX11/specs/libX11/CH14.xml
@@ -799,7 +799,6 @@ structure to be used.
<listitem>
<para>
Returns a list of null-terminated character strings.
-<!-- .ds Cn strings -->
</para>
</listitem>
</varlistentry>
@@ -809,7 +808,7 @@ Returns a list of null-terminated character strings.
</term>
<listitem>
<para>
-Returns the number of (Cn.
+Returns the number of strings.
</para>
</listitem>
</varlistentry>
@@ -1008,7 +1007,6 @@ structure, use
<listitem>
<para>
Specifies a list of null-terminated character strings.
-<!-- .ds Cn strings -->
</para>
</listitem>
</varlistentry>
@@ -1018,7 +1016,7 @@ Specifies a list of null-terminated character strings.
</term>
<listitem>
<para>
-Specifies the number of (Cn.
+Specifies the number of strings.
</para>
</listitem>
</varlistentry>
@@ -1095,7 +1093,6 @@ structure to be used.
<listitem>
<para>
Returns a list of null-terminated character strings.
-<!-- .ds Cn strings -->
</para>
</listitem>
</varlistentry>
@@ -1105,7 +1102,7 @@ Returns a list of null-terminated character strings.
</term>
<listitem>
<para>
-Returns the number of (Cn.
+Returns the number of strings.
</para>
</listitem>
</varlistentry>
@@ -3221,7 +3218,6 @@ Specifies the window.
<listitem>
<para>
Specifies the list of protocols.
-<!-- .ds Cn protocols in the list -->
</para>
</listitem>
</varlistentry>
@@ -3231,7 +3227,7 @@ Specifies the list of protocols.
</term>
<listitem>
<para>
-Specifies the number of (Cn.
+Specifies the number of protocols in the list.
</para>
</listitem>
</varlistentry>
@@ -3308,7 +3304,6 @@ Specifies the window.
<listitem>
<para>
Returns the list of protocols.
-<!-- .ds Cn protocols in the list -->
</para>
</listitem>
</varlistentry>
@@ -3318,7 +3313,7 @@ Returns the list of protocols.
</term>
<listitem>
<para>
-Returns the number of (Cn.
+Returns the number of protocols in the list.
</para>
</listitem>
</varlistentry>
@@ -3407,7 +3402,6 @@ Specifies the window.
<listitem>
<para>
Specifies the list of windows.
-<!-- .ds Cn windows in the list -->
</para>
</listitem>
</varlistentry>
@@ -3417,7 +3411,7 @@ Specifies the list of windows.
</term>
<listitem>
<para>
-Specifies the number of (Cn.
+Specifies the number of windows in the list.
</para>
</listitem>
</varlistentry>
@@ -3494,7 +3488,6 @@ Specifies the window.
<listitem>
<para>
Returns the list of windows.
-<!-- .ds Cn windows in the list -->
</para>
</listitem>
</varlistentry>
@@ -3504,7 +3497,7 @@ Returns the list of windows.
</term>
<listitem>
<para>
-Returns the number of (Cn.
+Returns the number of windows in the list.
</para>
</listitem>
</varlistentry>
@@ -4980,7 +4973,6 @@ Specifies the window.
Specifies the
<structname>XStandardColormap</structname>
structure to be used.
-<!-- .ds Cn colormaps -->
</para>
</listitem>
</varlistentry>
@@ -4990,7 +4982,7 @@ structure to be used.
</term>
<listitem>
<para>
-Specifies the number of (Cn.
+Specifies the number of colormaps.
</para>
</listitem>
</varlistentry>
@@ -5160,7 +5152,6 @@ Specifies the window.
Returns the
<structname>XStandardColormap</structname>
structure.
-<!-- .ds Cn colormaps -->
</para>
</listitem>
</varlistentry>
@@ -5170,7 +5161,7 @@ structure.
</term>
<listitem>
<para>
-Returns the number of (Cn.
+Returns the number of colormaps.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH15.xml b/lib/libX11/specs/libX11/CH15.xml
index f6c76a481..2180c6d6c 100644
--- a/lib/libX11/specs/libX11/CH15.xml
+++ b/lib/libX11/specs/libX11/CH15.xml
@@ -532,7 +532,6 @@ To convert a string with one or more components to a quark list, use
</funcprototype>
</funcsynopsis>
<!-- .FN -->
-<!-- .ds Ql \ list -->
<variablelist>
<varlistentry>
<term>
@@ -540,7 +539,7 @@ To convert a string with one or more components to a quark list, use
</term>
<listitem>
<para>
-Specifies the string for which a quark(Ql is to be allocated.
+Specifies the string for which a quark list is to be allocated.
</para>
</listitem>
</varlistentry>
@@ -608,7 +607,6 @@ and a quark list, use
</funcprototype>
</funcsynopsis>
<!-- .FN -->
-<!-- .ds Ql \ list -->
<variablelist>
<varlistentry>
<term>
@@ -616,7 +614,7 @@ and a quark list, use
</term>
<listitem>
<para>
-Specifies the string for which a quark(Ql is to be allocated.
+Specifies the string for which a quark list is to be allocated.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/specs/libX11/CH16.xml b/lib/libX11/specs/libX11/CH16.xml
index e70b79939..790cb0118 100644
--- a/lib/libX11/specs/libX11/CH16.xml
+++ b/lib/libX11/specs/libX11/CH16.xml
@@ -320,7 +320,6 @@ To obtain the uppercase and lowercase forms of a KeySym, use
</funcprototype>
</funcsynopsis>
<!-- .FN -->
-<!-- .ds Fn converted -->
<variablelist>
<varlistentry>
<term>
@@ -328,7 +327,7 @@ To obtain the uppercase and lowercase forms of a KeySym, use
</term>
<listitem>
<para>
-Specifies the KeySym that is to be (Fn.
+Specifies the KeySym that is to be converted.
</para>
</listitem>
</varlistentry>
@@ -431,7 +430,6 @@ To convert a KeySym code to the name of the KeySym, use
</funcprototype>
</funcsynopsis>
<!-- .FN -->
-<!-- .ds Fn converted -->
<variablelist>
<varlistentry>
<term>
@@ -439,7 +437,7 @@ To convert a KeySym code to the name of the KeySym, use
</term>
<listitem>
<para>
-Specifies the KeySym that is to be (Fn.
+Specifies the KeySym that is to be converted.
</para>
</listitem>
</varlistentry>
@@ -466,7 +464,6 @@ You can use KeySym macros to perform the following tests.
</para>
<para>IsCursorKey(<emphasis remap='I'>keysym</emphasis>)</para>
<!-- .FN -->
-<!-- .ds Fn tested -->
<variablelist>
<varlistentry>
<term>
@@ -493,7 +490,6 @@ if the specified KeySym is a cursor key.
<!-- .sM -->
<para>IsFunctionKey(<emphasis remap='I'>keysym</emphasis>)</para>
<!-- .FN -->
-<!-- .ds Fn tested -->
<variablelist>
<varlistentry>
<term>
@@ -520,7 +516,6 @@ if the specified KeySym is a function key.
<!-- .sM -->
<para>IsKeypadKey(<emphasis remap='I'>keysym</emphasis>)</para>
<!-- .FN -->
-<!-- .ds Fn tested -->
<variablelist>
<varlistentry>
<term>
@@ -528,7 +523,7 @@ if the specified KeySym is a function key.
</term>
<listitem>
<para>
-Specifies the KeySym that is to be (Fn.
+Specifies the KeySym that is to be tested.
</para>
</listitem>
</varlistentry>
@@ -554,7 +549,7 @@ if the specified KeySym is a standard keypad key.
</term>
<listitem>
<para>
-Specifies the KeySym that is to be (Fn.
+Specifies the KeySym that is to be tested.
</para>
</listitem>
</varlistentry>
@@ -574,7 +569,6 @@ if the specified KeySym is a vendor-private keypad key.
<!-- .sM -->
<para>IsMiscFunctionKey(<emphasis remap='I'>keysym</emphasis>)</para>
<!-- .FN -->
-<!-- .ds Fn tested -->
<variablelist>
<varlistentry>
<term>
@@ -582,7 +576,7 @@ if the specified KeySym is a vendor-private keypad key.
</term>
<listitem>
<para>
-Specifies the KeySym that is to be (Fn.
+Specifies the KeySym that is to be tested.
</para>
</listitem>
</varlistentry>
@@ -815,7 +809,6 @@ use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Fn rebound -->
</para>
</listitem>
</varlistentry>
@@ -825,7 +818,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the KeySym that is to be (Fn.
+Specifies the KeySym that is to be rebound.
</para>
</listitem>
</varlistentry>
@@ -1480,7 +1473,6 @@ To move a region by a specified amount, use
<listitem>
<para>
Specifies the region.
-<!-- .ds Dy move -->
</para>
</listitem>
</varlistentry>
@@ -1502,7 +1494,7 @@ Specifies the region.
<listitem>
<para>
Specify the x and y coordinates,
-which define the amount you want to (Dy the specified region.
+which define the amount you want to move the specified region.
</para>
</listitem>
</varlistentry>
@@ -1532,7 +1524,6 @@ To reduce a region by a specified amount, use
<listitem>
<para>
Specifies the region.
-<!-- .ds Dy shrink -->
</para>
</listitem>
</varlistentry>
@@ -1554,7 +1545,7 @@ Specifies the region.
<listitem>
<para>
Specify the x and y coordinates,
-which define the amount you want to (Dy the specified region.
+which define the amount you want to shrink the specified region.
</para>
</listitem>
</varlistentry>
@@ -1996,7 +1987,6 @@ To determine if a specified point resides in a specified region, use
<listitem>
<para>
Specifies the region.
-<!-- .ds Xy , which define the point -->
</para>
</listitem>
</varlistentry>
@@ -2017,7 +2007,7 @@ Specifies the region.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
+Specify the x and y coordinates, which define the point.
</para>
</listitem>
</varlistentry>
@@ -2056,7 +2046,6 @@ To determine if a specified rectangle is inside a region, use
<listitem>
<para>
Specifies the region.
-<!-- .ds Xy , which define the coordinates of the upper-left corner of the rectangle -->
</para>
</listitem>
</varlistentry>
@@ -2077,8 +2066,8 @@ Specifies the region.
</term>
<listitem>
<para>
-Specify the x and y coordinates(Xy.
-<!-- .ds Wh , which define the rectangle -->
+Specify the x and y coordinates, which define the coordinates of the
+upper-left corner of the rectangle.
</para>
</listitem>
</varlistentry>
@@ -2099,7 +2088,7 @@ Specify the x and y coordinates(Xy.
</term>
<listitem>
<para>
-Specify the width and height(Wh.
+Specify the width and height, which define the rectangle.
</para>
</listitem>
</varlistentry>
@@ -2255,7 +2244,6 @@ Specifies the bytes, which are not necessarily ASCII or null-terminated.
<listitem>
<para>
Specifies the number of bytes to be stored.
-<!-- .ds Fn in which you want to store the bytes -->
</para>
</listitem>
</varlistentry>
@@ -2265,7 +2253,7 @@ Specifies the number of bytes to be stored.
</term>
<listitem>
<para>
-Specifies the buffer (Fn.
+Specifies the buffer in which you want to store the bytes.
</para>
</listitem>
</varlistentry>
@@ -2371,7 +2359,6 @@ Specifies the connection to the X server.
<listitem>
<para>
Returns the number of bytes in the buffer.
-<!-- .ds Fn from which you want the stored data returned -->
</para>
</listitem>
</varlistentry>
@@ -2381,7 +2368,7 @@ Returns the number of bytes in the buffer.
</term>
<listitem>
<para>
-Specifies the buffer (Fn.
+Specifies the buffer from which you want the stored data returned.
</para>
</listitem>
</varlistentry>
@@ -3306,7 +3293,6 @@ To read a bitmap from a file and store it in a pixmap, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Dr \ that indicates the screen -->
</para>
</listitem>
</varlistentry>
@@ -3316,7 +3302,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the drawable(Dr.
+Specifies the drawable that indicates the screen.
</para>
</listitem>
</varlistentry>
@@ -3685,7 +3671,6 @@ To create a pixmap and then store bitmap-format data into it, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Dr \ that indicates the screen -->
</para>
</listitem>
</varlistentry>
@@ -3695,7 +3680,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the drawable(Dr.
+Specifies the drawable that indicates the screen.
</para>
</listitem>
</varlistentry>
@@ -3815,7 +3800,6 @@ in a program directly, as opposed to reading it in every time at run time, use
<listitem>
<para>
Specifies the connection to the X server.
-<!-- .ds Dr \ that indicates the screen -->
</para>
</listitem>
</varlistentry>
@@ -3825,7 +3809,7 @@ Specifies the connection to the X server.
</term>
<listitem>
<para>
-Specifies the drawable(Dr.
+Specifies the drawable that indicates the screen.
</para>
</listitem>
</varlistentry>
diff --git a/lib/libX11/src/Font.c b/lib/libX11/src/Font.c
index 3beb8a523..904fa779e 100644
--- a/lib/libX11/src/Font.c
+++ b/lib/libX11/src/Font.c
@@ -587,7 +587,7 @@ _XF86BigfontQueryFont (
if (!(extcodes->serverCapabilities & CAP_VerifiedLocal)) {
struct shmid_ds buf;
if (!(shmctl(reply.shmid, IPC_STAT, &buf) >= 0
- && reply.nCharInfos < (LONG_MAX / sizeof(XCharStruct))
+ && reply.nCharInfos < (INT_MAX / sizeof(XCharStruct))
&& buf.shm_segsz >= reply.shmsegoffset + reply.nCharInfos * sizeof(XCharStruct) + sizeof(CARD32)
&& *(CARD32 *)(addr + reply.shmsegoffset + reply.nCharInfos * sizeof(XCharStruct)) == extcodes->serverSignature)) {
shmdt(addr);
diff --git a/lib/libX11/src/FontNames.c b/lib/libX11/src/FontNames.c
index b5bc7b4ba..764711559 100644
--- a/lib/libX11/src/FontNames.c
+++ b/lib/libX11/src/FontNames.c
@@ -66,7 +66,7 @@ int *actualCount) /* RETURN */
if (rep.nFonts) {
flist = Xmalloc (rep.nFonts * sizeof(char *));
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
rlen = rep.length << 2;
ch = Xmalloc(rlen + 1);
/* +1 to leave room for last null-terminator */
diff --git a/lib/libX11/src/GetFPath.c b/lib/libX11/src/GetFPath.c
index abd4a5dbd..8f8c6144a 100644
--- a/lib/libX11/src/GetFPath.c
+++ b/lib/libX11/src/GetFPath.c
@@ -50,7 +50,7 @@ char **XGetFontPath(
if (rep.nPaths) {
flist = Xmalloc(rep.nPaths * sizeof (char *));
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
nbytes = (unsigned long) rep.length << 2;
ch = Xmalloc (nbytes + 1);
/* +1 to leave room for last null-terminator */
diff --git a/lib/libX11/src/Host.c b/lib/libX11/src/Host.c
index da9923a9e..b07c9c312 100644
--- a/lib/libX11/src/Host.c
+++ b/lib/libX11/src/Host.c
@@ -64,13 +64,11 @@ X Window System is a trademark of The Open Group.
#endif
#include "Xlibint.h"
-int
-XAddHost (
- register Display *dpy,
- XHostAddress *host)
+static inline int
+changehost (Display *dpy, XHostAddress *host, BYTE mode)
{
- register xChangeHostsReq *req;
- register int length;
+ xChangeHostsReq *req;
+ int length;
XServerInterpretedAddress *siAddr;
int addrlen;
@@ -83,7 +81,11 @@ XAddHost (
LockDisplay(dpy);
GetReqExtra (ChangeHosts, length, req);
- req->mode = HostInsert;
+ if (!req) {
+ UnlockDisplay(dpy);
+ return 0;
+ }
+ req->mode = mode;
req->hostFamily = host->family;
req->hostLength = addrlen;
if (siAddr) {
@@ -100,38 +102,19 @@ XAddHost (
}
int
-XRemoveHost (
+XAddHost (
register Display *dpy,
XHostAddress *host)
{
- register xChangeHostsReq *req;
- register int length;
- XServerInterpretedAddress *siAddr;
- int addrlen;
-
- siAddr = host->family == FamilyServerInterpreted ?
- (XServerInterpretedAddress *)host->address : NULL;
- addrlen = siAddr ?
- siAddr->typelength + siAddr->valuelength + 1 : host->length;
-
- length = (addrlen + 3) & ~0x3; /* round up */
+ return changehost(dpy, host, HostInsert);
+}
- LockDisplay(dpy);
- GetReqExtra (ChangeHosts, length, req);
- req->mode = HostDelete;
- req->hostFamily = host->family;
- req->hostLength = addrlen;
- if (siAddr) {
- char *dest = (char *) NEXTPTR(req,xChangeHostsReq);
- memcpy(dest, siAddr->type, siAddr->typelength);
- dest[siAddr->typelength] = '\0';
- memcpy(dest + siAddr->typelength + 1,siAddr->value,siAddr->valuelength);
- } else {
- memcpy((char *) NEXTPTR(req,xChangeHostsReq), host->address, addrlen);
- }
- UnlockDisplay(dpy);
- SyncHandle();
- return 1;
+int
+XRemoveHost (
+ register Display *dpy,
+ XHostAddress *host)
+{
+ return changehost(dpy, host, HostDelete);
}
int
diff --git a/lib/libX11/src/ListExt.c b/lib/libX11/src/ListExt.c
index e925c4773..59599d1a6 100644
--- a/lib/libX11/src/ListExt.c
+++ b/lib/libX11/src/ListExt.c
@@ -55,7 +55,7 @@ char **XListExtensions(
if (rep.nExtensions) {
list = Xmalloc (rep.nExtensions * sizeof (char *));
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
rlen = rep.length << 2;
ch = Xmalloc (rlen + 1);
/* +1 to leave room for last null-terminator */
diff --git a/lib/libX11/src/Makefile.am b/lib/libX11/src/Makefile.am
index 27b74b014..db8f4d40a 100644
--- a/lib/libX11/src/Makefile.am
+++ b/lib/libX11/src/Makefile.am
@@ -386,6 +386,7 @@ if LINT
ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
+ALL_LINT_FLAGS += -DXCMSDIR=\"$(X11dir)\"
lint: $(BUILT_SOURCES)
for f in $(libX11_la_SOURCES) ; do \
diff --git a/lib/libX11/src/Makefile.in b/lib/libX11/src/Makefile.in
index 3e5603902..04eeb24dd 100644
--- a/lib/libX11/src/Makefile.in
+++ b/lib/libX11/src/Makefile.in
@@ -617,9 +617,9 @@ libX11_la_LIBADD = \
# Check source code with tools like lint & sparse
-@LINT_TRUE@ALL_LINT_FLAGS = $(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-@LINT_TRUE@ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS)
-
+@LINT_TRUE@ALL_LINT_FLAGS = $(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) \
+@LINT_TRUE@ $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) \
+@LINT_TRUE@ -DXCMSDIR=\"$(X11dir)\"
@MAKE_LINT_LIB_TRUE@lintlibdir = $(libdir)
@MAKE_LINT_LIB_TRUE@lintlib_DATA = $(LINTLIB)
@MAKE_LINT_LIB_TRUE@lintlib_src = $(libX11_la_SOURCES) xcms/*.c xkb/*.c
diff --git a/lib/libX11/src/ModMap.c b/lib/libX11/src/ModMap.c
index 5c5b42612..2fabc560c 100644
--- a/lib/libX11/src/ModMap.c
+++ b/lib/libX11/src/ModMap.c
@@ -42,7 +42,7 @@ XGetModifierMapping(register Display *dpy)
GetEmptyReq(GetModifierMapping, req);
(void) _XReply (dpy, (xReply *)&rep, 0, xFalse);
- if (rep.length < (LONG_MAX >> 2)) {
+ if (rep.length < (INT_MAX >> 2)) {
nbytes = (unsigned long)rep.length << 2;
res = Xmalloc(sizeof (XModifierKeymap));
if (res)
@@ -65,9 +65,9 @@ XGetModifierMapping(register Display *dpy)
/*
* Returns:
- * 0 Success
- * 1 Busy - one or more old or new modifiers are down
- * 2 Failed - one or more new modifiers unacceptable
+ * MappingSuccess (0) Success
+ * MappingBusy (1) Busy - one or more old or new modifiers are down
+ * MappingFailed (2) Failed - one or more new modifiers unacceptable
*/
int
XSetModifierMapping(
@@ -79,13 +79,11 @@ XSetModifierMapping(
int mapSize = modifier_map->max_keypermod << 3; /* 8 modifiers */
LockDisplay(dpy);
- GetReqExtra(SetModifierMapping, mapSize, req);
-
+ GetReq(SetModifierMapping, req);
+ req->length += mapSize >> 2;
req->numKeyPerModifier = modifier_map->max_keypermod;
- memcpy((char *) NEXTPTR(req,xSetModifierMappingReq),
- (char *) modifier_map->modifiermap,
- mapSize);
+ Data(dpy, modifier_map->modifiermap, mapSize);
(void) _XReply(dpy, (xReply *) & rep,
(SIZEOF(xSetModifierMappingReply) - SIZEOF(xReply)) >> 2, xTrue);
diff --git a/lib/libX11/src/PutImage.c b/lib/libX11/src/PutImage.c
index 2a694f099..934fabe0f 100644
--- a/lib/libX11/src/PutImage.c
+++ b/lib/libX11/src/PutImage.c
@@ -600,15 +600,9 @@ static int const HalfOrderWord[12] = {
/* Cancel a GetReq operation, before doing _XSend or Data */
-#if (defined(__STDC__) && !defined(UNIXCPP)) || defined(ANSICPP)
#define UnGetReq(name)\
dpy->bufptr -= SIZEOF(x##name##Req);\
dpy->request--
-#else
-#define UnGetReq(name)\
- dpy->bufptr -= SIZEOF(x/**/name/**/Req);\
- dpy->request--
-#endif
static void
SendXYImage(
diff --git a/lib/libX11/src/XlibInt.c b/lib/libX11/src/XlibInt.c
index b06e57baa..7521f12ad 100644
--- a/lib/libX11/src/XlibInt.c
+++ b/lib/libX11/src/XlibInt.c
@@ -239,7 +239,7 @@ void _XSeqSyncFunction(
static int
_XPrivSyncFunction (Display *dpy)
{
-#if XTHREADS
+#ifdef XTHREADS
assert(!dpy->lock_fns);
#endif
assert(dpy->synchandler == _XPrivSyncFunction);
@@ -1733,6 +1733,14 @@ void *_XGetRequest(Display *dpy, CARD8 type, size_t len)
if (dpy->bufptr + len > dpy->bufmax)
_XFlush(dpy);
+ /* Request still too large, so do not allow it to overflow. */
+ if (dpy->bufptr + len > dpy->bufmax) {
+ fprintf(stderr,
+ "Xlib: request %d length %zd would exceed buffer size.\n",
+ type, len);
+ /* Changes failure condition from overflow to NULL dereference. */
+ return NULL;
+ }
if (len % 4)
fprintf(stderr,
diff --git a/lib/libX11/src/globals.c b/lib/libX11/src/globals.c
index b7e49dda5..47042088c 100644
--- a/lib/libX11/src/globals.c
+++ b/lib/libX11/src/globals.c
@@ -53,15 +53,9 @@ from The Open Group.
/*
* If we need to define extra variables for each global
*/
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define ZEROINIT(t,var,val) SetZero(t,var,val); \
SetZero (long, _libX_##var##Flag, 0); \
SetZero (void *, _libX_##var##Ptr, NULL)
-#else /* else pcc concatenation */
-#define ZEROINIT(t,var,val) SetZero(t,var,val); \
- SetZero (long, _libX_/**/var/**/Flag, 0); \
- SetZero (void *, _libX_/**/var/**/Ptr, NULL)
-#endif /* concat ANSI C vs. pcc */
#else /* else not USL_SHAREDLIB */
/*
diff --git a/lib/libX11/src/xcms/cmsTrig.c b/lib/libX11/src/xcms/cmsTrig.c
index a917b78db..fc65d9ba3 100644
--- a/lib/libX11/src/xcms/cmsTrig.c
+++ b/lib/libX11/src/xcms/cmsTrig.c
@@ -71,7 +71,11 @@ _XcmsModuloF(
#define XCMS_SIXTHPI 0.523598775598298820
#define XCMS_RADIANS(d) ((d) * XCMS_PI / 180.0)
#define XCMS_DEGREES(r) ((r) * 180.0 / XCMS_PI)
+#ifdef __vax__
+#define XCMS_X6_UNDERFLOWS (3.784659e-07) /* X**6 almost underflows*/
+#else
#define XCMS_X6_UNDERFLOWS (4.209340e-52) /* X**6 almost underflows */
+#endif
#define XCMS_X16_UNDERFLOWS (5.421010e-20) /* X**16 almost underflows*/
#define XCMS_CHAR_BIT 8
#define XCMS_LONG_MAX 0x7FFFFFFF