1168 Commits

Author SHA1 Message Date
wtc%netscape.com
a464983a2e Bugzilla bug 117479: add the PR_ABS macro. Thanks to Roland Mainz
<Roland.Mainz@informatik.med.uni-giessen.de> for the patch.


git-svn-id: svn://10.0.0.236/trunk@113559 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 04:34:50 +00:00
seawood%netscape.com
308f00fd3c Remove check against fd->secret->md.connectionReturnValue as it always returns 0. Fixing page not loading due to nonblocking connection problem.
Bug #121327 r=arougthopher@lizardland.net


git-svn-id: svn://10.0.0.236/trunk@113306 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 07:43:22 +00:00
wtc%netscape.com
10c0c202c1 Bugzilla bug 97485: added support for the magic "nspr_use_zone_allocator"
global variable.


git-svn-id: svn://10.0.0.236/trunk@113093 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 03:01:45 +00:00
wtc%netscape.com
540892388c Implemented GetHiResClock() for HP-UX.
git-svn-id: svn://10.0.0.236/trunk@112987 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 05:08:43 +00:00
wtc%netscape.com
658de28599 Bugzilla bug 113152: do not define or test the macro 'linux'. Thanks to
david@blue-labs.org for the patch.
Modified files: configure configure.in Linux.mk prinet.h


git-svn-id: svn://10.0.0.236/trunk@112985 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 04:51:01 +00:00
wtc%netscape.com
cc1ec71cfe Backed out the previous checkin. Misunderstood the cause of the problem.
git-svn-id: svn://10.0.0.236/trunk@112983 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 04:35:55 +00:00
wtc%netscape.com
b5fc7698f8 Bugzilla bug 121872: define _PR_MD_LISTEN as a function so that we can set
error codes if listen() fails.  The patch is contributed by Javier
Pedemonte <pedemont@us.ibm.com>.
Modified files: _os2.h _os2_errors.h os2sock.c


git-svn-id: svn://10.0.0.236/trunk@112981 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:59:44 +00:00
wtc%netscape.com
a633f807f7 Continue to use the HP shl_load interface on 64-bit HP-UX/PA-RISC for
backward compatibility reasons.


git-svn-id: svn://10.0.0.236/trunk@112939 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 02:14:52 +00:00
wtc%netscape.com
0b5aa9d745 Bugzilla bug 106496: fixed the WINNT version of PR_NewTCPSocketPair to
verify the source of the connection.


git-svn-id: svn://10.0.0.236/trunk@112870 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 19:16:34 +00:00
wtc%netscape.com
8d44de2cd4 Bugzilla bug 121872: define _PR_MD_LISTEN as a function so that we can
set error codes if listen() fails.
Modified files: _win95.h w95sock.c


git-svn-id: svn://10.0.0.236/trunk@112865 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 18:45:16 +00:00
wtc%netscape.com
bb624d8ea8 Put the warning printfs inside #ifdef DEBUG.
git-svn-id: svn://10.0.0.236/trunk@112829 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:33:20 +00:00
sfraser%netscape.com
cfef97219a Fix bug 119329 -- change NSPR project to use tree-wide prefix files, for compatibility with other libraries. Also removing obsolete files, and adding a CodeWarrior Pro 7-format XML project file. r=pinkerton, r/a=wtc
git-svn-id: svn://10.0.0.236/trunk@112770 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:47:22 +00:00
wtc%netscape.com
8b97343194 The current zone allocator code does not compile under DCE threads on HP-UX
10.x.


git-svn-id: svn://10.0.0.236/trunk@112715 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:20:47 +00:00
wtc%netscape.com
a925976555 Bugzilla bug 97485: fixed a few bugs in the zone allocator. Print warning
messages on memory blocks from ordinary malloc.  Initialize the zone
allocator first during NSPR initialization.
Modified files: prmem.c prinit.c


git-svn-id: svn://10.0.0.236/trunk@112704 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 18:11:30 +00:00
wtc%netscape.com
b489fa89b9 Memory allocated by strdup() should be freed by free(), not PR_Free().
git-svn-id: svn://10.0.0.236/trunk@112703 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 17:46:37 +00:00
wtc%netscape.com
0da95573c9 Added $(topsrcdir) prefix to config/prmkdir.bat.
git-svn-id: svn://10.0.0.236/trunk@112593 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 00:50:32 +00:00
wtc%netscape.com
5f4f7f813d Run the test on both the primordial thread and another thread.
git-svn-id: svn://10.0.0.236/trunk@112571 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 03:05:01 +00:00
wtc%netscape.com
57008423af Added support for new HP-UX platform.
Modified files: configure configure.in _hpux.h _hpux64.cfg uxrng.c
prsystem.c pr/tests/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@112570 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:56:36 +00:00
wtc%netscape.com
c863ba7cc4 Bugzilla bug 106496: PR_NewTCPSocketPair should check the source of the
connection.


git-svn-id: svn://10.0.0.236/trunk@112568 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:41:13 +00:00
wtc%netscape.com
a23a9b6f32 Bugzilla bug 119935: we need to set the priority of the new thread only if
the priority is not PR_PRIORITY_NORMAL.  (Windows creates new threads with
the normal priority.)  Thanks to Michael Kaply <mkaply@us.ibm.com> for
reporting this bug.
Modified files: ntthread.c w95thred.c


git-svn-id: svn://10.0.0.236/trunk@112567 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:32:28 +00:00
wtc%netscape.com
fde61ab4cb Bugzilla bug 119384: deleted two assertions that contained illegal type
casts.  The two functions that contained the assertions are very simple
so they can do without the assertions.  Thanks to Nick Blievers
<nickb@adacel.com.au> for reporting this bug and suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@112561 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:49:25 +00:00
wtc%netscape.com
9e0f260652 Fixed compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@112554 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:10:51 +00:00
wtc%netscape.com
b485eb5684 Fixed if-else indentation style.
Modified files: macio.c macsockotpt.c


git-svn-id: svn://10.0.0.236/trunk@112543 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 23:57:41 +00:00
sdagley%netscape.com
a0015fd8cb Fix #99561 (on NSPR tip). Use MPSemaphore calls rather than WaitNextEvent to pause CPU under Mac OS X - fixes thread deadlock and improves performance. r=wtc,sr=sfraser,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@112534 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:13:03 +00:00
wtc%netscape.com
6925a25d2b Bugzilla bug 100776: handle non-blocking connect correctly on OS/2.
The fix is contributed by Javier Pedemonte <pedemont@us.ibm.com>.
r=mkaply.
Modified files: configure configure.in _os2.h _os2_errors.h prsocket.c
os2_errors.c os2poll.c os2sock.c


git-svn-id: svn://10.0.0.236/trunk@112412 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 01:27:20 +00:00
wtc%netscape.com
1b26f8bbc6 Bugzilla bug 118631: a correct implementation of _PR_CreateOS2Process.
The patch is contributed by Michael Kaply <mkaply@us.ibm.com>.
r=Javier Pedemonte.


git-svn-id: svn://10.0.0.236/trunk@111991 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 01:05:02 +00:00
wtc%netscape.com
9521a5baac Bugzilla bug 119406: fixed a misspelling. Thanks to Nick Blievers
<nickb@adacel.com.au> for the bug report and the fix.


git-svn-id: svn://10.0.0.236/trunk@111935 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 05:35:26 +00:00
seawood%netscape.com
36ec67a6b0 Landing BeOS BONE support.
Thanks to Matthew Zahorik <maz@albany.net> & Paul Ashford <arougthopher@lizardland.net> for the patch.
Bug #71697 r=wtc/cls


git-svn-id: svn://10.0.0.236/trunk@111802 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 09:50:36 +00:00
wtc%netscape.com
0a46e39c28 Bugzilla bug 112987: correctly detect the FreeBSD versions in which poll()
was added to libc and libc_r.  Thanks to Jeremy Lea for pointing me at
the FreeBSD Porter's Handbook.


git-svn-id: svn://10.0.0.236/trunk@111389 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-05 01:37:05 +00:00
wtc%netscape.com
d8f255408d Define IS_64 for FreeBSD/alpha.
git-svn-id: svn://10.0.0.236/trunk@111245 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-02 21:06:24 +00:00
wtc%netscape.com
03c3f528d8 Make building for Darwin/x86 work. The patch is from Matt Watson.
git-svn-id: svn://10.0.0.236/trunk@111240 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-02 19:50:07 +00:00
seawood%netscape.com
6b41f6940b Recent versions of freebsd have a threadsafe poll.
Use sched_get_priority_* to get actual priority min & max rather than hardcoding defaults.
Patches from freebsd ports system.
Bug #112987 r=rjesup@wgate.com


git-svn-id: svn://10.0.0.236/trunk@111206 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-01 00:44:07 +00:00
wtc%netscape.com
5c3a0a59b9 Bugzilla bug 96199: added _PR_CleanupMW() to clean up the static data
created by prmwait.c.  The patch is contributed by Jeff Hostetler
<jeff@NerdOne.com>.
Modified files: primpl.h prmwait.c prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@111126 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-28 04:01:07 +00:00
wtc%netscape.com
c6b3b7cb73 Bugzilla bug 96198: added _PR_CleanupDtoa() to destroy the locks created
in prdtoa.c. The patch is contributed by Jeff Hostetler <jeff@NerdOne.com>.
Modified files: primpl.h prdtoa.c prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@111124 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-28 03:35:16 +00:00
wtc%netscape.com
9b8fadd750 Bugzilla bug 96197: added _PR_CleanupCallOnce() to destroy the lock and
condition variable used to implement PR_CallOnce.  This patch is
contributed by Jeff Hostetler <jeff@NerdOne.com>.
Modified files: primpl.h prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@111123 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-28 03:24:02 +00:00
wtc%netscape.com
625ed83547 Bugzilla bug 96122: use _PR_ShutdownLinker() on all platforms to clean up
the static data created by prlink.c.  Parts of this patch were contributed
by Jeff Hostetler <jeff@NerdOne.com>.
Modified files: _win16.h primpl.h prlink.c prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@111122 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-28 03:11:43 +00:00
wtc%netscape.com
7577076321 Bugzilla bug 96112: destroys _pr_logLock in _PR_CleanupLog(). The patch is
contributed by Jeff Hostetler <jeff@NerdOne.com>.


git-svn-id: svn://10.0.0.236/trunk@111112 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-27 20:12:51 +00:00
wtc%netscape.com
fef63d6cf7 Bugzilla bug 95839: added _PR_CleanupNet() to destroy the locks created by
_PR_InitNet().  The patch is contributed by Jeff Hostetler
<jeff@NerdOne.com>.
Modified files: primpl.h prinit.c prnetdb.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@111111 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-27 19:59:35 +00:00
wtc%netscape.com
e67b966472 Bugzilla bug 113935: truncate the log file if it already exists.
git-svn-id: svn://10.0.0.236/trunk@111098 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-27 02:32:34 +00:00
wtc%netscape.com
4343200495 Bugzilla bug 110868: PR_FileDesc2NativeHandle should look for the NSPR
layer as opposed to assuming the bottom layer is the NSPR layer.


git-svn-id: svn://10.0.0.236/trunk@111097 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-27 02:19:31 +00:00
wtc%netscape.com
4eac164ae3 Bugzilla bug 110869: defining the FORCE_PR_ASSERT macro allows one to
use PR_ASSERT in optimized builds.


git-svn-id: svn://10.0.0.236/trunk@111096 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-27 00:57:48 +00:00
wtc%netscape.com
30ff427d3b Bugzilla bug 48308: checked in part of the patch to bring NSPR up to
OpenUNIX8 build with pthreads.  The patch is contributed by
Hiram Clawson <hiramc@caldera.com>.
Modified files: _pth.h ptio.c ptthread.c pr/tests/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@111091 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-26 22:59:38 +00:00
wtc%netscape.com
418d5e2a15 Bugzilla bug 115149: clean up threads properly on non-emx platforms.
Increased the default thread stack size to 64K.  The patch is contributed
by aaronr@us.ibm.com and Michael Kaply <mkaply@us.ibm.com>.
Modified files: _os2.h os2cv.c os2io.c os2thred.c


git-svn-id: svn://10.0.0.236/trunk@110859 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 05:24:02 +00:00
wtc%netscape.com
62afce4ee9 Bugzilla bug 97485: added the zone allocator (implemented by Nelson
Bolyard).
Modified files: primpl.h prmem.c prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@110828 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 00:35:38 +00:00
wtc%netscape.com
5e4445f3ef Updated the test for the NSPR 4.2 release.
git-svn-id: svn://10.0.0.236/trunk@110688 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-18 03:49:31 +00:00
sfraser%netscape.com
80126d7f1e Fix bug 106999 -- implement Mac atomic operations using Open Transport routines for speed. r=wtc.
git-svn-id: svn://10.0.0.236/trunk@110046 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 23:59:35 +00:00
wtc%netscape.com
15b6ce139b Bugzilla bug 113740: do not use the 32-bit SPARC assembly implementation of
PRStack because it may cause starvation of the lock owner, leaving the
other threads spinning trying to acquire the lock.
Modified files: configure configure.in pr/include/md/_solaris.h


git-svn-id: svn://10.0.0.236/trunk@109955 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 02:10:10 +00:00
wtc%netscape.com
3a27d440a7 Bugzilla bug 113906: Made _PR_MD_OPEN more efficient. The patch is
contributed by Michael Kaply <mkaply@us.ibm.com>.  r=wtc,pedemont.


git-svn-id: svn://10.0.0.236/trunk@109940 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:39:58 +00:00
seawood%netscape.com
b6c311a056 Do not build NSPR optimized if MOZ_TRACE_MALLOC is set.
Thanks to Garrett Blythe <blythe@netscape.com> for the patch.
Bug #112953 r=wtc


git-svn-id: svn://10.0.0.236/trunk@109801 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 03:39:05 +00:00
seawood%netscape.com
c3a0ae9bc7 Revert to using standard config.sub & config.guess entries for OS/2.
Thanks to pedemont@us.ibm.com (Javier Pedemonte) for the patch.
Bug #112244 r=cls


git-svn-id: svn://10.0.0.236/trunk@109500 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 22:16:28 +00:00