From: Uncle George <gatgul@voicenet.com>
To: Hugo.van.der.Kooij@caiw.nl
Cc: axp-list@redhat.com, Joakim Roubert <jokke@df.lth.se>,
comp.os.linux.alpha@voicenet.com
Subject: Re: Netscape
Date: Mon, 20 Apr 1998 09:14:16 -0400 [thread overview]
Message-ID: <353B496B.7FA61D4E@voicenet.com> (raw)
In-Reply-To: Pine.LNX.3.96.980420072454.19977B-100000@hvdkooij
My diffs are as follows:
1) Makefile - include /usr/local/lib/libXm.a
2) Grid.c - include a missing dropsmgrs.h include
3) garray.c - change int32 -> int64 ( all int32's where changed!)
4) jsapi.c - take care of NaN conversions to int
5) jsnum.c - plug in the float point MIN value as per alpha handbook.
6) jsnum.h - security/sanity check for NaN testing conversion
7) _linux.h - move stack to highed ground, so I can see chopped off address
pointers easier
8) unix.c - make mmap'ed stack executable - longjmp/signals seem to put
machine instruction on the stack
I Am using lesstif, but lesstif-current. The folks at hungry have been putting a
lot of effort into getting netscape & lesstif working well together, and 83 just
wont make it. dont forget to build lesstif with -DXTHREADS, and ./configure
--enable-static --enable-shared u need to install the lesstif includes before u
build mozilla.
I am also using redhat 5.0
hope this helps.
gat
PS I guess i gotta say this but THE DIFFS ARE IN THE MAIL.
Hugo van der Kooij wrote:
> On Sun, 19 Apr 1998, Uncle George wrote:
>
> > how about u get src, i give u diff ? u can build to ur hearts content!?
>
> Yes. Please tell us where you put these diffs.
diff -r -u -I RCSID -I Id -I Revision: ns/cmd/xfe/Makefile
ns.new/cmd/xfe/Makefile
--- ns/cmd/xfe/Makefile Mon Mar 30 21:05:35 1998
+++ ns.new/cmd/xfe/Makefile Sat Jan 7 19:23:18 1922
@@ -579,6 +579,7 @@
-include $(DEPTH)/config/motif.mk
XTOOLLIB = -L/usr/X11R6/lib -lXt -lSM -lICE
+#XTOOLLIB = -L/usr/X11R6/lib -lSM -lICE
XLIB = -lXext -lX11
XMULIB = -lXmu -lXpm
@@ -589,7 +590,7 @@
MOTIFLIB =\
$(MOTIFPATCH_LIB) \
- /usr/X11R6/lib/libXm.a \
+ /usr/local/lib/libXm.a \
$(NS_MOTIF2_XP_LD_FLAGS)
endif
diff -r -u -I RCSID -I Id -I Revision: ns/cmd/xfe/Microline3.0/XmL/Grid.c
ns.new/cmd/xfe/Microline3.0/XmL/Grid.c
--- ns/cmd/xfe/Microline3.0/XmL/Grid.c Mon Mar 30 21:05:42 1998
+++ ns.new/cmd/xfe/Microline3.0/XmL/Grid.c Sat Apr 4 06:21:41 1998
@@ -30,6 +30,9 @@
#include <Xm/Text.h>
#include <Xm/DrawnB.h>
#include <Xm/CutPaste.h>
+#if defined (__linux__)
+#include <Xm/DropSMgr.h>
+#endif
#include <X11/StringDefs.h>
#include <X11/cursorfont.h>
#include <stdio.h>
diff -r -u -I RCSID -I Id -I Revision: ns/include/garray.h
ns.new/include/garray.h
--- ns/include/garray.h Mon Mar 30 21:03:48 1998
+++ ns.new/include/garray.h Sat Apr 4 21:01:08 1998
@@ -163,7 +163,7 @@
template<class PTRTYPE>
class TXP_GrowableArray: public CXP_GrowableArray {
public:
- PTRTYPE operator[](int nIndex) const { return
(PTRTYPE)(int32)m_pData[nIndex]; }
+ PTRTYPE operator[](int nIndex) const { return
(PTRTYPE)(int64)m_pData[nIndex]; }
PTRTYPE& operator[](int nIndex){ return *(PTRTYPE*)&m_pData[nIndex]; }
int Add(PTRTYPE newElement){ return CXP_GrowableArray::Add( (void*)
newElement ); }
};
@@ -176,7 +176,7 @@
#define Declare_GrowableArray(NAME,PTRTYPE) \
class TXP_GrowableArray_##NAME: public CXP_GrowableArray
{ \
public:
\
- PTRTYPE operator[](int nIndex) const { return
(PTRTYPE)(int32)m_pData[nIndex]; }\
+ PTRTYPE operator[](int nIndex) const { return
(PTRTYPE)(int64)m_pData[nIndex]; }\
PTRTYPE& operator[](int nIndex){ return *(PTRTYPE*)&m_pData[nIndex];
} \
int Add(PTRTYPE newElement){ return CXP_GrowableArray::Add( (void*)
newElement ); } \
};
\
@@ -216,12 +216,12 @@
#define Declare_PtrStack(NAME, PTRTYPE) \
class TXP_PtrStack_##NAME : public CXP_PtrStack { \
public: \
- void Push( PTRTYPE t ){ CXP_PtrStack::Push((void*)(int32)t); } \
- PTRTYPE Top(){ return (PTRTYPE)(int32)CXP_PtrStack::Top(); } \
- PTRTYPE Pop(){ return (PTRTYPE)(int32)CXP_PtrStack::Pop(); } \
- PTRTYPE operator[](int nIndex) const { return
(PTRTYPE)(int32)m_pData[nIndex]; }\
+ void Push( PTRTYPE t ){ CXP_PtrStack::Push((void*)(int64)t); } \
+ PTRTYPE Top(){ return (PTRTYPE)(int64)CXP_PtrStack::Top(); } \
+ PTRTYPE Pop(){ return (PTRTYPE)(int64)CXP_PtrStack::Pop(); } \
+ PTRTYPE operator[](int nIndex) const { return
(PTRTYPE)(int64)m_pData[nIndex]; }\
PTRTYPE& operator[](int nIndex){ return *(PTRTYPE*)&m_pData[nIndex];
} \
- int Add(PTRTYPE newElement){ return CXP_GrowableArray::Add(
(void*)(int32)newElement ); } \
+ int Add(PTRTYPE newElement){ return CXP_GrowableArray::Add(
(void*)(int64)newElement ); } \
}; \
diff -r -u -I RCSID -I Id -I Revision: ns/js/src/jsapi.c ns.new/js/src/jsapi.c
--- ns/js/src/jsapi.c Mon Mar 30 21:04:01 1998
+++ ns.new/js/src/jsapi.c Thu Apr 2 07:02:41 1998
@@ -841,11 +841,36 @@
* so we don't need to GC-alloc constant doubles.
*/
jsdouble d = cds->dval;
+#if defined(__linux__) && defined (__alpha__)
+ jsint i;
+ if (isnan(d)) i = 0;
+ else if (i=isinf(d)) {
+ if ( i < 0 )
+ i = 0x80000000;
+ else
+ i = 0x07ffffff;
+ }
+ else
+ {
+ union feeb {
+ double d;
+ long l;
+ } feeb;
+ long l;
+ feeb.d = d;
+ l = d;
+ i = (jsint) l;
+ }
+ if (JSDOUBLE_IS_INT(d, i) && INT_FITS_IN_JSVAL(i))
+ value = INT_TO_JSVAL(i);
+ else
+ value = DOUBLE_TO_JSVAL(&cds->dval);
+#else
jsint i = (jsint)d;
-
value = (JSDOUBLE_IS_INT(d, i) && INT_FITS_IN_JSVAL(i))
? INT_TO_JSVAL(i)
: DOUBLE_TO_JSVAL(&cds->dval);
+#endif
#else
ok = js_NewNumberValue(cx, cds->dval, &value);
if (!ok)
diff -r -u -I RCSID -I Id -I Revision: ns/js/src/jsnum.c ns.new/js/src/jsnum.c
--- ns/js/src/jsnum.c Mon Mar 30 21:04:02 1998
+++ ns.new/js/src/jsnum.c Thu Apr 2 07:00:38 1998
@@ -235,7 +235,11 @@
{0, "POSITIVE_INFINITY"},
{0, "NEGATIVE_INFINITY"},
{1.7976931348623157E+308, "MAX_VALUE"},
+#if !( defined(__linux__) && defined(__alpha__))
{0, "MIN_VALUE"},
+#else
+ {2.2250738585072013E-308, "MIN_VALUE"},
+#endif
{0}
};
@@ -287,9 +291,11 @@
return NULL;
}
+#if !( defined(__linux__) && defined(__alpha__))
u.s.hi = 0;
u.s.lo = 1;
number_constants[NC_MIN_VALUE].dval = u.d;
+#endif
}\x7f
if (!JS_DefineFunctions(cx, obj, number_functions))
diff -r -u -I RCSID -I Id -I Revision: ns/js/src/jsnum.h ns.new/js/src/jsnum.h
--- ns/js/src/jsnum.h Mon Mar 30 21:04:02 1998
+++ ns.new/js/src/jsnum.h Thu Apr 2 07:04:44 1998
@@ -59,7 +59,7 @@
#define JSDOUBLE_IS_INT_2(d, i) (!JSDOUBLE_IS_NEGZERO(d) && (jsdouble)i == d)
-#ifdef XP_PC
+#if defined(XP_PC) || (defined(__linux__) && defined (__alpha))
/* XXX MSVC miscompiles NaN floating point comparisons for ==, !=, <, and <= */
#define JSDOUBLE_IS_INT(d, i) (!JSDOUBLE_IS_NaN(d) && JSDOUBLE_IS_INT_2(d, i))
#else
diff -r -u -I RCSID -I Id -I Revision: ns/nsprpub/pr/include/md/_linux.h
ns.new/nsprpub/pr/include/md/_linux.h
--- ns/nsprpub/pr/include/md/_linux.h Mon Mar 30 21:05:25 1998
+++ ns.new/nsprpub/pr/include/md/_linux.h Sat Apr 4 05:45:42 1998
@@ -29,13 +29,17 @@
#define _PR_SI_ARCHITECTURE "ppc"
#elif defined(__alpha)
#define _PR_SI_ARCHITECTURE "alpha"
+/* Move VMBASE to beyond 32 bits so we can readily observe ptr truncation */
+#define _PR_STACK_VMBASE 0x15450000000L
#else
#define _PR_SI_ARCHITECTURE "x86"
#endif
#define PR_DLL_SUFFIX ".so"
#define _PR_VMBASE 0x30000000
+#if !defined _PR_STACK_VMBASE
#define _PR_STACK_VMBASE 0x50000000
+#endif
#define _MD_DEFAULT_STACK_SIZE 65536L
#define _MD_MMAP_FLAGS MAP_PRIVATE
diff -r -u -I RCSID -I Id -I Revision: ns/nsprpub/pr/src/md/unix/unix.c
ns.new/nsprpub/pr/src/md/unix/unix.c
--- ns/nsprpub/pr/src/md/unix/unix.c Mon Mar 30 21:05:26 1998
+++ ns.new/nsprpub/pr/src/md/unix/unix.c Sat Apr 4 05:37:45 1998
@@ -34,6 +34,10 @@
#include <sys/filio.h>
#endif
+#if defined (__linux__)
+#include <sys/uio.h> /* Get readv/writev */
+#endif
+
/*
* Make sure _PRSockLen_t is 32-bit, because we will cast a PRUint32* or
* PRInt32* pointer to a _PRSockLen_t* pointer.
@@ -2485,6 +2489,9 @@\x7f
}
prot = PROT_READ|PROT_WRITE;
+#if defined(__linux__) && defined (__alpha__)
+ prot |= PROT_EXEC; /* Stack needs +x permissions */
+#endif
rv = mmap((vaddr != 0) ? vaddr : lastaddr, size, prot,
_MD_MMAP_FLAGS,
_pr_zero_fd, 0);
next prev parent reply other threads:[~1998-04-20 13:11 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-19 20:49 Netscape Joakim Roubert
1998-04-19 21:13 ` Netscape Uncle George
1998-04-20 5:25 ` Netscape Hugo van der Kooij
1998-04-20 13:14 ` Uncle George [this message]
1998-04-20 14:14 ` Netscape Joakim Roubert
1998-04-20 15:49 ` Netscape and qt!! Aaron
1998-04-21 0:31 ` Martin Ostermann
2018-04-23 14:07 ` Adrian E. Feiguin
1998-04-23 13:19 ` David Hamm
1998-04-24 6:29 ` Martin Ostermann
1998-04-20 5:34 ` Netscape Hugo van der Kooij
1998-04-20 8:17 ` Netscape Joakim Roubert
1998-04-21 11:23 ` Netscape Uncle George
[not found] <Pine.LNX.3.95.961207021108.2819B-100000@p20.loop.com>
2016-12-07 10:29 ` netscape Miguel Avillez
-- strict thread matches above, loose matches on Subject: below --
2000-12-13 20:15 Netscape Kurt Ludwig
2000-12-17 12:03 ` Netscape MCGWIER ROBERT
2000-12-17 12:08 ` Netscape Rob Byrnes
2000-12-17 18:01 ` Netscape Michal Jaegermann
2000-12-13 20:13 Netscape Kurt Ludwig
2000-12-11 8:37 RAID configuration utilities Iso-H
2000-12-13 20:08 ` Netscape peterw871
1999-01-17 22:44 finger Iraj Daizadeh
1999-01-18 2:31 ` netscape Iraj Daizadeh
1999-01-18 3:32 ` netscape Larry Snyder
1999-01-18 4:31 ` netscape Michal Jaegermann
[not found] <618FD3AF120DD111A27900805F19D9C4032F7F0A@xch-blv-03.ca.boe ing.com>
1998-09-25 22:16 ` Netscape LSL Information
1998-09-24 23:53 Netscape John Katzmaier
1998-09-24 23:41 Netscape Tibbetts, Richard
1998-09-25 0:41 ` Netscape Bibek Sahu
1998-09-24 23:01 Netscape Tibbetts, Richard
1998-09-24 23:29 ` Netscape Wolfgang Engel
1998-09-24 23:52 ` Netscape Nicholas Sallembian
1998-09-24 23:57 ` Netscape Mark Hansel
1998-09-22 14:29 du Netscape dns Alex de Joode
1998-09-24 22:29 ` Netscape Wolfgang Engel
[not found] <A162436CCDFCD1119B5900E0290E6E7803C7A9@carrera-mail2.carre ra.com>
1998-08-21 19:33 ` Netscape gkoch
1998-08-21 17:26 Netscape Mark Dohojda
1998-08-22 1:14 ` Netscape Ken Hansen
1998-07-28 21:48 netscape Araujo, Scott
1998-07-29 17:33 ` netscape Bruce Ediger
1998-05-28 19:15 NETSCAPE Imran Khan
1998-05-28 19:48 ` NETSCAPE Ken Hansen
1998-05-28 19:58 ` NETSCAPE Steve Frampton
1998-05-28 20:05 ` NETSCAPE Ken Hansen
1998-05-28 20:31 ` NETSCAPE Joakim Roubert
1998-05-28 20:27 ` NETSCAPE Joakim Roubert
1998-04-25 1:56 netscape ALEXANDRE A. P. SUAIDE
1998-04-25 15:29 ` netscape Brian E.W. Wood
[not found] <Pine.LNX.3.95.980423111822.11009C-100000@cali.nip.upd.edu.ph>
1998-04-24 1:06 ` Netscape Uncle George
1998-04-24 4:21 ` Netscape Artimage
1998-04-24 14:26 ` Netscape Uncle George
1998-04-24 7:08 ` Netscape Joakim Roubert
1998-04-18 21:11 Netscape ALEXANDRE A. P. SUAIDE
1998-04-19 4:27 ` Netscape Stephen Williams
1998-04-19 16:52 ` Netscape Uncle George
1998-04-20 1:42 ` Netscape Wes Bauske
1998-03-11 12:12 XL300+PowerStorm Joao Rochate
1998-03-11 15:47 ` Netscape Keith Baker
1998-03-11 15:53 ` Netscape Christopher Curtis
[not found] <Pine.LNX.3.91.970619093637.32365B-100000@gargoyle>
1997-06-19 13:58 ` Netscape Rick Windham
1997-06-19 14:19 ` Netscape vwp
1997-06-19 13:54 Netscape Martin Budsjo
[not found] <Pine.LNX.3.95.970619082955.26497B-100000@chomper.chapwin.com>
1997-06-19 13:42 ` Netscape Paul D. Robertson
1997-06-19 13:37 Netscape Markus Dickebohm
[not found] <Pine.LNX.3.91.970619014744.30552D-100000@gargoyle>
1997-06-19 13:33 ` Netscape Rick Windham
1997-06-19 18:03 ` Netscape Sheer Panic
[not found] <Pine.LNX.3.95.970618191205.700A-100000@sickboy.midwest.net>
1997-06-19 5:49 ` Netscape Paul D. Robertson
1997-06-19 0:17 Netscape Shawn Morris
1997-04-13 23:26 Netscape Jim Paradis
1997-04-13 22:59 Netscape Keith Baker
[not found] <Pine.LNX.3.95.1161207102922.2596E-100000@astro1.ce.uevora.pt>
1996-12-07 12:58 ` netscape Jim Nance
1996-12-08 9:35 ` netscape Fritz Ganter
[not found] <Pine.LNX.3.93.960809121536.17415A-100000@redhat.com>
1996-08-09 16:28 ` Netscape Aaron
[not found] <Pine.SOL.3.91.960809122537.13129A-100000@enterprise>
1996-08-09 13:09 ` Netscape Doug DeJulio
1996-04-17 8:10 Netscape Torsten Zirzlaff
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox