Граф коммитов

98 Коммитов

Автор SHA1 Сообщение Дата
wtchang%redhat.com 499955a326 Bugzilla Bug 279071: removed a duplication definition of the
MAX_POLLING_INTERVAL macro. The bug is reported by Justin Wood
<116057@bacon.qcc.mass.edu>.
2005-01-20 19:02:09 +00:00
wtchang%redhat.com 20cc344edf 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
2005-01-17 22:00:53 +00:00
gerv%gerv.net 3634d4d94b Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-25 15:03:26 +00:00
wchang0222%aol.com 8ddd2f995b 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
2004-04-20 00:25:30 +00:00
wchang0222%aol.com 3b31eab500 Bugzilla bug 232958: checked in a new condition variable implementation
contributed by Fredrik Holmqvist <thesuckiestemail@yahoo.com>.
Modified Files: primpl.h btcvar.c
2004-04-12 23:44:43 +00:00
wchang0222%aol.com ba59c9fa9f Bugzilla bug 237183: adds an exception handler for every NSPR thread that
is created.  It also exports two functions to set and unset the exception
handler function so they can be used by the primordial thread.  The patch
is contributed by Javier Pedemonte <pedemont@us.ibm.com>. r=wtc.
Modified Files: pprthred.h os2extra.def os2thred.c
2004-03-25 23:28:51 +00:00
wtc%netscape.com 61d464bad9 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.
2003-09-16 01:58:03 +00:00
wtc%netscape.com a2d34ab957 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
2003-09-11 00:29:37 +00:00
wtc%netscape.com ac32157918 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
2003-03-22 14:59:55 +00:00
wtc%netscape.com 9bb01d12a7 The PTDebug type doesn't need to be defined in optimized builds. 2003-01-08 03:28:54 +00:00
wtc%netscape.com 69f9a94067 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
2003-01-07 04:52:25 +00:00
wtc%netscape.com 7c3bd3bd72 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
2002-11-27 03:17:13 +00:00
wtc%netscape.com a3cda0936d 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
2002-08-28 00:04:47 +00:00
wtc%netscape.com c0b8191d16 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.
2002-06-13 20:30:13 +00:00
wtc%netscape.com f0b3faa83f 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
2002-06-13 18:05:26 +00:00
seawood%netscape.com e190f7e264 Fix real_install rules so that headers are still installed correctly if includedir is overridden on the commandline.
Bug #149483 r=blizzard
2002-06-13 09:01:48 +00:00
wtc%netscape.com 79e184e520 The current zone allocator code does not compile under DCE threads on HP-UX
10.x.
2002-01-24 19:20:47 +00:00
wtc%netscape.com baee87f6c8 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
2001-12-28 04:01:07 +00:00
wtc%netscape.com 3b6e395904 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
2001-12-28 03:35:16 +00:00
wtc%netscape.com 2be0d601ec 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
2001-12-28 03:24:02 +00:00
wtc%netscape.com 0fcc6e185d 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
2001-12-28 03:11:43 +00:00
wtc%netscape.com 18494bf47a 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
2001-12-27 19:59:35 +00:00
wtc%netscape.com cb85e2ed2c Bugzilla bug 97485: added the zone allocator (implemented by Nelson
Bolyard).
Modified files: primpl.h prmem.c prinit.c ptthread.c
2001-12-20 00:35:38 +00:00
seawood%netscape.com 10a2363233 Convert all rhapsody (pre-beta-macosx) references to darwin.
Bug #106617 r=wtc
2001-10-26 04:55:58 +00:00
wtc%netscape.com fe52bd992e 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
2001-09-28 01:27:07 +00:00
sfraser%netscape.com 821e14b019 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. 2001-09-27 23:35:25 +00:00
wtc%netscape.com fad095a286 Deleted unused prototypes for _PR_Unlock, _PR_SuspendThread, and
_PR_ResumeThread.
2001-09-15 04:53:12 +00:00
wtc%netscape.com 3d29945bda 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
2001-09-07 01:55:49 +00:00
wtc%netscape.com c57ef1ff46 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
2001-09-07 00:05:50 +00:00
wtc%netscape.com d8b557ac56 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.
2001-08-30 00:35:00 +00:00
wtc%netscape.com 1e99af1e01 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.
2001-08-29 23:52:14 +00:00
wtc%netscape.com 8a44425ba5 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
2001-08-29 23:13:41 +00:00
wtc%netscape.com 25f3fcc95f 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.
2001-06-24 05:10:37 +00:00
wtc%netscape.com cc0956733b 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.
2001-06-04 23:42:10 +00:00
wtc%netscape.com b6a8e48805 Removed all Makefile's. The new autoconf build system uses Makefile.in's. 2001-05-17 21:26:28 +00:00
wtc%netscape.com ad583fbe5b Merged NSPRPUB_CLIENT_BRANCH onto the trunk. 2001-05-12 02:05:12 +00:00
wtc%netscape.com a647b1c101 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
2001-02-27 06:51:44 +00:00
cls%seawood.org 5581220542 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 2001-01-21 06:37:45 +00:00
wtc%netscape.com cfddfeeb41 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
2000-08-14 22:05:22 +00:00
larryh%netscape.com 9a9152b4cc BugZilla: 4090. PR_APPEND 2000-07-28 21:51:07 +00:00
wtc%netscape.com dacf1ff7d8 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
2000-07-28 02:40:54 +00:00
larryh%netscape.com f3f1cc024f BugZilla: 39942. PR_SetError() calls free() 2000-06-22 19:46:28 +00:00
larryh%netscape.com dc5530d464 BugZilla: 42367. Fix copyright date, Original Code 2000-06-20 21:48:45 +00:00
larryh%netscape.com 07cb73b3c8 BugZilla 42367. change license to dual-license 2000-06-13 20:59:02 +00:00
wtc%netscape.com ae154c05a3 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
2000-06-09 18:18:19 +00:00
wtc%netscape.com 0d184b4e3b 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
2000-06-08 20:42:57 +00:00
wtc%netscape.com f27585cb9d Bugzilla bug #39731: added PR_ImportPipe and support of pipes to
PR_GetInheritedFD.
Modified files: pprio.h, prfile.c, prinit.c, ptio.c
2000-05-31 01:24:52 +00:00
wtc%netscape.com 037a8366a7 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
2000-05-25 23:26:10 +00:00
wtc%netscape.com 34a4ade695 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
2000-05-11 23:54:04 +00:00
wtc%netscape.com c528067f7c 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
2000-05-11 18:34:19 +00:00