Commit graph

729 commits

Author SHA1 Message Date
Alan Coopersmith
bcc41baa02 specs/libX11: Explicitly tag document as English
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-14 07:22:26 -07:00
Alan Coopersmith
6783544706 specs/libX11: Appendix C: convert literallayouts to synopsis or programlisting
Fixes display of a bunch of function prototypes and sample code

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-12 22:03:18 -07:00
Alan Coopersmith
8834cd9285 xmlrules.in: Add chunked-html rule to manually generate smaller files
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-12 19:00:45 -07:00
Alan Coopersmith
53f78680c3 specs/libX11: Convert Appendix A tables to real tables
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-12 19:00:45 -07:00
Alan Coopersmith
705a1257a8 specs/libX11: Fix out-of-place text in Chapter 1
DTD violation error introduced in 89cc2e02e7

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-12 19:00:45 -07:00
Jeremy Huddleston
a151346a2b launchd: Explicitly search /sbin
Previously, launchd wasn't found if /sbin wasn't in the user's PATH.
https://bugs.freedesktop.org/show_bug.cgi?id=29028

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-07-12 16:52:12 -07:00
Alan Coopersmith
89cc2e02e7 Replace untranslated .hN macros with <filename> tags to show header names
Translation performed by:
 perl -i -p -e 's{\<\!-- .hN (\S+) (\S+)?\s*-->}
	         {&lt;<filename class="headerfile">$1</filename>&gt;$2}' *.xml

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-12 13:45:26 -07:00
Alan Coopersmith
7548044094 specs/libX11: Mass substitution of <function> tags with more specific tags
Matched names from X headers & "nm libX11.so" output to names in spec to
map to more specific tags.   Tags used:

                    <code>   code fragments
                <constant>   enum values
               <errorname>   X protocol errors
                <filename>   filenames
                <function>   functions
                <function>   function-like macros (#define foo(a,b)...)
             <returnvalue>   function return codes
             <structfield>   struct members
              <structname>   struct names (even when typedefed)
                  <symbol>   simple value #defines (#define NAME value)
              <systemitem>   X protocol requests
<systemitem class="event">   X protocol events
                    <type>   non-struct typedefs
                 <varname>   global variables

(Also fixed a couple typos detected by failures of this matching, such as
 XESSetPrintErrorValues -> XESetPrintErrorValues.)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-12 13:26:13 -07:00
Alan Coopersmith
26f4f0d508 specs/libX11: Glossary cross-reference links
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-12 13:26:12 -07:00
Alan Coopersmith
930b52d840 specs/libX11: Make whitespace around <function> tags more uniform
Simplifies regular expressions for further mass substitutions.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-12 13:26:12 -07:00
Gaetan Nadon
730ce6b8ac specs: use pattern rules rather than suffix rules
This allows target to rebuild when included .xml files are changed.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-09 20:10:37 -04:00
Alan Coopersmith
5527b4bc8c specs/libX11: Move punctuation outside of the <function> tags
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 20:56:41 -07:00
Alan Coopersmith
d66d2134df specs/libX11: Mark a number of <acronym>s
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 20:42:50 -07:00
Alan Coopersmith
d5bbb12f55 specs/libX11: Glossary terms should not be marked as functions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 19:31:36 -07:00
Alan Coopersmith
5decf7bc5d specs/libX11: Clean up author list & acknowledgements a little
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 19:28:18 -07:00
Alan Coopersmith
0cd29bdb33 specs/libX11: Convert troff .IN macros to docbook <indexterm> tags
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 17:30:34 -07:00
Gaetan Nadon
a67d99ccbe specs: specdir is required to install xml files
The source is installed as well as the targets.
This failed when configuring with --without-xmlto

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-08 17:29:21 -04:00
Matt Dew
e14273f44c specs: replace troff source with docbook-xml source
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-08 14:46:33 -04:00
Daniel Stone
bea0873caf XStringToKeysym: Check strdup() return value
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
2010-07-08 19:29:25 +01:00
Marko Myllynen
cffa71b4a5 Fix two typos in SFS 5966 Annex 3
X.Org bug#28792 <https://bugs.freedesktop.org/show_bug.cgi?id=28792>

Signed-off-by: Julien Cristau <jcristau@debian.org>
2010-07-08 17:45:35 +01:00
Daniel Stone
eb023c0f89 Delete now-redundant XKeysymDB
Since XStringToKeysym now supports all the vendor keysyms, just delete
our XKeysymDB, which was incomplete at best, misleading at worst, and
always an annoyance.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 16:30:56 +01:00
Daniel Stone
0017539748 makekeys: Scan vendor keysyms as well as core
Since we can't really live without vendor keysyms, scan them all in to
generate ks_tables.h, rather than only doing the core ones, and leaving
the vendor syms to be manually synchronised with XKeysymDB.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 16:30:54 +01:00
Daniel Stone
ebd6ef0a4d XStringToKeysym: Special case for XF86 keysyms
Some XFree86 keysyms were in XKeysymDB as XF86_foo, despite really being
XF86foo.  So, if we get to the bottom of XStringToKeysym and haven't
found our XF86_foo, try it again as XF86foo.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 16:30:51 +01:00
Daniel Stone
8c2ffce9e5 configure.ac: Change from deprecated AC_DEFINE_DIR to AX_
AC_DEFINE_DIR is deprecated as it's squatting on the autoconf-builtin
namespace, so start using the more proper AX_DEFINE_DIR instead.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-08 16:30:25 +01:00
Fernando Carrijo
6de368c9aa Purge macros NEED_EVENTS and NEED_REPLIES
Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-07-07 15:12:34 -07:00
Adam Jackson
0b724231be Use -version-number consistently instead of -version-info
The latter is libtool braindamage.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-06-30 16:30:49 -04:00
Juliusz Chroboczek
241a990afc Make Compose-comma map to ogonek for I and U in UTF-8 locales.
With the preceding patch, it makes the UTF-8 compose map consistent with
the ISO 8859-4 and -13 maps.
2010-06-29 18:32:42 +02:00
Juliusz Chroboczek
af55e582f4 Make Compose-comma map to Ogonek for A and E in UTF-8 locales.
This makes the UTF-8 compose file consistent with the ISO 8859-2 compose file
as far as Polish is concerned.  We only sacrifice one pair of characters,
e-cedilla, which is not used in any language.
2010-06-29 18:23:31 +02:00
Alan Coopersmith
d6ba13009f Define FILE_MAN_DIR_SUFFIX so XCompose shadow page has correct path
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-24 13:13:11 -07:00
Jamey Sharp
978c723878 poll_for_response: Really handle xcb_poll_for_reply getting a reply.
Don't lose async replies. That's bad.

`xlsfonts -l`, which uses XListFontsWithInfo, worked fine, because the
_XReply path worked; that path waited for replies, rather than polling.

However, XRecordProcessReplies, which does nothing but call XPending,
relied on the event-handling path to process async replies, and that was
busted.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28595

Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-06-21 13:53:10 -07:00
Jamey Sharp
ef67486c5a Revert "xcb_io.c: poll_for_response doesn't guarantee there's a pending request."
This reverts commit 4a8b6528ff, because as
a matter of fact, if poll_for_response returns NULL when we know
dpy->xcb->next_event is non-NULL, there *is* guaranteed to be a pending
request.
2010-06-21 13:34:15 -07:00
Jamey Sharp
301ec5b41e Revert "poll_for_response: Really handle xcb_poll_for_reply getting a reply."
This reverts commit c115095d7f. We *do*
need to check poll_for_event every time through the loop in
poll_for_response, so the commit did too much.
2010-06-21 13:24:24 -07:00
Jamey Sharp
4a8b6528ff xcb_io.c: poll_for_response doesn't guarantee there's a pending request.
Fixes the second bug reported in:
https://bugs.freedesktop.org/show_bug.cgi?id=28595

Signed-off-by: Jamey Sharp <jamey@minilop.net>
2010-06-21 10:54:02 -07:00
Jamey Sharp
c115095d7f poll_for_response: Really handle xcb_poll_for_reply getting a reply.
Don't lose async replies. That's bad.

`xlsfonts -l`, which uses XListFontsWithInfo, worked fine, because the
_XReply path worked; that path waited for replies, rather than polling.

However, XRecordProcessReplies, which does nothing but call XPending,
relied on the event-handling path to process async replies, and that was
busted.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28595

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
2010-06-19 10:55:09 -07:00
Marko Myllynen
a25ae16986 Implement SFS 5966 Annex 4 for Finland
This patch adds Annex 4 of SFS 5966 for Finland and fixes two typos in
Annex 3 (which were actually copied verbatim from the standard text).

The implementation of the standard is now complete.

X.Org bug#28498 <https://bugs.freedesktop.org/show_bug.cgi?id=28498>

Signed-off-by: Julien Cristau <jcristau@debian.org>
2010-06-13 20:24:04 +02:00
Alan Coopersmith
47b04195d8 LINEAR_RGB_InitSCCData: When malloc fails, don't try to free unallocated bits
One of the malloc failure checks had a goto to the wrong spot in the
list of cleanup free() calls to unwind at the end, and was freeing
bits that hadn't been initialized/allocated yet, since they would be
stored in the struct that just failed to be allocated.

Error: Null pointer dereference (CWE 476)
   Read from pointer that could be constant 'NULL'
        at line 805 of /export/alanc/X.Org/sx86/lib/libX11/src/xcms/LRGB.c in function 'LINEAR_RGB_InitSCCData'.
          Pointer checked against constant 'NULL' at line 754 but does not protect the dereference.

[ This bug was found by the Parfait bug checking tool.
  For more information see http://research.sun.com/projects/parfait ]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-11 11:06:45 -07:00
Josh Triplett
aebbf36238 Mark the rest of Xprivate.h as _X_HIDDEN.
None of the functions in Xprivate.h should have any callers outside of
Xlib, by definition.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Suggested-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-06-06 19:11:55 -07:00
Julien Cristau
abcd1b67c8 Hide _XSeqSyncFunction
Commit a6d974dc59 made _XSeqSyncFunction
non-static, but we don't need to export it.

Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-06-05 20:47:45 +02:00
Josh Triplett
15e5eaf628 Remove support for building without XCB
And there was much rejoicing.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Jamey Sharp <jamey@minilop.net>

Consensus on #xorg-devel agrees with removing --without-xcb; in
particular, acks from Adam Jackson, Daniel Stone, Kristian Høgsberg,
Julien Cristau, and Rémi Cardona.
2010-06-03 22:19:14 -07:00
Alan Coopersmith
fb19eb767a libX11 1.3.4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-03 15:21:40 -07:00
Alan Coopersmith
8f3db40ca5 Workaround bug in groff flag processing that breaks distcheck
At least with the groff 1.19.2 package I have installed, groff passes
on the -I flags for the include path to grohtml, which if they come
after the -P-I... flag we pass to grohtml to specify the image file
name pattern cause it to override that flag and put the images in
the wrong place, breaking "make distcheck" - changing the flag order
works around this.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-03 13:08:17 -07:00
Alan Coopersmith
bdb31a1fb7 Fix typo that made configure always report "none" for man page suffix
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-03 12:45:33 -07:00
Paul Bender
6bb7d2d21d Bug 22591 - configure does not obey the --enable-*-transport options
https://bugs.freedesktop.org/show_bug.cgi?id=22591

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-03 12:45:33 -07:00
Paul Bender
d7f35946d6 Bug 22590 - libX11 1.2.1 has broken abstract namespace support
https://bugs.freedesktop.org/show_bug.cgi?id=22590

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-03 12:45:33 -07:00
Alan Coopersmith
b2487d07f7 Bug 22584 - libX11 does not cross compile
Adaptation of patch submitted by Paul Bender in attachment 27301 to
https://bugs.freedesktop.org/show_bug.cgi?id=22584

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
2010-06-03 12:45:23 -07:00
Alan Coopersmith
4378219ff8 Clarify requirements in XRestackWindows man page
The required common parent window is not specified in the arguments,
just implied as the parent of the first window in the list.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-06-01 18:55:51 -07:00
Jeremy Huddleston
f09c5299a3 xcb: Add TCP fallback
If we fail to connect to a UNIX socket and the transport isn't specified,
fallback on TCP.  This matches behavior with the xtrans codepath and the
Xlib spec.

http://lists.x.org/archives/xorg-devel/2010-April/007915.html

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-05-14 14:23:24 -07:00
Jamey Sharp
fd82552d5c Merge branch 'xlib-xcb-thread-fixes' 2010-05-10 16:51:24 -07:00
Jeremy Huddleston
aae2a4a7aa Don't append the screen number when using a launchd socket
ssh gets confused by this.  XQuartz is the only DDX using this
functionality, and it doesn't support different screens, so
let's just not include this until most ssh know how to handle
this.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-23 21:50:29 -07:00
Jeremy Huddleston
adcd0ec209 Remove launchd logic from _XConnectXCB as it's handled in XCB
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-23 17:19:01 -07:00