diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-04 22:03:38 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-04 22:03:38 +0000 |
commit | a84f16a9ad2ed0f874d2c1816aedee96725d2657 (patch) | |
tree | 26a8489882186f081d8ec88d4d194e531fa30050 /hw/xfree86 | |
parent | 33fdd50a94baab1db342bfce442907db8f8ad03e (diff) |
XFree86 4.3.99.901 (RC 1)xf86-4_3_99_901
Diffstat (limited to 'hw/xfree86')
-rw-r--r-- | hw/xfree86/common/xf86Date.h | 4 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Events.c | 4 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Version.h | 4 | ||||
-rw-r--r-- | hw/xfree86/doc/README.fonts | 8 | ||||
-rw-r--r-- | hw/xfree86/doc/changelogs/CHANGELOG | 102 | ||||
-rw-r--r-- | hw/xfree86/loader/dixsym.c | 6 | ||||
-rw-r--r-- | hw/xfree86/loader/hash.c | 6 | ||||
-rw-r--r-- | hw/xfree86/os-support/linux/lnx_init.c | 79 | ||||
-rw-r--r-- | hw/xfree86/os-support/xf86_libc.h | 2 |
9 files changed, 179 insertions, 36 deletions
diff --git a/hw/xfree86/common/xf86Date.h b/hw/xfree86/common/xf86Date.h index 754e20d18..bb0a565bf 100644 --- a/hw/xfree86/common/xf86Date.h +++ b/hw/xfree86/common/xf86Date.h @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/xf86Date.h,v 1.52 2003/11/21 06:01:44 dawes Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/xf86Date.h,v 1.53 2003/12/03 05:02:25 dawes Exp $ */ /* * Copyright (c) 2003 by The XFree86 Project, Inc. * @@ -28,6 +28,6 @@ #ifndef XF86_DATE -#define XF86_DATE "20 November 2003" +#define XF86_DATE " 2 December 2003" #endif diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c index 1c3f3a34f..07dd88741 100644 --- a/hw/xfree86/common/xf86Events.c +++ b/hw/xfree86/common/xf86Events.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Events.c,v 3.158 2003/11/03 05:11:02 tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Events.c,v 3.159 2003/11/22 04:22:11 dawes Exp $ */ /* * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. * @@ -347,7 +347,7 @@ xf86ProcessActionEvent(ActionEvent action, void *arg) } break; #if !defined(__SOL8__) && !defined(__UNIXOS2__) && !defined(sgi) && \ - (!defined(sun) || defined(i386)) + (!defined(sun) || defined(i386)) && defined(VT_ACTIVATE) case ACTION_SWITCHSCREEN: if (VTSwitchEnabled && !xf86Info.dontVTSwitch && arg) { int vtno = *((int *) arg); diff --git a/hw/xfree86/common/xf86Version.h b/hw/xfree86/common/xf86Version.h index 07253bace..d65bb76ca 100644 --- a/hw/xfree86/common/xf86Version.h +++ b/hw/xfree86/common/xf86Version.h @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/xf86Version.h,v 3.563 2003/11/21 06:01:44 dawes Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/xf86Version.h,v 3.565 2003/12/03 05:06:00 dawes Exp $ */ /* * Copyright (c) 1994-2003 by The XFree86 Project, Inc. @@ -32,7 +32,7 @@ #define XF86_VERSION_MAJOR 4 #define XF86_VERSION_MINOR 3 #define XF86_VERSION_PATCH 99 -#define XF86_VERSION_SNAP 16 +#define XF86_VERSION_SNAP 901 /* This has five arguments for compatibilty reasons */ #define XF86_VERSION_NUMERIC(major,minor,patch,snap,dummy) \ diff --git a/hw/xfree86/doc/README.fonts b/hw/xfree86/doc/README.fonts index 7563c1c56..230e29c78 100644 --- a/hw/xfree86/doc/README.fonts +++ b/hw/xfree86/doc/README.fonts @@ -269,8 +269,8 @@ structure should be as follows: CID/fonts.scale After creating this directory structure and copying the relevant files, you -should create a <`tt/fonts.scale/' file. This file has the same format as in -the case of (non-CID) scalable fonts, except that its first column contains +should create a `fonts.scale' file. This file has the same format as in the +case of (non-CID) scalable fonts, except that its first column contains PostScript font names with the extension `.cid' appended rather than actual filenames: @@ -1176,7 +1176,7 @@ The IANA RFC documents, available from a number of sites throughout the world, often provide interesting information about character set issues; see for example RFC 373. - Generated from XFree86: xc/programs/Xserver/hw/xfree86/doc/sgml/fonts.sgml,v 1.22 dawes Exp $ + Generated from XFree86: xc/programs/Xserver/hw/xfree86/doc/sgml/fonts.sgml,v 1.23 dawes Exp $ -$XFree86: xc/programs/Xserver/hw/xfree86/doc/README.fonts,v 1.26 2003/11/19 01:44:58 dawes Exp $ +$XFree86: xc/programs/Xserver/hw/xfree86/doc/README.fonts,v 1.27 2003/11/24 01:57:56 dawes Exp $ diff --git a/hw/xfree86/doc/changelogs/CHANGELOG b/hw/xfree86/doc/changelogs/CHANGELOG index 78f7f2e84..9833a0813 100644 --- a/hw/xfree86/doc/changelogs/CHANGELOG +++ b/hw/xfree86/doc/changelogs/CHANGELOG @@ -1,4 +1,99 @@ -XFree86 4.3.99.17 (xx November 2003) +XFree86 4.3.99.902 (xx December 2003) + +XFree86 4.3.99.901 ( 2 December 2003) + 645. Update xterm's checking of modifiers to match change 635, and handle + the case of keys like Meta_L being in more than one modifier. This + addresses an issue arising from Bugzilla #924 (David Dawes). + 644. When XDM-AUTHORIZATION-1 is used with IPv6 IPv4-mapped addresses, + (which should not happen with change 643, but can be done with other + xdm implementations) send the IPv4 address in the auth data; otherwise + send fake data for alignement purposes. (Matthieu Herrb). + 643. Don't generate XDM-AUTHORIZATION-1 authentification data for + IPv6 connections (Matthieu Herrb). + 642. Fix fontconfig timestamp checking problem that shows up on JFS + (Bugzilla #932, Frank Giessler). + 641. Restore VT ownership at XFree86 server exit on Linux. Should do the + same for other platforms that change change VT ownership at startup + (Bugzilla #927, Andrew Bevitt). + 640. Fix Mesa/GL problem on Linux with -mcpu=ultrasparc (reported by + Ferris McCormick). + 639. Fix a problem connecting to an IPv4-only X server running on a + machine which happens to have an AAAA DNS record from a NetBSD or + OpenBSD host with IPv6 configured (Matthieu Herrb). + 638. Don't use IPv6 sockets with IPv4-mapped addresses (::FFFF:w.x.y.z) + when making IPv4 connections with the "tcp" transport type. This + fixes problems on platforms (such as FreeBSD 5.1) which disable + IPv4-mapped addresses by default. It also fixes a problem with + XDM-AUTHORIZATION-1 for IPv4 connections with the default "tcp" + transport as reported in Bugzilla #903 (David Dawes). + 637. Fix backward compatibility of Xlib+IPv6 for apps linked against a libc + without IPv6 support (David Dawes). + 636. Restore the behaviour of scalable fonts.dir entries in directories with + the ":unscaled" attribute (Chisato Yamauchi, David Dawes, reported by + Mike Fabian). + 635. Fix xmodmap's output of the modifiers map when the first column keysym + is empty (Ivan Pascal). + 634. Fixes for XKB keyboard maps: + - fix Meta, Super, Hyper keysyms interpretation + - fix typo in rules/xfree86.xml (Ivan Pascal). + 633. DRI updates. + - Latest kernel drivers from the DRI trunk. + - Fix FB_LOCATION in radeon driver (Michel Daenzer). + - Texture managment code consolidation (Ian Romanick) + - i830 stencil fix (Keith Whitwell) + - mga blend fixes (Ville Syrjala) + 632. Fix a problem that prevented the i810 driver from using dot clocks less + than 12MHz (which appear to work) (Bugzilla #925, Richard Dengler). + 631. Fix a server crash that can happen when loading some CID fonts + (Bugzilla #906, David Dawes). + 630. Restructured version of the wacom driver, with support for TwinView, + fixed bugs and added filters (Bugzilla #537, Ping Cheng). + 629. Fix libfontenc link failure on OS/2 (Bugzilla #921, Frank Giessler). + 628. OS/2 fixes: + - Unable to connect to a font server. + - SIGFPE in GLX. + (Bugzila #920, Frank Giessler). + 627. Add a missing entry to big5hkscs-0.enc (Bugzilla #917, Jungshik Shin). + 626. Update libfreetype-xtt2 to version 1.1a: + - Fixed erroneous method of making up italic bitmap. + (Chisato Yamauchi, After X-TT Project). + 625. OS/2 build fixes: + - Cleanup of bootstrap leftovers in xc/config/imake. + - Explicitly define int32_t and int64_t in Mesa. + - Missing Xft/Imakefile patch. + (Bugzilla #915, Frank Giessler). + 624. Fix hide/unhide of XDarwin application with xpr when an AppleWM-aware + window manager is not present (Torrey T. Lyons). + 623. Fix generic rootless code bug which caused the wrong region to be + damaged on window resize (Torrey T. Lyons). + 622. Fix server crash when doing 'listwithinfo' of an outline font in + a directory marked ":unscaled" (Bugzilla #911, David Dawes). + 621. Fix a key truncation problem with 'xauth add' (Bugzilla #903, + David Dawes). + 620. With AppleDRI, don't use APPLE_fence as a replacement for NV_fence + calls (John Harper). + 619. Fix intermittent XDarwin crash when quitting (Torrey T. Lyons). + 618. Build fixes and updates for GNU/Hurd and GNU/K*BSD systems (Bugzilla + #907, #908, Robert Millan). + 617. Xterm fixes (Bugzilla #893, #905, Thomas Dickey). + 616. XDarwin fixes: + - Fix intermittent crash on XDarwin startup. + - Fix failure to redraw after resizing with cr implementation. + - Fix install failure when DESTDIR is specified (Reported by + Benjamin Reed). + (Torrey T. Lyons). + 615. Add command line options to mkfontscale to enable/disable generation + of iso10646-1 lines (Bugzilla #885, Roland Mainz). + 614. Add a more complete set of the encodings we support to mkfontscale + (Bugzilla #884, Roland Mainz). + 613. Add ansi-1251 encoding file (Bugzilla #884, Roland Mainz). + 612. Update XDMCP to use the IPv6 multicast address that has been assigned + by IANA. Draft XDMCP 1.1 specs updated accordingly (Bugzilla #895, + Alan Coopersmith). + 611. Add 'defined(VT_ACTIVATE)' to the test for platforms that support VT + switching (based on Bugzilla #894, Robert Millan). + 610. Make several tests for glibc features glibc-specific rather than + specific to the underlying OS (Bugzila #890, 891, Robert Millan). XFree86 4.3.99.16 (20 November 2003) 609. Fix 'constype' for modern framebuffers on Solaris (Bugzilla #890, @@ -461,7 +556,8 @@ XFree86 4.3.99.14 (10 October 2003) Frank Giessler). 458. Import Mesa 5.0.2 (Alan Hourihane). 457. DRI merge (DRI Project) - * details to follow.......... + - Update the SiS driver to use Mesa 5.0 + - 456. Fixes and updates for XKB keyboard maps: - Update xkb geometry files (Alexander Pohoyda). - Fix German-Romanian maps (Manfred Pohler). @@ -18230,7 +18326,7 @@ XFree86 3.0a (28 April 1994) XFree86 3.0 (26 April 1994) -$XFree86: xc/programs/Xserver/hw/xfree86/CHANGELOG,v 3.2982 2003/11/21 06:01:42 dawes Exp $ +$XFree86: xc/programs/Xserver/hw/xfree86/CHANGELOG,v 3.3014 2003/12/03 05:05:57 dawes Exp $ diff --git a/hw/xfree86/loader/dixsym.c b/hw/xfree86/loader/dixsym.c index 3808cf3e3..da920dc5f 100644 --- a/hw/xfree86/loader/dixsym.c +++ b/hw/xfree86/loader/dixsym.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/dixsym.c,v 1.61 2003/11/10 18:22:35 tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/dixsym.c,v 1.62 2003/11/25 05:26:38 dawes Exp $ */ /* * Copyright 1995-1998 by Metro Link, Inc. @@ -114,6 +114,10 @@ LOOKUP dixLookupTab[] = { SYMFUNC(InitFocusClassDeviceStruct) SYMFUNC(InitLedFeedbackClassDeviceStruct) SYMFUNC(InitPtrFeedbackClassDeviceStruct) + SYMFUNC(InitKbdFeedbackClassDeviceStruct) + SYMFUNC(InitIntegerFeedbackClassDeviceStruct) + SYMFUNC(InitStringFeedbackClassDeviceStruct) + SYMFUNC(InitBellFeedbackClassDeviceStruct) SYMFUNC(InitValuatorClassDeviceStruct) SYMFUNC(InitKeyClassDeviceStruct) SYMFUNC(InitKeyboardDeviceStruct) diff --git a/hw/xfree86/loader/hash.c b/hw/xfree86/loader/hash.c index f8ddd45a4..03f415c22 100644 --- a/hw/xfree86/loader/hash.c +++ b/hw/xfree86/loader/hash.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/hash.c,v 1.24 2003/11/17 22:20:40 dawes Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/hash.c,v 1.25 2003/11/23 00:57:56 dawes Exp $ */ /* * @@ -41,9 +41,7 @@ /* Prototypes for static functions. */ static unsigned int hashFunc(const char *); -static itemPtr LoaderHashFindNearest( - unsigned long - ); +static itemPtr LoaderHashFindNearest(unsigned long); static itemPtr LoaderhashTable[HASHSIZE]; diff --git a/hw/xfree86/os-support/linux/lnx_init.c b/hw/xfree86/os-support/linux/lnx_init.c index 0ac8c6a8b..cbc926bc0 100644 --- a/hw/xfree86/os-support/linux/lnx_init.c +++ b/hw/xfree86/os-support/linux/lnx_init.c @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c,v 3.14 2001/10/31 22:50:30 tsi Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c,v 3.15 2003/12/02 20:45:13 dawes Exp $ */ /* * Copyright 1992 by Orest Zborowski <obz@Kodak.com> * Copyright 1993 by David Wexelblat <dwex@goblin.org> @@ -7,19 +7,19 @@ * 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, and that the names of Orest Zborowski and David Wexelblat - * not be used in advertising or publicity pertaining to distribution of + * documentation, and that the names of Orest Zborowski and David Wexelblat + * not be used in advertising or publicity pertaining to distribution of * the software without specific, written prior permission. Orest Zborowski - * and David Wexelblat make no representations about the suitability of this - * software for any purpose. It is provided "as is" without express or + * and David Wexelblat make no representations about the suitability of this + * software for any purpose. It is provided "as is" without express or * implied warranty. * - * OREST ZBOROWSKI AND DAVID WEXELBLAT DISCLAIMS ALL WARRANTIES WITH REGARD - * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS, IN NO EVENT SHALL OREST ZBOROWSKI OR DAVID WEXELBLAT BE LIABLE - * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OREST ZBOROWSKI AND DAVID WEXELBLAT DISCLAIMS ALL WARRANTIES WITH REGARD + * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + * FITNESS, IN NO EVENT SHALL OREST ZBOROWSKI OR DAVID WEXELBLAT BE LIABLE + * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * */ @@ -35,6 +35,8 @@ #include "xf86_OSlib.h" #include "lnx.h" +#include <sys/stat.h> + #ifdef USE_DEV_FB extern char *getenv(const char *); #include <linux/fb.h> @@ -45,13 +47,44 @@ static Bool KeepTty = FALSE; static int VTnum = -1; static int activeVT = -1; +static int vtPermSave[4]; +static char vtname[11]; + +static int +saveVtPerms(void) +{ + /* We need to use stat to get permissions. */ + struct stat svtp; + + /* Do them numerically ordered, hard coded tty0 first. */ + if (stat("/dev/tty0", &svtp) != 0) + return 0; + vtPermSave[0] = (int)svtp.st_uid; + vtPermSave[1] = (int)svtp.st_gid; + + /* Now check the console we are dealing with. */ + if (stat(vtname, &svtp) != 0) + return 0; + vtPermSave[2] = (int)svtp.st_uid; + vtPermSave[3] = (int)svtp.st_gid; + + return 1; +} + +static void +restoreVtPerms(void) +{ + /* Set the terminal permissions back to before we started. */ + chown("/dev/tty0", vtPermSave[0], vtPermSave[1]); + chown(vtname, vtPermSave[2], vtPermSave[3]); +} + void xf86OpenConsole(void) { int i, fd = -1; int result; struct vt_mode VT; - char vtname[11]; struct vt_stat vts; MessageType from = X_PROBED; #ifdef USE_DEV_FB @@ -61,7 +94,7 @@ xf86OpenConsole(void) char *tty0[] = { "/dev/tty0", "/dev/vc/0", NULL }; char *vcs[] = { "/dev/vc/%d", "/dev/tty%d", NULL }; - if (serverGeneration == 1) + if (serverGeneration == 1) { /* check if we're run with euid==0 */ if (geteuid() != 0) @@ -124,6 +157,15 @@ xf86OpenConsole(void) xf86Info.vtno, strerror(errno)); } + /* + * Grab the vt ownership before we overwrite it. + * Hard coded /dev/tty0 into this function as well for below. + */ + if (!saveVtPerms()){ + xf86Msg(X_WARNING, + "xf86OpenConsole: Could not save ownership of VT\n"); + } + /* change ownership of the vt */ chown(vtname, getuid(), getgid()); @@ -171,7 +213,7 @@ xf86OpenConsole(void) xf86Msg(X_WARNING, "xf86OpenConsole: VT_WAITACTIVE failed\n"); } SYSCALL(result = ioctl(xf86Info.consoleFd, VT_GETMODE, &VT)); - if (result < 0) + if (result < 0) { FatalError("xf86OpenConsole: VT_GETMODE failed\n"); } @@ -181,7 +223,7 @@ xf86OpenConsole(void) VT.mode = VT_PROCESS; VT.relsig = SIGUSR1; VT.acqsig = SIGUSR1; - if (ioctl(xf86Info.consoleFd, VT_SETMODE, &VT) < 0) + if (ioctl(xf86Info.consoleFd, VT_SETMODE, &VT) < 0) { FatalError("xf86OpenConsole: VT_SETMODE VT_PROCESS failed\n"); } @@ -202,7 +244,7 @@ xf86OpenConsole(void) close(fbfd); #endif } - else + else { /* serverGeneration != 1 */ /* @@ -247,6 +289,9 @@ xf86CloseConsole() activeVT = -1; } close(xf86Info.consoleFd); /* make the vt-manager happy */ + + restoreVtPerms(); /* restore the permissions */ + return; } @@ -254,7 +299,7 @@ int xf86ProcessArgument(int argc, char *argv[], int i) { /* - * Keep server from detaching from controlling tty. This is useful + * Keep server from detaching from controlling tty. This is useful * when debugging (so the server can receive keyboard signals. */ if (!strcmp(argv[i], "-keeptty")) diff --git a/hw/xfree86/os-support/xf86_libc.h b/hw/xfree86/os-support/xf86_libc.h index 61eb93d8b..cd895eea0 100644 --- a/hw/xfree86/os-support/xf86_libc.h +++ b/hw/xfree86/os-support/xf86_libc.h @@ -1,4 +1,4 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/xf86_libc.h,v 3.60 2003/10/26 12:17:17 herrb Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/xf86_libc.h,v 3.62 2003/12/02 22:29:23 dawes Exp $ */ /* * Copyright (c) 1997-2003 by The XFree86 Project, Inc. * |