-Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+
Copyright 1993, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
+commit b3d1f4896cab54717acd691b62b7fa3122a5fd8c
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Fri Mar 2 20:53:41 2012 -0800
+
+ libSM 1.2.1
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 6475d9eff0bfbb6446eff205fd52c5ba82c5819c
+Author: Matt Dew <marcoz@osource.org>
+Date: Wed Jan 11 20:33:41 2012 -0700
+
+ 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>
+
+commit 3ca545c7835b71b63f8c5a8f758b08418a65a5bb
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Mon Dec 5 20:04:51 2011 -0800
+
+ unifdef -ULynx
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+commit 4af9e4a71f7c07da86ef1940cba69e92b11ba337
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Nov 19 11:33:30 2011 -0800
+
+ SmsInitialize: Mark vendor & release args as const char *
+
+ Needed to fix gcc -Wwrite-strings arguments in callers such as xsm.
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+commit e77dd2e4bc8227ebdab70b4233cb33ed690fa264
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Nov 19 10:33:15 2011 -0800
+
+ Remove a bunch of unnecessary casts with malloc & free calls
+
+ With modern compilers and headers, they cause more problems than they
+ solve and just hide real issues.
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+commit 46f3ef4460aa2c1c2cba22897694a1cea572d506
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Nov 19 10:23:24 2011 -0800
+
+ Replace malloc(strlen) + strcpy sets with strdup calls
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+commit fb3ef5844d392f70cc6bd9b0d8770ca17bde1428
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Nov 19 10:13:02 2011 -0800
+
+ Reindent IPv4 code to match IPv6 code
+
+ Takes care of the other block of code confusingly sharing indent levels
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+commit 638496507882f0afe506fe294f68ad5290ef95db
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Nov 19 10:07:32 2011 -0800
+
+ Move variable declarations to get rid of unnecessary scope brackets
+
+ Gets rid of one of the multiple levels of bracketing that confusingly
+ shared the same indent level.
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+commit 9f350d75a4553d8e2bc365f8de4110bb79ec7b32
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Nov 19 10:01:50 2011 -0800
+
+ Move and rename temp[4] definition to reduce confusion with temp[256]
+
+ Both variables were locals in different scope levels of the same
+ function, leading to both confusing code and gcc -Wshadow warnings:
+
+ sm_genid.c: In function 'SmsGenerateClientID':
+ sm_genid.c:160:10: warning: declaration of 'temp' shadows a previous local
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+commit 079de6fd4bd0423e20e472d7342f919eebce0517
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sat Nov 19 09:52:17 2011 -0800
+
+ Use imdent to make multiple levels of nested #if easier to follow
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: James Cloos <cloos@jhcloos.com>
+
+commit 79c785adf86ef06f09910b68019bc8a1e6fcb122
+Author: Matt Dew <marcoz@osource.org>
+Date: Tue Oct 4 22:42:05 2011 -0600
+
+ 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>
+
+commit 4708d636de50281ab2c52c32b81b7ecb67657820
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Fri Sep 16 22:03:00 2011 -0700
+
+ 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>
+
+commit 44eecd93986368e71c404d8faa264a514bf88ab1
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Sep 14 14:59:27 2011 -0400
+
+ docs: fix author affiliation
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 7ed7ef36b7e1fdd29554db122e4eb07323e27dee
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Mon Sep 12 16:54:45 2011 -0400
+
+ docs: use the &fullrelvers; entity to set X11 release information
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 7601182a252b44d0b04435f1eb4d574dfcf5fabb
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Sun Sep 11 19:49:53 2011 -0400
+
+ 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>
+
+commit cbca5fad657122d1a9f370d0640acb66ef80aaef
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Thu Sep 8 20:00:00 2011 -0400
+
+ 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>
+
+commit b88a9949fa6e1b12348541c6293535cc7ff931f4
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Sep 7 10:31:04 2011 -0400
+
+ 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>
+
+commit 64e002e55555205fdcdb9e6d78d6eadd4136cb7a
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Sun Jun 12 17:54:50 2011 -0400
+
+ 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>
+
+commit bef231eefedae448255b705aa2f687f49e371b71
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Sun Jun 5 16:27:36 2011 -0400
+
+ 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
+
+commit f7473da7b1ff6a5295a145f808c327e655e574a9
+Author: Matt Dew <marcoz@osource.org>
+Date: Wed May 25 23:46:36 2011 -0600
+
+ add id attributes to funcsynopsis to allow other docs to olink to them.
+
+ Signed-off-by: Matt Dew <marcoz@osource.org>
+ Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 8683bdd74d3e40c7db92efd25acf345f6331b252
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Sun Feb 27 15:06:18 2011 -0500
+
+ 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>
+
+commit 252f6d2add7c926cdcf0cea43da04f182720b0b4
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Fri Feb 25 09:04:45 2011 -0500
+
+ Docbook: change the book id to match the xml file basename
+
+ This is required for the up-coming external references support.
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 2cd30c36c080217c20addf311510881c8eecf374
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Feb 2 19:25:52 2011 -0500
+
+ config: splitting SM and XTRANS compiler options is not required
+
+ Simplify configuration by using a single PKG_CHECK_MODULES statement.
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 3c923881f415651d75434efd209003d602253437
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Feb 2 11:43:40 2011 -0500
+
+ 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.
+
+ 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>
+
+commit b29f5c9f3a728c5b7673cf54ad60d988b5dd93e7
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Thu Jan 27 22:05:40 2011 -0800
+
+ Bug 33390 - sm.pc: don't export a dependency on ice
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=33390
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+ Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
+
+commit fe43b6de5bb4423ce99d2df1ab37ea8ece39a9fa
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Fri Jan 28 16:07:07 2011 -0500
+
+ config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
+
+ This silences an Automake warning.
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 57b6f700378a001e1aff9b83f6cb396c7c4a7368
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Fri Jan 28 14:59:04 2011 -0500
+
+ config: remove unrequired AC_HEADER_STDC
+
+ Autoconf says:
+ "This macro is obsolescent, as current systems have conforming
+ header files. New programs need not use this macro".
+
+commit 8f9878c06e359d21715a3e4358895b589466bc46
+Author: Paulo Zanoni <pzanoni@mandriva.com>
+Date: Thu Dec 16 14:03:06 2010 -0200
+
+ Use docbookx.dtd version 4.3 for all docs
+
+ Signed-off-by: Paulo Zanoni <pzanoni@mandriva.com>
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 6d093e2397ecdbbba044fe7ef2fd922c8c8261de
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sun Nov 21 11:19:45 2010 -0800
+
+ config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
+
+ Regroup AC statements under the Autoconf initialization section.
+ Regroup AM statements under the Automake initialization section.
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit b8ef6cea0ccae4d88a9cb91cd836188ae781cda8
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sun Nov 21 11:17:25 2010 -0800
+
+ config: Remove unnecessary calls from configure.ac
+
+ AC_PROG_CC are provided by XORG_DEFAULT_OPTIONS now
+ PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 15dc32dd7b57315f9e319f3e346ba28a1e69c646
+Author: Alan Coopersmith <alan.coopersmith@oracle.com>
+Date: Sun Nov 21 11:16:14 2010 -0800
+
+ Sun's copyrights belong to Oracle now
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 8480764c94d15673c884b90c7a10bc86635dec63
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Tue Nov 9 13:04:40 2010 -0500
+
+ 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>
+
commit d2327760a52fdbcd3759211578e3663e00e4a31e
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Wed Oct 27 22:26:41 2010 -0700
--- /dev/null
+Installation Instructions
+*************************
+
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
+2006, 2007, 2008 Free Software Foundation, Inc.
+
+ This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+ Briefly, the shell commands `./configure; make; make install' should
+configure, build, and install this package. The following
+more-detailed instructions are generic; see the `README' file for
+instructions specific to this package.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You need `configure.ac' if
+you want to change it or regenerate `configure' using a newer version
+of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system.
+
+ Running `configure' might take a while. While running, it prints
+ some messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+ 6. Often, you can also type `make uninstall' to remove the installed
+ files again.
+
+Compilers and Options
+=====================
+
+ Some systems require unusual options for compilation or linking that
+the `configure' script does not know about. Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c99 CFLAGS=-g LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+ You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you can use GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ With a non-GNU `make', it is safer to compile the package for one
+architecture at a time in the source code directory. After you have
+installed the package for one architecture, use `make distclean' before
+reconfiguring for another architecture.
+
+ On MacOS X 10.5 and later systems, you can create libraries and
+executables that work on multiple system types--known as "fat" or
+"universal" binaries--by specifying multiple `-arch' options to the
+compiler but only a single `-arch' option to the preprocessor. Like
+this:
+
+ ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+ CPP="gcc -E" CXXCPP="g++ -E"
+
+ This is not guaranteed to produce working output in all cases, you
+may have to build one architecture at a time and combine the results
+using the `lipo' tool if you have problems.
+
+Installation Names
+==================
+
+ By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc. You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+ Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Particular systems
+==================
+
+ On HP-UX, the default C compiler is not ANSI C compatible. If GNU
+CC is not installed, it is recommended to use the following options in
+order to use an ANSI C compiler:
+
+ ./configure CC="cc -Ae"
+
+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
+
+ On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
+parse its `<wchar.h>' header file. The option `-nodtk' can be used as
+a workaround. If GNU CC is not installed, it is therefore recommended
+to try
+
+ ./configure CC="cc"
+
+and if that doesn't work, try
+
+ ./configure CC="cc -nodtk"
+
+Specifying the System Type
+==========================
+
+ There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on. Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+ If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+ Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
+an Autoconf bug. Until the bug is fixed you can use this workaround:
+
+ CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+`configure' Invocation
+======================
+
+ `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+ Print a summary of all of the options to `configure', and exit.
+
+`--help=short'
+`--help=recursive'
+ Print a summary of the options unique to this package's
+ `configure', and exit. The `short' variant lists options used
+ only in the top level, while the `recursive' variant lists options
+ also present in any nested packages.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`--prefix=DIR'
+ Use DIR as the installation prefix. *Note Installation Names::
+ for more details, including other options available for fine-tuning
+ the installation locations.
+
+`--no-create'
+`-n'
+ Run the configure checks, but stop before creating any output
+ files.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
+++ /dev/null
-#! /bin/sh
-
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-ORIGDIR=`pwd`
-cd $srcdir
-
-autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
-
-$srcdir/configure --enable-maintainer-mode "$@"
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
+# Initialize Autoconf
AC_PREREQ(2.60)
-AC_INIT([libSM],
- [1.2.0],
- [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
- libSM)
-
+AC_INIT([libSM], [1.2.1],
+ [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libSM])
AC_CONFIG_SRCDIR([Makefile.am])
-AM_INIT_AUTOMAKE([foreign dist-bzip2])
+AC_CONFIG_HEADERS([config.h])
+# Initialize Automake
+AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_MAINTAINER_MODE
-# Require xorg-macros minimum of 1.10 for DocBook XML documentation
+# Initialize libtool
+AC_PROG_LIBTOOL
+
+# Require xorg-macros minimum of 1.12 for DocBook external references
m4_ifndef([XORG_MACROS_VERSION],
- [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])])
-XORG_MACROS_VERSION(1.10)
+ [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.12)
XORG_DEFAULT_OPTIONS
XORG_ENABLE_DOCS
-XORG_WITH_XMLTO(0.0.20)
+XORG_WITH_XMLTO(0.0.22)
XORG_WITH_FOP
-XORG_CHECK_SGML_DOCTOOLS(1.5)
-
-AM_CONFIG_HEADER([config.h])
-
-# Checks for programs.
-AC_PROG_LIBTOOL
-AC_PROG_CC
-
-# Checks for pkg-config packages
-PKG_CHECK_MODULES(SM, [ice >= 1.0.5] xproto)
-AC_SUBST(SM_CFLAGS)
-AC_SUBST(SM_LIBS)
-
-PKG_CHECK_MODULES(XTRANS, xtrans)
-AC_SUBST(XTRANS_CFLAGS)
-AC_SUBST(XTRANS_LIBS)
-
-# Checks for libraries.
+XORG_WITH_XSLTPROC
+XORG_CHECK_SGML_DOCTOOLS(1.8)
-# Checks for header files.
-AC_HEADER_STDC
+# Obtain compiler/linker options for depedencies
+PKG_CHECK_MODULES(SM, [ice >= 1.0.5] xproto xtrans)
# Needed to check for TCP & IPv6 support and set flags appropriately
XTRANS_CONNECTION_FLAGS
-AC_ARG_WITH(libuuid, AC_HELP_STRING([--with-libuuid], [Build with libuuid support for client IDs]))
+AC_ARG_WITH(libuuid, AS_HELP_STRING([--with-libuuid], [Build with libuuid support for client IDs]))
AC_CHECK_FUNCS([uuid_create], [], [
if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then
AM_CONDITIONAL(WITH_LIBUUID, test x"$HAVE_LIBUUID" = xyes)
-AC_OUTPUT([Makefile
- doc/Makefile
- src/Makefile
- sm.pc])
+AC_CONFIG_FILES([Makefile
+ doc/Makefile
+ src/Makefile
+ sm.pc])
+AC_OUTPUT
+++ /dev/null
-------------------------------------------------------
-Quick Guide To Patching This Package For The Impatient
-------------------------------------------------------
-
-1. Make sure you have quilt installed
-2. Unpack the package as usual with "dpkg-source -x"
-3. Run the "patch" target in debian/rules
-4. Create a new patch with "quilt new" (see quilt(1))
-5. Edit all the files you want to include in the patch with "quilt edit"
- (see quilt(1)).
-6. Write the patch with "quilt refresh" (see quilt(1))
-7. Run the "clean" target in debian/rules
-
-Alternatively, instead of using quilt directly, you can drop the patch in to
-debian/patches and add the name of the patch to debian/patches/series.
-
-------------------------------------
-Guide To The X Strike Force Packages
-------------------------------------
-
-The X Strike Force team maintains X packages in git repositories on
-git.debian.org in the pkg-xorg subdirectory. Most upstream packages
-are actually maintained in git repositories as well, so they often
-just need to be pulled into git.debian.org in a "upstream-*" branch.
-Otherwise, the upstream sources are manually installed in the Debian
-git repository.
-
-The .orig.tar.gz upstream source file could be generated this
-"upstream-*" branch in the Debian git repository but it is actually
-copied from upstream tarballs directly.
-
-Due to X.org being highly modular, packaging all X.org applications
-as their own independent packages would have created too many Debian
-packages. For this reason, some X.org applications have been grouped
-into larger packages: xutils, xutils-dev, x11-apps, x11-session-utils,
-x11-utils, x11-xfs-utils, x11-xkb-utils, x11-xserver-utils.
-Most packages, including the X.org server itself and all libraries
-and drivers are, however maintained independently.
-
-The Debian packaging is added by creating the "debian-*" git branch
-which contains the aforementioned "upstream-*" branch plus the debian/
-repository files.
-When a patch has to be applied to the Debian package, two solutions
-are involved:
-* If the patch is available in one of the upstream branches, it
- may be git'cherry-picked into the Debian repository. In this
- case, it appears directly in the .diff.gz.
-* Otherwise, the patch is added to debian/patches/ which is managed
- with quilt as documented in /usr/share/doc/quilt/README.source.
-
-quilt is actually invoked by the Debian X packaging through a larger
-set of scripts called XSFBS. XSFBS brings some other X specific
-features such as managing dependencies and conflicts due to the video
-and input driver ABIs.
-XSFBS itself is maintained in a separate repository at
- git://git.debian.org/pkg-xorg/xsfbs.git
-and it is pulled inside the other Debian X repositories when needed.
-
-The XSFBS patching system requires a build dependency on quilt. Also
-a dependency on $(STAMP_DIR)/patch has to be added to debian/rules
-so that the XSFBS patching occurs before the actual build. So the
-very first target of the build (likely the one running autoreconf)
-should depend on $(STAMP_DIR)/patch. It should also not depend on
-anything so that parallel builds are correctly supported (nothing
-should probably run while patching is being done). And finally, the
-clean target should depend on the xsfclean target so that patches
-are unapplied on clean.
-
-When the upstream sources contain some DFSG-nonfree files, they are
-listed in text files in debian/prune/ in the "debian-*" branch of
-the Debian repository. XSFBS' scripts then take care of removing
-these listed files during the build so as to generate a modified
-DFSG-free .orig.tar.gz tarball.
+++ /dev/null
-libsm (2:1.2.0-1slp2) unstable; urgency=low
-
- * [X11R7.6] upgrade package
- * Git: 165.213.180.234:slp/pkgs/xorg/lib/libsm
- * Tag: libsm_1.2.0-1slp2
-
- -- SooChan Lim <sc1.lim@samsung.com> Mon, 03 Jan 2011 22:17:16 +0900
-
-libsm (2:1.1.1-6slp2) unstable; urgency=low
-
- * Modify the changelog
- * Git: 165.213.180.234:/git/slp/pkgs/xorg/lib/libsm
- * Tag: libsm_1.1.1-6slp2
-
- -- SooChan Lim <sc1.lim@samsung.com> Fri, 26 Nov 2010 10:53:37 +0900
-
-libsm (2:1.1.1-5slp2) unstable; urgency=low
-
- * modify the package name
-
- -- SooChan Lim <sc1.lim@samsung.com> Thu, 25 Mar 2010 17:38:53 +0900
-
-libsm (2:1.1.1-4) unstable; urgency=low
-
- * Change configure option (--with-uuid=no) temporarily for build rdepends packages properly.
-
- -- Sung-Jin Park <sj76.park@samsung.com> Thu, 17 Dec 2009 10:28:06 +0900
-
-libsm (2:1.1.1-3) unstable; urgency=low
-
- * Fix debian/rules to install .la files properly
-
- -- Sung-Jin Park <sj76.park@samsung.com> Mon, 07 Dec 2009 14:37:58 +0900
-
-libsm (2:1.1.1-2) unstable; urgency=low
-
- * Import debian package
- * Install .la files
-
- -- Sung-Jin Park <sj76.park@samsung.com> Mon, 07 Dec 2009 10:30:25 +0900
-
-libsm (2:1.1.1-1) unstable; urgency=low
-
- * New upstream release.
- * Move libsm6-dbg to 'debug' section.
- * Drop x11-common (pre-)dependencies, this isn't needed anymore.
- * Bump libice-dev build-dep to 2:1.0.5.
- * Bump xutils-dev build-dep to 1:7.4+4 for new util-macros.
- * Add README.source from xsfbs, bump Standards-Version to 3.8.3.
- * Look for space-separated DEB_BUILD_OPTIONS.
-
- -- Julien Cristau <jcristau@debian.org> Tue, 25 Aug 2009 17:58:18 +0200
-
-libsm (2:1.1.0-2) unstable; urgency=low
-
- * Upload to unstable.
-
- -- Julien Cristau <jcristau@debian.org> Mon, 16 Feb 2009 01:33:27 +0100
-
-libsm (2:1.1.0-1) experimental; urgency=low
-
- [ Brice Goglin ]
- * Use ${binary:Version} instead of the deprecated ${Source-Version}.
-
- [ Julien Cristau ]
- * New upstream release.
- - generate client IDs using libuuid instead of gethostbyname()
- * Switch to running autoreconf at build time; clean up in debian/rules
- clean, and build-depend on automake, libtool and xutils-dev.
- * Drop -1 debian revisions from build-deps.
- * Stop handling nostrip explicitly in debian/rules (dh_strip does it
- already), and allow parallel builds using sample code from policy.
- * Add myself to Uploaders.
- * Don't export a dependency on ice in sm.pc.
-
- -- Julien Cristau <jcristau@debian.org> Fri, 18 Jul 2008 16:16:47 +0200
-
-libsm (2:1.0.3-2) unstable; urgency=low
-
- * Fix short descriptions of libsm-dev and libsm-dbg,
- thanks Philippe Cloutier, closes: #432967.
- * Add upstream URL to debian/copyright.
- * Bump Standards-Version to 3.7.3 (no changes).
- * Add myself to Uploaders, and remove Branden and Fabio with their
- permission.
- * Add Vcs-Browser field and drop the XS- prefix from Vcs-Git.
- * Add a link to www.X.org and a reference to the libSM module in the long
- description.
-
- -- Brice Goglin <bgoglin@debian.org> Fri, 13 Jun 2008 07:07:33 +0200
-
-libsm (2:1.0.3-1) unstable; urgency=low
-
- [ Julien Cristau ]
- * Move binary packages to the proper sections.
- * New upstream release.
-
- [ Timo Aaltonen ]
- * Bump the epoch so that this can be synced to Ubuntu in the future.
-
- -- Julien Cristau <jcristau@debian.org> Mon, 14 May 2007 16:41:22 +0200
-
-libsm (1:1.0.2-2) unstable; urgency=low
-
- * Upload to unstable.
-
- -- Julien Cristau <jcristau@debian.org> Wed, 11 Apr 2007 10:53:40 +0200
-
-libsm (1:1.0.2-1) experimental; urgency=low
-
- * New upstream release.
- * Drop obsolete CVS info from the descriptions, and add XS-Vcs-Git.
- * Install the upstream changelog.
-
- -- Julien Cristau <jcristau@debian.org> Fri, 9 Feb 2007 17:37:39 +0100
-
-libsm (1:1.0.1-3) unstable; urgency=low
-
- * Exclude libSM.la from dh_install.
- * The library in debian/rules is libsm6 not libxau6! Closes: #383468.
- * libsm-dev uses versioned depends on libice-dev from X11R7.
- Closes: #372129.
-
- -- Drew Parsons <dparsons@debian.org> Fri, 22 Sep 2006 21:33:23 +1000
-
-libsm (1:1.0.1-2) unstable; urgency=low
-
- [ Andres Salomon ]
- * Test for obj-$(DEB_BUILD_GNU_TYPE) before creating it during build;
- idempotency fix.
-
- [ Drew Parsons ]
- * dbg package has priority extra.
-
- -- David Nusinow <dnusinow@debian.org> Tue, 29 Aug 2006 23:35:12 +0000
-
-libsm (1:1.0.1-1) experimental; urgency=low
-
- * New upstream release
- * Run dh_install with --list-missing
- * Bump debhelper compat to 5
- * Remove extra x11-common dep from -dev package
- * Version x11-common pre-dep in -dev package to be 1:7.0.0 to match the rest
- of Debian and shut lintian up
- * Bump standards version to 3.7.2.0
- * Don't look to install manpages for -dev package, there aren't any
-
- -- David Nusinow <dnusinow@debian.org> Mon, 3 Jul 2006 17:18:41 -0400
-
-libsm (1:1.0.0-4) unstable; urgency=low
-
- * Reorder makeshlib command in rules file so that ldconfig is run
- properly. Thanks Drew Parsons and Steve Langasek.
-
- -- David Nusinow <dnusinow@debian.org> Tue, 18 Apr 2006 21:49:55 -0400
-
-libsm (1:1.0.0-3) unstable; urgency=low
-
- * Upload to unstable
-
- -- David Nusinow <dnusinow@debian.org> Thu, 23 Mar 2006 22:44:25 -0500
-
-libsm (1:1.0.0-2) experimental; urgency=low
-
- * Provide versioned build depends for the X libs
-
- -- David Nusinow <dnusinow@debian.org> Thu, 23 Feb 2006 22:46:43 -0500
-
-libsm (1:1.0.0-1) UNRLEASED; urgency=low
-
- * First upload to Debian
-
- -- David Nusinow <dnusinow@debian.org> Thu, 29 Dec 2005 20:47:53 -0500
-
-libsm (1:6.0.4-4) breezy; urgency=low
-
- * Version the x11proto-core-dev build-dep to avoid _XOPEN_SOURCE.
-
- -- Adam Conrad <adconrad@ubuntu.com> Sun, 24 Jul 2005 10:42:00 +0000
-
-libsm (1:6.0.4-3) breezy; urgency=low
-
- * Add libice-dev to libsm-dev Depends.
-
- -- Daniel Stone <daniel.stone@ubuntu.com> Thu, 21 Jul 2005 18:07:37 +1000
-
-libsm (1:6.0.4-2) breezy; urgency=low
-
- * Fix Build-Depends-Indep vs B-D hilarity/stupidity.
-
- -- Daniel Stone <daniel.stone@ubuntu.com> Wed, 1 Jun 2005 00:34:43 +1000
-
-libsm (1:6.0.4-1) breezy; urgency=low
-
- * First libsm release.
-
- -- Daniel Stone <daniel.stone@ubuntu.com> Mon, 16 May 2005 22:10:17 +1000
+++ /dev/null
-Source: libsm
-Section: x11
-Priority: optional
-Maintainer: SooChan Lim <sc1.lim@samsung.com>, Sangjin Lee <lsj119@samsung.com>, Debian X Strike Force <debian-x@lists.debian.org>
-Uploaders: SooChan Lim <sc1.lim@samsung.com>, David Nusinow <dnusinow@debian.org>, Brice Goglin <bgoglin@debian.org>, Julien Cristau <jcristau@debian.org>
-Build-Depends: debhelper (>= 5.0.0), pkg-config, x11proto-core-dev (>= 6.8.99.15+cvs.20050722), xtrans-dev, libice-dev (>= 2:1.0.5), libuuid-dev, automake, libtool, xutils-dev (>= 1:7.4+4), quilt
-Standards-Version: 3.8.3
-Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/libsm
-Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/libsm.git
-
-Package: libsm6
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: X11 Session Management library
- This package provides the main interface to the X11 Session Management
- library, which allows for applications to both manage sessions, and make use
- of session managers to save and restore their state for later use.
- .
- More information about X.Org can be found at:
- <URL:http://www.X.org>
- <URL:http://xorg.freedesktop.org>
- <URL:http://lists.freedesktop.org/mailman/listinfo/xorg>
- .
- This module can be found at
- git://anongit.freedesktop.org/git/xorg/lib/libSM
-
-Package: libsm6-dbg
-Section: debug
-Architecture: any
-Priority: extra
-Depends: ${shlibs:Depends}, ${misc:Depends}, libsm6 (= ${binary:Version})
-Description: X11 Session Management library (debug package)
- This package provides the main interface to the X11 Session Management
- library, which allows for applications to both manage sessions, and make use
- of session managers to save and restore their state for later use.
- .
- This package contains the debug versions of the library found in libsm6.
- Non-developers likely have little use for this package.
- .
- More information about X.Org can be found at:
- <URL:http://www.X.org>
- <URL:http://xorg.freedesktop.org>
- <URL:http://lists.freedesktop.org/mailman/listinfo/xorg>
- .
- This module can be found at
- git://anongit.freedesktop.org/git/xorg/lib/libSM
-
-Package: libsm-dev
-Section: libdevel
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libsm6 (= ${binary:Version}), x11proto-core-dev, libice-dev (>= 1:1.0.0-1)
-Description: X11 Session Management library (development headers)
- This package provides the main interface to the X11 Session Management
- library, which allows for applications to both manage sessions, and make use
- of session managers to save and restore their state for later use.
- .
- This package contains the development headers for the library found in libsm6.
- Non-developers likely have little use for this package.
- .
- More information about X.Org can be found at:
- <URL:http://www.X.org>
- <URL:http://xorg.freedesktop.org>
- <URL:http://lists.freedesktop.org/mailman/listinfo/xorg>
- .
- This module can be found at
- git://anongit.freedesktop.org/git/xorg/lib/libSM
+++ /dev/null
-This package was downloaded from
-http://xorg.freedesktop.org/releases/individual/lib/
-
-Copyright 1993, 1998 The Open Group
-
-Permission to use, copy, modify, distribute, and sell this software and its
-documentation for any purpose is hereby granted without fee, provided that
-the above copyright notice appear in all copies and that both that
-copyright notice and this permission notice appear in supporting
-documentation.
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-Except as contained in this notice, the name of The Open Group shall not be
-used in advertising or otherwise to promote the sale, use or other dealings
-in this Software without prior written authorization from The Open Group.
+++ /dev/null
-usr/include/X11/*
-usr/lib/libSM.a
-usr/lib/libSM.la
-usr/lib/libSM.so
-usr/lib/pkgconfig/sm.pc
+++ /dev/null
-usr/lib/libSM.so.6*
+++ /dev/null
-From 756399aa14618be0a8ac2e0a824356abf69cc466 Mon Sep 17 00:00:00 2001
-From: Julien Cristau <jcristau@debian.org>
-Date: Fri, 18 Jul 2008 16:12:29 +0200
-Subject: [PATCH] sm.pc: don't export a dependency on ice
-
-use Requires.private for this
----
- sm.pc.in | 3 +--
- 1 files changed, 1 insertions(+), 2 deletions(-)
-
-diff --git a/sm.pc.in b/sm.pc.in
-index ab1261e..aefc38c 100644
---- a/sm.pc.in
-+++ b/sm.pc.in
-@@ -6,7 +6,6 @@ includedir=@includedir@
- Name: SM
- Description: X Session Management Library
- Version: @PACKAGE_VERSION@
--Requires: ice xproto
--Requires.private: ice
-+Requires.private: ice xproto
- Cflags: -I${includedir}
- Libs: -L${libdir} -lSM
---
-1.5.6.2
-
+++ /dev/null
-0001-sm.pc-don-t-export-a-dependency-on-ice.patch
+++ /dev/null
-#!/usr/bin/make -f
-# debian/rules for the Debian libxau package.
-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>
-# Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
-# Copyright © 2005 David Nusinow <dnusinow@debian.org>
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# set this to the name of the main shlib's binary package
-PACKAGE = libsm6
-
-include debian/xsfbs/xsfbs.mk
-
-CFLAGS = -Wall -g
-ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
- NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
- MAKEFLAGS += -j$(NUMJOBS)
-endif
-
-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- confflags += --build=$(DEB_HOST_GNU_TYPE)
-else
- confflags += --build=$(DEB_HOST_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
-# confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
-endif
-
-confflags += --with-libuuid=no
-#confflags += --with-libuuid
-
-.PHONY: autogen
-autogen: autogen-stamp
-autogen-stamp:
-#autogen-stamp: $(STAMP_DIR)/patch
- dh_testdir
- autoreconf -vfi
- >$@
-
-obj-$(DEB_BUILD_GNU_TYPE)/config.status: autogen-stamp
- dh_testdir
- test -d obj-$(DEB_BUILD_GNU_TYPE) || mkdir obj-$(DEB_BUILD_GNU_TYPE)
- cd obj-$(DEB_BUILD_GNU_TYPE) && \
- ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
- --infodir=\$${prefix}/share/info $(confflags) \
- CFLAGS="$(CFLAGS)"
-
-.PHONY: build
-build: build-stamp
-build-stamp: obj-$(DEB_BUILD_GNU_TYPE)/config.status
- dh_testdir
- cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
- >$@
-
-clean: xsfclean
- dh_testdir
- dh_testroot
- rm -f autogen-stamp build-stamp
-
- rm -f config.cache config.log config.status
- rm -f */config.cache */config.log */config.status
- rm -f conftest* */conftest*
- rm -rf autom4te.cache */autom4te.cache
- rm -rf obj-*
- rm -f $$(find -name Makefile.in)
- rm -f compile config.guess config.sub configure depcomp install-sh
- rm -f ltmain.sh missing INSTALL aclocal.m4 config.h.in
- rm -f mkinstalldirs
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
-
-# dh_installdocs
- dh_install --sourcedir=debian/tmp --list-missing
- #dh_install --sourcedir=debian/tmp --list-missing --exclude=libSM.la
-# dh_installchangelogs ChangeLog
- dh_link
- dh_strip --dbg-package=$(PACKAGE)-dbg
- dh_compress
- dh_fixperms
- dh_makeshlibs
- dh_shlibdeps
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-# Build architecture-independent files here.
-binary-indep: build install
-# Nothing to do
-
-binary: binary-indep binary-arch
-.PHONY: clean binary-indep binary-arch binary install
+++ /dev/null
-version=3
-http://xorg.freedesktop.org/releases/individual/lib/ libSM-(.*)\.tar\.gz
+++ /dev/null
-#!/bin/sh
-
-set -e
-
-if ! [ -d debian/prune ]; then
- exit 0
-fi
-
-if [ "x$1" != x--upstream-version ]; then
- exit 1
-fi
-
-version="$2"
-filename="$3"
-
-if [ -z "$version" ] || ! [ -f "$filename" ]; then
- exit 1
-fi
-
-dir="$(pwd)"
-tempdir="$(mktemp -d)"
-
-cd "$tempdir"
-tar xf "$dir/$filename"
-cat "$dir"/debian/prune/* | while read file; do rm -f */$file; done
-
-tar czf "$dir/$filename" *
-cd "$dir"
-rm -rf "$tempdir"
-echo "Done pruning upstream tarball"
-
-exit 0
+++ /dev/null
-#!/usr/bin/make -f
-
-# Debian X Strike Force Build System (XSFBS): Make portion
-
-# Copyright 1996 Stephen Early
-# Copyright 1997 Mark Eichin
-# Copyright 1998-2005, 2007 Branden Robinson
-# Copyright 2005 David Nusinow
-#
-# Licensed under the GNU General Public License, version 2. See the file
-# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
-
-# Originally by Stephen Early <sde1000@debian.org>
-# Modified by Mark W. Eichin <eichin@kitten.gen.ma.us>
-# Modified by Adam Heath <doogie@debian.org>
-# Modified by Branden Robinson <branden@debian.org>
-# Modified by Fabio Massimo Di Nitto <fabbione@fabbione.net>
-# Modified by David Nusinow <dnusinow@debian.org>
-# Acknowledgements to Manoj Srivastava.
-
-# Pass $(DH_OPTIONS) into the environment for debhelper's benefit.
-export DH_OPTIONS
-
-# force quilt to not use ~/.quiltrc and to use debian/patches
-QUILT = QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null
-
-# Set up parameters for the upstream build environment.
-
-# Determine (source) package name from Debian changelog.
-SOURCE_NAME:=$(shell dpkg-parsechangelog -ldebian/changelog \
- | grep '^Source:' | awk '{print $$2}')
-
-# Determine package version from Debian changelog.
-SOURCE_VERSION:=$(shell dpkg-parsechangelog -ldebian/changelog \
- | grep '^Version:' | awk '{print $$2}')
-
-# Determine upstream version number.
-UPSTREAM_VERSION:=$(shell echo $(SOURCE_VERSION) | sed 's/-.*//')
-
-# Determine the source version without the epoch for make-orig-tar-gz
-NO_EPOCH_VER:=$(shell echo $(UPSTREAM_VERSION) | sed 's/^.://')
-
-# Figure out who's building this package.
-BUILDER:=$(shell echo $${DEBEMAIL:-$${EMAIL:-$$(echo $$LOGNAME@$$(cat /etc/mailname 2>/dev/null))}})
-
-# Find out if this is an official build; an official build has nothing but
-# digits, dots, and/or the codename of a release in the Debian part of the
-# version number. Anything else indicates an unofficial build.
-OFFICIAL_BUILD:=$(shell VERSION=$(SOURCE_VERSION); if ! expr "$$(echo $${VERSION\#\#*-} | sed 's/\(woody\|sarge\|etch\|lenny\)//g')" : ".*[^0-9.].*" >/dev/null 2>&1; then echo yes; fi)
-
-# Set up parameters for the Debian build environment.
-
-# Determine our architecture.
-BUILD_ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
-# Work around some old-time dpkg braindamage.
-BUILD_ARCH:=$(subst i486,i386,$(BUILD_ARCH))
-# The DEB_HOST_ARCH variable may be set per the Debian cross-compilation policy.
-ifdef DEB_HOST_ARCH
- ARCH:=$(DEB_HOST_ARCH)
-else
- # dpkg-cross sets the ARCH environment variable; if set, use it.
- ifdef ARCH
- ARCH:=$(ARCH)
- else
- ARCH:=$(BUILD_ARCH)
- endif
-endif
-
-# $(STAMP_DIR) houses stamp files for complex targets.
-STAMP_DIR:=stampdir
-
-# $(DEBTREEDIR) is where all install rules are told (via $(DESTDIR)) to place
-# their files.
-DEBTREEDIR:=$(CURDIR)/debian/tmp
-
-# All "important" targets have four lines:
-# 1) A target name that is invoked by a package-building tool or the user.
-# This consists of a dependency on a "$(STAMP_DIR)/"-prefixed counterpart.
-# 2) A line delcaring 1) as a phony target (".PHONY:").
-# 3) A "$(STAMP_DIR)/"-prefixed target which does the actual work, and may
-# depend on other targets.
-# 4) A line declaring 3) as a member of the $(stampdir_targets) variable; the
-# "$(STAMP_DIR)/" prefix is omitted.
-#
-# This indirection is needed so that the "stamp" files that signify when a rule
-# is done can be located in a separate "stampdir". Recall that make has no way
-# to know when a goal has been met for a phony target (like "build" or
-# "install").
-#
-# At the end of each "$(STAMP_DIR)/" target, be sure to run the command ">$@"
-# so that the target will not be run again. Removing the file will make Make
-# run the target over.
-
-# All phony targets should be declared as dependencies of .PHONY, even if they
-# do not have "($STAMP_DIR)/"-prefixed counterparts.
-
-# Define a harmless default rule to keep things from going nuts by accident.
-.PHONY: default
-default:
-
-# Set up the $(STAMP_DIR) directory.
-.PHONY: stampdir
-stampdir_targets+=stampdir
-stampdir: $(STAMP_DIR)/stampdir
-$(STAMP_DIR)/stampdir:
- mkdir $(STAMP_DIR)
- >$@
-
-# Set up the package build directory as quilt expects to find it.
-.PHONY: prepare
-stampdir_targets+=prepare
-prepare: $(STAMP_DIR)/prepare
-$(STAMP_DIR)/prepare: $(STAMP_DIR)/log $(STAMP_DIR)/genscripts
- >$@
-
-.PHONY: log
-stampdir_targets+=log
-log: $(STAMP_DIR)/log
-$(STAMP_DIR)/log: $(STAMP_DIR)/stampdir
- mkdir -p $(STAMP_DIR)/log
-
-# Apply all patches to the upstream source.
-.PHONY: patch
-stampdir_targets+=patch
-patch: $(STAMP_DIR)/patch
-$(STAMP_DIR)/patch: $(STAMP_DIR)/prepare
- if ! [ `which quilt` ]; then \
- echo "Couldn't find quilt. Please install it or add it to the build-depends for this package."; \
- exit 1; \
- fi; \
- if $(QUILT) next >/dev/null 2>&1; then \
- echo -n "Applying patches..."; \
- if $(QUILT) push -a -v >$(STAMP_DIR)/log/patch 2>&1; then \
- cat $(STAMP_DIR)/log/patch; \
- echo "successful."; \
- else \
- cat $(STAMP_DIR)/log/patch; \
- echo "failed! (check $(STAMP_DIR)/log/patch for details)"; \
- exit 1; \
- fi; \
- else \
- echo "No patches to apply"; \
- fi; \
- >$@
-
-# Revert all patches to the upstream source.
-.PHONY: unpatch
-unpatch: $(STAMP_DIR)/log
- rm -f $(STAMP_DIR)/patch
- @echo -n "Unapplying patches..."; \
- if $(QUILT) applied >/dev/null 2>/dev/null; then \
- if $(QUILT) pop -a -v >$(STAMP_DIR)/log/unpatch 2>&1; then \
- cat $(STAMP_DIR)/log/unpatch; \
- echo "successful."; \
- else \
- cat $(STAMP_DIR)/log/unpatch; \
- echo "failed! (check $(STAMP_DIR)/log/unpatch for details)"; \
- exit 1; \
- fi; \
- else \
- echo "nothing to do."; \
- fi
-
-# Clean the generated maintainer scripts.
-.PHONY: cleanscripts
-cleanscripts:
- rm -f $(STAMP_DIR)/genscripts
- rm -f debian/*.config \
- debian/*.postinst \
- debian/*.postrm \
- debian/*.preinst \
- debian/*.prerm
-
-# Clean the package build tree.
-.PHONY: xsfclean
-xsfclean: cleanscripts unpatch
- dh_testdir
- rm -rf .pc
- rm -rf $(STAMP_DIR) $(SOURCE_DIR)
- rm -rf imports
- dh_clean debian/shlibs.local \
- debian/po/pothead
-
-# Generate the debconf templates POT file header.
-debian/po/pothead: debian/po/pothead.in
- sed -e 's/SOURCE_VERSION/$(SOURCE_VERSION)/' \
- -e 's/DATE/$(shell date "+%F %X%z"/)' <$< >$@
-
-# Update POT and PO files.
-.PHONY: updatepo
-updatepo: debian/po/pothead
- debian/scripts/debconf-updatepo --pot-header=pothead --verbose
-
-# Remove files from the upstream source tree that we don't need, or which have
-# licensing problems. It must be run before creating the .orig.tar.gz.
-#
-# Note: This rule is for Debian package maintainers' convenience, and is not
-# needed for conventional build scenarios.
-.PHONY: prune-upstream-tree
-prune-upstream-tree:
- # Ensure we're in the correct directory.
- dh_testdir
- grep -rvh '^#' debian/prune/ | xargs --no-run-if-empty rm -rf
-
-# Verify that there are no offsets or fuzz in the patches we apply.
-#
-# Note: This rule is for Debian package maintainers' convenience, and is not
-# needed for conventional build scenarios.
-.PHONY: patch-audit
-patch-audit: prepare unpatch
- @echo -n "Auditing patches..."; \
- >$(STAMP_DIR)/log/patch; \
- FUZZY=; \
- while [ -n "$$($(QUILT) next)" ]; do \
- RESULT=$$($(QUILT) push -v | tee -a $(STAMP_DIR)/log/patch | grep ^Hunk | sed 's/^Hunk.*\(succeeded\|FAILED\).*/\1/');\
- case "$$RESULT" in \
- succeeded) \
- echo "fuzzy patch: $$($(QUILT) top)" \
- | tee -a $(STAMP_DIR)/log/$$($(QUILT) top); \
- FUZZY=yes; \
- ;; \
- FAILED) \
- echo "broken patch: $$($(QUILT) next)" \
- | tee -a $(STAMP_DIR)/log/$$($(QUILT) next); \
- exit 1; \
- ;; \
- esac; \
- done; \
- if [ -n "$$FUZZY" ]; then \
- echo "there were fuzzy patches; please fix."; \
- exit 1; \
- else \
- echo "done."; \
- fi
-
-# Generate the maintainer scripts.
-.PHONY: genscripts
-stampdir_targets+=genscripts
-genscripts: $(STAMP_DIR)/genscripts
-$(STAMP_DIR)/genscripts: $(STAMP_DIR)/stampdir
- for FILE in debian/*.config.in \
- debian/*.postinst.in \
- debian/*.postrm.in \
- debian/*.preinst.in \
- debian/*.prerm.in; do \
- if [ -e "$$FILE" ]; then \
- MAINTSCRIPT=$$(echo $$FILE | sed 's/.in$$//'); \
- sed -n '1,/^#INCLUDE_SHELL_LIB#$$/p' <$$FILE \
- | sed -e '/^#INCLUDE_SHELL_LIB#$$/d' >$$MAINTSCRIPT.tmp; \
- cat debian/xsfbs/xsfbs.sh >>$$MAINTSCRIPT.tmp; \
- sed -n '/^#INCLUDE_SHELL_LIB#$$/,$$p' <$$FILE \
- | sed -e '/^#INCLUDE_SHELL_LIB#$$/d' >>$$MAINTSCRIPT.tmp; \
- sed -e 's/@SOURCE_VERSION@/$(SOURCE_VERSION)/' \
- -e 's/@OFFICIAL_BUILD@/$(OFFICIAL_BUILD)/' \
- -e 's/@DEFAULT_DCRESOLUTIONS@/$(DEFAULT_DCRESOLUTIONS)/' \
- <$$MAINTSCRIPT.tmp >$$MAINTSCRIPT; \
- rm $$MAINTSCRIPT.tmp; \
- fi; \
- done
- # Validate syntax of generated shell scripts.
- #sh debian/scripts/validate-posix-sh debian/*.config \
- # debian/*.postinst \
- # debian/*.postrm \
- # debian/*.preinst \
- # debian/*.prerm
- >$@
-
-# Generate the shlibs.local file.
-debian/shlibs.local:
- cat debian/*.shlibs >$@
-
-SERVERMINVERS = $(shell cat /usr/share/xserver-xorg/serverminver 2>/dev/null)
-VIDEOABI = $(shell cat /usr/share/xserver-xorg/videoabiver 2>/dev/null)
-INPUTABI = $(shell cat /usr/share/xserver-xorg/inputabiver 2>/dev/null)
-SERVER_DEPENDS = xserver-xorg-core (>= $(SERVERMINVERS))
-VIDDRIVER_PROVIDES = xserver-xorg-video-$(VIDEOABI)
-INPDRIVER_PROVIDES = xserver-xorg-input-$(INPUTABI)
-ifeq ($(PACKAGE),)
-PACKAGE=$(shell awk '/^Package:/ { print $$2; exit }' < debian/control)
-endif
-
-.PHONY: serverabi
-serverabi: install
-ifeq ($(SERVERMINVERS),)
- @echo error: xserver-xorg-dev needs to be installed
- @exit 1
-else
- echo "xserver:Depends=$(SERVER_DEPENDS)" >> debian/$(PACKAGE).substvars
- echo "xviddriver:Provides=$(VIDDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
- echo "xinpdriver:Provides=$(INPDRIVER_PROVIDES)" >> debian/$(PACKAGE).substvars
-endif
-
-# vim:set noet ai sts=8 sw=8 tw=0:
+++ /dev/null
-# $Id$
-
-# This is the X Strike Force shell library for X Window System package
-# maintainer scripts. It serves to define shell functions commonly used by
-# such packages, and performs some error checking necessary for proper operation
-# of those functions. By itself, it does not "do" much; the maintainer scripts
-# invoke the functions defined here to accomplish package installation and
-# removal tasks.
-
-# If you are reading this within a Debian package maintainer script (e.g.,
-# /var/lib/dpkg)info/PACKAGE.{config,preinst,postinst,prerm,postrm}), you can
-# skip past this library by scanning forward in this file to the string
-# "GOBSTOPPER".
-
-SOURCE_VERSION=@SOURCE_VERSION@
-OFFICIAL_BUILD=@OFFICIAL_BUILD@
-
-# Use special abnormal exit codes so that problems with this library are more
-# easily tracked down.
-SHELL_LIB_INTERNAL_ERROR=86
-SHELL_LIB_THROWN_ERROR=74
-SHELL_LIB_USAGE_ERROR=99
-
-# old -> new variable names
-if [ -z "$DEBUG_XORG_PACKAGE" ] && [ -n "$DEBUG_XFREE86_PACKAGE" ]; then
- DEBUG_XORG_PACKAGE="$DEBUG_XFREE86_PACKAGE"
-fi
-if [ -z "$DEBUG_XORG_DEBCONF" ] && [ -n "$DEBUG_XFREE86_DEBCONF" ]; then
- DEBUG_XORG_DEBCONF="$DEBUG_XFREE86_DEBCONF"
-fi
-
-# initial sanity checks
-if [ -z "$THIS_PACKAGE" ]; then
- cat >&2 <<EOF
-Error: package maintainer script attempted to use shell library without
-definining \$THIS_PACKAGE shell variable. Please report the package name,
-version, and the text of this error message to the Debian Bug Tracking System.
-Visit <http://www.debian.org/Bugs/Reporting> on the World Wide Web for
-instructions, read the file /usr/share/doc/debian/bug-reporting.txt from the
-"doc-debian" package, or install the "reportbug" package and use the command of
-the same name to file a report against version $SOURCE_VERSION of this package.
-EOF
- exit $SHELL_LIB_USAGE_ERROR
-fi
-
-if [ -z "$THIS_SCRIPT" ]; then
- cat >&2 <<EOF
-Error: package maintainer script attempted to use shell library without
-definining \$THIS_SCRIPT shell variable. Please report the package name,
-version, and the text of this error message to the Debian Bug Tracking System.
-Visit <http://www.debian.org/Bugs/Reporting> on the World Wide Web for
-instructions, read the file /usr/share/doc/debian/bug-reporting.txt from the
-"doc-debian" package, or install the "reportbug" package and use the command of
-the same name to file a report against version $SOURCE_VERSION of the
-"$THIS_PACKAGE" package.
-EOF
- exit $SHELL_LIB_USAGE_ERROR
-fi
-
-if [ "$1" = "reconfigure" ] || [ -n "$DEBCONF_RECONFIGURE" ]; then
- RECONFIGURE="true"
-else
- RECONFIGURE=
-fi
-
-if ([ "$1" = "install" ] || [ "$1" = "configure" ]) && [ -z "$2" ]; then
- FIRSTINST="yes"
-fi
-
-if [ -z "$RECONFIGURE" ] && [ -z "$FIRSTINST" ]; then
- UPGRADE="yes"
-fi
-
-trap "message;\
- message \"Received signal. Aborting $THIS_PACKAGE package $THIS_SCRIPT script.\";\
- message;\
- exit 1" HUP INT QUIT TERM
-
-reject_nondigits () {
- # syntax: reject_nondigits [ operand ... ]
- #
- # scan operands (typically shell variables whose values cannot be trusted) for
- # characters other than decimal digits and barf if any are found
- while [ -n "$1" ]; do
- # does the operand contain anything but digits?
- if ! expr "$1" : "[[:digit:]]\+$" > /dev/null 2>&1; then
- # can't use die(), because it wraps message() which wraps this function
- echo "$THIS_PACKAGE $THIS_SCRIPT error: reject_nondigits() encountered" \
- "possibly malicious garbage \"$1\"" >&2
- exit $SHELL_LIB_THROWN_ERROR
- fi
- shift
- done
-}
-
-reject_whitespace () {
- # syntax: reject_whitespace [ operand ]
- #
- # scan operand (typically a shell variable whose value cannot be trusted) for
- # whitespace characters and barf if any are found
- if [ -n "$1" ]; then
- # does the operand contain any whitespace?
- if expr "$1" : "[[:space:]]" > /dev/null 2>&1; then
- # can't use die(), because I want to avoid forward references
- echo "$THIS_PACKAGE $THIS_SCRIPT error: reject_whitespace() encountered" \
- "possibly malicious garbage \"$1\"" >&2
- exit $SHELL_LIB_THROWN_ERROR
- fi
- fi
-}
-
-reject_unlikely_path_chars () {
- # syntax: reject_unlikely_path_chars [ operand ... ]
- #
- # scan operands (typically shell variables whose values cannot be trusted) for
- # characters unlikely to be seen in a path and which the shell might
- # interpret and barf if any are found
- while [ -n "$1" ]; do
- # does the operand contain any funny characters?
- if expr "$1" : '.*[!$&()*;<>?|].*' > /dev/null 2>&1; then
- # can't use die(), because I want to avoid forward references
- echo "$THIS_PACKAGE $THIS_SCRIPT error: reject_unlikely_path_chars()" \
- "encountered possibly malicious garbage \"$1\"" >&2
- exit $SHELL_LIB_THROWN_ERROR
- fi
- shift
- done
-}
-
-# Query the terminal to establish a default number of columns to use for
-# displaying messages to the user. This is used only as a fallback in the
-# event the COLUMNS variable is not set. ($COLUMNS can react to SIGWINCH while
-# the script is running, and this cannot, only being calculated once.)
-DEFCOLUMNS=$(stty size 2> /dev/null | awk '{print $2}') || true
-if ! expr "$DEFCOLUMNS" : "[[:digit:]]\+$" > /dev/null 2>&1; then
- DEFCOLUMNS=80
-fi
-
-message () {
- # pretty-print messages of arbitrary length
- reject_nondigits "$COLUMNS"
- echo "$*" | fmt -t -w ${COLUMNS:-$DEFCOLUMNS} >&2
-}
-
-observe () {
- # syntax: observe message ...
- #
- # issue observational message suitable for logging someday when support for
- # it exists in dpkg
- if [ -n "$DEBUG_XORG_PACKAGE" ]; then
- message "$THIS_PACKAGE $THIS_SCRIPT note: $*"
- fi
-}
-
-warn () {
- # syntax: warn message ...
- #
- # issue warning message suitable for logging someday when support for
- # it exists in dpkg; also send to standard error
- message "$THIS_PACKAGE $THIS_SCRIPT warning: $*"
-}
-
-die () {
- # syntax: die message ...
- #
- # exit script with error message
- message "$THIS_PACKAGE $THIS_SCRIPT error: $*"
- exit $SHELL_LIB_THROWN_ERROR
-}
-
-internal_error () {
- # exit script with error; essentially a "THIS SHOULD NEVER HAPPEN" message
- message "internal error: $*"
- if [ -n "$OFFICIAL_BUILD" ]; then
- message "Please report a bug in the $THIS_SCRIPT script of the" \
- "$THIS_PACKAGE package, version $SOURCE_VERSION to the Debian Bug" \
- "Tracking System. Include all messages above that mention the" \
- "$THIS_PACKAGE package. Visit " \
- "<http://www.debian.org/Bugs/Reporting> on the World Wide Web for" \
- "instructions, read the file" \
- "/usr/share/doc/debian/bug-reporting.txt from the doc-debian" \
- "package, or install the reportbug package and use the command of" \
- "the same name to file a report."
- fi
- exit $SHELL_LIB_INTERNAL_ERROR
-}
-
-usage_error () {
- message "usage error: $*"
- message "Please report a bug in the $THIS_SCRIPT script of the" \
- "$THIS_PACKAGE package, version $SOURCE_VERSION to the Debian Bug" \
- "Tracking System. Include all messages above that mention the" \
- "$THIS_PACKAGE package. Visit " \
- "<http://www.debian.org/Bugs/Reporting> on the World Wide Web for" \
- "instructions, read the file" \
- "/usr/share/doc/debian/bug-reporting.txt from the doc-debian" \
- "package, or install the reportbug package and use the command of" \
- "the same name to file a report."
- exit $SHELL_LIB_USAGE_ERROR
-}
-
-
-maplink () {
- # returns what symlink should point to; i.e., what the "sane" answer is
- # Keep this in sync with the debian/*.links files.
- # This is only needed for symlinks to directories.
- #
- # XXX: Most of these look wrong in the X11R7 world and need to be fixed.
- # If we've stopped using this function, fixing it might enable us to re-enable
- # it again and catch more errors.
- case "$1" in
- /etc/X11/xkb/compiled) echo /var/lib/xkb ;;
- /etc/X11/xkb/xkbcomp) echo /usr/X11R6/bin/xkbcomp ;;
- /usr/X11R6/lib/X11/app-defaults) echo /etc/X11/app-defaults ;;
- /usr/X11R6/lib/X11/fs) echo /etc/X11/fs ;;
- /usr/X11R6/lib/X11/lbxproxy) echo /etc/X11/lbxproxy ;;
- /usr/X11R6/lib/X11/proxymngr) echo /etc/X11/proxymngr ;;
- /usr/X11R6/lib/X11/rstart) echo /etc/X11/rstart ;;
- /usr/X11R6/lib/X11/twm) echo /etc/X11/twm ;;
- /usr/X11R6/lib/X11/xdm) echo /etc/X11/xdm ;;
- /usr/X11R6/lib/X11/xinit) echo /etc/X11/xinit ;;
- /usr/X11R6/lib/X11/xkb) echo /etc/X11/xkb ;;
- /usr/X11R6/lib/X11/xserver) echo /etc/X11/xserver ;;
- /usr/X11R6/lib/X11/xsm) echo /etc/X11/xsm ;;
- /usr/bin/X11) echo ../X11R6/bin ;;
- /usr/bin/rstartd) echo ../X11R6/bin/rstartd ;;
- /usr/include/X11) echo ../X11R6/include/X11 ;;
- /usr/lib/X11) echo ../X11R6/lib/X11 ;;
- *) internal_error "maplink() called with unknown path \"$1\"" ;;
- esac
-}
-
-analyze_path () {
- # given a supplied set of pathnames, break each one up by directory and do an
- # ls -dl on each component, cumulatively; i.e.
- # analyze_path /usr/X11R6/bin -> ls -dl /usr /usr/X11R6 /usr/X11R6/bin
- # Thanks to Randolph Chung for this clever hack.
-
- local f g
-
- while [ -n "$1" ]; do
- reject_whitespace "$1"
- g=
- message "Analyzing $1:"
- for f in $(echo "$1" | tr / \ ); do
- if [ -e /$g$f ]; then
- ls -dl /$g$f /$g$f.dpkg-* 2> /dev/null || true
- g=$g$f/
- else
- message "/$g$f: nonexistent; directory contents of /$g:"
- ls -l /$g
- break
- fi
- done
- shift
- done
-}
-
-find_culprits () {
- local f p dpkg_info_dir possible_culprits smoking_guns bad_packages package \
- msg
-
- reject_whitespace "$1"
- message "Searching for overlapping packages..."
- dpkg_info_dir=/var/lib/dpkg/info
- if [ -d $dpkg_info_dir ]; then
- if [ "$(echo $dpkg_info_dir/*.list)" != "$dpkg_info_dir/*.list" ]; then
- possible_culprits=$(ls -1 $dpkg_info_dir/*.list | egrep -v \
- "(xbase-clients|x11-common|xfs|xlibs)")
- if [ -n "$possible_culprits" ]; then
- smoking_guns=$(grep -l "$1" $possible_culprits || true)
- if [ -n "$smoking_guns" ]; then
- bad_packages=$(printf "\\n")
- for f in $smoking_guns; do
- # too bad you can't nest parameter expansion voodoo
- p=${f%*.list} # strip off the trailing ".list"
- package=${p##*/} # strip off the directories
- bad_packages=$(printf "%s\n%s" "$bad_packages" "$package")
- done
- msg=$(cat <<EOF
-The following packages appear to have file overlaps with the X.Org packages;
-these packages are either very old, or in violation of Debian Policy. Try
-upgrading each of these packages to the latest available version if possible:
-for example, with the command "apt-get install". If no newer version of a
-package is available, you will have to remove it; for example, with the command
-"apt-get remove". If even the latest available version of the package has
-this file overlap, please file a bug against that package with the Debian Bug
-Tracking System. You may want to refer the package maintainer to section 12.8
-of the Debian Policy manual.
-EOF
-)
- message "$msg"
- message "The overlapping packages are: $bad_packages"
- else
- message "no overlaps found."
- fi
- fi
- else
- message "cannot search; no matches for $dpkg_info_dir/*.list."
- fi
- else
- message "cannot search; $dpkg_info_dir does not exist."
- fi
-}
-
-check_symlink () {
- # syntax: check_symlink symlink
- #
- # See if specified symlink points where it is supposed to. Return 0 if it
- # does, and 1 if it does not.
- #
- # Primarily used by check_symlinks_and_warn() and check_symlinks_and_bomb().
-
- local symlink
-
- # validate arguments
- if [ $# -ne 1 ]; then
- usage_error "check_symlink() called with wrong number of arguments;" \
- "expected 1, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- symlink="$1"
-
- if [ "$(maplink "$symlink")" = "$(readlink "$symlink")" ]; then
- return 0
- else
- return 1
- fi
-}
-
-check_symlinks_and_warn () {
- # syntax: check_symlinks_and_warn symlink ...
- #
- # For each argument, check for symlink sanity, and warn if it isn't sane.
- #
- # Call this function from a preinst script in the event $1 is "upgrade" or
- # "install".
-
- local errmsg symlink
-
- # validate arguments
- if [ $# -lt 1 ]; then
- usage_error "check_symlinks_and_warn() called with wrong number of" \
- "arguments; expected at least 1, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- while [ -n "$1" ]; do
- symlink="$1"
- if [ -L "$symlink" ]; then
- if ! check_symlink "$symlink"; then
- observe "$symlink symbolic link points to wrong location" \
- "$(readlink "$symlink"); removing"
- rm "$symlink"
- fi
- elif [ -e "$symlink" ]; then
- errmsg="$symlink exists and is not a symbolic link; this package cannot"
- errmsg="$errmsg be installed until this"
- if [ -f "$symlink" ]; then
- errmsg="$errmsg file"
- elif [ -d "$symlink" ]; then
- errmsg="$errmsg directory"
- else
- errmsg="$errmsg thing"
- fi
- errmsg="$errmsg is removed"
- die "$errmsg"
- fi
- shift
- done
-}
-
-check_symlinks_and_bomb () {
- # syntax: check_symlinks_and_bomb symlink ...
- #
- # For each argument, check for symlink sanity, and bomb if it isn't sane.
- #
- # Call this function from a postinst script.
-
- local problem symlink
-
- # validate arguments
- if [ $# -lt 1 ]; then
- usage_error "check_symlinks_and_bomb() called with wrong number of"
- "arguments; expected at least 1, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- while [ -n "$1" ]; do
- problem=
- symlink="$1"
- if [ -L "$symlink" ]; then
- if ! check_symlink "$symlink"; then
- problem=yes
- warn "$symlink symbolic link points to wrong location" \
- "$(readlink "$symlink")"
- fi
- elif [ -e "$symlink" ]; then
- problem=yes
- warn "$symlink is not a symbolic link"
- else
- problem=yes
- warn "$symlink symbolic link does not exist"
- fi
- if [ -n "$problem" ]; then
- analyze_path "$symlink" "$(readlink "$symlink")"
- find_culprits "$symlink"
- die "bad symbolic links on system"
- fi
- shift
- done
-}
-
-font_update () {
- # run $UPDATECMDS in $FONTDIRS
-
- local dir cmd shortcmd x_font_dir_prefix
-
- x_font_dir_prefix="/usr/share/fonts/X11"
-
- if [ -z "$UPDATECMDS" ]; then
- usage_error "font_update() called but \$UPDATECMDS not set"
- fi
- if [ -z "$FONTDIRS" ]; then
- usage_error "font_update() called but \$FONTDIRS not set"
- fi
-
- reject_unlikely_path_chars "$UPDATECMDS"
- reject_unlikely_path_chars "$FONTDIRS"
-
- for dir in $FONTDIRS; do
- if [ -d "$x_font_dir_prefix/$dir" ]; then
- for cmd in $UPDATECMDS; do
- if which "$cmd" > /dev/null 2>&1; then
- shortcmd=${cmd##*/}
- observe "running $shortcmd in $dir font directory"
- cmd_opts=
- if [ "$shortcmd" = "update-fonts-alias" ]; then
- cmd_opts=--x11r7-layout
- fi
- if [ "$shortcmd" = "update-fonts-dir" ]; then
- cmd_opts=--x11r7-layout
- fi
- if [ "$shortcmd" = "update-fonts-scale" ]; then
- cmd_opts=--x11r7-layout
- fi
- $cmd $cmd_opts $dir || warn "$cmd $cmd_opts $dir" \
- "failed; font directory data may not" \
- "be up to date"
- else
- warn "$cmd not found; not updating corresponding $dir font" \
- "directory data"
- fi
- done
- else
- warn "$dir is not a directory; not updating font directory data"
- fi
- done
-}
-
-remove_conffile_prepare () {
- # syntax: remove_conffile_prepare filename official_md5sum ...
- #
- # Check a conffile "filename" against a list of canonical MD5 checksums.
- # If the file's current MD5 checksum matches one of the "official_md5sum"
- # operands provided, then prepare the conffile for removal from the system.
- # We defer actual deletion until the package is configured so that we can
- # roll this operation back if package installation fails.
- #
- # Call this function from a preinst script in the event $1 is "upgrade" or
- # "install" and verify $2 to ensure the package is being upgraded from a
- # version (or installed over a version removed-but-not-purged) prior to the
- # one in which the conffile was obsoleted.
-
- local conffile current_checksum
-
- # validate arguments
- if [ $# -lt 2 ]; then
- usage_error "remove_conffile_prepare() called with wrong number of" \
- "arguments; expected at least 2, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- conffile="$1"
- shift
-
- # does the conffile even exist?
- if [ -e "$conffile" ]; then
- # calculate its checksum
- current_checksum=$(md5sum < "$conffile" | sed 's/[[:space:]].*//')
- # compare it to each supplied checksum
- while [ -n "$1" ]; do
- if [ "$current_checksum" = "$1" ]; then
- # we found a match; move the confffile and stop looking
- observe "preparing obsolete conffile $conffile for removal"
- mv "$conffile" "$conffile.$THIS_PACKAGE-tmp"
- break
- fi
- shift
- done
- fi
-}
-
-remove_conffile_lookup () {
- # syntax: remove_conffile_lookup package filename
- #
- # Lookup the md5sum of a conffile in dpkg's database, and prepare for removal
- # if it matches the actual file's md5sum.
- #
- # Call this function when you would call remove_conffile_prepare but only
- # want to check against dpkg's status database instead of known checksums.
-
- local package conffile old_md5sum
-
- # validate arguments
- if [ $# -ne 2 ]; then
- usage_error "remove_conffile_lookup() called with wrong number of" \
- "arguments; expected 1, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- package="$1"
- conffile="$2"
-
- if ! [ -e "$conffile" ]; then
- return
- fi
- old_md5sum="$(dpkg-query -W -f='${Conffiles}' "$package" | \
- awk '{ if (match($0, "^ '"$conffile"' ")) print $2}')"
- if [ -n "$old_md5sum" ]; then
- remove_conffile_prepare "$conffile" "$old_md5sum"
- fi
-}
-
-remove_conffile_commit () {
- # syntax: remove_conffile_commit filename
- #
- # Complete the removal of a conffile "filename" that has become obsolete.
- #
- # Call this function from a postinst script after having used
- # remove_conffile_prepare() in the preinst.
-
- local conffile
-
- # validate arguments
- if [ $# -ne 1 ]; then
- usage_error "remove_conffile_commit() called with wrong number of" \
- "arguments; expected 1, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- conffile="$1"
-
- # if the temporary file created by remove_conffile_prepare() exists, remove it
- if [ -e "$conffile.$THIS_PACKAGE-tmp" ]; then
- observe "committing removal of obsolete conffile $conffile"
- rm "$conffile.$THIS_PACKAGE-tmp"
- fi
-}
-
-remove_conffile_rollback () {
- # syntax: remove_conffile_rollback filename
- #
- # Roll back the removal of a conffile "filename".
- #
- # Call this function from a postrm script in the event $1 is "abort-upgrade"
- # or "abort-install" is after having used remove_conffile_prepare() in the
- # preinst.
-
- local conffile
-
- # validate arguments
- if [ $# -ne 1 ]; then
- usage_error "remove_conffile_rollback() called with wrong number of" \
- "arguments; expected 1, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- conffile="$1"
-
- # if the temporary file created by remove_conffile_prepare() exists, move it
- # back
- if [ -e "$conffile.$THIS_PACKAGE-tmp" ]; then
- observe "rolling back removal of obsolete conffile $conffile"
- mv "$conffile.$THIS_PACKAGE-tmp" "$conffile"
- fi
-}
-
-replace_conffile_with_symlink_prepare () {
- # syntax: replace_conffile_with_symlink_prepare oldfilename newfilename \
- # official_md5sum ...
- #
- # Check a conffile "oldfilename" against a list of canonical MD5 checksums.
- # If the file's current MD5 checksum matches one of the "official_md5sum"
- # operands provided, then prepare the conffile for removal from the system.
- # We defer actual deletion until the package is configured so that we can
- # roll this operation back if package installation fails. Otherwise copy it
- # to newfilename and let dpkg handle it through conffiles mechanism.
- #
- # Call this function from a preinst script in the event $1 is "upgrade" or
- # "install" and verify $2 to ensure the package is being upgraded from a
- # version (or installed over a version removed-but-not-purged) prior to the
- # one in which the conffile was obsoleted.
-
- local conffile current_checksum
-
- # validate arguments
- if [ $# -lt 3 ]; then
- usage_error "replace_conffile_with_symlink_prepare() called with wrong" \
- " number of arguments; expected at least 3, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- oldconffile="$1"
- shift
- newconffile="$1"
- shift
-
- remove_conffile_prepare "$_oldconffile" "$@"
- # If $oldconffile still exists, then md5sums didn't match.
- # Copy it to new one.
- if [ -f "$oldconffile" ]; then
- cp "$oldconffile" "$newconffile"
- fi
-
-}
-
-replace_conffile_with_symlink_commit () {
- # syntax: replace_conffile_with_symlink_commit oldfilename
- #
- # Complete the removal of a conffile "oldfilename" that has been
- # replaced by a symlink.
- #
- # Call this function from a postinst script after having used
- # replace_conffile_with_symlink_prepare() in the preinst.
-
- local conffile
-
- # validate arguments
- if [ $# -ne 1 ]; then
- usage_error "replace_conffile_with_symlink_commit() called with wrong" \
- "number of arguments; expected 1, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- conffile="$1"
-
- remove_conffile_commit "$conffile"
-}
-
-replace_conffile_with_symlink_rollback () {
- # syntax: replace_conffile_with_symlink_rollback oldfilename newfilename
- #
- # Roll back the replacing of a conffile "oldfilename" with symlink to
- # "newfilename".
- #
- # Call this function from a postrm script in the event $1 is "abort-upgrade"
- # or "abort-install" and verify $2 to ensure the package failed to upgrade
- # from a version (or install over a version removed-but-not-purged) prior
- # to the one in which the conffile was obsoleted.
- # You should have used replace_conffile_with_symlink_prepare() in the
- # preinst.
-
- local conffile
-
- # validate arguments
- if [ $# -ne 2 ]; then
- usage_error "replace_conffile_with_symlink_rollback() called with wrong" \
- "number of arguments; expected 2, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- oldconffile="$1"
- newconffile="$2"
-
- remove_conffile_rollback "$_oldconffile"
- if [ -f "$newconffile" ]; then
- rm "$newconffile"
- fi
-}
-
-run () {
- # syntax: run command [ argument ... ]
- #
- # Run specified command with optional arguments and report its exit status.
- # Useful for commands whose exit status may be nonzero, but still acceptable,
- # or commands whose failure is not fatal to us.
- #
- # NOTE: Do *not* use this function with db_get or db_metaget commands; in
- # those cases the return value of the debconf command *must* be checked
- # before the string returned by debconf is used for anything.
-
- local retval
-
- # validate arguments
- if [ $# -lt 1 ]; then
- usage_error "run() called with wrong number of arguments; expected at" \
- "least 1, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- "$@" || retval=$?
-
- if [ ${retval:-0} -ne 0 ]; then
- observe "command \"$*\" exited with status $retval"
- fi
-}
-
-make_symlink_sane () {
- # syntax: make_symlink_sane symlink target
- #
- # Ensure that the symbolic link symlink exists, and points to target.
- #
- # If symlink does not exist, create it and point it at target.
- #
- # If symlink exists but is not a symbolic link, back it up.
- #
- # If symlink exists, is a symbolic link, but points to the wrong location, fix
- # it.
- #
- # If symlink exists, is a symbolic link, and already points to target, do
- # nothing.
- #
- # This function wouldn't be needed if ln had an -I, --idempotent option.
-
- # Validate arguments.
- if [ $# -ne 2 ]; then
- usage_error "make_symlink_sane() called with wrong number of arguments;" \
- "expected 2, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- # We could just use the positional parameters as-is, but that makes things
- # harder to follow.
- local symlink target
-
- symlink="$1"
- target="$2"
-
- if [ -L "$symlink" ] && [ "$(readlink "$symlink")" = "$target" ]; then
- observe "link from $symlink to $target already exists"
- else
- observe "creating symbolic link from $symlink to $target"
- mkdir -p "${target%/*}" "${symlink%/*}"
- ln -s -b -S ".dpkg-old" "$target" "$symlink"
- fi
-}
-
-migrate_dir_to_symlink () {
- # syntax: migrate_dir_to_symlink old_location new_location
- #
- # Per Debian Policy section 6.5.4, "A directory will never be replaced by a
- # symbolic link to a directory or vice versa; instead, the existing state
- # (symlink or not) will be left alone and dpkg will follow the symlink if
- # there is one."
- #
- # We have to do it ourselves.
- #
- # This function moves the contents of old_location, a directory, into
- # new_location, a directory, then makes old_location a symbolic link to
- # new_location.
- #
- # old_location need not exist, but if it does, it must be a directory (or a
- # symlink to a directory). If it is not, it is backed up. If new_location
- # exists already and is not a directory, it is backed up.
- #
- # This function should be called from a package's preinst so that other
- # packages unpacked after this one --- but before this package's postinst runs
- # --- are unpacked into new_location even if their payloads contain
- # old_location filespecs.
-
- # Validate arguments.
- if [ $# -ne 2 ]; then
- usage_error "migrate_dir_to_symlink() called with wrong number of"
- "arguments; expected 2, got $#"
- exit $SHELL_LIB_USAGE_ERROR
- fi
-
- # We could just use the positional parameters as-is, but that makes things
- # harder to follow.
- local new old
-
- old="$1"
- new="$2"
-
- # Is old location a symlink?
- if [ -L "$old" ]; then
- # Does it already point to new location?
- if [ "$(readlink "$old")" = "$new" ]; then
- # Nothing to do; migration has already been done.
- observe "migration of $old to $new already done"
- return 0
- else
- # Back it up.
- warn "backing up symbolic link $old as $old.dpkg-old"
- mv -b "$old" "$old.dpkg-old"
- fi
- fi
-
- # Does old location exist, but is not a directory?
- if [ -e "$old" ] && ! [ -d "$old" ]; then
- # Back it up.
- warn "backing up non-directory $old as $old.dpkg-old"
- mv -b "$old" "$old.dpkg-old"
- fi
-
- observe "migrating $old to $new"
-
- # Is new location a symlink?
- if [ -L "$new" ]; then
- # Does it point the wrong way, i.e., back to where we're migrating from?
- if [ "$(readlink "$new")" = "$old" ]; then
- # Get rid of it.
- observe "removing symbolic link $new which points to $old"
- rm "$new"
- else
- # Back it up.
- warn "backing up symbolic link $new as $new.dpkg-old"
- mv -b "$new" "$new.dpkg-old"
- fi
- fi
-
- # Does new location exist, but is not a directory?
- if [ -e "$new" ] && ! [ -d "$new" ]; then
- warn "backing up non-directory $new as $new.dpkg-old"
- mv -b "$new" "$new.dpkg-old"
- fi
-
- # Create new directory if it does not yet exist.
- if ! [ -e "$new" ]; then
- observe "creating $new"
- mkdir -p "$new"
- fi
-
- # Copy files in old location to new location. Back up any filenames that
- # already exist in the new location with the extension ".dpkg-old".
- observe "copying files from $old to $new"
- if ! (cd "$old" && cp -a -b -S ".dpkg-old" . "$new"); then
- die "error(s) encountered while copying files from $old to $new"
- fi
-
- # Remove files at old location.
- observe "removing $old"
- rm -r "$old"
-
- # Create symlink from old location to new location.
- make_symlink_sane "$old" "$new"
-}
-
-# vim:set ai et sw=2 ts=2 tw=80:
-
-# GOBSTOPPER: The X Strike Force shell library ends here.
-#
-# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a
-# copy of this software and associated documentation files (the "Software"),
-# to deal in the Software without restriction, including without limitation
-# the rights to use, copy, modify, merge, publish, distribute, sublicense,
-# and/or sell copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice (including the next
-# paragraph) shall be included in all copies or substantial portions of the
-# Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-# DEALINGS IN THE SOFTWARE.
-#
if ENABLE_DOCS
-doc_sources = SMlib.xml xsmp.xml
-dist_doc_DATA = $(doc_sources)
-if HAVE_XMLTO
-doc_DATA = $(doc_sources:.xml=.html)
+# Main DocBook/XML files (DOCTYPE book)
+docbook = SMlib.xml xsmp.xml
-if HAVE_FOP
-doc_DATA += $(doc_sources:.xml=.ps) $(doc_sources:.xml=.pdf)
-endif
+# The location where the DocBook/XML files and their generated formats are installed
+shelfdir = $(docdir)
-if HAVE_XMLTO_TEXT
-doc_DATA += $(doc_sources:.xml=.txt)
-endif
+# Generate DocBook/XML output formats with or without stylesheets
+include $(top_srcdir)/docbook.am
-if HAVE_STYLESHEETS
-XMLTO_FLAGS = -m $(XSL_STYLESHEET)
-
-doc_DATA += xorg.css
-xorg.css: $(STYLESHEET_SRCDIR)/xorg.css
- $(AM_V_GEN)cp -pf $(STYLESHEET_SRCDIR)/xorg.css $@
-endif
-
-CLEANFILES = $(doc_DATA)
-
-SUFFIXES = .xml .ps .pdf .txt .html
-
-.xml.txt:
- $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) txt $<
-
-.xml.html:
- $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $<
-
-.xml.pdf:
- $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $<
-
-.xml.ps:
- $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop ps $<
-
-endif HAVE_XMLTO
endif ENABLE_DOCS
<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+<!ENTITY % defs SYSTEM "defs.ent"> %defs;
+]>
<!-- lifted from troff+ms+XMan by doclifter -->
-<book id="smlibms">
+<book id="SMlib">
<bookinfo>
<title>X Session Management Library</title>
<subtitle>X Consortium Standard</subtitle>
- <releaseinfo>X Version 11, Release 6.4</releaseinfo>
+ <releaseinfo>X Version 11, Release &fullrelvers;</releaseinfo>
<authorgroup>
<author>
<firstname>Ralph</firstname><surname>Mor</surname>
+ <affiliation><orgname>X Consortium</orgname></affiliation>
</author>
</authorgroup>
- <corpname>X Consortium Standard</corpname>
<copyright>
<year>1993</year><year>1994</year>
<holder>X Consortium</holder>
</copyright>
<releaseinfo>Version 1.0</releaseinfo>
- <affiliation><orgname>X Consortium</orgname></affiliation>
- <productnumber>X Version 11, Release 7</productnumber>
<legalnotice>
<para>
</bookinfo>
-<chapter id="overview_of_session_management">
+<chapter id='Overview_of_Session_Management'>
<title>Overview of Session Management</title>
<abstract>
</abstract>
</chapter>
-<chapter id='the_session_management_library'>
+<chapter id='The_Session_Management_Library'>
<title>The Session Management Library</title>
<abstract>
<para>
</para>
</chapter>
-<chapter id='understanding_smlibs_dependence_on_ice'>
+<chapter id='Understanding_SMlibs_Dependence_on_ICE'>
<title>Understanding SMlib's Dependence on ICE</title>
<para>
<para>
The ICE library utilizes callbacks to process messages. When a client
detects that there is data to read on an ICE connection, it should
-call the <function>IceProcessMessages</function> function.
-<function>IceProcessMessages</function> will read the message header
+call the <olink targetdoc='ICElib' targetptr='IceProcessMessages'><function>IceProcessMessages</function></olink> function.
+<olink targetdoc='ICElib' targetptr='IceProcessMessages'><function>IceProcessMessages</function></olink> will read the message header
and look at the major opcode in order to determine which protocol the
message was intended for. The appropriate protocol library will then
be triggered to unpack the message and hand it off to the client via a
connection. This can be done via a <function>select</function> call
on the file descriptor for the ICE connection, but more
typically, <function>XtAppAddInput</function> will be used to register
-a callback that will invoke <function>IceProcessMessages</function>
+a callback that will invoke <olink targetdoc='ICElib' targetptr='IceProcessMessages'><function>IceProcessMessages</function></olink>
each time there is data to read on the ICE connection.
</para>
To further complicate things, knowing which file descriptors to
call <function>select</function> on requires an understanding of how
ICE connections are created. On the client side, a call must be made
-to <function>SmcOpenConnection</function> in order to open a connection
-with a session manager. <function>SmcOpenConnection</function> will
-internally makea call into <function>IceOpenConnection</function>
+to <xref linkend='SmcOpenConnection' xrefstyle='select: title'/> in order to open a connection
+with a session manager. <xref linkend='SmcOpenConnection' xrefstyle='select: title'/> will
+internally makea call into <olink targetdoc='ICElib' targetptr='IceOpenConnection'><function>IceOpenConnection</function></olink>
which will, in turn, determine if an ICE connection already exists
between the client and session manager. Most likely, a connection
will not already exist and a new ICE connection will be created. The
On the session manager side, things work a bit differently. The
session manager has complete control over the creation of ICE
connections. The session manager has to first
-call <function>IceListenForConnections</function> in order to start
+call <olink targetdoc='ICElib' targetptr='IceListenForConnections'><function>IceListenForConnections</function></olink> in order to start
listening for connections from clients. Once a connection attempt is
-detected, <function>IceAcceptConnection</function> must be called, and
+detected, <olink targetdoc='ICElib' targetptr='IceAcceptConnection'><function>IceAcceptConnection</function></olink> must be called, and
the session manager can simply add the new ICE file descriptor to the
list of descriptors to call <function>select</function> on.
</para>
</chapter>
-<chapter id='header_files_and_library_name'>
+<chapter id='Header_Files_and_Library_Name'>
<title>Header Files and Library Name</title>
<para>
</para>
</chapter>
-<chapter id='session_management_client'>
+<chapter id='Session_Management_Client_Smc_Functions'>
<title>Session Management Client (<acronym>Smc</acronym>) Functions</title>
<para>
</itemizedlist>
</para>
- <sect1 id='connecting_to_the_session_manager'>
- <title>Connecting to the Session Manager</title>
+ <sect1 id='Connecting_to_the_Session_Manager'>
+<title>Connecting to the Session Manager</title>
<para>
To open a connection with a session manager,
-use <function>SmcOpenConnection</function>
+use <xref linkend='SmcOpenConnection' xrefstyle='select: title'/>
</para>
- <funcsynopsis>
+ <funcsynopsis id='SmcOpenConnection'>
<funcprototype>
<funcdef>SmcConn <function>SmcOpenConnection</function></funcdef>
<paramdef>char *<parameter>network_ids_list</parameter></paramdef>
the <envar>SESSION_MANAGER</envar> environment variable will be used.
Each network ID has the following format:
-<informaltable pgwide='0' frame='none'>
- <tgroup cols='3' align='center'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
+<informaltable frame='none'>
+ <?dbfo keep-together="always" ?>
+ <tgroup cols='2' align='left' colsep='0' rowsep='0'>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='1.5*'/>
<tbody>
<row>
- <entry align='left'></entry>
- <entry align='left'><literal>tcp/</literal><parameter><hostname></parameter><literal>:</literal><parameter><portnumber></parameter></entry>
- <entry align='left'>or</entry>
+ <entry><literal>tcp/</literal><parameter><hostname></parameter><literal>:</literal><parameter><portnumber></parameter></entry>
+ <entry>or</entry>
</row>
<row>
- <entry align='left'></entry>
- <entry align='left'><literal>decnet/</literal><parameter><hostname></parameter><literal>::</literal><parameter><objname></parameter></entry>
- <entry align='left'>or</entry>
+ <entry><literal>decnet/</literal><parameter><hostname></parameter><literal>::</literal><parameter><objname></parameter></entry>
+ <entry>or</entry>
</row>
<row>
- <entry align='left'></entry>
- <entry align='left'><literal>local/</literal><parameter><hostname></parameter><literal>:</literal><parameter><path></parameter></entry>
- <entry align='left'></entry>
+ <entry><literal>local/</literal><parameter><hostname></parameter><literal>:</literal><parameter><path></parameter></entry>
+ <entry></entry>
</row>
</tbody>
</tgroup>
</para>
<para>
-After the connection is established, <function>SmcOpenConnection</function>
+After the connection is established, <xref linkend='SmcOpenConnection' xrefstyle='select: title'/>
registers the client with the session manager. If the client is being
restarted from a previous session, <parameter>previous_id</parameter>
should contain a null terminated string representing the client ID from the
</para>
<para>
-If <function>SmcOpenConnection</function> succeeds, it returns an
+If <xref linkend='SmcOpenConnection' xrefstyle='select: title'/> succeeds, it returns an
opaque connection pointer of type <function>SmcConn</function> and the
<parameter>client_id_ret</parameter> argument contains the client ID to be
used for this session. The <parameter>client_id_ret</parameter> should be
freed with a call to <function>free</function> when no longer needed. On
-failure, <function>SmcOpenConnection</function> returns
+failure, <xref linkend='SmcOpenConnection' xrefstyle='select: title'/> returns
<constant>NULL</constant>, and the reason for failure is returned in
<parameter>error_string_ret</parameter>.
</para>
<para>
As previously discussed
-(<link linkend='understanding_smlibs_dependence_on_ice'>section 3,
+(<link linkend='Understanding_SMlibs_Dependence_on_ICE'>section 3,
“Understanding SMlib's Dependence on ICE”</link>), the
client will have to keep track of when ICE connections are created or
-destroyed (using <function>IceAddConnectionWatch</function>
-and <function>IceRemoveConnectionWatch</function> and will have to
-call <function>IceProcessMessages</function> each time
+destroyed (using <olink targetdoc='ICElib' targetptr='IceAddConnectionWatch'><function>IceAddConnectionWatch</function></olink>
+and <olink targetdoc='ICElib' targetptr='IceRemoveConnectionWatch'><function>IceRemoveConnectionWatch</function></olink> and will have to
+call <olink targetdoc='ICElib' targetptr='IceProcessMessages'><function>IceProcessMessages</function></olink> each time
a <function>select</function> shows that there is data to read on an
ICE connection. For further information, see the
<citetitle pubwork='article'>Inter-Client Exchange Library</citetitle>
} SmcCallbacks;
</synopsis>
- <sect2 id='the_save_yourself_callback'>
- <title>The Save Yourself Callback</title>
+ <sect2 id='The_Save_Yourself_Callback'>
+<title>The Save Yourself Callback</title>
<para>
The Save Yourself callback is of type <function>SmcSaveYourselfProc</function>
</para>
-<funcsynopsis>
+<funcsynopsis id='SaveYourselfProc'>
<funcprototype>
<funcdef>typedef void (*<function>SaveYourselfProc</function>)</funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
The session manager sends a “Save Yourself” message to a
client either to checkpoint it or just before termination so that it
can save its state. The client responds with zero or more calls
-to <function>SmcSetProperties</function> to update the properties
+to <xref linkend='SmcSetProperties' xrefstyle='select: title'/> to update the properties
indicating how to restart the client. When all the properties have
-been set, the client calls <function>SmcSaveYourselfDone</function>
+been set, the client calls <xref linkend='SmcSaveYourselfDone' xrefstyle='select: title'/>
</para>
<para>
<constant>SmInteractStyleAny</constant> then the
client may interact with the user for any purpose. Because only one
client can interact with the user at a time, the client must
-call <function>SmcInteractRequest</function> and wait for an
+call <xref linkend='SmcInteractRequest' xrefstyle='select: title'/> and wait for an
“Interact” message from the session manager. When the
client is done interacting with the user, it
-calls <function>SmcInteractDone</function> The client may only
-call <function>SmcInteractRequest</function> after it receives a
+calls <xref linkend='SmcInteractDone' xrefstyle='select: title'/> The client may only
+call <xref linkend='SmcInteractRequest' xrefstyle='select: title'/> after it receives a
“Save Yourself” message and before it
-calls <function>SmcSaveYourselfDone</function>
+calls <xref linkend='SmcSaveYourselfDone' xrefstyle='select: title'/>
</para>
<para>
</para>
</sect2>
- <sect2 id='the_die_callback'>
- <title>The Die Callback</title>
+ <sect2 id='The_Die_Callback'>
+<title>The Die Callback</title>
<para>
-The Die callback is of type <function>SmcDieProc</function>
+The Die callback is of type <xref linkend='SmcDieProc' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcDieProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmcDieProc</function>)</funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
<para>
The session manager sends a “Die” message to a client when
it wants it to die. The client should respond by calling
-<function>SmcCloseConnection</function>. A session manager that
+<xref linkend='SmcCloseConnection' xrefstyle='select: title'/>. A session manager that
behaves properly will send a “Save Yourself” message
before the “Die” message.
</para>
</sect2>
- <sect2 id='the_save_complete_callback'>
- <title>The Save Complete Callback</title>
+ <sect2 id='The_Save_Complete_Callback'>
+<title>The Save Complete Callback</title>
<para>
-The Save Complete callback is of type <function>SmcSaveCompleteProc</function>
+The Save Complete callback is of type <xref linkend='SmcSaveCompleteProc' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcSaveCompleteProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmcSaveCompleteProc</function>)</funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</sect2>
- <sect2 id='the_shutdown_cancelled_callback'>
- <title>The Shutdown Cancelled Callback</title>
+ <sect2 id='The_Shutdown_Cancelled_Callback'>
+<title>The Shutdown Cancelled Callback</title>
<para>
The Shutdown Cancelled callback is of type
-<function>SmcShutdownCancelledProc</function>
+<xref linkend='SmcShutdownCancelledProc' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcShutdownCancelledProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmcShutdownCancelledProc</function>)</funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
<para>
The session manager sends a “Shutdown Cancelled” message
when the user cancelled the shutdown during an interaction
-(see <link linkend='interacting_with_the_user'>section 5.5,
+(see <link linkend='Interacting_With_the_User'>section 5.5,
“Interacting With the User”</link>). The client can now
continue as if the shutdown had never happened. If the client has not
-called <function>SmcSaveYourselfDone</function> yet, it can either
-abort the save and then call <function>SmcSaveYourselfDone</function>
+called <xref linkend='SmcSaveYourselfDone' xrefstyle='select: title'/> yet, it can either
+abort the save and then call <xref linkend='SmcSaveYourselfDone' xrefstyle='select: title'/>
with the success argument set to <constant>False</constant> or it can
-continue with the save and then call <function>SmcSaveYourselfDone</function>
+continue with the save and then call <xref linkend='SmcSaveYourselfDone' xrefstyle='select: title'/>
with the <parameter>success</parameter> argument set to reflect the outcome
of the save.
</para>
</sect2>
</sect1>
- <sect1 id='closing_the_connection'><title>Closing the Connection</title>
+ <sect1 id='Closing_the_Connection'>
+<title>Closing the Connection</title>
<para>
To close a connection with a session manager,
-use <function>SmcCloseConnection</function>
+use <xref linkend='SmcCloseConnection' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcCloseConnection'>
<funcprototype>
<funcdef>SmcCloseStatus <function>SmcCloseConnection</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
Note that SMlib used the ICE protocol to establish a connection with
the session manager, and various protocols other than session
management may be active on the ICE connection.
-When <function>SmcCloseConnection</function> is called, the ICE
+When <xref linkend='SmcCloseConnection' xrefstyle='select: title'/> is called, the ICE
connection will be closed only if all protocols have been shutdown on
the connection. Check the ICElib standard
-for <function>IceAddConnectionWatch</function>
-and <function>IceRemoveConnectionWatch</function> to learn how to set
+for <olink targetdoc='ICElib' targetptr='IceAddConnectionWatch'><function>IceAddConnectionWatch</function></olink>
+and <olink targetdoc='ICElib' targetptr='IceRemoveConnectionWatch'><function>IceRemoveConnectionWatch</function></olink> to learn how to set
up a callback to be invoked each time an ICE connection is opened or
closed. Typically this callback adds/removes the ICE file descriptor
from the list of active descriptors to call <function>select</function> on
<para>
-<function>SmcCloseConnection</function> returns one of the following values:
+<xref linkend='SmcCloseConnection' xrefstyle='select: title'/> returns one of the following values:
<itemizedlist mark='bullet'>
<listitem><para>
</para></listitem>
<listitem><para>
<constant>SmcClosedASAP</constant> - an IO error had occurred on the
-connection, but <function>SmcCloseConnection</function> is being
-called within a nested <function>IceProcessMessages</function> The
+connection, but <xref linkend='SmcCloseConnection' xrefstyle='select: title'/> is being
+called within a nested <olink targetdoc='ICElib' targetptr='IceProcessMessages'><function>IceProcessMessages</function></olink> The
watch procedures have been invoked at this time, but the connection
will be freed as soon as possible (when the nesting level reaches zero
-and <function>IceProcessMessages</function> returns a status
+and <olink targetdoc='ICElib' targetptr='IceProcessMessages'><function>IceProcessMessages</function></olink> returns a status
of <function>IceProcessMessagesConnectionClosed</function>
</para> </listitem>
<listitem><para>
</sect1>
- <sect1 id='modifying_callbacks'>
- <title>Modifying Callbacks</title>
+ <sect1 id='Modifying_Callbacks'>
+<title>Modifying Callbacks</title>
<para>
-To modify callbacks set up in <function>SmcOpenConnection</function>
-use <function>SmcModifyCallbacks</function>
+To modify callbacks set up in <xref linkend='SmcOpenConnection' xrefstyle='select: title'/>
+use <xref linkend='SmcModifyCallbacks' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcModifyCallbacks'>
<funcprototype>
<funcdef>void <function>SmcModifyCallbacks</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</para>
</sect1>
- <sect1 id='setting_deleting_and_retrieving_session_management_properties'>
- <title>Setting, Deleting, and Retrieving Session Management Properties</title>
+ <sect1 id='Setting_Deleting_and_Retrieving_Session_Management_Properties'>
+<title>Setting, Deleting, and Retrieving Session Management Properties</title>
<para>
To set session management properties for this client,
-use <function>SmcSetProperties</function>
+use <xref linkend='SmcSetProperties' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcSetProperties'>
<funcprototype>
<funcdef>void <function>SmcSetProperties</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
<para>
The properties are specified as an array of property pointers.
Previously set property values may be over-written using
-the <function>SmcSetProperties</function> function. Note that the
+the <xref linkend='SmcSetProperties' xrefstyle='select: title'/> function. Note that the
session manager is not expected to restore property values when the
session is restarted. Because of this, clients should not try to use
the session manager as a database for storing application specific state.
<para>
For a description of session management properties and
the <structname>SmProp</structname> structure,
-see <link linkend='session_management_properties'>section 7,
+see <link linkend='Session_Management_Properties'>section 7,
“Session Management Properties.”</link>
</para>
<para>
To delete properties previously set by the client,
-use <function>SmcDeleteProperties</function>
+use <xref linkend='SmcDeleteProperties' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcDeleteProperties'>
<funcprototype>
<funcdef>void <function>SmcDeleteProperties</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
<para>
To get properties previously stored by the client,
-use <function>SmcGetProperties</function>
+use <xref linkend='SmcGetProperties' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcGetProperties'>
<funcprototype>
<funcdef>Status <function>SmcGetProperties</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</varlistentry>
<varlistentry>
<term><parameter>client_data</parameter></term>
- <listitem><para>This pointer to client data will be passed to the <function>SmcPropReplyProc</function> callback.</para></listitem>
+ <listitem><para>This pointer to client data will be passed to the <xref linkend='SmcPropReplyProc' xrefstyle='select: title'/> callback.</para></listitem>
</varlistentry>
</variablelist>
<para>
-The return value of <function>SmcGetProperties</function> is zero for
+The return value of <xref linkend='SmcGetProperties' xrefstyle='select: title'/> is zero for
failure and a positive value for success.
</para>
<para>
Note that the library does not block until the properties reply comes
-back. Rather, a callback of type <function>SmcPropReplyProc</function>
+back. Rather, a callback of type <xref linkend='SmcPropReplyProc' xrefstyle='select: title'/>
is invoked when the data is ready.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcPropReplyProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmcPropReplyProc</function>)</funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</varlistentry>
<varlistentry>
<term><parameter>client_data</parameter></term>
- <listitem><para>This pointer to client data will be passed to the <function>SmcPropReplyProc</function> callback.</para></listitem>
+ <listitem><para>This pointer to client data will be passed to the <xref linkend='SmcPropReplyProc' xrefstyle='select: title'/> callback.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>num_props</parameter></term>
</variablelist>
<para>
-To free each property, use <function>SmFreeProperty</function>
-(see <link linkend='freeing_data'>section 8, “Freeing
+To free each property, use <xref linkend='SmFreeProperty' xrefstyle='select: title'/>
+(see <link linkend='Freeing_Data'>section 8, “Freeing
Data”</link>). To free the actual array of pointers,
use <function>free</function>
</para>
</sect1>
- <sect1 id='interacting_with_the_user'>
- <title>Interacting With the User</title>
+ <sect1 id='Interacting_With_the_User'>
+<title>Interacting With the User</title>
<para>
After receiving a “Save Yourself” message with an
<constant>SmInteractStyleErrors</constant>
or <constant>SmInteractStyleAny</constant> the client may choose to
interact with the user. Because only one client can interact with the
-user at a time, the client must call <function>SmcInteractRequest</function>
+user at a time, the client must call <xref linkend='SmcInteractRequest' xrefstyle='select: title'/>
and wait for an “Interact” message from the session manager.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcInteractRequest'>
<funcprototype>
<funcdef>Status <function>SmcInteractRequest</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
<term><parameter>client_data</parameter></term>
<listitem><para>
This pointer to client data will be passed to
-the <function>SmcInteractProc</function> callback when the
+the <xref linkend='SmcInteractProc' xrefstyle='select: title'/> callback when the
“Interact” message arrives.
</para></listitem>
</varlistentry>
</variablelist>
<para>
-The return value of <function>SmcInteractRequest</function> is zero
+The return value of <xref linkend='SmcInteractRequest' xrefstyle='select: title'/> is zero
for failure and a positive value for success.
</para>
</para>
<para>
-The <function>SmcInteractProc</function> callback will be invoked when
+The <xref linkend='SmcInteractProc' xrefstyle='select: title'/> callback will be invoked when
the “Interact” message arrives from the session manager.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcInteractProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmcInteractProc</function>)</funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
<para>
After interacting with the user (in response to an “Interact”
-message), you should call <function>SmcInteractDone</function>
+message), you should call <xref linkend='SmcInteractDone' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcInteractDone'>
<funcprototype>
<funcdef>void <function>SmcInteractDone</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</para>
</sect1>
- <sect1 id='requesting_a_save_yourself'>
- <title>Requesting a Save Yourself</title>
+ <sect1 id='Requesting_a_Save_Yourself'>
+<title>Requesting a Save Yourself</title>
<para>
To request a checkpoint from the session manager,
-use <function>SmcRequestSaveYourself</function>
+use <xref linkend='SmcRequestSaveYourself' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcRequestSaveYourself'>
<funcprototype>
<funcdef>void <function>SmcRequestSaveYourself</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
The <parameter>save_type</parameter>, <parameter>shutdown</parameter>,
<parameter>interact_style</parameter>, and <parameter>fast</parameter>
arguments are discussed in more detail in
-<link linkend='the_save_yourself_callback'>section 5.1.1,
+<link linkend='The_Save_Yourself_Callback'>section 5.1.1,
“The Save Yourself Callback.”</link>
</para>
</para>
</sect1>
- <sect1 id='requesting_a_save_yourself_phase_2'>
- <title>Requesting a Save Yourself Phase 2</title>
+ <sect1 id='Requesting_a_Save_Yourself_Phase_2_2'>
+<title>Requesting a Save Yourself Phase 2</title>
<para>
In response to a “Save Yourself”, the client may request to be
informed when all the other clients are quiescent so that it can save their
-state. To do so, use <function>SmcRequestSaveYourselfPhase2</function>
+state. To do so, use <xref linkend='SmcRequestSaveYourselfPhase2' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcRequestSaveYourselfPhase2'>
<funcprototype>
<funcdef>Status <function>SmcRequestSaveYourselfPhase2</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</variablelist>
<para>
-The return value of <function>SmcRequestSaveYourselfPhase2</function>
+The return value of <xref linkend='SmcRequestSaveYourselfPhase2' xrefstyle='select: title'/>
is zero for failure and a positive value for success.
</para>
</para>
</sect1>
- <sect1 id='completing_a_save_yourself'>
- <title>Completing a Save Yourself</title>
+ <sect1 id='Completing_a_Save_Yourself'>
+<title>Completing a Save Yourself</title>
<para>
After saving state in response to a “Save Yourself”
-message, you should call <function>SmcSaveYourselfDone</function>
+message, you should call <xref linkend='SmcSaveYourselfDone' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcSaveYourselfDone'>
<funcprototype>
<funcdef>void <function>SmcSaveYourselfDone</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</variablelist>
<para>
-Before calling <function>SmcSaveYourselfDone</function> the client
+Before calling <xref linkend='SmcSaveYourselfDone' xrefstyle='select: title'/> the client
must have set each required property at least once since the client
registered with the session manager.
</para>
</sect1>
- <sect1 id='using_smc_informational_functions'>
- <title>Using Smc Informational Functions</title>
+ <sect1 id='Using_Smc_Informational_Functions'>
+<title>Using Smc Informational Functions</title>
-<funcsynopsis>
+<funcsynopsis id='SmcProtocolVersion'>
<funcprototype>
<funcdef>int <function>SmcProtocolVersion</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmcProtocolVersion</function> returns the major version of
+<xref linkend='SmcProtocolVersion' xrefstyle='select: title'/> returns the major version of
the session management protocol associated with this session.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcProtocolRevision'>
<funcprototype>
<funcdef>int <function>SmcProtocolRevision</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmcProtocolRevision</function> returns the minor version of
+<xref linkend='SmcProtocolRevision' xrefstyle='select: title'/> returns the minor version of
the session management protocol associated with this session.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcVendor'>
<funcprototype>
<funcdef>char *<function>SmcVendor</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmcVendor</function> returns a string that provides some
+<xref linkend='SmcVendor' xrefstyle='select: title'/> returns a string that provides some
identification of the owner of the session manager. The string should
be freed with a call to <function>free</function>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcRelease'>
<funcprototype>
<funcdef>char *<function>SmcRelease</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmcRelease</function> returns a string that provides the
+<xref linkend='SmcRelease' xrefstyle='select: title'/> returns a string that provides the
release number of the session manager. The string should be freed
with a call to <function>free</function>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcClientID'>
<funcprototype>
<funcdef>char *<function>SmcClientID</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmcClientID</function> returns a null-terminated string for
+<xref linkend='SmcClientID' xrefstyle='select: title'/> returns a null-terminated string for
the client ID associated with this connection. This information was
-also returned in <function>SmcOpenConnection</function> (it is
+also returned in <xref linkend='SmcOpenConnection' xrefstyle='select: title'/> (it is
provided here for convenience). Call <function>free</function> on
this pointer when the client ID is no longer needed.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcGetIceConnection'>
<funcprototype>
<funcdef>IceConn <function>SmcGetIceConnection</function></funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmcGetIceConnection</function> returns the ICE connection
+<xref linkend='SmcGetIceConnection' xrefstyle='select: title'/> returns the ICE connection
object associated with this session management connection object. The
ICE connection object can be used to get some additional information
about the connection. Some of the more useful functions which can be
used on the IceConn are <function>IceConnectionNumber</function>,
<function>IceConnectionString</function>,
-<function>IceLastSentSequenceNumber</function>,
+<olink targetdoc='ICElib' targetptr='IceLastSentSequenceNumber'><function>IceLastSentSequenceNumber</function></olink>,
<function>IceLastReceivedSequenceNumber</function>,
-and <function>IcePing</function>. For further information, see
+and <olink targetdoc='ICElib' targetptr='IcePing'><function>IcePing</function></olink>. For further information, see
the <citetitle pubwork='article'>Inter-Client Exchange Library</citetitle>
standard.
</para>
</sect1>
- <sect1 id='error_handling'>
- <title>Error Handling</title>
+ <sect1 id='Error_Handling'>
+<title>Error Handling</title>
<para>
If the client receives an unexpected protocol error from the session
handler exists that simply prints the error message
to <varname>stderr</varname> and exits if the severity of the error
is fatal. The client can change this error handler by calling
-the <function>SmcSetErrorHandler</function> function.
+the <xref linkend='SmcSetErrorHandler' xrefstyle='select: title'/> function.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcSetErrorHandler'>
<funcprototype>
<funcdef>SmcErrorHandler <function>SmcSetErrorHandler</function></funcdef>
<paramdef>SmcErrorHandler <parameter>handler</parameter></paramdef>
<para>
-<function>SmcSetErrorHandler</function> returns the previous error handler.
+<xref linkend='SmcSetErrorHandler' xrefstyle='select: title'/> returns the previous error handler.
</para>
<para>
-The <function>SmcErrorHandler</function> has the following type:
+The <xref linkend='SmcErrorHandler' xrefstyle='select: title'/> has the following type:
</para>
-<funcsynopsis>
+<funcsynopsis id='SmcErrorHandler'>
<funcprototype>
<funcdef>typedef void (*<function>SmcErrorHandler</function>)</funcdef>
<paramdef>SmcConn <parameter>smc_conn</parameter></paramdef>
<para>
Note that this error handler is invoked for protocol related errors.
To install an error handler to be invoked when an IO error occurs, use
-<function>IceSetIOErrorHandler</function> For further information, see
+<olink targetdoc='ICElib' targetptr='IceSetIOErrorHandler'><function>IceSetIOErrorHandler</function></olink> For further information, see
the <citetitle pubwork='article'>Inter-Client Exchange Library</citetitle>
standard.
</para>
</sect1>
</chapter>
-<chapter id='session_management_server'>
+<chapter id='Session_Management_Server_Sms_Functions'>
<title>Session Management Server (<acronym>Sms</acronym>) Functions</title>
<para>
</itemizedlist>
</para>
- <sect1 id='initializing_the_library'>
- <title>Initializing the Library</title>
+ <sect1 id='Initializing_the_Library'>
+<title>Initializing the Library</title>
<para>
-<function>SmsInitialize</function> is the first SMlib function that
+<xref linkend='SmsInitialize' xrefstyle='select: title'/> is the first SMlib function that
should be called by a session manager. It provides information about
the session manager and registers a callback that will be invoked each
time a new client connects to the session manager.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsInitialize'>
<funcprototype>
<funcdef>Status <function>SmsInitialize</function></funcdef>
- <paramdef>char *<parameter>vendor</parameter></paramdef>
- <paramdef>char *<parameter>release</parameter></paramdef>
+ <paramdef>const char *<parameter>vendor</parameter></paramdef>
+ <paramdef>const char *<parameter>release</parameter></paramdef>
<paramdef>SmsNewClientProc <parameter>new_client_proc</parameter></paramdef>
<paramdef>SmPointer <parameter>manager_data</parameter></paramdef>
<paramdef>IceHostBasedAuthProc <parameter>host_based_auth_proc</parameter></paramdef>
</varlistentry>
<varlistentry>
<term><parameter>manager_data</parameter></term>
- <listitem><para>When the <function>SmsNewClientProc</function> callback is invoked, this pointer to manager data will be passed.</para></listitem>
+ <listitem><para>When the <xref linkend='SmsNewClientProc' xrefstyle='select: title'/> callback is invoked, this pointer to manager data will be passed.</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>host_based_auth_proc</parameter></term>
</variablelist>
<para>
-After the <function>SmsInitialize</function> function is called, the
-session manager should call the <function>IceListenForConnections</function>
+After the <xref linkend='SmsInitialize' xrefstyle='select: title'/> function is called, the
+session manager should call the <olink targetdoc='ICElib' targetptr='IceListenForConnections'><function>IceListenForConnections</function></olink>
function to listen for new connections. Afterwards, each time a
client connects, the session manager should
-call <function>IceAcceptConnection</function>
+call <olink targetdoc='ICElib' targetptr='IceAcceptConnection'><function>IceAcceptConnection</function></olink>
</para>
<para>
-See <link linkend='authentication_of_clients'>section 9,
+See <link linkend='Authentication_of_Clients'>section 9,
“Authentication of Clients,”</link> for more details on
authentication (including host based authentication). Also see
the <citetitle pubwork='article'>Inter-Client Exchange
<para>
Each time a new client connects to the session manager,
-the <function>SmsNewClientProc</function> callback is invoked. The
+the <xref linkend='SmsNewClientProc' xrefstyle='select: title'/> callback is invoked. The
session manager obtains a new opaque connection object that it should
use for all future interaction with the client. At this time, the
session manager must also register a set of callbacks to respond to
the different messages that the client might send.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsNewClientProc'>
<funcprototype>
<funcdef>typedef Status (*<function>SmsNewClientProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</variablelist>
<para>
-If a failure occurs, the <function>SmsNewClientProc</function> should
+If a failure occurs, the <xref linkend='SmsNewClientProc' xrefstyle='select: title'/> should
return a zero status as well as allocate and return a failure reason
string in <parameter>failure_reason_ret</parameter>.
SMlib will be responsible for freeing this memory.
} SmsCallbacks;
</synopsis>
- <sect2 id='the_register_client_callback'>
- <title>The Register Client Callback</title>
+ <sect2 id='The_Register_Client_Callback'>
+<title>The Register Client Callback</title>
<para>
The Register Client callback is the first callback that will be
invoked after the client connects to the session manager. Its type
-is <function>SmsRegisterClientProc</function>
+is <xref linkend='SmsRegisterClientProc' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsRegisterClientProc'>
<funcprototype>
<funcdef>typedef Status (*<function>SmsRegisterClientProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
<para>
Otherwise, the session manager should register the client with a unique
-client ID by calling the <function>SmsRegisterClientReply</function>
+client ID by calling the <xref linkend='SmsRegisterClientReply' xrefstyle='select: title'/>
function (to be discussed shortly), and the
-<function>SmsRegisterClientProc</function> callback should return a
+<xref linkend='SmsRegisterClientProc' xrefstyle='select: title'/> callback should return a
status of one.
</para>
</sect2>
- <sect2 id='the_interact_request_callback'>
- <title>The Interact Request Callback</title>
+ <sect2 id='The_Interact_Request_Callback'>
+<title>The Interact Request Callback</title>
<para>
The Interact Request callback is of
-type <function>SmsInteractRequestProc</function>
+type <xref linkend='SmsInteractRequestProc' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsInteractRequestProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmsInteractRequestProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect2>
- <sect2 id='the_interact_done_callback'>
- <title>The Interact Done Callback</title>
+ <sect2 id='The_Interact_Done_Callback'>
+<title>The Interact Done Callback</title>
<para>
When the client is done interacting with the user,
-the <function>SmsInteractDoneProc</function> callback will be invoked.
+the <xref linkend='SmsInteractDoneProc' xrefstyle='select: title'/> callback will be invoked.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsInteractDoneProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmsInteractDoneProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</sect2>
- <sect2 id='the_save_yourself_request_callback'>
- <title>The Save Yourself Request Callback</title>
+ <sect2 id='The_Save_Yourself_Request_Callback'>
+<title>The Save Yourself Request Callback</title>
<para>
The Save Yourself Request callback is of
type <function>SmsSaveYourselfRequestProc</function>
</para>
-<funcsynopsis>
+<funcsynopsis id='SaveYourselfRequestProc'>
<funcprototype>
<funcdef>typedef void (*<function>SaveYourselfRequestProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
checkpoint or shutdown. For information on the
<parameter>save_type</parameter>, <parameter>shutdown</parameter>,
<parameter>interact_style</parameter>, and <parameter>fast</parameter>
-arguments, see <link linkend='sending_a_save_yourself_message'>section 6.3,
+arguments, see <link linkend='Sending_a_Save_Yourself_Message'>section 6.3,
“Sending a Save Yourself Message.”</link>
</para>
</para>
</sect2>
- <sect2 id='the_save_yourself_phase_2_request_callback'>
- <title>The Save Yourself Phase 2 Request Callback</title>
+ <sect2 id='The_Save_Yourself_Phase_2_Request_Callback'>
+<title>The Save Yourself Phase 2 Request Callback</title>
<para>
The Save Yourself Phase 2 Request callback is of
-type <function>SmsSaveYourselfPhase2RequestProc</function>
+type <xref linkend='SmsSaveYourselfPhase2RequestProc' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsSaveYourselfPhase2RequestProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmsSaveYourselfPhase2RequestProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect2>
- <sect2 id='the_save_yourself_done_callback'>
- <title>The Save Yourself Done Callback</title>
+ <sect2 id='The_Save_Yourself_Done_Callback'>
+<title>The Save Yourself Done Callback</title>
<para>
When the client is done saving its state in response to a
the <function>SmsSaveYourselfDoneProc</function> will be invoked.
</para>
-<funcsynopsis>
+<funcsynopsis id='SaveYourselfDoneProc'>
<funcprototype>
<funcdef>typedef void (*<function>SaveYourselfDoneProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect2>
- <sect2 id='the_connection_closed_callback'>
- <title>The Connection Closed Callback</title>
+ <sect2 id='The_Connection_Closed_Callback'>
+<title>The Connection Closed Callback</title>
<para>
If the client properly terminates (that is, it
-calls <function>SmcCloseConnection</function>,
-the <function>SmsCloseConnectionProc</function> callback is invoked.
+calls <xref linkend='SmcCloseConnection' xrefstyle='select: title'/>,
+the <xref linkend='SmsCloseConnectionProc' xrefstyle='select: title'/> callback is invoked.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsCloseConnectionProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmsCloseConnectionProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
<para>
-Call <function>SmFreeReasons</function> to free the reason messages.
+Call <xref linkend='SmFreeReasons' xrefstyle='select: title'/> to free the reason messages.
For further information, see
-<link linkend='freeing_data'>section 8, “Freeing Data”</link>
+<link linkend='Freeing_Data'>section 8, “Freeing Data”</link>
</para>
</sect2>
- <sect2 id='the_set_properties_callback'>
- <title>The Set Properties Callback</title>
+ <sect2 id='The_Set_Properties_Callback'>
+<title>The Set Properties Callback</title>
<para>
When the client sets session management properties,
-the <function>SmsSetPropertiesProc</function> callback will be invoked.
+the <xref linkend='SmsSetPropertiesProc' xrefstyle='select: title'/> callback will be invoked.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsSetPropertiesProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmsSetPropertiesProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
The properties are specified as an array of property pointers. For a
description of session management properties and
the <structname>SmProp</structname> structure,
-see <link linkend='session_management_properties'>section 7,
+see <link linkend='Session_Management_Properties'>section 7,
“Session Management Properties.”</link>
</para>
</para>
<para>
-To free each property, use <function>SmFreeProperty</function>.
-For further information, see <link linkend='freeing_data'>section 8,
+To free each property, use <xref linkend='SmFreeProperty' xrefstyle='select: title'/>.
+For further information, see <link linkend='Freeing_Data'>section 8,
“Freeing Data”</link> You should free the actual array of
pointers with a call to <function>free</function>
</para>
</sect2>
- <sect2 id='the_delete_properties_callback'>
- <title>The Delete Properties Callback</title>
+ <sect2 id='The_Delete_Properties_Callback'>
+<title>The Delete Properties Callback</title>
<para>
When the client deletes session management properties,
-the <function>SmsDeletePropertiesProc</function> callback will be invoked.
+the <xref linkend='SmsDeletePropertiesProc' xrefstyle='select: title'/> callback will be invoked.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsDeletePropertiesProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmsDeletePropertiesProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
The properties are specified as an array of strings. For a
description of session management properties and
the <structname>SmProp</structname> structure,
-see <link linkend='session_management_properties'>section 7,
+see <link linkend='Session_Management_Properties'>section 7,
“Session Management Properties.”</link>
</para>
</sect2>
- <sect2 id='the_get_properties_callback'>
- <title>The Get Properties Callback</title>
+ <sect2 id='The_Get_Properties_Callback'>
+<title>The Get Properties Callback</title>
<para>
-The <function>SmsGetPropertiesProc</function> callback is invoked when
+The <xref linkend='SmsGetPropertiesProc' xrefstyle='select: title'/> callback is invoked when
the client wants to retrieve properties it set.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsGetPropertiesProc'>
<funcprototype>
<funcdef>typedef void (*<function>SmsGetPropertiesProc</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
<para>
The session manager should respond by
-calling <function>SmsReturnProperties</function>.
+calling <xref linkend='SmsReturnProperties' xrefstyle='select: title'/>.
All of the properties set for this client should be returned.
</para>
</sect2>
</sect1>
- <sect1 id='registering_the_client'>
- <title>Registering the Client</title>
+ <sect1 id='Registering_the_Client'>
+<title>Registering the Client</title>
<para>
To register a client (in response to
-a <function>SmsRegisterClientProc</function> callback),
-use <function>SmsRegisterClientReply</function>.
+a <xref linkend='SmsRegisterClientProc' xrefstyle='select: title'/> callback),
+use <xref linkend='SmsRegisterClientReply' xrefstyle='select: title'/>.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsRegisterClientReply'>
<funcprototype>
<funcdef>Status <function>SmsRegisterClientReply</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</variablelist>
<para>
-The return value of <function>SmsRegisterClientReply</function> is
+The return value of <xref linkend='SmsRegisterClientReply' xrefstyle='select: title'/> is
zero for failure and a positive value for success. Failure will occur
if SMlib can not allocate memory to hold a copy of the client ID for
it's own internal needs.
</para>
<para>
-You should call the <function>SmsGenerateClientID</function> function
+You should call the <xref linkend='SmsGenerateClientID' xrefstyle='select: title'/> function
to generate a globally unique client ID.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsGenerateClientID'>
<funcprototype>
<funcdef>char *<function>SmsGenerateClientID</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect1>
- <sect1 id='sending_a_save_yourself_message'>
- <title>Sending a Save Yourself Message</title>
+ <sect1 id='Sending_a_Save_Yourself_Message'>
+<title>Sending a Save Yourself Message</title>
<para>
To send a “Save Yourself” to a client,
-use <function>SmsSaveYourself</function>.
+use <xref linkend='SmsSaveYourself' xrefstyle='select: title'/>.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsSaveYourself'>
<funcprototype>
<funcdef>void <function>SmsSaveYourself</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect1>
- <sect1 id='sending_a_save_yourself_phase_2_message'>
- <title>Sending a Save Yourself Phase 2 Message</title>
+ <sect1 id='Sending_a_Save_Yourself_Phase_2_Message'>
+<title>Sending a Save Yourself Phase 2 Message</title>
<para>
In order to send a “Save Yourself Phase 2” message to a
-client, use <function>SmsSaveYourselfPhase2</function>
+client, use <xref linkend='SmsSaveYourselfPhase2' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsSaveYourselfPhase2'>
<funcprototype>
<funcdef>void <function>SmsSaveYourselfPhase2</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect1>
- <sect1 id='sending_an_interact_message'>
- <title>Sending an Interact Message</title>
+ <sect1 id='Sending_an_Interact_Message'>
+<title>Sending an Interact Message</title>
<para>
To send an “Interact” message to a client,
-use <function>SmsInteract</function>.
+use <xref linkend='SmsInteract' xrefstyle='select: title'/>.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsInteract'>
<funcprototype>
<funcdef>void <function>SmsInteract</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect1>
- <sect1 id='sending_a_save_complete_message'>
- <title>Sending a Save Complete Message</title>
+ <sect1 id='Sending_a_Save_Complete_Message'>
+<title>Sending a Save Complete Message</title>
<para>
To send a “Save Complete” message to a client,
-use <function>SmsSaveComplete</function>.
+use <xref linkend='SmsSaveComplete' xrefstyle='select: title'/>.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsSaveComplete'>
<funcprototype>
<funcdef>void <function>SmsSaveComplete</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect1>
- <sect1 id='sending_a_die_message'>
- <title>Sending a Die Message</title>
+ <sect1 id='Sending_a_Die_Message'>
+<title>Sending a Die Message</title>
<para>
To send a “Die” message to a client,
-use <function>SmsDie</function>.
+use <xref linkend='SmsDie' xrefstyle='select: title'/>.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsDie'>
<funcprototype>
<funcdef>void <function>SmsDie</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</para>
</sect1>
- <sect1 id='cancelling_a_shutdown'>
- <title>Cancelling a Shutdown</title>
+ <sect1 id='Cancelling_a_Shutdown'>
+<title>Cancelling a Shutdown</title>
<para>
-To cancel a shutdown, use <function>SmsShutdownCancelled</function>.
+To cancel a shutdown, use <xref linkend='SmsShutdownCancelled' xrefstyle='select: title'/>.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsShutdownCancelled'>
<funcprototype>
<funcdef>void <function>SmsShutdownCancelled</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</sect1>
<!-- aaaaaaaaaaaaaaaaa -->
- <sect1 id='returning_properties'>
- <title>Returning Properties</title>
+ <sect1 id='Returning_Properties'>
+<title>Returning Properties</title>
<para>
In response to a “Get Properties” message, the session
-manager should call <function>SmsReturnProperties</function>.
+manager should call <xref linkend='SmsReturnProperties' xrefstyle='select: title'/>.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsReturnProperties'>
<funcprototype>
<funcdef>void <function>SmsReturnProperties</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
The properties are returned as an array of property pointers. For a
description of session management properties and
the <structname>SmProp</structname> structure,
-see <link linkend='session_management_properties'>section 7,
+see <link linkend='Session_Management_Properties'>section 7,
“Session Management Properties.”</link>
</para>
</sect1>
- <sect1 id='pinging_a_client'>
- <title>Pinging a Client</title>
+ <sect1 id='Pinging_a_Client'>
+<title>Pinging a Client</title>
<para>
To check that a client is still alive, you should use
-the <function>IcePing</function> function provided by the ICE library.
+the <olink targetdoc='ICElib' targetptr='IcePing'><function>IcePing</function></olink> function provided by the ICE library.
To do so, the ICE connection must be obtained using
-the <function>SmsGetIceConnection</function>
-(see <link linkend='using_sms_informational_functions'>section 6.12,
+the <xref linkend='SmsGetIceConnection' xrefstyle='select: title'/>
+(see <link linkend='Using_Sms_Informational_Functions'>section 6.12,
“Using Sms Informational Functions”</link>).
</para>
-<funcsynopsis>
+<funcsynopsis id='IcePing'>
<funcprototype>
<funcdef>void <function>IcePing</function></funcdef>
<paramdef>IceConn <parameter>ice_conn</parameter></paramdef>
</varlistentry>
<varlistentry>
<term><parameter>client_data</parameter></term>
- <listitem><para>This pointer will be passed to the <function>IcePingReplyProc</function> callback.</para></listitem>
+ <listitem><para>This pointer will be passed to the <xref linkend='IcePingReplyProc' xrefstyle='select: title'/> callback.</para></listitem>
</varlistentry>
</variablelist>
<para>
When the Ping reply is ready (if ever),
-the <function>IcePingReplyProc</function> callback will be invoked. A
+the <xref linkend='IcePingReplyProc' xrefstyle='select: title'/> callback will be invoked. A
session manager should have some sort of timeout period, after which
it assumes the client has unexpectedly died.
</para>
-<funcsynopsis>
+<funcsynopsis id='IcePingReplyProc'>
<funcprototype>
<funcdef>typedef void (*<function>IcePingReplyProc</function>)</funcdef>
<paramdef>IceConn <parameter>ice_conn</parameter></paramdef>
</varlistentry>
<varlistentry>
<term><parameter>client_data</parameter></term>
- <listitem><para>The client data specified in the call to <function>IcePing</function></para></listitem>
+ <listitem><para>The client data specified in the call to <olink targetdoc='ICElib' targetptr='IcePing'><function>IcePing</function></olink></para></listitem>
</varlistentry>
</variablelist>
</sect1>
- <sect1 id='cleaning_up_after_a_client_disconnects'>
- <title>Cleaning Up After a Client Disconnects</title>
+ <sect1 id='Cleaning_Up_After_a_Client_Disconnects'>
+<title>Cleaning Up After a Client Disconnects</title>
<para>
When the session manager receives a “Connection Closed”
message or otherwise detects that the client aborted the connection,
-it should call the <function>SmsCleanUp</function> function in order
+it should call the <xref linkend='SmsCleanUp' xrefstyle='select: title'/> function in order
to free up the connection object.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsCleanUp'>
<funcprototype>
<funcdef>void <function>SmsCleanUp</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</sect1>
- <sect1 id='using_sms_informational_functions'>
- <title>Using Sms Informational Functions</title>
+ <sect1 id='Using_Sms_Informational_Functions'>
+<title>Using Sms Informational Functions</title>
-<funcsynopsis>
+<funcsynopsis id='SmsProtocolVersion'>
<funcprototype>
<funcdef>int <function>SmsProtocolVersion</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmsProtocolVersion</function> returns the major version of
+<xref linkend='SmsProtocolVersion' xrefstyle='select: title'/> returns the major version of
the session management protocol associated with this session.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsProtocolRevision'>
<funcprototype>
<funcdef>int <function>SmsProtocolRevision</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmsProtocolRevision</function> returns the minor version of
+<xref linkend='SmsProtocolRevision' xrefstyle='select: title'/> returns the minor version of
the session management protocol associated with this session.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsClientID'>
<funcprototype>
<funcdef>char *<function>SmsClientID</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmsClientID</function> returns a null-terminated string for
+<xref linkend='SmsClientID' xrefstyle='select: title'/> returns a null-terminated string for
the client ID associated with this connection. You should
call <function>free</function> on this pointer when the client ID is
no longer needed.
<para>
To obtain the host name of a client,
-use <function>SmsClientHostName</function>.
+use <xref linkend='SmsClientHostName' xrefstyle='select: title'/>.
This host name will be needed to restart the client.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsClientHostName'>
<funcprototype>
<funcdef>char *<function>SmsClientHostName</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
it is no longer needed.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsGetIceConnection'>
<funcprototype>
<funcdef>IceConn <function>SmsGetIceConnection</function></funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
</funcsynopsis>
<para>
-<function>SmsGetIceConnection</function> returns the ICE connection
+<xref linkend='SmsGetIceConnection' xrefstyle='select: title'/> returns the ICE connection
object associated with this session management connection object. The
ICE connection object can be used to get some additional information
about the connection. Some of the more useful functions which can be
</para>
</sect1>
- <sect1 id='error_handling2'>
- <title>Error Handling</title>
+ <sect1 id='Error_Handling_2'>
+<title>Error Handling</title>
<para>
If the session manager receives an unexpected protocol error from a
client, an error handler is invoked by SMlib. A default error handler
exists which simply prints the error message (it does not exit). The
session manager can change this error handler by
-calling <function>SmsSetErrorHandler</function>.
+calling <xref linkend='SmsSetErrorHandler' xrefstyle='select: title'/>.
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsSetErrorHandler'>
<funcprototype>
<funcdef>SmsErrorHandler <function>SmsSetErrorHandler</function></funcdef>
<paramdef>SmsErrorHandler <parameter>handler</parameter></paramdef>
</para>
<para>
-<function>SmsSetErrorHandler</function> returns the previous error handler.
-The <function>SmsErrorHandler</function> has the following type:
+<xref linkend='SmsSetErrorHandler' xrefstyle='select: title'/> returns the previous error handler.
+The <xref linkend='SmsErrorHandler' xrefstyle='select: title'/> has the following type:
</para>
-<funcsynopsis>
+<funcsynopsis id='SmsErrorHandler'>
<funcprototype>
<funcdef>typedef void (*<function>SmsErrorHandler</function>)</funcdef>
<paramdef>SmsConn <parameter>sms_conn</parameter></paramdef>
<para>
Note that this error handler is invoked for protocol related errors.
To install an error handler to be invoked when an IO error occurs,
-use <function>IceSetIOErrorHandler</function>.
+use <olink targetdoc='ICElib' targetptr='IceSetIOErrorHandler'><function>IceSetIOErrorHandler</function></olink>.
For further information, see the
<citetitle pubwork='article'>Inter-Client Exchange Library</citetitle>
standard.
</sect1>
</chapter>
-<chapter id='session_management_properties'>
+<chapter id='Session_Management_Properties'>
<title>Session Management Properties</title>
<para>
bytes.
</para>
-<informaltable pgwide='0' frame='none'>
- <tgroup cols='4' align='center'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <colspec colname='c4'/>
+<informaltable pgwide='0' frame='topbot'>
+ <tgroup cols='4' align='left' colsep='0' rowsep='0'>
+ <colspec colname='c1' colwidth='2.0*'/>
+ <colspec colname='c2' colwidth='2.0*'/>
+ <colspec colname='c3' colwidth='2.0*'/>
+ <colspec colname='c4' colwidth='1.0*'/>
<thead>
- <row>
- <entry align='left'>Name</entry>
- <entry align='left'>Type</entry>
- <entry align='left'><acronym>POSIX</acronym> Type</entry>
- <entry align='center'>Required</entry>
+ <row rowsep='1'>
+ <entry>Name</entry>
+ <entry>Type</entry>
+ <entry><acronym>POSIX</acronym> Type</entry>
+ <entry>Required</entry>
</row>
</thead>
<tbody>
<row>
- <entry align='left'><property>SmCloneCommand</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmLISTofARRAY8</type></entry>
- <entry align='center'>Yes</entry>
+ <entry><property>SmCloneCommand</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmLISTofARRAY8</type></entry>
+ <entry>Yes</entry>
</row>
<row>
- <entry align='left'><property>SmCurrentDirectory</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmARRAY8</type></entry>
- <entry align='center'>No</entry>
+ <entry><property>SmCurrentDirectory</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmARRAY8</type></entry>
+ <entry>No</entry>
</row>
<row>
- <entry align='left'><property>SmDiscardCommand</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmLISTofARRAY8</type></entry>
- <entry align='center'>No*</entry>
+ <entry><property>SmDiscardCommand</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmLISTofARRAY8</type></entry>
+ <entry>No*</entry>
</row>
<row>
- <entry align='left'><property>SmEnvironment</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmLISTofARRAY8</type></entry>
- <entry align='center'>No</entry>
+ <entry><property>SmEnvironment</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmLISTofARRAY8</type></entry>
+ <entry>No</entry>
</row>
<row>
- <entry align='left'><property>SmProcessID</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmARRAY8</type></entry>
- <entry align='center'>No</entry>
+ <entry><property>SmProcessID</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmARRAY8</type></entry>
+ <entry>No</entry>
</row>
<row>
- <entry align='left'><property>SmProgram</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmARRAY8</type></entry>
- <entry align='center'>Yes</entry>
+ <entry><property>SmProgram</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmARRAY8</type></entry>
+ <entry>Yes</entry>
</row>
<row>
- <entry align='left'><property>SmRestartCommand</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmLISTofARRAY8</type></entry>
- <entry align='center'>Yes</entry>
+ <entry><property>SmRestartCommand</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmLISTofARRAY8</type></entry>
+ <entry>Yes</entry>
</row>
<row>
- <entry align='left'><property>SmResignCommand</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmLISTofARRAY8</type></entry>
- <entry align='center'>No</entry>
+ <entry><property>SmResignCommand</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmLISTofARRAY8</type></entry>
+ <entry>No</entry>
</row>
<row>
- <entry align='left'><property>SmRestartStyleHint</property></entry>
- <entry align='left'><type>SmCARD8</type></entry>
- <entry align='left'><type>SmCARD8</type></entry>
- <entry align='center'>No</entry>
+ <entry><property>SmRestartStyleHint</property></entry>
+ <entry><type>SmCARD8</type></entry>
+ <entry><type>SmCARD8</type></entry>
+ <entry>No</entry>
</row>
<row>
- <entry align='left'><property>SmShutdownCommand</property></entry>
- <entry align='left'>OS-specific</entry>
- <entry align='left'><type>SmLISTofARRAY8</type></entry>
- <entry align='center'>No</entry>
+ <entry><property>SmShutdownCommand</property></entry>
+ <entry>OS-specific</entry>
+ <entry><type>SmLISTofARRAY8</type></entry>
+ <entry>No</entry>
</row>
<row>
- <entry align='left'><property>SmUserID</property></entry>
- <entry align='left'><type>SmARRAY8</type></entry>
- <entry align='left'><type>SmARRAY8</type></entry>
- <entry align='center'>Yes</entry>
+ <entry><property>SmUserID</property></entry>
+ <entry><type>SmARRAY8</type></entry>
+ <entry><type>SmARRAY8</type></entry>
+ <entry>Yes</entry>
</row>
</tbody>
</tgroup>
<constant>SmRestartIfRunning</constant> is assumed.
The possible values are as follows:
-<informaltable pgwide='0' frame='none'>
- <tgroup cols='2' align='center'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
+<informaltable frame='topbot'>
+ <?dbfo keep-together="always" ?>
+ <tgroup cols='2' align='left' colsep='0' rowsep='0'>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='1.5*'/>
<thead>
- <row>
- <entry align='left'>Name</entry>
- <entry align='right'>Value</entry>
+ <row rowsep='1'>
+ <entry>Name</entry>
+ <entry>Value</entry>
</row>
</thead>
<tbody>
<row>
- <entry align='left'><constant>SmRestartIfRunning</constant></entry>
- <entry align='right'>0</entry>
+ <entry><constant>SmRestartIfRunning</constant></entry>
+ <entry>0</entry>
</row>
<row>
- <entry align='left'><constant>SmRestartAnyway</constant></entry>
- <entry align='right'>1</entry>
+ <entry><constant>SmRestartAnyway</constant></entry>
+ <entry>1</entry>
</row>
<row>
- <entry align='left'><constant>SmRestartImmediately</constant></entry>
- <entry align='right'>2</entry>
+ <entry><constant>SmRestartImmediately</constant></entry>
+ <entry>2</entry>
</row>
<row>
- <entry align='left'><constant>SmRestartNever</constant></entry>
- <entry align='right'>3</entry>
+ <entry><constant>SmRestartNever</constant></entry>
+ <entry>3</entry>
</row>
</tbody>
</tgroup>
</itemizedlist>
</chapter>
-<chapter id='freeing_data'>
+<chapter id='Freeing_Data'>
<title>Freeing Data</title>
<para>
-To free an individual property, use <function>SmFreeProperty</function>
+To free an individual property, use <xref linkend='SmFreeProperty' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmFreeProperty'>
<funcprototype>
<funcdef>void <function>SmFreeProperty</function></funcdef>
<paramdef>SmProp *<parameter>prop</parameter></paramdef>
<para>
To free the reason strings from
-the <function>SmsCloseConnectionProc</function> callback,
-use <function>SmFreeReasons</function>
+the <xref linkend='SmsCloseConnectionProc' xrefstyle='select: title'/> callback,
+use <xref linkend='SmFreeReasons' xrefstyle='select: title'/>
</para>
-<funcsynopsis>
+<funcsynopsis id='SmFreeReasons'>
<funcprototype>
<funcdef>void <function>SmFreeReasons</function></funcdef>
<paramdef>int <parameter>count</parameter></paramdef>
</variablelist>
</chapter>
-<chapter id='authentication_of_clients'>
+<chapter id='Authentication_of_Clients'>
<title>Authentication of Clients</title>
<para>
</para>
</chapter>
-<chapter id='working_in_a_multithreaded_environment'>
+<chapter id='Working_in_a_Multi_Threaded_Environment'>
<title>Working in a Multi-Threaded Environment</title>
<para>
</para>
</chapter>
-<chapter id='acknowledgements'>
+<chapter id='Acknowledgements'>
<title>Acknowledgements</title>
<para>
<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+<!ENTITY % defs SYSTEM "defs.ent"> %defs;
+]>
<!-- lifted from troff+ms+XMan by doclifter -->
-<book id="xsmpms">
+<book id="xsmp">
<bookinfo>
<title>X Session Management Protocol</title>
<subtitle>X Consortium Standard</subtitle>
- <releaseinfo>X Version 11, Release 7</releaseinfo>
+ <releaseinfo>X Version 11, Release &fullrelvers;</releaseinfo>
+ <releaseinfo>Version 1.0</releaseinfo>
<authorgroup>
<author>
<firstname>Mike</firstname><surname>Wexler</surname>
+ <affiliation><orgname>Kubota Pacific Computer, Inc</orgname></affiliation>
</author>
</authorgroup>
- <corpname>Kubota Pacific Computer, Inc</corpname>
<copyright>
<year>1992</year><year>1993</year><year>1994</year><year>2002</year>
<holder>The Open Group</holder>
</copyright>
- <releaseinfo>Version 1.0</releaseinfo>
- <affiliation><orgname>X Consortium</orgname></affiliation>
- <productnumber>X Version 11, Release 7</productnumber>
<legalnotice>
<para>
</bookinfo>
-<chapter id="acknowledgments">
+<chapter id='Acknowledgments'>
<title>Acknowledgments</title>
<para>
</para>
</chapter>
-<chapter id="definitions_and_goals">
+<chapter id='Definitions_and_Goals'>
<title>Definitions and Goals</title>
<para>
</chapter>
-<chapter id="overview_of_the_protocol">
+<chapter id='Overview_of_the_Protocol'>
<title>Overview of the Protocol</title>
<para>
</para>
</chapter>
-<chapter id="data_types">
+<chapter id='Data_Types'>
<title>Data Types</title>
<para>
the receiver of the message to the sender of the message.
</para>
-<informaltable pgwide='0' frame='none'>
- <tgroup cols='2' align='left'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
+<informaltable frame='topbot'>
+ <tgroup cols='2' align='left' colsep='0' rowsep='0'>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='3.0*'/>
<thead>
- <row>
+ <row rowsep='1'>
<entry>Type Name</entry>
<entry>Description</entry>
</row>
</chapter>
-<chapter id="protocol_setup_and_message_format">
+<chapter id='Protocol_Setup_and_Message_Format'>
<title>Protocol Setup and Message Format</title>
<para>
</para>
</chapter>
-<chapter id="client_identification_string">
+<chapter id='Client_Identification_String'>
<title>Client Identification String</title>
<para>
A client ID is a string of XPCS characters encoded in ISO Latin 1 (ISO
</itemizedlist>
</chapter>
-<chapter id="protocol">
+<chapter id='Protocol'>
<title>Protocol</title>
<para>
The protocol consists of a sequence of messages as described below.
The client must send this message to the SM to register the client's
existence. If a client is being restarted from a previous session,
the <parameter>previous-ID</parameter> field must contain the client
-ID from the previous session. For new clients,
+ID from the previous session. For new clients,
<parameter>previous-ID</parameter> should be of zero length.
</para>
<para>
-If <parameter>previous-ID</parameter> is not valid,
+If <parameter>previous-ID</parameter> is not valid,
the SM will send a <errorname>BadValue</errorname>
error message to the client. At this point the SM reverts to the
register state and waits for another <function>RegisterClient</function>
<para>
The <parameter>client-ID</parameter> specifies a unique identification
-for this client. If the client had specified an ID in the
-<parameter>previous-ID</parameter> field of the
-<function>RegisterClient</function> message,
+for this client. If the client had specified an ID in the
+<parameter>previous-ID</parameter> field of the
+<function>RegisterClient</function> message,
<parameter>client-ID</parameter> will be identical to the previously
specified ID. If <parameter>previous-ID</parameter> was null,
<parameter>client-ID</parameter> will be a unique ID freshly generated
by the SM. The <parameter>client-ID</parameter> format is specified in
-<link linkend="client_identification_string">section 6</link>.
+<link linkend='Client_Identification_String'>section 6</link>.
</para>
<para>
<function>SaveComplete</function>
<function>Die</function>
<function>ShutdownCancelled</function>
-
+
</synopsis>
<para>
Valid Responses:
<function>ShutdownCancelled</function>
<function>SaveYourselfPhase2</function>
-
+
</synopsis>
<para>
Existing
properties not specified in the <function>Set­Properties</function>
message are unaffected. Some properties have predefined semantics.
-See <link linkend='predefined_properties'>section 11,
+See <link linkend='Predefined_Properties'>section 11,
“Predefined Properties.”</link>
</para>
</para>
</chapter>
-<chapter id="errors">
+<chapter id='Errors'>
<title>Errors</title>
<para>
</para>
</chapter>
-<chapter id="state_diagrams">
+<chapter id='State_Diagrams'>
<title>State Diagrams</title>
<para>
These state diagrams are designed to cover all actions of both the
client and the SM.
</para>
- <sect1 id='client_state_diagram'>
- <title>Client State Diagram</title>
+ <sect1 id='Client_State_Diagram'>
+<title>Client State Diagram</title>
<!-- <literallayout remap='DS'> -->
<literallayout>
client stops participating in session </literallayout>
</sect1>
-<sect1 id='session_manager_state_diagram'>
+<sect1 id='Session_Manager_State_Diagram'>
<title>Session Manager State Diagram</title>
<literallayout remap='DS'>
</sect1>
</chapter>
-<chapter id='protocol_encoding'>
+<chapter id='Protocol_Encoding'>
<title>Protocol Encoding</title>
- <sect1 id="types">
- <title>Types</title>
-
-<informaltable pgwide='0' frame='none'>
- <tgroup cols='4'>
- <colspec colwidth='0.5in' colname='c0'/>
- <colspec colwidth='1.0in' colname='c1'/>
- <colspec colwidth='1.0in' colname='c2'/>
- <colspec colwidth='1.0in' colname='c3'/>
- <spanspec spanname="typename" namest="c0" nameend="c3" />
- <tbody>
+ <sect1 id='Types'>
+<title>Types</title>
+
+<informaltable frame='none'>
+ <tgroup cols='2' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='10.0*'/>
+ <thead>
<row>
- <entry spanname="typename"><emphasis role="bold">BOOL</emphasis></entry>
+ <entry namest='c1' nameend='c2'><emphasis role="bold">BOOL</emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">0</entry>
- <entry namest="c2">False</entry>
+ <entry>0</entry>
+ <entry>False</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">True</entry>
+ <entry>1</entry>
+ <entry>True</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='2' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='10.0*'/>
+ <thead>
<row>
- <entry spanname="typename"><emphasis role="bold">INTERACT_STYLE</emphasis></entry>
+ <entry namest='c1' nameend='c2'><emphasis role="bold">INTERACT_STYLE</emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">0</entry>
- <entry namest="c2">None</entry>
+ <entry>0</entry>
+ <entry>None</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">Errors</entry>
+ <entry>1</entry>
+ <entry>Errors</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2">Any</entry>
+ <entry>2</entry>
+ <entry>Any</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='2' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='10.0*'/>
+ <thead>
<row>
- <entry spanname="typename"><emphasis role="bold">DIALOG_TYPE</emphasis></entry>
+ <entry namest='c1' nameend='c2'><emphasis role="bold">DIALOG_TYPE</emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">0</entry>
- <entry namest="c2">Error</entry>
+ <entry>0</entry>
+ <entry>Error</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">Normal</entry>
+ <entry>1</entry>
+ <entry>Normal</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='2' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='10.0*'/>
+ <thead>
<row>
- <entry spanname="typename"><emphasis role="bold">SAVE_TYPE</emphasis></entry>
+ <entry namest='c1' nameend='c2'><emphasis role="bold">SAVE_TYPE</emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">0</entry>
- <entry namest="c2">Global</entry>
+ <entry>0</entry>
+ <entry>Global</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">Local</entry>
+ <entry>1</entry>
+ <entry>Local</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2">Both</entry>
+ <entry>2</entry>
+ <entry>Both</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="typename"><emphasis role="bold">ARRAY8</emphasis></entry>
+ <entry namest='c1' nameend='c2'><emphasis role="bold">ARRAY8</emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">CARD32</entry>
- <entry namest="c3">length</entry>
+ <entry>4</entry>
+ <entry>CARD32</entry>
+ <entry>length</entry>
</row>
<row>
- <entry namest="c1">n</entry>
- <entry namest="c2">ListofCARD8, the array</entry>
- <entry namest="c3">p = pad (4 + n, 8)</entry>
+ <entry>n</entry>
+ <entry>ListofCARD8, the array</entry>
+ <entry>p = pad (4 + n, 8)</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2">Both</entry>
+ <entry>2</entry>
+ <entry>Both</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="typename"><emphasis role="bold">LISTofARRAY8</emphasis></entry>
+ <entry namest='c1' nameend='c2'><emphasis role="bold">LISTofARRAY8</emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">CARD32</entry>
- <entry namest="c3">count</entry>
+ <entry>4</entry>
+ <entry>CARD32</entry>
+ <entry>count</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>4</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">ARRAY8</entry>
- <entry namest="c3">first array</entry>
+ <entry>a</entry>
+ <entry>ARRAY8</entry>
+ <entry>first array</entry>
</row>
<row>
- <entry namest="c1">b</entry>
- <entry namest="c2">ARRAY8</entry>
- <entry namest="c3">second array</entry>
+ <entry>b</entry>
+ <entry>ARRAY8</entry>
+ <entry>second array</entry>
</row>
<row>
- <entry namest="c1">.</entry>
- <entry namest="c2"></entry>
- <entry namest="c3"></entry>
+ <entry>.</entry>
+ <entry></entry>
+ <entry></entry>
</row>
<row>
- <entry namest="c1">.</entry>
- <entry namest="c2"></entry>
- <entry namest="c3"></entry>
+ <entry>.</entry>
+ <entry></entry>
+ <entry></entry>
</row>
<row>
- <entry namest="c1">.</entry>
- <entry namest="c2"></entry>
- <entry namest="c3"></entry>
+ <entry>.</entry>
+ <entry></entry>
+ <entry></entry>
</row>
<row>
- <entry namest="c1">q</entry>
- <entry namest="c2">ARRAY8</entry>
- <entry namest="c3">last array</entry>
+ <entry>q</entry>
+ <entry>ARRAY8</entry>
+ <entry>last array</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="typename"><emphasis role="bold">PROPERTY</emphasis></entry>
+ <entry namest='c1' nameend='c2'><emphasis role="bold">PROPERTY</emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">ARRAY8</entry>
- <entry namest="c3">name</entry>
+ <entry>a</entry>
+ <entry>ARRAY8</entry>
+ <entry>name</entry>
</row>
<row>
- <entry namest="c1">b</entry>
- <entry namest="c2">ARRAY8</entry>
- <entry namest="c3">type (XPCS encoded in Latin-1, case sensitive)</entry>
+ <entry>b</entry>
+ <entry>ARRAY8</entry>
+ <entry>type (XPCS encoded in Latin-1, case sensitive)</entry>
</row>
<row>
- <entry namest="c1">c</entry>
- <entry namest="c2">LISTofARRAY8</entry>
- <entry namest="c3">values</entry>
+ <entry>c</entry>
+ <entry>LISTofARRAY8</entry>
+ <entry>values</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='32' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="typename"><emphasis role="bold">LISTofPROPERTY</emphasis></entry>
+ <entry namest='c1' nameend='c2'><emphasis role="bold">LISTofPROPERTY</emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">CARD32</entry>
- <entry namest="c3">count</entry>
+ <entry>4</entry>
+ <entry>CARD32</entry>
+ <entry>count</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>4</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">PROPERTY</entry>
- <entry namest="c3">first property</entry>
+ <entry>a</entry>
+ <entry>PROPERTY</entry>
+ <entry>first property</entry>
</row>
<row>
- <entry namest="c1">b</entry>
- <entry namest="c2">PROPERTY</entry>
- <entry namest="c3">second property</entry>
+ <entry>b</entry>
+ <entry>PROPERTY</entry>
+ <entry>second property</entry>
</row>
<row>
- <entry namest="c1">.</entry>
- <entry namest="c2"></entry>
- <entry namest="c3"></entry>
+ <entry>.</entry>
+ <entry></entry>
+ <entry></entry>
</row>
<row>
- <entry namest="c1">.</entry>
- <entry namest="c2"></entry>
- <entry namest="c3"></entry>
+ <entry>.</entry>
+ <entry></entry>
+ <entry></entry>
</row>
<row>
- <entry namest="c1">.</entry>
- <entry namest="c2"></entry>
- <entry namest="c3"></entry>
+ <entry>.</entry>
+ <entry></entry>
+ <entry></entry>
</row>
<row>
- <entry namest="c1">q</entry>
- <entry namest="c2">PROPERTY</entry>
- <entry namest="c3">last property</entry>
+ <entry>q</entry>
+ <entry>PROPERTY</entry>
+ <entry>last property</entry>
</row>
</tbody>
</tgroup>
</sect1>
- <sect1 id='messages'>
- <title>Messages</title>
+ <sect1 id='Messages'>
+<title>Messages</title>
<para>
XSMP is a sub-protocol of <acronym>ICE</acronym>. The major opcode is
assigned at run-time by <acronym>ICE</acronym> and is represented here
<acronym>ICE</acronym> <function>ProtocolReply</function> message.
</para>
-<informaltable pgwide='0' frame='none'>
- <tgroup cols='4' align='left'>
- <colspec colwidth='0.5in' colname='c0'/>
- <colspec colwidth='0.5in' colname='c1'/>
- <colspec colwidth='1.1in' colname='c2'/>
- <colspec colwidth='1.0in' colname='c3'/>
- <spanspec spanname="messagename" namest="c0" nameend="c3" />
- <tbody>
+<informaltable frame='none'>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>RegisterClient</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>RegisterClient</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">1</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>1</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">a/8</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>a/8</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">ARRAY8</entry>
- <entry namest="c3">previous-ID</entry>
+ <entry>a</entry>
+ <entry>ARRAY8</entry>
+ <entry>previous-ID</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>RegisterClientReply</function></emphasis></entry>
+ <entry namest='c1' nameend='c3'><emphasis role="bold"><function>RegisterClientReply</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">2</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>2</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">a/8</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>a/8</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">ARRAY8</entry>
- <entry namest="c3">client-ID</entry>
+ <entry>a</entry>
+ <entry>ARRAY8</entry>
+ <entry>client-ID</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>SaveYourself</function></emphasis></entry>
+ <entry namest='c1' nameend='c3'><emphasis role="bold"><function>SaveYourself</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">3</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>3</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">1</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>1</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">SAVE_TYPE</entry>
- <entry namest="c3">type</entry>
+ <entry>1</entry>
+ <entry>SAVE_TYPE</entry>
+ <entry>type</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">BOOL</entry>
- <entry namest="c3">shutdown</entry>
+ <entry>1</entry>
+ <entry>BOOL</entry>
+ <entry>shutdown</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">INTERACT_STYLE</entry>
- <entry namest="c3">interact-style</entry>
+ <entry>1</entry>
+ <entry>INTERACT_STYLE</entry>
+ <entry>interact-style</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">BOOL</entry>
- <entry namest="c3">fast</entry>
+ <entry>1</entry>
+ <entry>BOOL</entry>
+ <entry>fast</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>4</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>SaveYourselfRequest</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveYourselfRequest</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">4</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>4</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">1</entry>
- <entry namest="c3">length of remainning data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>1</entry>
+ <entry>length of remainning data in 8-byte units</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">SAVE_TYPE</entry>
- <entry namest="c3">type</entry>
+ <entry>1</entry>
+ <entry>SAVE_TYPE</entry>
+ <entry>type</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">BOOL</entry>
- <entry namest="c3">shutdown</entry>
+ <entry>1</entry>
+ <entry>BOOL</entry>
+ <entry>shutdown</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">INTERACT_STYLE</entry>
- <entry namest="c3">interact-style</entry>
+ <entry>1</entry>
+ <entry>INTERACT_STYLE</entry>
+ <entry>interact-style</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">BOOL</entry>
- <entry namest="c3">fast</entry>
+ <entry>1</entry>
+ <entry>BOOL</entry>
+ <entry>fast</entry>
</row>
<row>
- <entry namest="c1">3</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>3</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>InteractRequest</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>InteractRequest</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">5</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>5</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">DIALOG_TYPE</entry>
- <entry namest="c3">dialog type</entry>
+ <entry>1</entry>
+ <entry>DIALOG_TYPE</entry>
+ <entry>dialog type</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>1</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>Interact</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>Interact</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">6</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>6</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>InteractDone</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>InteractDone</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">7</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>7</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">BOOL</entry>
- <entry namest="c3">cancel-shutdown</entry>
+ <entry>1</entry>
+ <entry>BOOL</entry>
+ <entry>cancel-shutdown</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>1</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>InteractDone</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>InteractDone</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">7</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>7</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">BOOL</entry>
- <entry namest="c3">cancel-shutdown</entry>
+ <entry>1</entry>
+ <entry>BOOL</entry>
+ <entry>cancel-shutdown</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>1</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>SaveYourselfDone</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveYourselfDone</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">8</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>8</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">BOOL</entry>
- <entry namest="c3">success</entry>
+ <entry>1</entry>
+ <entry>BOOL</entry>
+ <entry>success</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>1</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>Die</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>Die</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">9</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>9</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>1</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>ShutdownCancelled</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>ShutdownCancelled</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">10</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>10</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>ConnectionClosed</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>ConnectionClosed</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">11</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>11</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">a/8</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>a/8</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">LISTofARRAY8</entry>
- <entry namest="c3">reason</entry>
+ <entry>a</entry>
+ <entry>LISTofARRAY8</entry>
+ <entry>reason</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>SetProperties</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SetProperties</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">12</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>12</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">a/8</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>a/8</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">LISTofPROPERTY</entry>
- <entry namest="c3">properties</entry>
+ <entry>a</entry>
+ <entry>LISTofPROPERTY</entry>
+ <entry>properties</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>DeleteProperties</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>DeleteProperties</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">13</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>13</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">a/8</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>a/8</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">LISTofPROPERTY</entry>
- <entry namest="c3">properties</entry>
+ <entry>a</entry>
+ <entry>LISTofPROPERTY</entry>
+ <entry>properties</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>GetProperties</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>GetProperties</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">14</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>14</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>GetPropertiesReply</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>GetPropertiesReply</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">15</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>15</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">a/8</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>a/8</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
<row>
- <entry namest="c1">a</entry>
- <entry namest="c2">LISTofPROPERTY</entry>
- <entry namest="c3">properties</entry>
+ <entry>a</entry>
+ <entry>LISTofPROPERTY</entry>
+ <entry>properties</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>SaveYourselfPhase2Request</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveYourselfPhase2Request</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">16</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>16</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>SaveYourselfPhase2</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveYourselfPhase2</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">17</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>17</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
-
+ </tbody>
+ </tgroup>
+ <tgroup cols='3' align='left' colsep='0' rowsep='0'>
+ <?dbfo keep-together="always" ?>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='5.0*'/>
+ <colspec colname='c3' colwidth='5.0*'/>
+ <thead>
<row>
- <entry spanname="messagename"><emphasis role="bold"><function>SaveComplete</function></emphasis></entry>
+ <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveComplete</function></emphasis></entry>
</row>
+ </thead>
+ <tbody>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">?</entry>
- <entry namest="c3">XSMP</entry>
+ <entry>1</entry>
+ <entry>?</entry>
+ <entry>XSMP</entry>
</row>
<row>
- <entry namest="c1">1</entry>
- <entry namest="c2">18</entry>
- <entry namest="c3">opcode</entry>
+ <entry>1</entry>
+ <entry>18</entry>
+ <entry>opcode</entry>
</row>
<row>
- <entry namest="c1">2</entry>
- <entry namest="c2"></entry>
- <entry namest="c3">unused</entry>
+ <entry>2</entry>
+ <entry></entry>
+ <entry>unused</entry>
</row>
<row>
- <entry namest="c1">4</entry>
- <entry namest="c2">0</entry>
- <entry namest="c3">length of remaining data in 8-byte units</entry>
+ <entry>4</entry>
+ <entry>0</entry>
+ <entry>length of remaining data in 8-byte units</entry>
</row>
- </tbody>
+ </tbody>
</tgroup>
</informaltable>
</sect1>
</chapter>
-<chapter id='predefined_properties'>
+<chapter id='Predefined_Properties'>
<title>Predefined Properties</title>
<para>
All property values are stored in a LISTofARRAY8. If the type of the
of stored properties does not extend into subsequent sessions.
</para>
-<informaltable pgwide='0' frame='none'>
- <tgroup cols='4'>
- <colspec colname='c1' align='left' />
- <colspec colname='c2' align='left' />
- <colspec colname='c3' align='left' />
- <colspec colname='c4' align='center'/>
+<informaltable frame='topbot'>
+ <tgroup cols='4' align='left' colsep='0' rowsep='0'>
+ <colspec colname='c1' colwidth='2.0*' />
+ <colspec colname='c2' colwidth='2.0*' />
+ <colspec colname='c3' colwidth='2.0*' />
+ <colspec colname='c4' colwidth='1.0*' />
<thead>
- <row>
+ <row rowsep='1'>
<entry>Name</entry>
<entry>Type</entry>
<entry>Posix Type</entry>
possible values are as follows:
</para>
-<informaltable pgwide='0' frame='none'>
- <tgroup cols='2'>
- <colspec colname='c1' align='left'/>
- <colspec colname='c2' align='right'/>
+<informaltable frame='topbot'>
+ <?dbfo keep-together="always" ?>
+ <tgroup cols='2' align='left' colsep='0' rowsep='0'>
+ <colspec colname='c1' colwidth='1.0*'/>
+ <colspec colname='c2' colwidth='2.5*'/>
<thead>
- <row>
- <entry namest="c1">Name</entry>
- <entry namest="c2">Value</entry>
+ <row rowsep='1'>
+ <entry>Name</entry>
+ <entry>Value</entry>
</row>
</thead>
<tbody>
<row>
- <entry namest="c1">RestartIfRunning</entry>
- <entry namest="c2">0</entry>
+ <entry>RestartIfRunning</entry>
+ <entry>0</entry>
</row>
<row>
- <entry namest="c1">RestartAnyway</entry>
- <entry namest="c2">1</entry>
+ <entry>RestartAnyway</entry>
+ <entry>1</entry>
</row>
<row>
- <entry namest="c1">RestartImmediately</entry>
- <entry namest="c2">2</entry>
+ <entry>RestartImmediately</entry>
+ <entry>2</entry>
</row>
<row>
- <entry namest="c1">RestartNever</entry>
- <entry namest="c2">3</entry>
+ <entry>RestartNever</entry>
+ <entry>3</entry>
</row>
</tbody>
</tgroup>
--- /dev/null
+#
+# Generate output formats for a single DocBook/XML with/without chapters
+#
+# Variables set by the calling Makefile:
+# shelfdir: the location where the docs/specs are installed. Typically $(docdir)
+# docbook: the main DocBook/XML file, no chapters, appendix or image files
+# chapters: all files pulled in by an XInclude statement and images.
+#
+
+#
+# This makefile is intended for Users Documentation and Functional Specifications.
+# Do not use for Developer Documentation which is not installed and does not require olink.
+# Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393
+# for an explanation on documents classification.
+#
+
+# DocBook/XML generated output formats to be installed
+shelf_DATA =
+
+# DocBook/XML file with chapters, appendix and images it includes
+dist_shelf_DATA = $(docbook) $(chapters)
+
+if HAVE_XMLTO
+if HAVE_STYLESHEETS
+
+XMLTO_SEARCHPATH_FLAGS = \
+ --searchpath "$(XORG_SGML_PATH)/X11" \
+ --searchpath "$(abs_top_builddir)"
+XMLTO_HTML_OLINK_FLAGS = \
+ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.html.xml \
+ --stringparam current.docid="$(<:.xml=)"
+XMLTO_HTML_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl
+XMLTO_HTML_FLAGS = \
+ $(XMLTO_SEARCHPATH_FLAGS) \
+ $(XMLTO_HTML_STYLESHEET_FLAGS) \
+ $(XMLTO_HTML_OLINK_FLAGS)
+
+shelf_DATA += $(docbook:.xml=.html)
+%.html: %.xml $(chapters)
+ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $<
+
+if HAVE_XMLTO_TEXT
+
+shelf_DATA += $(docbook:.xml=.txt)
+%.txt: %.xml $(chapters)
+ $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $<
+endif HAVE_XMLTO_TEXT
+
+if HAVE_FOP
+XMLTO_FO_IMAGEPATH_FLAGS = --stringparam img.src.path=$(abs_builddir)/
+XMLTO_PDF_OLINK_FLAGS = \
+ --stringparam target.database.document=$(XORG_SGML_PATH)/X11/dbs/masterdb.pdf.xml \
+ --stringparam current.docid="$(<:.xml=)"
+XMLTO_FO_STYLESHEET_FLAGS = -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl
+
+XMLTO_FO_FLAGS = \
+ $(XMLTO_SEARCHPATH_FLAGS) \
+ $(XMLTO_FO_STYLESHEET_FLAGS) \
+ $(XMLTO_FO_IMAGEPATH_FLAGS) \
+ $(XMLTO_PDF_OLINK_FLAGS)
+
+shelf_DATA += $(docbook:.xml=.pdf)
+%.pdf: %.xml $(chapters)
+ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $<
+
+shelf_DATA += $(docbook:.xml=.ps)
+%.ps: %.xml $(chapters)
+ $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $<
+endif HAVE_FOP
+
+# Generate documents cross-reference target databases
+if HAVE_XSLTPROC
+
+XSLT_SEARCHPATH_FLAGS = \
+ --path "$(XORG_SGML_PATH)/X11" \
+ --path "$(abs_top_builddir)"
+XSLT_OLINK_FLAGS = \
+ --stringparam targets.filename "$@" \
+ --stringparam collect.xref.targets "only" \
+ --stringparam olink.base.uri "$(@:.db=)"
+
+XSLT_HTML_FLAGS = \
+ $(XSLT_SEARCHPATH_FLAGS) \
+ $(XSLT_OLINK_FLAGS) \
+ --nonet --xinclude \
+ $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl
+XSLT_PDF_FLAGS = \
+ $(XSLT_SEARCHPATH_FLAGS) \
+ $(XSLT_OLINK_FLAGS) \
+ --nonet --xinclude \
+ $(STYLESHEET_SRCDIR)/xorg-fo.xsl
+
+shelf_DATA += $(docbook:.xml=.html.db)
+%.html.db: %.xml $(chapters)
+ $(AM_V_GEN)$(XSLTPROC) $(XSLT_HTML_FLAGS) $<
+
+shelf_DATA += $(docbook:.xml=.pdf.db)
+%.pdf.db: %.xml $(chapters)
+ $(AM_V_GEN)$(XSLTPROC) $(XSLT_PDF_FLAGS) $<
+
+endif HAVE_XSLTPROC
+endif HAVE_STYLESHEETS
+endif HAVE_XMLTO
+
+CLEANFILES = $(shelf_DATA)
typedef Status (*SmsRegisterClientProc) (
SmsConn /* smsConn */,
SmPointer /* managerData */,
- char * /* previousId */
+ char * /* previousId */
);
typedef void (*SmsInteractRequestProc) (
);
extern Status SmsInitialize (
- char * /* vendor */,
- char * /* release */,
+ const char * /* vendor */,
+ const char * /* release */,
SmsNewClientProc /* newClientProc */,
SmPointer /* managerData */,
IceHostBasedAuthProc /* hostBasedAuthProc */,
-Name: libSM
-Summary: X.Org X11 libSM runtime library
-Version: 1.2.0
-Release: 2.23
-Group: System/Libraries
-License: MIT
-URL: http://www.x.org
-Source0: http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.gz
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-BuildRequires: pkgconfig(uuid)
-BuildRequires: pkgconfig(xtrans)
-BuildRequires: pkgconfig(ice)
+Summary: X.Org X11 SM runtime library
+Name: libSM
+Version: 1.2.1
+Release: 1
+License: MIT
+Group: System Environment/Libraries
+URL: http://www.x.org
+
+Source0: %{name}-%{version}.tar.gz
+
+BuildRequires: pkgconfig
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xorg-macros)
-
+BuildRequires: xorg-x11-xtrans-devel >= 1.0.3-4
+BuildRequires: libICE-devel
+BuildRequires: libuuid-devel
%description
-X11 Session Management library.
-
+The X.Org X11 SM (Session Management) runtime library.
%package devel
-Summary: X.Org X11 libSM development package
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Summary: X.Org X11 SM development package
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libICE-devel
%description devel
-The X.org X11 SM development package.
-
+The X.Org X11 SM (Session Management) development package.
%prep
-%setup -q -n %{name}-%{version}
-
+%setup -q
%build
-%reconfigure --disable-static --with-libuuid=no
-
+%reconfigure --with-libuuid --disable-static \
+ LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
-%make_install
-
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+# We intentionally don't ship *.la files
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
+# we %%doc these ourselves, later, and only the text versions
+rm -rf $RPM_BUILD_ROOT%{_docdir}
+%remove_docs
+%clean
+rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
-%doc AUTHORS COPYING README
+%doc AUTHORS COPYING ChangeLog
%{_libdir}/libSM.so.6
-%{_libdir}/libSM.so.6.0.1
-%exclude /usr/share/doc/libSM/SMlib.xml
-%exclude /usr/share/doc/libSM/xsmp.xml
-
+%{_libdir}/libSM.so.6.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/X11/SM/SMproto.h
%{_libdir}/libSM.so
%{_libdir}/pkgconfig/sm.pc
-
Name: SM
Description: X Session Management Library
Version: @PACKAGE_VERSION@
-Requires: ice xproto
-Requires.private: ice
+Requires:
+Requires.private: ice xproto
Cflags: -I${includedir}
Libs: -L${libdir} -lSM
lib_LTLIBRARIES=libSM.la
-AM_CFLAGS= $(CWARNFLAGS) -I${top_srcdir}/include $(SM_CFLAGS) $(XTRANS_CFLAGS)
+AM_CPPFLAGS = -I${top_srcdir}/include
+AM_CFLAGS = $(CWARNFLAGS) $(SM_CFLAGS)
if WITH_LIBUUID
AM_CFLAGS += $(LIBUUID_CFLAGS) -DHAVE_LIBUUID
libSM_la_LDFLAGS = -version-number 6:0:1 -no-undefined
-libSM_la_LIBADD = $(SM_LIBS) $(XTRANS_LIBS)
+libSM_la_LIBADD = $(SM_LIBS)
if WITH_LIBUUID
libSM_la_LIBADD += $(LIBUUID_LIBS)
#define EXTRACT_ARRAY8(_pBuf, _swap, _len, _array8) \
{ \
EXTRACT_CARD32 (_pBuf, _swap, _len); \
- _array8 = (char *) malloc (_len + 1); \
+ _array8 = malloc (_len + 1); \
memcpy (_array8, _pBuf, _len); \
_array8[_len] = '\0'; \
_pBuf += _len + PAD64 (4 + _len); \
{ \
CARD32 _len; \
EXTRACT_CARD32 (_pBuf, _swap, _len); \
- _string = (char *) malloc (_len + 1); \
+ _string = malloc (_len + 1); \
memcpy (_string, _pBuf, _len); \
_string[_len] = '\0'; \
_pBuf += _len + PAD64 (4 + _len); \
int _i, _j; \
EXTRACT_CARD32 (_pBuf, _swap, _count); \
_pBuf += 4; \
- _props = (SmProp **) malloc (_count * sizeof (SmProp *)); \
+ _props = malloc (_count * sizeof (SmProp *)); \
for (_i = 0; _i < _count; _i++) \
{ \
- _props[_i] = (SmProp *) malloc (sizeof (SmProp)); \
+ _props[_i] = malloc (sizeof (SmProp)); \
EXTRACT_ARRAY8_AS_STRING (_pBuf, _swap, _props[_i]->name); \
EXTRACT_ARRAY8_AS_STRING (_pBuf, _swap, _props[_i]->type); \
EXTRACT_CARD32 (_pBuf, _swap, _props[_i]->num_vals); \
_pBuf += 4; \
- _props[_i]->vals = (SmPropValue *) malloc ( \
+ _props[_i]->vals = malloc ( \
_props[_i]->num_vals * sizeof (SmPropValue)); \
for (_j = 0; _j < _props[_i]->num_vals; _j++) \
{ \
return (NULL);
}
- if ((smcConn = (SmcConn) malloc (sizeof (struct _SmcConn))) == NULL)
+ if ((smcConn = malloc (sizeof (struct _SmcConn))) == NULL)
{
if (errorStringRet && errorLength > 0) {
strncpy (errorStringRet, "Can't malloc", errorLength);
setupstat == IceProtocolSetupIOError)
{
IceCloseConnection (iceConn);
- free ((char *) smcConn);
+ free (smcConn);
return (NULL);
}
else if (setupstat == IceProtocolAlreadyActive)
* may not already have XSMP active on it.
*/
- free ((char *) smcConn);
+ free (smcConn);
if (errorStringRet && errorLength > 0) {
strncpy (errorStringRet, "Internal error in IceOpenConnection",
errorLength);
}
free (smcConn->vendor);
free (smcConn->release);
- free ((char *) smcConn);
+ free (smcConn);
return (NULL);
}
*clientIdRet = reply.client_id;
- smcConn->client_id = (char *) malloc (
- strlen (*clientIdRet) + 1);
-
- strcpy (smcConn->client_id, *clientIdRet);
+ smcConn->client_id = strdup (*clientIdRet);
}
else
{
pData += 4;
for (i = 0; i < count; i++)
- STORE_ARRAY8 (pData, strlen (reasonMsgs[i]), reasonMsgs[i]);
+ STORE_ARRAY8 (pData, strlen (reasonMsgs[i]), reasonMsgs[i]);
IceFlush (iceConn);
while (ptr)
{
next = ptr->next;
- free ((char *) ptr);
+ free (ptr);
ptr = next;
}
-
+
}
- free ((char *) smcConn);
+ free (smcConn);
if (closeStatus == IceClosedNow)
statusRet = SmcClosedNow;
pData += 4;
for (i = 0; i < numProps; i++)
- STORE_ARRAY8 (pData, strlen (propNames[i]), propNames[i]);
+ STORE_ARRAY8 (pData, strlen (propNames[i]), propNames[i]);
IceFlush (iceConn);
}
IceConn iceConn = smcConn->iceConn;
_SmcPropReplyWait *wait, *ptr;
- if ((wait = (_SmcPropReplyWait *) malloc (
- sizeof (_SmcPropReplyWait))) == NULL)
+ if ((wait = malloc (sizeof (_SmcPropReplyWait))) == NULL)
{
return (0);
}
smInteractRequestMsg *pMsg;
_SmcInteractWait *wait, *ptr;
- if ((wait = (_SmcInteractWait *) malloc (
- sizeof (_SmcInteractWait))) == NULL)
+ if ((wait = malloc (sizeof (_SmcInteractWait))) == NULL)
{
return (0);
}
wait = smcConn->phase2_wait;
else
{
- if ((wait = (_SmcPhase2Wait *) malloc (
- sizeof (_SmcPhase2Wait))) == NULL)
+ if ((wait = malloc (sizeof (_SmcPhase2Wait))) == NULL)
{
return (0);
}
\f
-/*
+/*
* This procedure sets the Smc error handler to be the specified
* routine. If NULL is passed in the default error handler is restored.
* The function's return value is the previous error handler.
*/
-
+
SmcErrorHandler
SmcSetErrorHandler(SmcErrorHandler handler)
{
\f
-/*
+/*
* This procedure sets the Sms error handler to be the specified
* routine. If NULL is passed in the default error handler is restored.
* The function's return value is the previous error handler.
*/
-
+
SmsErrorHandler
SmsSetErrorHandler(SmsErrorHandler handler)
{
/*
-Copyright © 2002 Sun Microsystems, Inc. All rights reserved.
+Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
*/
#ifdef WIN32
-#define _WILLWINSOCK_
+# define _WILLWINSOCK_
#endif
#ifdef HAVE_CONFIG_H
-#include <config.h>
+# include <config.h>
#endif
#include <X11/SM/SMlib.h>
#include "SMlibint.h"
#ifdef XTHREADS
-#include <X11/Xthreads.h>
+# include <X11/Xthreads.h>
#endif
#include <stdio.h>
#ifndef WIN32
-#if defined(TCPCONN) || defined(STREAMSCONN)
-#ifndef Lynx
-#include <sys/socket.h>
-#else
-#include <socket.h>
-#endif
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#define XOS_USE_NO_LOCKING
-#define X_INCLUDE_NETDB_H
-#include <X11/Xos_r.h>
-#endif
+# if defined(TCPCONN) || defined(STREAMSCONN)
+# include <sys/socket.h>
+# include <netinet/in.h>
+# include <arpa/inet.h>
+# define XOS_USE_NO_LOCKING
+# define X_INCLUDE_NETDB_H
+# include <X11/Xos_r.h>
+# endif
#else /* WIN32 */
-#include <X11/Xwinsock.h>
-#include <X11/Xw32defs.h>
-#define X_INCLUDE_NETDB_H
-#define XOS_USE_MTSAFE_NETDBAPI
-#include <X11/Xos_r.h>
+# include <X11/Xwinsock.h>
+# include <X11/Xw32defs.h>
+# define X_INCLUDE_NETDB_H
+# define XOS_USE_MTSAFE_NETDBAPI
+# include <X11/Xos_r.h>
#endif /* WIN32 */
#ifdef MNX_TCPCONN
-#include <net/gen/netdb.h>
+# include <net/gen/netdb.h>
-#define TCPCONN
+# define TCPCONN
#endif
#if defined(HAVE_UUID_CREATE)
-#include <uuid.h>
+# include <uuid.h>
#elif defined(HAVE_LIBUUID)
-#include <uuid/uuid.h>
+# include <uuid/uuid.h>
#endif
\f
temp[1] = '\0';
uuid_unparse_lower(uuid, &temp[1]);
- if ((id = malloc (strlen (temp) + 1)) != NULL)
- strcpy (id, temp);
+ id = strdup (temp);
return id;
#else
-#if defined(TCPCONN) || defined(STREAMSCONN)
+# if defined(TCPCONN) || defined(STREAMSCONN)
static const char hex[] = "0123456789abcdef";
char hostname[256];
char address[64], *addr_ptr = address;
char temp[256];
char *id;
static int sequence = 0;
-
- if (gethostname (hostname, sizeof (hostname)))
- return (NULL);
-
- {
char* inet_addr;
- char temp[4], *ptr1, *ptr2;
+ char *ptr1;
unsigned char decimal[4];
int i, len;
struct in_addr *haddr = NULL;
-#if defined(IPv6) && defined(AF_INET6)
+# if defined(IPv6) && defined(AF_INET6)
struct addrinfo *ai, *first_ai;
+# endif
+
+ if (gethostname (hostname, sizeof (hostname)))
+ return (NULL);
+
+# if defined(IPv6) && defined(AF_INET6)
if (getaddrinfo(hostname,NULL,NULL,&ai) != 0)
return NULL;
for (first_ai = ai; ai != NULL; ai = ai->ai_next) {
- if ( (ai->ai_family == AF_INET) || (ai->ai_family == AF_INET6) )
+ if ( (ai->ai_family == AF_INET) || (ai->ai_family == AF_INET6) )
break;
}
if (ai == NULL) {
freeaddrinfo(first_ai);
return NULL;
- }
+ }
if (ai->ai_family == AF_INET6) {
unsigned char *cp = (unsigned char *) &((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr.s6_addr;
-
+
*addr_ptr++ = '6'; /* IPv6 address code */
for (i = 0 ; i < 16 ; i++) {
} else { /* Fall through to IPv4 address handling */
haddr = &((struct sockaddr_in *)ai->ai_addr)->sin_addr;
-#else
-#ifdef XTHREADS_NEEDS_BYNAMEPARAMS
- _Xgethostbynameparams hparams;
-#endif
- struct hostent *hostp;
-
- if ((hostp = _XGethostbyname (hostname,hparams)) != NULL)
- haddr = (struct in_addr *)(hostp->h_addr);
- else
- return NULL;
-#endif
-
- inet_addr = inet_ntoa (*haddr);
- for (i = 0, ptr1 = inet_addr; i < 3; i++)
- {
- ptr2 = strchr (ptr1, '.');
- len = ptr2 - ptr1;
- if (!ptr2 || len > 3) {
-#if defined(IPv6) && defined(AF_INET6)
- freeaddrinfo(first_ai);
-#endif
- return (NULL);
+# else
+# ifdef XTHREADS_NEEDS_BYNAMEPARAMS
+ _Xgethostbynameparams hparams;
+# endif
+ struct hostent *hostp;
+
+ if ((hostp = _XGethostbyname (hostname,hparams)) != NULL)
+ haddr = (struct in_addr *)(hostp->h_addr);
+ else
+ return NULL;
+# endif
+
+ inet_addr = inet_ntoa (*haddr);
+ for (i = 0, ptr1 = inet_addr; i < 3; i++)
+ {
+ char temp4[4];
+ char *ptr2 = strchr (ptr1, '.');
+
+ len = ptr2 - ptr1;
+ if (!ptr2 || len > 3) {
+# if defined(IPv6) && defined(AF_INET6)
+ freeaddrinfo(first_ai);
+# endif
+ return (NULL);
+ }
+ strncpy (temp4, ptr1, len);
+ temp4[len] = '\0';
+ decimal[i] = atoi (temp4);
+ ptr1 = ptr2 + 1;
}
- strncpy (temp, ptr1, len);
- temp[len] = '\0';
- decimal[i] = atoi (temp);
- ptr1 = ptr2 + 1;
- }
- decimal[3] = atoi (ptr1);
+ decimal[3] = atoi (ptr1);
- *addr_ptr++ = '1';
+ *addr_ptr++ = '1';
- for (i = 0; i < 4; i++) {
- *addr_ptr++ = hex[decimal[i] >> 4];
- *addr_ptr++ = hex[decimal[i] & 0x0f];
- }
+ for (i = 0; i < 4; i++) {
+ *addr_ptr++ = hex[decimal[i] >> 4];
+ *addr_ptr++ = hex[decimal[i] & 0x0f];
+ }
- *addr_ptr++ = '\0';
+ *addr_ptr++ = '\0';
-#if defined(IPv6) && defined(AF_INET6)
+# if defined(IPv6) && defined(AF_INET6)
}
freeaddrinfo(first_ai);
-#endif
- }
+# endif
sprintf (temp, "1%s%.13ld%.10ld%.4d", address, (long)time((Time_t*)0),
(long)getpid(), sequence);
if (++sequence > 9999)
sequence = 0;
- if ((id = malloc (strlen (temp) + 1)) != NULL)
- strcpy (id, temp);
+ id = strdup (temp);
return (id);
-#else
+# else
return (NULL);
-#endif
+# endif
#endif
}
* Allocate new SmsConn.
*/
- if ((smsConn = (SmsConn) malloc (sizeof (struct _SmsConn))) == NULL)
+ if ((smsConn = malloc (sizeof (struct _SmsConn))) == NULL)
{
const char *str = "Memory allocation failed";
- if ((*failureReasonRet = (char *) malloc (strlen (str) + 1)) != NULL)
- strcpy (*failureReasonRet, str);
+ *failureReasonRet = strdup (str);
return (0);
}
\f
Status
-SmsInitialize(char *vendor, char *release, SmsNewClientProc newClientProc,
+SmsInitialize(const char *vendor, const char *release,
+ SmsNewClientProc newClientProc,
SmPointer managerData, IceHostBasedAuthProc hostBasedAuthProc,
int errorLength, char *errorStringRet)
{
smRegisterClientReplyMsg *pMsg;
char *pData;
- if ((smsConn->client_id = (char *) malloc (strlen (clientId) + 1)) == NULL)
+ if ((smsConn->client_id = strdup (clientId)) == NULL)
{
return (0);
}
- strcpy (smsConn->client_id, clientId);
-
extra = ARRAY8_BYTES (strlen (clientId));
IceGetHeaderExtra (iceConn, _SmsOpcode, SM_RegisterClientReply,
if (smsConn->client_id)
free (smsConn->client_id);
- free ((char *) smsConn);
+ free (smsConn);
}
{
for (i = 0; i < prop->num_vals; i++)
if (prop->vals[i].value)
- free ((char *) prop->vals[i].value);
- free ((char *) prop->vals);
+ free (prop->vals[i].value);
+ free (prop->vals);
}
- free ((char *) prop);
+ free (prop);
}
}
for (i = 0; i < count; i++)
free (reasonMsgs[i]);
- free ((char *) reasonMsgs);
+ free (reasonMsgs);
}
}
char *
SmcVendor(SmcConn smcConn)
{
- char *string = (char *) malloc (strlen (smcConn->vendor) + 1);
-
- strcpy (string, smcConn->vendor);
-
- return (string);
+ return strdup(smcConn->vendor);
}
char *
SmcRelease(SmcConn smcConn)
{
- char *string = (char *) malloc (strlen (smcConn->release) + 1);
-
- strcpy (string, smcConn->release);
-
- return (string);
+ return strdup(smcConn->release);
}
char *
SmcClientID(SmcConn smcConn)
{
- char *clientId = (char *) malloc (strlen (smcConn->client_id) + 1);
-
- strcpy (clientId, smcConn->client_id);
-
- return (clientId);
+ return strdup(smcConn->client_id);
}
char *
SmsClientID(SmsConn smsConn)
{
- char *clientId = (char *) malloc (strlen (smsConn->client_id) + 1);
-
- strcpy (clientId, smsConn->client_id);
-
- return (clientId);
+ return strdup(smsConn->client_id);
}
{
smRegisterClientReplyMsg *pMsg;
char *pData, *pStart;
- _SmcRegisterClientReply *reply =
+ _SmcRegisterClientReply *reply =
(_SmcRegisterClientReply *) (replyWait->reply);
#if 0 /* No-op */
(*smcConn->phase2_wait->phase2_proc) (smcConn,
smcConn->phase2_wait->client_data);
- free ((char *) smcConn->phase2_wait);
+ free (smcConn->phase2_wait);
smcConn->phase2_wait = NULL;
}
break;
(*smcConn->interact_waits->interact_proc) (smcConn,
smcConn->interact_waits->client_data);
- free ((char *) smcConn->interact_waits);
+ free (smcConn->interact_waits);
smcConn->interact_waits = next;
}
break;
(*smcConn->prop_reply_waits->prop_reply_proc) (smcConn,
smcConn->prop_reply_waits->client_data, numProps, props);
- free ((char *) smcConn->prop_reply_waits);
+ free (smcConn->prop_reply_waits);
smcConn->prop_reply_waits = next;
IceDisposeCompleteMessage (iceConn, pStart);
pData = pStart + 8;
- reasonMsgs = (char **) malloc (count * sizeof (char *));
+ reasonMsgs = malloc (count * sizeof (char *));
for (i = 0; i < count; i++)
EXTRACT_ARRAY8_AS_STRING (pData, swap, reasonMsgs[i]);
char *pData, *pStart;
SmProp **props = NULL;
int numProps;
-
+
#if 0 /* No-op */
CHECK_AT_LEAST_SIZE (iceConn, _SmsOpcode, opcode,
length, SIZEOF (smSetPropertiesMsg), IceFatalToProtocol);
pData = pStart + 8;
- propNames = (char **) malloc (count * sizeof (char *));
+ propNames = malloc (count * sizeof (char *));
for (i = 0; i < count; i++)
EXTRACT_ARRAY8_AS_STRING (pData, swap, propNames[i]);