219 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
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
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
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
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
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
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
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
wtc%netscape.com
87785057d0 Bugzilla Bug 63049: 64-bit Solaris does not need the libultrasparc4.so
(-f libatomic.so) filter library.
Modified files: configure configure.in _solaris.h pr/src/md/unix/Makefile
solaris.c.
Added file: os_SunOS_sparcv9.s.


git-svn-id: svn://10.0.0.236/trunk@97839 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-24 01:39:51 +00:00
wtc%netscape.com
910bb4b5f3 Bugzilla bug #85673: added assembly implementation of the atomic routines
for OS/2 contributed by Michael Kaply of IBM.
Modified files: configure configure.in autoconf.mk.in rules.mk _os2.h
pr/src/md/os2/Makefile.in pr/src/md/os2/objs.mk os2misc.c


git-svn-id: svn://10.0.0.236/trunk@97806 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-23 04:09:19 +00:00
wtc%netscape.com
4b0979f1a8 Bugzilla bug #40941: Checked in Linux/ia64 patch from Bill Nottingham
<notting@redhat.com>.  It is for NSPR local threads, which we no longer
use now that we have pthreads.  I don't know if it works, but I check it
in anyway so that it is not lost.


git-svn-id: svn://10.0.0.236/trunk@96788 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-09 19:52:18 +00:00
wtc%netscape.com
ccbf7f70c5 Bugzilla bug #84035: we can't assume that 0 is an invalid value for the
pthread_t type and use 0 to indicate a lock has no owner.  Added a
'locked' boolean field explicitly to PRLock.  In PRMonitor, make the
owner field a PRThread* pointer, with a value of NULL indicating that
the monitor has no owner.  Thanks to Takis Psarogiannakopoulos for
reporting this bug and spending a year (off and on) tracking it down.
Modified files: _pth.h, primpl.h, and ptsynch.c.


git-svn-id: svn://10.0.0.236/trunk@96353 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-04 23:42:10 +00:00
larryh%netscape.com
5e235d5192 Bugzilla 81666. new os2 locking
git-svn-id: svn://10.0.0.236/trunk@96320 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-04 22:20:48 +00:00
wtc%netscape.com
620c1f0a51 Bugzilla bug #51135: IPv6 support on OpenVMS. Thanks to Colin Blakes
<colin@theblakes.com> for the patch.
Modified files: configure configure.in OpenVMS.mk _openvms.h pripv6.c


git-svn-id: svn://10.0.0.236/trunk@95682 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 18:50:21 +00:00
wtc%netscape.com
8396785be2 Removed all Makefile's. The new autoconf build system uses Makefile.in's.
git-svn-id: svn://10.0.0.236/trunk@95308 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 21:26:28 +00:00
wtc%netscape.com
9f68abd727 Verified that the autoconf build system is equivalent to the classic
build system on AIX, HP-UX, Linux, and Solaris.  The 'release' makefile
target still doesn't quite work.
Modified Files:
	configure configure.in config/Makefile.in
	config/autoconf.mk.in config/config.mk config/nsinstall.c
	config/rules.mk lib/ds/Makefile.in lib/libc/src/Makefile.in
	pr/include/md/Makefile.in pr/src/misc/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@95064 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 22:57:39 +00:00
wtc%netscape.com
bccda9ee0a Merged NSPRPUB_CLIENT_BRANCH onto the trunk.
git-svn-id: svn://10.0.0.236/trunk@94726 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-12 02:05:12 +00:00
gordon%netscape.com
974d4f61ac Fix bug 29338 "PR_Poll should not poll (spin) on Mac". Checking in for sfraser. r=dougt, sdagley, gordon, sr=sfraser, or vice versa.
git-svn-id: svn://10.0.0.236/trunk@89468 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-13 07:02:53 +00:00
wtc%netscape.com
2182d16f69 Bugzilla bug #62877: deleted unused code added in the previous checkin.
git-svn-id: svn://10.0.0.236/trunk@88386 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 04:58:06 +00:00
wtc%netscape.com
d6c2df8634 Bugzilla bug #62877: checked in patches contributed by Javier Pedemonte
<pedemont@us.ibm.com> and Dmitry Kubov <dmitry@north.cs.msu.su>.
Modified files: prinet.h, _os2.h, os2poll.c, and os2sock.c.


git-svn-id: svn://10.0.0.236/trunk@88370 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 02:40:52 +00:00
cls%seawood.org
82dff731aa Fix nspr autoconf for OpenVMS.
Thanks to Colin Blake <colin@theblakes.com> for the patch.
Bug #69842 r=cls


git-svn-id: svn://10.0.0.236/trunk@87947 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-25 21:50:47 +00:00
wtc%netscape.com
66eee73ceb Bugzilla bug #69496: set the minimum thread stack size on OpenVMS.
r=colin@theblakes.com.
Modified files: _openvms.h, ptthread.c


git-svn-id: svn://10.0.0.236/trunk@87705 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-22 23:38:32 +00:00
gordon%netscape.com
c500b18253 fix for bug 66508. r=pinkerton, sr=sfraser. Landing fix from 6.0 branch to detect orderlyDisconnects.
git-svn-id: svn://10.0.0.236/trunk@86406 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 01:03:35 +00:00
cls%seawood.org
4e328f50ac Switch from using $(DIST)/bin, $(DIST)/lib, etc to using $(bindir), $(includedir). This gives us the advantage of being able to set different directories for libs & headers as needed. r=bryner
git-svn-id: svn://10.0.0.236/trunk@85222 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-21 06:37:45 +00:00