PR_AtomicXXX functions are truly atomic, otherwise the macros and functions
can't be used interchangeably. Add Nelson's suggested changes as a TODO
comment.
Modified files: pratom.h atomic.c
git-svn-id: svn://10.0.0.236/trunk@244157 18797224-902f-48f8-a5cc-f745e15eee43
implemented as compiler intrinsics. The patch is contributed by Steve
Snyder <swsnyder@insightbb.com>. r=wtc
Modified files: pratom.h atomic.c
git-svn-id: svn://10.0.0.236/trunk@244083 18797224-902f-48f8-a5cc-f745e15eee43
rotating left and right, which are defined using compiler intrinsics,
if available. The patch is contributed by Michael Moy <mmoy@yahoo.com>.
r=brendan,wtc
Modified files: prbit.h plhash.c
git-svn-id: svn://10.0.0.236/trunk@244061 18797224-902f-48f8-a5cc-f745e15eee43
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
HAVE_LONG_LONG may be defined by the build system of a project using NSPR.
The patch is contributed by Edwin van Vliet <edwin@cheatah.nl>. r=wtc
Modified Files:
_aix32.cfg _aix64.cfg _beos.cfg _bsdi.cfg _darwin.cfg
_dgux.cfg _freebsd.cfg _hpux32.cfg _hpux64.cfg _irix32.cfg
_irix64.cfg _linux.cfg _netbsd.cfg _nto.cfg _openbsd.cfg
_openvms.cfg _os2.cfg _osf1.cfg _riscos.cfg _solaris.cfg
_unixware7.cfg _win95.cfg _winnt.cfg
git-svn-id: svn://10.0.0.236/trunk@239933 18797224-902f-48f8-a5cc-f745e15eee43
is the same as PR_ParseTimeString except that it returns the result in a
PRExplodedTime structure. The patch is contributed by Christian Eyrich
<ch.ey@gmx.net>. r=wtc.
Modified Files: prtime.h nspr.def prtime.c
git-svn-id: svn://10.0.0.236/trunk@231573 18797224-902f-48f8-a5cc-f745e15eee43
to prlog.h, where the related PR_ASSERT macro is defined. Define
PR_STATIC_ASSERT as an extern declaration rather than a typedef. The patch
is adapted from Igor Bukanov's patch in JavaScript bug 381236
JS_STATIC_ASSERT. r=igor@mir2.org.
Modified files: prerror.h prlog.h
git-svn-id: svn://10.0.0.236/trunk@227110 18797224-902f-48f8-a5cc-f745e15eee43
compatibility mode so that the new TCP/IP stack in Windows Vista can
interoperate with all the TCP/IP implementations. The patch is contributed
by Seth Spitzer <sspitzer@mozilla.com>. r=wtc,biesi
Modified Files: _win95.h w95io.c w95sock.c w95thred.c
git-svn-id: svn://10.0.0.236/trunk@221882 18797224-902f-48f8-a5cc-f745e15eee43
getaddrinfo and getnameinfo if they exist. Based on the patch contributed
by Noriko Hosoi <nhosoi@redhat.com>. r=nhosoi
Modified files: _win95.h _winnt.h prnetdb.c
git-svn-id: svn://10.0.0.236/trunk@221162 18797224-902f-48f8-a5cc-f745e15eee43
based on information from HP. r=nelsonb,darin
Modified files: configure configure.in _hpux.h
git-svn-id: svn://10.0.0.236/trunk@218255 18797224-902f-48f8-a5cc-f745e15eee43
has had the pthread_kill function since 10.2. The patch is contributed by
Josh Aas <joshmoz@gmail.com>. r=mark.mentovai,wtc
git-svn-id: svn://10.0.0.236/trunk@216775 18797224-902f-48f8-a5cc-f745e15eee43
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
with NSPR_API in a public header file so that they can be exported from the
NSPR shared library/DLL. r=kengert,jpierre. Thanks to Noriko Hosoi
<nhosoi@redhat.com> for the bug report.
git-svn-id: svn://10.0.0.236/trunk@189055 18797224-902f-48f8-a5cc-f745e15eee43
strip the domain name (if any). The patch is contributed by
Philip Prindeville <philipp@redfish-solutions.com>. r=wtc,darin.
Modified files: prsystem.h prsystem.c
git-svn-id: svn://10.0.0.236/trunk@187849 18797224-902f-48f8-a5cc-f745e15eee43
The patch is contributed by Robert Millan <rmh@aybabtu.com>. r=wtc.
Modified files: nsinstall.c _pth.h pr/src/linking/Makefile.in prlink.c
pr/tests/Makefile.in
git-svn-id: svn://10.0.0.236/trunk@186558 18797224-902f-48f8-a5cc-f745e15eee43
Thanks to Wan-Teh Chang <wtchang@redhat.com> for the patch.
Bug #304239 r=cls
git-svn-id: svn://10.0.0.236/trunk@185192 18797224-902f-48f8-a5cc-f745e15eee43
Thanks to Wan-Teh Chang <wtchang@redhat.com> for the patch.
Bug #304239 r=cls
git-svn-id: svn://10.0.0.236/trunk@185190 18797224-902f-48f8-a5cc-f745e15eee43
HP-UX IPF. Thanks to Dennis Handly of HP for reviewing the assembly code
and suggesting the use of the addp4 instruction to convert a 32-bit address
to a 64-bit one in 32-bit builds.
Modified files: configure configure.in _hpux.h
Added file: os_HPUX_ia64.s
git-svn-id: svn://10.0.0.236/trunk@185087 18797224-902f-48f8-a5cc-f745e15eee43
of HP: use .so as shared library suffix, link shared libraries with
+b $ORIGIN. r=wtc,darin.
Modified Files: configure configure.in _hpux.h
git-svn-id: svn://10.0.0.236/trunk@184485 18797224-902f-48f8-a5cc-f745e15eee43
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
the GCC version so that this public header does not depend on any macro
the user needs to define. See Bugzilla bug 307168 comment 29.
git-svn-id: svn://10.0.0.236/trunk@182177 18797224-902f-48f8-a5cc-f745e15eee43
necessary. Only the winsock2.h file (winsock version 2.1) in MSVC 4.2
has the int32 typedef. MinGW's winsock2.h doesn't have that typedef,
and current Microsoft winsock2.h doesn't have that either. Also, on
Windows, we define int32 as long, which is the same as the int32 typedef in
winsock2.h v2.1. MSVC accepts such duplicated typedefs. Thanks to
timeless for the research into this problem.
git-svn-id: svn://10.0.0.236/trunk@180323 18797224-902f-48f8-a5cc-f745e15eee43