91 Commits

Author SHA1 Message Date
wtc%google.com
18ddd5daa8 Bug 476996: removed the remaining XP_MAC code. The patch is contributed by
Zack Weinberg <zweinberg@mozilla.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@257114 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 05:40:39 +00:00
nelson%bolyard.com
a4f1b5ead2 Bug 488621: PR_Now() resolution on Windows Mobile is 1 second.
Patch by Brad Lassey <bugmail@lassey.us>, r=nelson,wtc


git-svn-id: svn://10.0.0.236/trunk@257102 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-02 23:27:06 +00:00
mozilla%weilbacher.org
1e7468e069 [OS/2] Bug 330720: remove support for the obsolete OS/2-VACPP from NSPR and use XP_OS2 instead of XP_OS2_EMX everywhere, p=mkaply/me, r=julien.pierre
git-svn-id: svn://10.0.0.236/trunk@251088 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-02 08:18:15 +00:00
wtc%google.com
d3425ee34b Bug 95829: clean up the cached monitor subsystem during NSPR cleanup.
Bug 334285: do not leak the original memory block (and the monitors they
point to) when PR_REALLOC fails.
Portions of the patch are contributed by Brodie <bmo@jellycan.com> and
timeless.  r=relyea,nelson
Modified files: prinit.c ptthread.c primpl.h prcmon.c


git-svn-id: svn://10.0.0.236/trunk@243589 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-20 04:53:10 +00:00
nelson%bolyard.com
d824c01c5c Bug 387954 – fix NT version of PR_Accept on IPv6 listen socket. r=wtc
git-svn-id: svn://10.0.0.236/trunk@230916 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-25 06:45:08 +00:00
wtchang%redhat.com
7e47d9e409 Bugzilla Bug 354593: fixed a race condition in the creation of the lock
that protects localtime() by creating the lock during NSPR initialization.
r=aleksey.sanin,nelson.bolyard.  The patch is contributed by Mark Stevans
<marks@coral8.com>.
Modified files: primpl.h prinit.c prtime.c ptthread.c


git-svn-id: svn://10.0.0.236/trunk@216170 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-30 21:22:55 +00:00
wtchang%redhat.com
e598025edd Bugzilla Bug 225859: added 64-bit Windows support. Peter Armistead
contributed the first 64-bit Windows patch (for IA64) in 2001.  Portions
of this checkin are based on the patch contributed by Makoto Kato
<m_kato@ga2.so-net.ne.jp>. r=wtc.
Modified Files: configure configure.in prtypes.h _win95.cfg _win95.h
                _winnt.cfg _winnt.h probslet.h pprio.h primpl.h
                pr/src/Makefile.in prfile.c prio.c prsocket.c ntgc.c ntio.c
                ntmisc.c w32rng.c w32shm.c w95io.c w95sock.c w95thred.c
                prinit.c pr/tests/prpoll.c


git-svn-id: svn://10.0.0.236/trunk@182722 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 18:21:43 +00:00
wtchang%redhat.com
12b3e2fe4a Bugzilla Bug 294017: make PR_NETADDR_SIZE return the correct value on
Windows because Windows' struct in6_addr has different alignment from
PRIPv6Addr.  The patch is contributed by Shanmu <shanmus@gmail.com>. r=wtc.
Modified Files: md/_win95.h md/_winnt.h private/primpl.h


git-svn-id: svn://10.0.0.236/trunk@174883 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-20 22:05:20 +00:00
wtchang%redhat.com
5353c06979 Bugzilla bug 276330: add a new configuration macro _PR_HAVE_O_APPEND,
which should be defined on platforms (e.g., Unix and BeOS) that have
O_APPEND or its equivalent.  The patch is contributed by tqh
<thesuckiestemail@yahoo.se>. r=wtc,sergei_d.
Modified files: _beos.h _unixos.h primpl.h prfile.c


git-svn-id: svn://10.0.0.236/trunk@167918 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-17 22:00:53 +00:00
gerv%gerv.net
43cb9e1492 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155484 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-25 15:03:26 +00:00
wchang0222%aol.com
d6c069da46 Bugzilla bug 239663
r=mkaply, sr=blizzard (platform specific)
OS/2 only - bring back VACPP support for NSPR.
Modified Files: configure.in rules.mk prio.h prtypes.h _os2.h _os2_errors.h
primpl.h prsocket.c os2_errors.c os2sock.c os2thred.c prnetdb.c


git-svn-id: svn://10.0.0.236/trunk@155192 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-20 00:25:30 +00:00
wchang0222%aol.com
ce7cb15a2a Bugzilla bug 232958: checked in a new condition variable implementation
contributed by Fredrik Holmqvist <thesuckiestemail@yahoo.com>.
Modified Files: primpl.h btcvar.c


git-svn-id: svn://10.0.0.236/trunk@154729 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-12 23:44:43 +00:00
wtc%netscape.com
2ae4080507 Bugzilla bug 215581: build with GCC 3.2.2 for OS/2. The patch is
contributed by Javier Pedemonte <pedemont@us.ibm.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@146941 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-16 01:58:03 +00:00
wtc%netscape.com
ffc29c3fbc Bugzilla bug 214411: implement automatic attaching and detaching of Solaris
native threads.  The patch contains contribution by Gerard Roos
<gerard.roos@adnovum.ch>.
Modified Files: _solaris.h primpl.h solaris.c pruthr.c foreign.c provider.c


git-svn-id: svn://10.0.0.236/trunk@146688 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 00:29:37 +00:00
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
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
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
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
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