summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
Diffstat (limited to 'programs')
-rw-r--r--programs/Imakefile4
-rw-r--r--programs/Xserver/hw/sun/Imakefile2
-rw-r--r--programs/Xserver/hw/xfree86/CHANGELOG25
-rw-r--r--programs/Xserver/hw/xfree86/drivers/sis/sis_accel.c5
-rw-r--r--programs/Xserver/xkb/xkbInit.c20
-rw-r--r--programs/fstobdf/chars.c33
-rw-r--r--programs/xcalc/math.c9
-rw-r--r--programs/xdm/Imakefile4
-rw-r--r--programs/xdm/chooser.c4
-rw-r--r--programs/xfs/os/waitfor.c4
-rw-r--r--programs/xload/Imakefile28
11 files changed, 87 insertions, 51 deletions
diff --git a/programs/Imakefile b/programs/Imakefile
index 06d10f6e3..11edca038 100644
--- a/programs/Imakefile
+++ b/programs/Imakefile
@@ -2,7 +2,7 @@ XCOMM $TOG: Imakefile /main/85 1998/02/26 17:14:44 kaleb $
XCOMM
XCOMM
XCOMM
-XCOMM $XFree86: xc/programs/Imakefile,v 3.27 2000/02/23 20:29:39 dawes Exp $
+XCOMM $XFree86: xc/programs/Imakefile,v 3.28 2000/02/26 05:35:07 dawes Exp $
#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"
@@ -43,7 +43,9 @@ SCREENSAVESRCDIR = beforelight
XDMSRCDIR = xdm
XFINDPROXYSRCDIR = xfindproxy
XFWPSRCDIR = xfwp
+#if BuildXF86VidModeExt
XGAMMASRCDIR = xgamma
+#endif
XHOSTSRCDIR = xhost
#if BuildPlugin
XRXSRCDIR = xrx
diff --git a/programs/Xserver/hw/sun/Imakefile b/programs/Xserver/hw/sun/Imakefile
index 48f160cdb..28c3849b3 100644
--- a/programs/Xserver/hw/sun/Imakefile
+++ b/programs/Xserver/hw/sun/Imakefile
@@ -45,7 +45,7 @@ OBJS2 = sunGX.o
OBJS = $(OBJS1) $(OBJS2)
INCLUDES = -I. -I../.. -I../../mi -I../../mfb -I../../cfb -I../../cfb32 \
- -I../../include -I$(XINCLUDESRC) -I$(FONTINCSRC)
+ -I../../include -I$(XINCLUDESRC) -I$(FONTINCSRC) -I$(EXTINCSRC)
LINTLIBS = ../../dix/llib-ldix.ln ../../os/llib-los.ln \
../mfb/llib-lmfb.ln ../mi/llib-lmi.ln ../cfb/llib-lcfb.ln
diff --git a/programs/Xserver/hw/xfree86/CHANGELOG b/programs/Xserver/hw/xfree86/CHANGELOG
index 3c2862347..142c6446b 100644
--- a/programs/Xserver/hw/xfree86/CHANGELOG
+++ b/programs/Xserver/hw/xfree86/CHANGELOG
@@ -1,4 +1,25 @@
-XFree86 4.0d (14 June 2000)
+XFree86 4.0d (15 June 2000)
+ 295. Fix a buffer overflow with the -xkbmap X server flag (#A.91,
+ Trevor Johnson).
+ 294. Fix a rectangle fill problem that shows up with an AGP SiS 6326
+ (A.81, A.83, Milivoj Savin).
+ 293. Fix a problem in xcalc when the current locale uses a character
+ other than "." for the decimal point (#A.63, Stanislav Brabec).
+ 292. Allow some more parameters in linux.cf and lnxLib.rules to be
+ redefined (#A.60, Stanislav Brabec).
+ 291. Fix a typo in lib/Xss/Imakefile (#A.59, Stanislav Brabec).
+ 290. Fix an xfs crash that shows up when many clients connect (#A.48,
+ Remy Card).
+ 289. Fix some man page build problems (#A.43, Ian Collier).
+ 288. Fix xedit core dump (in Xaw) on Solaris, related to the bsearch()
+ usage (#A.42, Ian Collier).
+ 287. Add xkb mappings for the keycodes generated by the SysRq and Break
+ keys, which are different from the keycodes generated when used as
+ PrtScn and Pause (#A.29, Eric W. Biederman).
+ 286. Fix problems when building on Solaris 2.6/sparc and Irix 6.5.5
+ (#A.21, A.28, Sullivan N. Beck).
+ 285. Fix a core dump in fstobdf when using 16 bit fonts (#A.25,
+ Morten Storgaard Nielsen).
284. Clean up some of the messages printed by the neomagic driver
(David Dawes).
283. Add support for the 2360 (256ZX) to the neomagic driver, and enable
@@ -10568,4 +10589,4 @@ XFree86 3.0 (26 April 1994)
-$XFree86: xc/programs/Xserver/hw/xfree86/CHANGELOG,v 3.1183 2000/06/14 21:57:46 dawes Exp $
+$XFree86: xc/programs/Xserver/hw/xfree86/CHANGELOG,v 3.1184 2000/06/15 01:26:20 dawes Exp $
diff --git a/programs/Xserver/hw/xfree86/drivers/sis/sis_accel.c b/programs/Xserver/hw/xfree86/drivers/sis/sis_accel.c
index 313d8551c..1a978b6bb 100644
--- a/programs/Xserver/hw/xfree86/drivers/sis/sis_accel.c
+++ b/programs/Xserver/hw/xfree86/drivers/sis/sis_accel.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sis/sis_accel.c,v 1.15 2000/02/18 12:19:59 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sis/sis_accel.c,v 1.16 2000/03/31 20:13:35 dawes Exp $ */
#include "xf86.h"
#include "xf86_OSproc.h"
@@ -164,6 +164,7 @@ SiSSetupForFillRectSolid(ScrnInfoPtr pScrn, int color, int rop,
SISPtr pSiS = SISPTR(pScrn);
sisSETFGCOLOR(color);
+ sisSETBGCOLOR(color);
sisSETROP(XAACopyROP[rop]);
sisSETPITCH(pScrn->displayWidth * pScrn->bitsPerPixel / 8,
pScrn->displayWidth * pScrn->bitsPerPixel / 8);
@@ -182,7 +183,7 @@ SiSSubsequentFillRectSolid(ScrnInfoPtr pScrn, int x, int y, int w, int h)
int destaddr, op;
destaddr = y * pScrn->displayWidth + x;
- op = sisCMDBLT | sisSRCFG | sisTOP2BOTTOM | sisLEFT2RIGHT;
+ op = sisCMDBLT | sisSRCBG | sisTOP2BOTTOM | sisLEFT2RIGHT;
if (pSiS->ClipEnabled) op |= sisCLIPINTRN | sisCLIPENABL;
destaddr *= (pScrn->bitsPerPixel / 8);
diff --git a/programs/Xserver/xkb/xkbInit.c b/programs/Xserver/xkb/xkbInit.c
index 8c79acaee..e55cf4c12 100644
--- a/programs/Xserver/xkb/xkbInit.c
+++ b/programs/Xserver/xkb/xkbInit.c
@@ -24,7 +24,7 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
-/* $XFree86: xc/programs/Xserver/xkb/xkbInit.c,v 3.15 1998/10/04 09:39:55 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/xkb/xkbInit.c,v 3.16 2000/04/04 19:25:24 dawes Exp $ */
#include <stdio.h>
#include <stdlib.h>
@@ -926,8 +926,13 @@ XkbProcessArguments(argc,argv,i)
}
else if (strncmp(argv[i], "-xkbmap", 7) == 0) {
if(++i < argc) {
- XkbInitialMap= argv[i];
- return 2;
+ if (strlen(argv[i]) < PATH_MAX) {
+ XkbInitialMap= argv[i];
+ return 2;
+ } else {
+ ErrorF("-xkbmap pathname too long\n");
+ return -1;
+ }
}
else {
return -1;
@@ -935,8 +940,13 @@ XkbProcessArguments(argc,argv,i)
}
else if (strncmp(argv[i], "-xkbdb", 7) == 0) {
if(++i < argc) {
- XkbDB= argv[i];
- return 2;
+ if (strlen(argv[i]) < PATH_MAX) {
+ XkbDB= argv[i];
+ return 2;
+ } else {
+ ErrorF("-xkbdb pathname too long\n");
+ return -1;
+ }
}
else {
return -1;
diff --git a/programs/fstobdf/chars.c b/programs/fstobdf/chars.c
index eef9ea509..32260f343 100644
--- a/programs/fstobdf/chars.c
+++ b/programs/fstobdf/chars.c
@@ -39,7 +39,9 @@ in this Software without prior written authorization from The Open Group.
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
* THIS SOFTWARE.
*/
-/* $XFree86: xc/programs/fstobdf/chars.c,v 3.3 1998/10/04 09:40:05 dawes Exp $ */
+/* $XFree86: xc/programs/fstobdf/chars.c,v 3.4 1999/02/19 21:27:08 hohndel Exp $ */
+
+/* Morten Storgaard Nielsen: chars.c,v 3.2-1 2000/01/30 14:11:19 kat Exp */
#include <stdio.h>
#include <X11/Xlib.h>
@@ -159,19 +161,22 @@ EmitCharacters(FILE *outFile,
unsigned char *glyph;
unsigned char *glyphs;
unsigned int nChars;
- int firstChar;
- int lastChar;
- int ch;
+ int firstCharLow;
+ int firstCharHigh;
+ int lastCharLow;
+ int lastCharHigh;
+ int chLow;
+ int chHigh;
FSBitmapFormat format;
nChars = 0;
format = BYTE_ORDER | BIT_ORDER | SCANLINE_UNIT |
SCANLINE_PAD | EXTENTS;
- firstChar = (fontHeader->char_range.min_char.high << 8)
- + fontHeader->char_range.min_char.low;
- lastChar = (fontHeader->char_range.max_char.high << 8)
- + fontHeader->char_range.max_char.low;
+ firstCharLow = fontHeader->char_range.min_char.low;
+ firstCharHigh = fontHeader->char_range.min_char.high;
+ lastCharLow = fontHeader->char_range.max_char.low;
+ lastCharHigh = fontHeader->char_range.max_char.high;
(void) FSQueryXExtents16(fontServer, fontID, True, (FSChar2b *) 0, 0,
&extents);
@@ -180,10 +185,12 @@ EmitCharacters(FILE *outFile,
charInfo = extents;
/* calculate the actual number of chars */
- for (ch = 0; ch <= (lastChar - firstChar); ch++) {
+ for (chHigh = 0; chHigh <= (lastCharHigh-firstCharHigh); chHigh++) {
+ for (chLow = 0; chLow <= (lastCharLow-firstCharLow); chLow++) {
if ((charInfo->width != 0) || (charInfo->left != charInfo->right))
nChars++;
charInfo++;
+ }
}
fprintf(outFile, "CHARS %u\n", nChars);
@@ -192,19 +199,19 @@ EmitCharacters(FILE *outFile,
* actually emit the characters
*/
charInfo = extents;
- encoding = firstChar;
glyph = glyphs;
- for (ch = 0; ch <= (lastChar - firstChar); ch++) {
+ for (chHigh = firstCharHigh; chHigh <= lastCharHigh; chHigh++) {
+ for (chLow = firstCharLow; chLow <= lastCharLow; chLow++) {
int bpr;
bpr = GLWIDTHBYTESPADDED((charInfo->right - charInfo->left),
SCANLINE_PAD_BYTES);
+ encoding=(chHigh << 8)+chLow;
if ((charInfo->width != 0) || (charInfo->right != charInfo->left))
EmitBitmap(outFile, fontHeader, charInfo, encoding, bpr, glyph);
glyph += (charInfo->descent + charInfo->ascent) * bpr;
-
charInfo++;
- encoding++;
+ }
}
FSFree((char *) extents);
FSFree((char *) glyphs);
diff --git a/programs/xcalc/math.c b/programs/xcalc/math.c
index 1e864eef4..6e81dfb21 100644
--- a/programs/xcalc/math.c
+++ b/programs/xcalc/math.c
@@ -1,5 +1,5 @@
/* $XConsortium: math.c,v 1.17 91/07/25 17:51:34 rws Exp $
- * $XFree86: contrib/programs/xcalc/math.c,v 3.0 1994/06/05 07:59:43 dawes Exp $
+ * $XFree86: xc/programs/xcalc/math.c,v 1.1 2000/02/13 03:26:19 dawes Exp $
*
* math.c - mathematics functions for a hand calculator under X
*
@@ -26,6 +26,7 @@
#include <setjmp.h>
#include "xcalc.h"
#include <errno.h>
+#include <X11/Xlocale.h>
#ifdef _CRAY /* kludge around Cray STDC compiler */
double (*log_p)() = log;
@@ -402,7 +403,11 @@ decf()
strcpy(dispstr,"0");
}
if (!Dpoint) {
- strcat(dispstr,".");
+#ifndef X_LOCALE
+ strcat(dispstr, localeconv()->decimal_point);
+#else
+ strcat(dispstr, ".");
+#endif
DrawDisplay();
Dpoint++;
}
diff --git a/programs/xdm/Imakefile b/programs/xdm/Imakefile
index 2fac8e2cf..05b47fcba 100644
--- a/programs/xdm/Imakefile
+++ b/programs/xdm/Imakefile
@@ -2,7 +2,7 @@ XCOMM $TOG: Imakefile /main/83 1997/10/05 20:42:43 kaleb $
XCOMM
XCOMM
XCOMM
-XCOMM $XFree86: xc/programs/xdm/Imakefile,v 3.33 2000/05/31 07:15:10 eich Exp $
+XCOMM $XFree86: xc/programs/xdm/Imakefile,v 3.34 2000/06/14 00:16:14 dawes Exp $
#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
@@ -80,7 +80,7 @@ PAM_LIBRARIES = -lpam DlLibrary
PAM_DEFINES = -DUSE_PAM
#endif
-#if !defined(i386IscArchitecture) && !defined(i386ScoArchitecture) && !defined(LinuxArchitecture) && !defined(NTOArchitecture)
+#if !defined(i386IscArchitecture) && !defined(i386ScoArchitecture) && !defined(LinuxArchitecture) && !defined(NTOArchitecture) && !defined(SGIArchitecture)
SYS_LIBRARIES3 = -lresolv
#endif
#if SystemV || defined(SequentArchitecture)
diff --git a/programs/xdm/chooser.c b/programs/xdm/chooser.c
index 7c0e55c51..058eee492 100644
--- a/programs/xdm/chooser.c
+++ b/programs/xdm/chooser.c
@@ -22,7 +22,7 @@ in this Software without prior written authorization from The Open Group.
* Author: Keith Packard, MIT X Consortium
*/
-/* $XFree86: xc/programs/xdm/chooser.c,v 3.17 1998/10/04 09:40:54 dawes Exp $ */
+/* $XFree86: xc/programs/xdm/chooser.c,v 3.19 2000/05/31 07:15:11 eich Exp $ */
/*
* Chooser - display a menu of names and let the user select one
@@ -218,7 +218,7 @@ static int pingTry;
static XdmcpBuffer directBuffer, broadcastBuffer;
static XdmcpBuffer buffer;
-#if ((defined(SVR4) && !defined(sun) && !defined(NCR)) || defined(ISC)) && defined(SIOCGIFCONF)
+#if ((defined(SVR4) && !defined(sun) && !defined(__sgi) && !defined(NCR)) || defined(ISC)) && defined(SIOCGIFCONF)
/* Deal with different SIOCGIFCONF ioctl semantics on these OSs */
diff --git a/programs/xfs/os/waitfor.c b/programs/xfs/os/waitfor.c
index 25770febc..8c667a6b3 100644
--- a/programs/xfs/os/waitfor.c
+++ b/programs/xfs/os/waitfor.c
@@ -46,7 +46,7 @@ in this Software without prior written authorization from The Open Group.
* $NCDId: @(#)waitfor.c,v 4.5 1991/06/24 11:59:20 lemke Exp $
*
*/
-/* $XFree86: xc/programs/xfs/os/waitfor.c,v 3.9 1999/03/07 11:41:08 dawes Exp $ */
+/* $XFree86: xc/programs/xfs/os/waitfor.c,v 3.10 1999/08/21 13:48:52 dawes Exp $ */
#include <X11/Xos.h> /* strings, time, etc */
@@ -205,7 +205,7 @@ WaitForSomething(int *pClientsReady)
while (clientsReadable.fds_bits[i]) {
curclient = ffs(clientsReadable.fds_bits[i]) - 1;
conn = ConnectionTranslation[curclient + (i << 5)];
- FD_CLR (curclient, &clientsReadable);
+ clientsReadable.fds_bits[i] &= ~(((fd_mask)1L) << curclient);
client = clients[conn];
if (!client)
continue;
diff --git a/programs/xload/Imakefile b/programs/xload/Imakefile
index c983b9bfe..d68e59cd8 100644
--- a/programs/xload/Imakefile
+++ b/programs/xload/Imakefile
@@ -1,31 +1,21 @@
XCOMM $XConsortium: Imakefile /main/30 1996/03/09 09:37:57 kaleb $
-XCOMM $XFree86: xc/programs/xload/Imakefile,v 1.1 2000/02/13 03:26:31 dawes Exp $
+XCOMM $XFree86: xc/programs/xload/Imakefile,v 1.2 2000/04/05 18:14:08 dawes Exp $
DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
+
#ifdef i386MachArchitecture
SYS_LIBRARIES = -lsys
-#endif
-#ifdef SVR4Architecture
-#ifdef SGIArchitecture
+#elif defined(SGIArchitecture) && !defined(MipsN32Architecture)
SYS_LIBRARIES = -lmld
-#else
-#ifdef SonyArchitecture
+#elif defined(SonyArchitecture)
SYS_LIBRARIES = -lmld
-#else
- SYS_LIBRARIES = -lelf
-#endif
-#endif
-#endif
-#if defined(SunArchitecture) && SystemV4
+#elif defined(SunArchitecture) && SystemV4
SYS_LIBRARIES = -lkvm -lelf
-#endif
-#ifdef SGIArchitecture
- SYS_LIBRARIES = -lmld
-#endif
-#ifdef OsfArchitecture
+#elif defined(SVR4Architecture)
+ SYS_LIBRARIES = -lelf
+#elif defined(OsfArchitecture)
SYS_LIBRARIES = -lld
-#endif
-#if defined(i386BsdArchitecture) && !defined(NetBSDArchitecture) && !defined(OpenBSDArchitecture)
+#elif defined(i386BsdArchitecture) && !defined(NetBSDArchitecture) && !defined(OpenBSDArchitecture)
SYS_LIBRARIES = -lutil -lkvm
#endif
SRCS = xload.c get_load.c