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
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
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
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
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
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
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
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
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
_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
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
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
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
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
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
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
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
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
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
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
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
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
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