340 Commits

Author SHA1 Message Date
wtc%netscape.com
a3e52b9f60 Bugzilla bug 132208: implemented PR_SendFile on Linux with the sendfile
system call and the TCP_CORK socket option.  r=jgmyers.
Modified Files: _linux.h unix_errors.c ptio.c


git-svn-id: svn://10.0.0.236/trunk@116992 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 21:09:41 +00:00
wtc%netscape.com
2612b4578d Bugzilla bug 120161: define SA_RESTART for Neutrino.
git-svn-id: svn://10.0.0.236/trunk@116835 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 04:40:26 +00:00
wtc%netscape.com
ae12279397 White space changes to improve readability.
git-svn-id: svn://10.0.0.236/trunk@116300 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-10 06:43:11 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
seawood%netscape.com
f42774dccc Convert all rhapsody (pre-beta-macosx) references to darwin.
Bug #106617 r=wtc


git-svn-id: svn://10.0.0.236/trunk@106330 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-26 04:55:58 +00:00
seawood%netscape.com
ca14d69eee Rename rhapsody to darwin
bug #106617


git-svn-id: svn://10.0.0.236/trunk@106287 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-25 21:34:51 +00:00
wtc%netscape.com
3c26e67cfc Bugzilla bug 92085: checked in a Neutrino patch from
briane@qnx.com (Brian Edmond).  r=wtc.
Modified files: _nto.h protypes.h


git-svn-id: svn://10.0.0.236/trunk@105644 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 22:28:29 +00:00
seawood%netscape.com
6a7655eea9 Install *.cfg files used for cross-compiling
git-svn-id: svn://10.0.0.236/trunk@105364 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-13 06:02:48 +00:00
sfraser%netscape.com
83c130f034 Fix for 100353 -- handle polling for read and write on different threads, and properly deal with sending to a socket that has flow control restrictions. Fixes a problem saving to IMAP server sent messages with attachments. r=gordon, wtc.
git-svn-id: svn://10.0.0.236/trunk@104889 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-09 02:16:47 +00:00
wtc%netscape.com
b5d4409bdb Bugzilla bug 84035: backed out the changes to the PRMonitor functions
because some of the Mozilla client code depends on the property that
PR_EnterMonitor and PR_ExitMonitor do not call malloc, calloc, and free.
Modified Files: _pth.h, primpl.h, ptsynch.c


git-svn-id: svn://10.0.0.236/trunk@104057 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 01:27:07 +00:00
sfraser%netscape.com
108ee42e26 Fix for bug 71718. Make Mac NSPR work on dual CPU Mac OS X macines by using MP critical regions to fix threading synchronization problems. Uses hand-rolled critical regions because the critical section API is broke on Mac OS 10.0.x. r=gordon, wtc.
git-svn-id: svn://10.0.0.236/trunk@104017 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-27 23:35:25 +00:00
wtc%netscape.com
ba11393180 Deleted unused prototypes for _PR_Unlock, _PR_SuspendThread, and
_PR_ResumeThread.


git-svn-id: svn://10.0.0.236/trunk@102975 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-15 04:53:12 +00:00
wtc%netscape.com
e5218cd198 Bugzilla bug 95836: Added _PR_CleanupIO() and made it call
_PR_CleanupFdCache().  PR_Cleanup() now calls _PR_CleanupIO() and does
not call _PR_CleanupFdCache() directly.
Modified files: primpl.h prio.c prinit.c ptio.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@102504 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 01:55:49 +00:00
wtc%netscape.com
40b3bff0fa Bugzilla bug 95773: Added _PR_CleanupEnv() and call it from PR_Cleanup().
The patch is contributed by jeff@NerdOne.com.
Modified files: primpl.h prenv.c prinit.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@102491 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-07 00:05:50 +00:00
wtc%netscape.com
3f603986fe Bugzilla bug 95784: added _PR_CleanupLayerCache and call it from
PR_Cleanup.  The patch is contributed by jeff@NerdOne.com.
Modified files: primpl.h, prlayer.c, prinit.c, ptthread.c.


git-svn-id: svn://10.0.0.236/trunk@101992 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 00:35:00 +00:00
wtc%netscape.com
287d568a3b Bugzilla bug 95668: added _PR_CleanupThreads and call it from PR_Cleanup.
The patch is contributed by jeff@NerdOne.com.
Modified files: primpl.h, prinit.c, pruthr.c.


git-svn-id: svn://10.0.0.236/trunk@101991 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:52:14 +00:00
wtc%netscape.com
813386fc81 Bugzilla bug 95659: added _PR_CleanupStacks(), which is called from
PR_Cleanup().  The patch is contributed by jeff@NerdOne.com.
Modified files: primpl.h, prinit.c, prustack.c


git-svn-id: svn://10.0.0.236/trunk@101987 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-29 23:13:41 +00:00
wtc%netscape.com
50482052cf Bugzilla bug #88102: checked in a patch from Colin Blakes
<colin@theblakes.com> that allows him to easily switch between BSD V4.4
(the default) and BSD V4.3 sockets on OpenVMS.


git-svn-id: svn://10.0.0.236/trunk@101101 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-15 14:30:43 +00:00
wtc%netscape.com
964377fc03 Bugzilla bug 84361: added large file support for Linux.
Modified files: configure configure.in _linux.h
Removed an unnecessary undefine of _FILE_OFFSET_BITS in solaris.c.


git-svn-id: svn://10.0.0.236/trunk@98029 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-27 03:00:34 +00:00
wtc%netscape.com
087b86eed7 Bugzilla bug 81011: Changed the return type of _PR_MD_TEST_AND_LOCK from
PRBool to PRIntn and documented its meaning.
Modifies files: _beos.h, _irix.h, _win16.h, _win95.h, primpl.h, os2cv.c.


git-svn-id: svn://10.0.0.236/trunk@97842 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-24 05:10:37 +00:00