Mark Kettenis 8b2c8aabe2 Fix alignment issues in FD passing code
A char array on the stack is not guaranteed to have more than byte
alignment.  This means that casting it to a 'struct cmsghdr' and
accessing its members may result in unaligned access.  This will
generate SIGBUS on strict alignment architectures like OpenBSD/sparc64.
The solution is to use a union to force proper alignment.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
2013-11-21 11:35:07 +01:00
2005-05-11 22:44:52 +00:00
2013-11-07 20:16:53 -08:00
2010-11-06 12:46:03 -07:00
2013-11-02 19:10:11 -07:00

xtrans is a library of code that is shared among various X packages to
handle network protocol transport in a modular fashion, allowing a
single place to add new transport types.  It is used by the X server,
libX11, libICE, the X font server, and related components.

It is however, *NOT* a shared library, but code which each consumer
includes and builds it's own copy of with various #ifdef flags to make
each copy slightly different.  To support this in the modular build
system, this package simply installs the C source files into
$(prefix)/include/X11/Xtrans and installs a pkg-config file and an
autoconf m4 macro file with the flags needed to use it.

Documentation of the xtrans API can be found in the included xtrans.xml
file in DocBook XML format. If 'xmlto' is installed, you can generate text,
html, postscript or pdf versions of the documentation by configuring
the build with --enable-docs, which is the default.

Please submit bugs & patches to the Xorg bugzilla:

	https://bugs.freedesktop.org/enter_bug.cgi?product=xorg

under the component "Lib/xtrans".

All questions regarding this software should be directed at the
Xorg mailing list:

	http://lists.freedesktop.org/mailman/listinfo/xorg

The master development code repository can be found at:

	git://anongit.freedesktop.org/git/xorg/lib/libxtrans

	http://cgit.freedesktop.org/xorg/lib/libxtrans

For more information on the git code manager, see:

	http://wiki.x.org/wiki/GitPage
Description
No description provided
Readme 448 KiB
Languages
C 95.4%
M4 4.2%
Makefile 0.3%
Shell 0.1%