1183 Commits

Author SHA1 Message Date
seawood%netscape.com
49f9b7a928 For nonblocking connections, wait for socket io if errno == EINTR, not EINPROGRESS.
Thanks to Paul Ashford <arougthopher@lizardland.net> for the patch.
Bug #70217 r=cls a=shaver


git-svn-id: svn://10.0.0.236/trunk@115211 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 06:43:31 +00:00
wtc%netscape.com
e24f45ee3e Bugzilla bug 30746: fixed the problem of the previous NT primordial thread
fix in native threads only mode.


git-svn-id: svn://10.0.0.236/trunk@115197 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 02:52:28 +00:00
sfraser%netscape.com
2645fbe684 Fix for bug 121951 -- make PR_Poll on Mac work with layered file descriptors. r=wtc, r=gordon
git-svn-id: svn://10.0.0.236/trunk@114858 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 01:43:15 +00:00
sfraser%netscape.com
f71e860cc9 Fix for bug 121952 -- make PR_ConnectContinue work on Mac, re-enabling non-blocking connects. r=wtc. Also bring forward some code changes to build with CodeWarrior Pro 7 (UPP stuff).
git-svn-id: svn://10.0.0.236/trunk@114856 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 01:26:30 +00:00
wtc%netscape.com
b4e07815b5 Bugzilla bug 97485: added a stub for pr_FindSymbolInProg for Darwin.
git-svn-id: svn://10.0.0.236/trunk@114844 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:45:10 +00:00
wtc%netscape.com
8f23a91622 Bugzilla bug 30746: fixed the deadlock problem of the previous fix for this
bug on Windows if NSPR is initialized by the DllMain function of a DLL.
Modified files: prmwait.c prucpu.c


git-svn-id: svn://10.0.0.236/trunk@114827 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:08:48 +00:00
wtc%netscape.com
913eaca8b9 Bugzilla bug 124981: Enable IPv6 support for FreeBSD. This patch is
contributed by Munechika Sumikawa <sumikawa@ebina.hitachi.co.jp>.


git-svn-id: svn://10.0.0.236/trunk@114673 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 07:12:55 +00:00
seawood%netscape.com
ed6721da35 Add "fast RAM semaphore" support.
Thanks to Mike Kaply <mkaply@us.ibm.com> for the patch.
Bug #125123 r=wtc


git-svn-id: svn://10.0.0.236/trunk@114648 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 02:25:51 +00:00
seawood%netscape.com
df9ad11280 Fix problem of "invisible" helper apps on OS/2.
Thanks to Mike Kaply <mkaply@us.ibm.com> for the patch.
Bug #125183 r=wtc


git-svn-id: svn://10.0.0.236/trunk@114645 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 02:17:58 +00:00
wtc%netscape.com
8b23e2ee5b Bug 122433: checked in a workaround, which disables global optimization on ntio.c
git-svn-id: svn://10.0.0.236/trunk@114418 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 20:06:47 +00:00
wtc%netscape.com
3791cf5f6f Deleted unused declaration of _pr_primordialCPU
git-svn-id: svn://10.0.0.236/trunk@114413 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 19:55:19 +00:00
wtc%netscape.com
0d757b6279 Removed an unreachable break statement.
git-svn-id: svn://10.0.0.236/trunk@114363 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-13 01:58:17 +00:00
seawood%netscape.com
25502ad396 Add workaround for missing addrlen in PRNetAddr & BONE failing getsockopt.
Thanks to Paul Ashford <arougthopher@lizardland.net> for the patch.
Bug #122364 r=wtc


git-svn-id: svn://10.0.0.236/trunk@114172 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-10 21:37:07 +00:00
seawood%netscape.com
e741ba59e2 Add support for inheritable fds on BeOS.
Bug #96331 r=arougthopher@lizardland.net


git-svn-id: svn://10.0.0.236/trunk@114168 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-10 20:55:14 +00:00
seawood%netscape.com
49000ef072 Implement MD process functions for BeOS.
Bug #96331 r=arougthopher@lizardland.net


git-svn-id: svn://10.0.0.236/trunk@114167 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-10 20:52:29 +00:00
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