90 Commits

Author SHA1 Message Date
wtc%netscape.com
f657253076 Bug 135450: OS/2 only - don't set priority if it is the default.
The patch is contributed by Michael Kaply <mkaply@us.ibm.com>. r=wtc.
Modified files: _os2 primpl.h os2thred.c


git-svn-id: svn://10.0.0.236/trunk@140063 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 14:59:55 +00:00
wtc%netscape.com
86d10f26d7 The PTDebug type doesn't need to be defined in optimized builds.
git-svn-id: svn://10.0.0.236/trunk@135971 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 03:28:54 +00:00
wtc%netscape.com
1ac1a4cd07 Bug 158704: PT_FPrintStats also needs to be exported (for the test programs
only).  Define it as a no-op in optimized builds.  Deleted PT_GetStats,
which is not useful.
Modified files: primpl.h, nspr.def, ptio.c


git-svn-id: svn://10.0.0.236/trunk@135927 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 04:52:25 +00:00
wtc%netscape.com
7a20504c45 Bug 162358: added NSPR file I/O functions that take UTF16 pathnames. The
patch is contributed by Roy Yokoyama <yokoyama@netscape.com>.
Modified Files: config/config.mk prio.h prtypes.h _win95.h primpl.h
                prdir.c prfile.c w95io.c ptio.c


git-svn-id: svn://10.0.0.236/trunk@134523 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-27 03:17:13 +00:00
wtc%netscape.com
7197a32e24 Bug 161998: fixed the race condition between PR_Cleanup and a CPU thread
that times out from the GetQueuedCompletionStatus call in the WINNT build.
The fix is to shut down the CPU threads in PR_Cleanup.
Modified Files: _winnt.h primpl.h ntthread.c prinit.c prucpu.c


git-svn-id: svn://10.0.0.236/trunk@128312 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 00:04:47 +00:00
wtc%netscape.com
9817a97775 Bug 97475: the new 'af' field needs to be moved to the end of the
PRFilePrivate structure because the OJI code in Sun Java 2 1.3-1
distribution is reading the 'md.osfd' field of this private structure.


git-svn-id: svn://10.0.0.236/trunk@123233 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:30:13 +00:00
wtc%netscape.com
99c3104086 Bug 97475: some platforms, such as OpenVMS, require us to pass the exact
socket address length to socket functions like accept.  Just fixed enough
of this problem for OJI to work with Mozilla on OpenVMS.
Modified Files: _openvms.h primpl.h ptio.c


git-svn-id: svn://10.0.0.236/trunk@123227 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 18:05:26 +00:00
seawood%netscape.com
dc7263dc9e Fix real_install rules so that headers are still installed correctly if includedir is overridden on the commandline.
Bug #149483 r=blizzard


git-svn-id: svn://10.0.0.236/trunk@123212 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 09:01:48 +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
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
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
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
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
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
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
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
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
wtc%netscape.com
8f4e692317 Bugzilla bug #70295: do not hold _pr_flock_lock while calling the MD
lockfile function to avoid a deadlock.  The lockCount field of
PRFilePrivate may have the value of -1 to indicate that the MD lockfile
function is in progress.  Use _pr_flock_cv to wait for the completion
of the MD lockfile function.
Modified files: primpl.h, prfile.c, prio.c, ptio.c


git-svn-id: svn://10.0.0.236/trunk@88070 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 06:51:44 +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
wtc%netscape.com
59621a3060 Bugzilla bug #15906: added GC_LEAK_DETECTOR support for Linux.
Modified files: config.mk, primpl.h, pr/src/Makefile, pr/src/Makefile.in,
pr/src/memory/Makefile, pr/src/memory/Makefile.in, prthinfo.c, ptthread.c


git-svn-id: svn://10.0.0.236/trunk@76299 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 22:05:22 +00:00
larryh%netscape.com
d05d8c32f0 BugZilla: 4090. PR_APPEND
git-svn-id: svn://10.0.0.236/trunk@75078 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 21:51:07 +00:00
wtc%netscape.com
bbd5f98fdf Fixed Bugzilla bug #45181.
Modified files: _beos.h, _macos.h, _os2.h, _unixos.h, _win95.h, _winnt.h,
primpl.h, prfile.c, prio.c, prsocket.c, bfile.c, macsockotpt.c, os2io.c,
unix.c, ntio.c, w95io.c, prinit.c, ptio.c


git-svn-id: svn://10.0.0.236/trunk@74993 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 02:40:54 +00:00
larryh%netscape.com
c67cc20fa5 BugZilla: 39942. PR_SetError() calls free()
git-svn-id: svn://10.0.0.236/trunk@72943 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 19:46:28 +00:00
larryh%netscape.com
5044d318b8 BugZilla: 42367. Fix copyright date, Original Code
git-svn-id: svn://10.0.0.236/trunk@72681 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 21:48:45 +00:00
larryh%netscape.com
5ff71dac06 BugZilla 42367. change license to dual-license
git-svn-id: svn://10.0.0.236/trunk@72131 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 20:59:02 +00:00
wtc%netscape.com
a06292a469 Bugzilla bug #40542: pass the correct size of struct sockaddr_in8 to
native socket functions on Solaris 8 for Intel/x86. r=larryh@netscape.com.
a=pdt. Thanks to dcran@us.ibm.com (Donnie Cranford) for the bug report.
Modified files: _solaris.h, primpl.h


git-svn-id: svn://10.0.0.236/trunk@71901 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 18:18:19 +00:00
wtc%netscape.com
b1df109e54 Bugzilla bug #38599: pthreads PR_Poll optimizations. 1. Increased the
size of the stack pollfd structure array from 4 to 64.  2. Made the
malloc'ed pollfd structure array a thread private data.
Modified files: primpl.h, ptio.c, ptthread.c


git-svn-id: svn://10.0.0.236/trunk@71798 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 20:42:57 +00:00
wtc%netscape.com
728680a4d9 Bugzilla bug #39731: added PR_ImportPipe and support of pipes to
PR_GetInheritedFD.
Modified files: pprio.h, prfile.c, prinit.c, ptio.c


git-svn-id: svn://10.0.0.236/trunk@71128 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 01:24:52 +00:00
wtc%netscape.com
1b9a633335 Bugzilla bug #40629: the _PR_NewSegment and _PR_DestroySegment functions
are not needed in the pthreads version.  The /dev/zero file, if opened,
should have the close-on-exec flag so that it won't get inherited by
child processes.
Modified files: _unixos.h, primpl.h, prseg.c, unix.c


git-svn-id: svn://10.0.0.236/trunk@70877 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 23:26:10 +00:00
wtc%netscape.com
c984483443 Bugzilla bug #38996: added new function PR_GetMemMapAlignment().
Modified files: prio.h, _beos.h, _macos.h, _os2.h, _unixos.h, _win16.h,
_win95.h, _winnt.h, primpl.h, prmmap.c, bmmap.c, macio.c, os2misc.c,
ntmisc.c, w16fmem.c


git-svn-id: svn://10.0.0.236/trunk@69295 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 23:54:04 +00:00
wtc%netscape.com
c73ef44e07 Bugzilla bug #34920: provide an emulated implementation of acceptread
and sendfile methods that I/O layers can use.  _PR_EmulateAcceptRead
is superseded by PR_EmulateAcceptRead, and _PR_EmulateSendFile and
_PR_UnixSendFile are superseded by PR_EmulateSendFile.  Deleted unused
function _PR_HPUXTransmitFile.  The workaround for the OSF1 V4.0
MAP_PRIVATE bug is moved from _PR_UnixSendFile to _MD_CreateFileMap,
ifdef'd with the new macro OSF1V4_MAP_PRIVATE_BUG, which is defined
only on OSF1 V4.
Modified files: OSF1.mk, _hpux.h, pprio.h, primpl.h, priometh.c,
prsocket.c, unix.c, and ptio.c


git-svn-id: svn://10.0.0.236/trunk@69219 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 18:34:19 +00:00
wtc%netscape.com
97d2ae4fd2 Bugzilla bug #17223: implemented the PR_MSG_PEEK flag for PR_Recv() for
BeOS, Mac OS, OS/2, and Windows.  On BeOS, Mac OS, and NT, PR_MSG_PEEK
is emulated with a peek buffer in the NSPR file descriptors.
Modified files: _beos.h, _macos.h, _winnt.h, primpl.h, prsocket.c,
macsockotpt.c, os2sock.c, ntio.c, and w95sock.c


git-svn-id: svn://10.0.0.236/trunk@68299 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 00:32:49 +00:00
wtc%netscape.com
009810cff6 Bugzilla bug #17223: added the PR_MSG_PEEK (with same value as MSG_PEEK)
for PR_Recv().  Define _PR_EMULATE_MSG_PEEK on platforms that don't
natively support MSG_PEEK.  Implemented PR_MSG_PEEK for pthreads.
Added the peek.c test case.
Modified files: prio.h, _macos.h, _winnt.h, primpl.h, ptio.c,
pr/tests/Makefile, pr/tests/Makefile.in
Added file: pr/tests/peek.c


git-svn-id: svn://10.0.0.236/trunk@67998 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 01:22:54 +00:00
wtc%netscape.com
09b18f8def Bugsplat bug #67751: Renamed _PR_UnblockWaiters to _PR_UnblockLockWaiter
and changed the return type to void.  Fixed a bug in the code that skips
over a suspended thread.
Modified files: primpl.h, prulock.c, pruthr.c


git-svn-id: svn://10.0.0.236/trunk@64406 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 00:17:59 +00:00
srinivas%netscape.com
e3d4bda386 When a PRLock is released all the waiters are unblocked, rather than assign
the lock to a waiting thread. Bug #67751.


git-svn-id: svn://10.0.0.236/trunk@62946 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 20:16:39 +00:00
wtc%netscape.com
2c1c458572 Merged NSPR 4.0 release onto the main trunk.
git-svn-id: svn://10.0.0.236/trunk@62147 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-03 19:53:57 +00:00
wtc%netscape.com
7f138566c6 Landed NSPRPUB_RELEASE_4_0_20000223 onto the main trunk.
git-svn-id: svn://10.0.0.236/trunk@61538 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 23:38:19 +00:00
sdagley%netscape.com
21c87ff63d Fix #25042. Moving PR_Init_Log proto from prlog.h to pprio.h as it is an internal function that normally doesn't belong in the NSPR public interfaces but the Mac needs it. Changes actually from wtc, sdagley just reviewed them and is checking them in.
git-svn-id: svn://10.0.0.236/trunk@59014 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 04:00:28 +00:00
wtc%netscape.com
cbaefa0b2d Backed out the NSPR 3.5.1 merge. Mozilla client cannot exit on shutdown.
Modified files: _win95.h, _winnt.h, primpl.h, prfdcach.c, prfile.c,
ntio.c,  w95io.c, ptio.c, ptthread.c


git-svn-id: svn://10.0.0.236/trunk@57220 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 23:05:24 +00:00