Commit Graph

110 Commits

Author SHA1 Message Date
0fb13632c0 编译配置 2024-12-26 23:50:13 +08:00
Alan Coopersmith
0c09444d27 libXdmcp 1.1.2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
libXdmcp-1.1.2
2015-03-21 09:39:14 -07:00
Alan Coopersmith
9f4cac7656 Add AC_USE_SYSTEM_EXTENSIONS to expose arc4random() interfaces in headers
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-19 10:32:56 -08:00
Alan Coopersmith
fe8eab93e9 autogen.sh: Honor NOCONFIGURE=1
See http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04 18:05:38 -07:00
Alan Coopersmith
da9a25b208 configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04 18:05:38 -07:00
Alan Coopersmith
089081dca4 Also reject requests to allocate negative sized amounts of memory
Since the API is defined with size as a signed int, deal with it.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-08-15 16:52:24 -07:00
Alan Coopersmith
2da1bcb656 Ensure ARRAYofARRAY8 pointers are initialized to NULL
Use calloc for the array of pointers to ensure pointers are cleared out
so we don't try to free garbage if XdmcpDisposeARRAYofARRAY8 is called
before the caller sets them to valid pointers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-08-15 16:52:24 -07:00
Alan Coopersmith
787c4c79be Ensure ARRAY* structs are zero'ed out when oversize values are passed
Previous fix missed a case in which we returned failure, but didn't
fill in the data pointer & size values.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-08-15 16:52:24 -07:00
Alan Coopersmith
9089ae455f Add unit tests for Array allocation functions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-08-15 16:52:23 -07:00
Matthieu Herrb
66514a4af7 Use arc4random when available to produce the XDM-AUTHENTICATION1 key
arc4random() and associated functions can be found in libbsd on
GNU/Linux systems.

Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-08-11 11:29:44 +02:00
Alan Coopersmith
0b443c1b76 Make XdmcpCopyARRAY8 call XdmcpAllocARRAY8 instead of replicating it
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-04-19 15:16:51 -07:00
Alan Coopersmith
1222f97444 Ensure ARRAY* structs are zero'ed out when allocation fails
In the past some callers forgot to either initialize themselves or to
check the return values, so could try to read or write to uninitialized
pointers - we set the pointer to NULL & the size to 0 to avoid that.

Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-04-15 20:14:30 -07:00
Alan Coopersmith
ca65a92405 Remove unused TLI ("STREAMSCONN") code from libXdmcp
Has never been converted to build in modular builds, so has been unusable
since X11R7.0 release in 2005.  All known platforms with TLI/XTI support
that X11R7 & later releases run on also have (and mostly prefer) BSD
socket support for their networking API.

Mostly performed via "unifdef -USTREAMSCONN", followed by manual cleanup.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-12-26 23:39:58 -08:00
Alan Coopersmith
60aa228de5 libXdmcp 1.1.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
libXdmcp-1.1.1
2012-03-07 19:46:26 -08:00
Matt Dew
a3151f53f0 informaltable cleanup
On certain tables, add top and bottom borders to table
header and a bottom border to the table. This matches
what those tables in the old pdfs looked like.

the <?dbfo keep-together='always'> prevents tables from
splitting across pages. Useful for tiny tables.

Converting the colwidth to a floating point,
IE, 1* -> 1.0* cleans up these build errors:
WARNING: table-layout="fixed" and column-width unspecified
=> falling back to proportional-column-width(1)

Signed-off-by: Matt Dew <marcoz@osource.org>
2012-01-11 21:44:51 -07:00
Matt Dew
e2bc94bbee Cleanup IDs and links in doc
1 - fix the capitalization of the ID attributes to match either the
     <title> or <funcdef> string it goes with.
2 - fix any <linkend>'s that were affected by 1.
3 - any <function> in the docs that has an actual funcdef,
will become an olink.

Signed-off-by: Matt Dew <marcoz@osource.org>
2011-10-04 22:17:41 -06:00
Alan Coopersmith
896fc25047 Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-16 22:16:37 -07:00
Gaetan Nadon
de9cdb570f xdmcp: use appropriate markup for author affiliation
Docbook places the organization name above its divisions.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-15 20:50:30 -04:00
Gaetan Nadon
d3bc4e5d2a docs: use the &fullrelvers; entity to set X11 release information
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-12 20:34:47 -04:00
Gaetan Nadon
d918365a38 docs: remove <productnumber> which is not used by default
This element is not rendered by default on the title. A template
customization is required to display it.
X Window System does not have a product number.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-11 19:49:53 -04:00
Gaetan Nadon
a9b82d7972 docbook.am: embed css styles inside the HTML HEAD element
Rather than referring to the external xorg.css stylesheet, embed the content
of the file in the html output produced. This is accomplished by using
version 1.10 of xorg-xhtml.xsl.

This makes the whole html docs tree much more relocatable.
In addition, it eliminates xorg.css as a runtime file which makes
xorg-sgml-doctools a build time only package.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-08 20:10:06 -04:00
Gaetan Nadon
35ce7db290 docbook.am: global maintenance update - entities, images and olinking
Adding support in libX11 for html chunking caused a reorg of docbook.am
as well as the xorg-sgml-doctools masterdb for olinking.
The parameter img.src.path is added for pdf images.
A searchpath to the root builddir is added for local entities, if present.

The docbook.am makefile hides all the details and is identical for
all 22 modules having DocBook documentation. It is included by a thin
Makefile.am which requires no docbook knowledge.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-09-07 14:39:21 -04:00
Gaetan Nadon
e93e80c3bb Install xml versions of specs even if HAVE_XMLTO is false
DocBook/XML input source is also a usefull output format that can be viewed
with an XML viewer or editor and by some O/S help system.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-06-12 20:23:27 -04:00
Gaetan Nadon
32b2263dea Install target dbs alongside generated documents
This matches a change in xorg-sgml-docs whereby the masterdb will look for
the target dbs into the same location as the generated documents.

The target dbs are now installed alongside the generated documents.
Previously they are installed in $prefix/sgml/X11/dbs alongside masterdb which
has the potential of installing outside the package prefix and cause
distcheck to fail when user does not have write permission in this package.

Requires XORG_CHECK_SGML_DOCTOOLS(1.8) which was released 2011-06-11
2011-06-11 19:49:23 -04:00
Gaetan Nadon
92bca84bf0 Documentation: add Docbook external references support
When writing technical documentation, it is often necessary to cross
reference to other information. When that other information is not in the
current document, additional support is needed, namely <olink>.

A new feature with version 1.7 of xorg-sgml-doctools adds references to
other documents within or outside this package.

This patch adds technical support for this feature but does not change
the content of the documentation as seen by the end user.

Each book or article must generate a database containing the href
of sections that can be referred to from another document. This database
is installed in DATAROOTDIR/sgml/X11/dbs. There is a requirement that
the value of DATAROOTDIR for xorg-sgml-doctools and for the package
documentation is the same. This forms a virtual document tree.

This database is consulted by other documents while they are being generated
in order to fulfill the missing information for linking.
Refer to the xorg-sgml-doctools for further technical information.

Co-authored-by: Matt Dew <marcoz@osource.org>

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-30 20:18:35 -04:00
Gaetan Nadon
c702d3c41a config: comment, minor upgrade, quote and layout configure.ac
Group statements per section as per Autoconf standard layout
Quote statements where appropriate.
Autoconf recommends not using dnl instead of # for comments

Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters.
Use AC_PROG_LIBTOOL to replace the deprecated AM_PROG_LIBTOOL
Remove redundant AC_PROG_MAKE_SET included with AM_INIT_AUTOMAKE
Add AC_CONFIG_SRCDIR([Makefile.am]) where missing
No functional configuration changes

This helps automated maintenance and release activities.
Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-02-02 11:52:45 -05:00
Gaetan Nadon
1540933e6e config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-28 19:41:37 -05:00
Julien Cristau
28d1dc6844 Revert "Export only public API symbols"
Some of the unexported symbols are used by xdm.  See
http://lists.x.org/pipermail/xorg-devel/2010-December/017246.html

This reverts commit b64cac63e0.

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Julien Cristau <jcristau@debian.org>
2010-12-20 14:15:04 +01:00
Alan Coopersmith
afcb06588e spec: Fix up eqn to docbook conversion
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-12-16 19:22:46 -08:00
Alan Coopersmith
7d3dd1513b spec: Fix section titles/nesting
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-12-16 19:22:46 -08:00
Cristian Rodríguez
b64cac63e0 Export only public API symbols
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Cristian Rodríguez <cristian.rodriguez@opensuse.org>
2010-12-14 15:40:22 -05:00
Gaetan Nadon
fb32c2fc15 config: HTML file generation: use the installed copy of xorg.css
Currenlty the xorg.css file is copied in each location
where a DocBook/XML file resides. This produces about
70 copies in the $(docdir) install tree.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-11-09 13:04:46 -05:00
Alan Coopersmith
7db29ff43e libXdmcp 1.1.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
libXdmcp-1.1.0
2010-10-29 15:13:16 -07:00
Alan Coopersmith
fef4451fa3 Remove AC_PROG_CC & AC_PROG_INSTALL that XORG_DEFAULT_OPTIONS already call
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-27 23:01:49 -07:00
Gaetan Nadon
21c9f93bb5 config: require xorg-macros minimum of 1.10 for XORG_CHECK_SGML_DOCTOOLS
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-03 15:28:51 -04:00
Matt Dew
adaf75c9aa specs: replace troff source with docbook-xml source
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-01 14:23:18 -04:00
Alan Coopersmith
39993ef6f4 Replace comments pointing to non-public X Consortium defect reports
Restored the original comments suggested by Paul Shearer of Sequent in the
patches he submitted with these fixes in the original X Consortium defect
reports from 1995, since modern readers can't refer to the referenced
bug reports in that old/closed bug db.

7328 Xdmcp: memory leak in XdmcpReadARRAYofARRAY8 when read fails
7329 Xdmcp: XdmcpReadARRAY and XdmcpDisposeARRAY routines may free twice

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-07 19:21:42 -07:00
Alan Coopersmith
ea0e0d0e3d Fix order of CPPFLAGS passed to lint/compile steps
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-07 19:03:54 -07:00
Mikhail Gusarov
996d92d271 Get rid of Xalloc/Xrealloc/Xfree from X server or Xlib
alloc/realloc/free calls are encapsulated in libXdmcp, so
there is no need to wrap allocation functions even under Windows

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-07 18:48:12 -07:00
Mikhail Gusarov
2a51e57425 Nuke RCS tags
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-07 18:43:21 -07:00
Mikhail Gusarov
710d4a4298 Reshuffle functions to decrease amount of boilerplate
It it a PitA to do anything with lot of nearly idenical code scattered
around in 30 files each containing 5-line function

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-05-07 18:41:35 -07:00
Alan Coopersmith
1b22d07fc1 Use stdint.h instead of limits.h for UINT*_MAX definitions
While Solaris allows either one, C99 only requires them in stdint.h
and some platforms don't include them via limits.h

Corrects tinderbox reported errors on Fedora 11 build machine:

http://tinderbox.x.org/builds/2010-05-06-0019/logs/libXdmcp/#build

AA32.c: In function 'XdmcpAllocARRAY32':
AA32.c:47: error: 'UINT8_MAX' undeclared (first use in this function)

AA8.c: In function 'XdmcpAllocARRAY8':
AA8.c:47: error: 'UINT16_MAX' undeclared (first use in this function)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

Compiles clean on GNU/Linux AMD64
Tested-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-07 09:27:29 -07:00
Alan Coopersmith
30e388a828 Deal with lint warnings about implicit narrowing conversions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2010-05-05 15:46:28 -07:00
Alan Coopersmith
110078a137 unifdef Lynx
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2010-05-05 15:46:20 -07:00
Alan Coopersmith
5ea80e3080 XdmcpARRAY8Equal: Use memcmp instead of rolling our own
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2010-05-05 15:46:15 -07:00
Alan Coopersmith
27b1aa82a3 Constify function prototypes
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2010-05-05 15:46:06 -07:00
Gaetan Nadon
482b19329f config: update AC_PREREQ statement to 2.60
Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.

ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-29 16:50:34 -04:00
Gaetan Nadon
1c220fc140 config: remove the pkgconfig pc.in file from EXTRA_DIST
Automake always includes it in the tarball.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-29 14:53:48 -04:00
Gaetan Nadon
7367f2efae make: remove unrequired -I${top_builddir}/include
The -I${top_srcdir}/include in AM_CFLAGS is the correct one.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-20 11:22:59 -04:00
Gaetan Nadon
2110b60cf1 config: move CWARNFLAGS from configure.ac to Makefile.am
Compiler warning flags should be explicitly set in the makefile
rather than being merged with other packages compiler flags.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-16 10:37:21 -05:00