500 Commits

Author SHA1 Message Date
wtc%google.com
6161ae732a Minor comment fix.
git-svn-id: svn://10.0.0.236/trunk@244402 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 23:33:02 +00:00
wtc%google.com
c93a266159 Bug 334826: use compiler's intrinsic atomic functions only when our own
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
2008-01-27 20:44:02 +00:00
wtc%google.com
9f96246521 Bug 331043: test only compiler predefined macros. Also test for _M_X64,
which replaces _M_AMD64.


git-svn-id: svn://10.0.0.236/trunk@244084 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-27 01:53:42 +00:00
wtc%google.com
9b7c998ee2 Bug 334826: added macro versions of atomic operations, which may be
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
2008-01-27 01:50:19 +00:00
wtc%google.com
a60f3c4236 Bug 331043: need to test the _M_IX86 macro, which is defined by MSVC.
_X86_ is defined by <windows.h>.


git-svn-id: svn://10.0.0.236/trunk@244062 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-26 22:12:10 +00:00
wtc%google.com
65e5564edd Bug 331043: Add the PR_ROTATE_LEFT32 and PR_ROTATE_RIGHT32 macros for
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
2008-01-26 21:49:18 +00:00
wtc%google.com
2178f99d8d Bug 296878: disable the use of os_Linux_ppc.s for 64-bit PowerPC builds
because the assembly code crashes.  Add nonexecutable stack directive
to os_Linux_ppc.s.
Modified files: configure.in configure _linux.h os_Linux_ppc.s


git-svn-id: svn://10.0.0.236/trunk@243874 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-24 05:00:04 +00:00
wtc%google.com
22d3bf891d Bug 296878: use native PowerPC atomic instructions on Linux PowerPC. The
patch is contributed by kevdig@hypersurf.com.  r=mark.mentovai,wtc
Modified files: configure.in configure _linux.h
Added file: os_Linux_ppc.s


git-svn-id: svn://10.0.0.236/trunk@243638 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-21 01:46:47 +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
wtc%google.com
85c618e163 Bug 404272: define HAVE_LONG_LONG only if it is not yet defined.
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
2007-11-26 18:17:17 +00:00
wtc%google.com
536eb16b6c Removed dead files for Rhapsody, the old name of Darwin.
Modified file: pr/tests/dll/Makefile.in
Removed files: _rhapsody.cfg _rhapsody.h rhapsody.c


git-svn-id: svn://10.0.0.236/trunk@239807 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-21 22:51:24 +00:00
mozilla%weilbacher.org
ccb3ba3bfe [OS/2] Bug 399647: fix OS/2 build break in prlog.c and correct warning, r=wtc
git-svn-id: svn://10.0.0.236/trunk@237827 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-16 18:37:31 +00:00
wtc%google.com
7095a0094f Bug 386742: added a new function, PR_ParseTimeStringToExplodedTime, which
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
2007-08-07 02:13:00 +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
wtc%google.com
e089810f24 Bugzilla bug 375985: Moved the definition of PR_STATIC_ASSERT from perror.h
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
2007-05-28 14:48:26 +00:00
wtc%google.com
86376b8166 Bug 371247: checked in some changes for OpenBSD. The patch is contributed
by Martynas Venckus <martynas@openbsd.org>. r=nelsonb,wtc.
Modified Files: configure configure.in lib/tests/Makefile.in
	_openbsd.cfg _openbsd.h prnetdb.c


git-svn-id: svn://10.0.0.236/trunk@227047 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-26 00:13:08 +00:00
julien.pierre.bugs%sun.com
93faaf1b06 Fix for bug 353899 . PR_CallOnce and PR_CallOnceWithArg do not set NSPR error code if once->initialized is TRUE and once->status is PR_FAILURE . r=wtc
git-svn-id: svn://10.0.0.236/trunk@226232 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-10 01:21:41 +00:00
jwatt%jwatt.org
508cbd9747 Fixing bug 375985. Add compile time assertions to NSPR. r=wtchang@gmail.com
git-svn-id: svn://10.0.0.236/trunk@223995 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-02 09:08:49 +00:00
wtchang%redhat.com
ed26fa6de8 Bugzilla bug 363997: when running on Windows Vista, set the sockets in the
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
2007-03-14 18:00:44 +00:00
wtchang%redhat.com
0ecc6a4799 Bug 34843: PR_StringToNetAddr and PR_NetAddrToString should call
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
2007-03-01 18:11:17 +00:00
wtchang%redhat.com
d84e6b8b15 Bug 329807: define struct _md_sockaddr_in6 because HP-UX's struct
sockaddr_in6 is only 32-bit aligned.  r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@218520 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 18:11:06 +00:00
wtchang%redhat.com
f978dd74f5 Bug 329807: set USE_IPV6=1 (define _PR_INET6) on HP-UX B.11.23 or later,
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
2007-01-13 00:32:39 +00:00
wtchang%redhat.com
078873d980 Bugzilla Bug 363092: removed the pthread_kill macro definition. Mac OS X
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
2006-12-08 22:58:13 +00:00
wtchang%redhat.com
50fccfcc92 Bugzilla Bug 362246: enable large-file support on Mac OS X.
r=mark.mentovai,bienvenu


git-svn-id: svn://10.0.0.236/trunk@216575 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-06 17:57:34 +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
a0402341f1 Bugzilla Bug 355999: fix up for kfreebsd support. The patch is contributed
by Petr.Salinger@seznam.cz. r=wtc
Modified files: _linux.cfg _linux.h


git-svn-id: svn://10.0.0.236/trunk@216132 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-30 01:11:46 +00:00
wtchang%redhat.com
945a67dc99 Bugzilla Bug 360169: changed the value of the _PR_SI_ARCHITECTURE macro
back to "hppa1.1" for backward compatibility. r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@215240 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-14 00:50:17 +00:00
wtchang%redhat.com
95249a157d Bug 301064
r=wtc, sr=mkaply (OS/2 only)
Patch from Andy Willis - add _declspec(dllexport/dllimport) for OS/2


git-svn-id: svn://10.0.0.236/trunk@193624 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 21:02:25 +00:00
wtchang%redhat.com
0c9f6c2350 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@193623 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 20:57:23 +00:00
wtchang%redhat.com
2eea239645 Bugzilla Bug 326168: more cleanups after code review. r=darin,jshin.
Modified files: prlink.h prlink.c w95io.c


git-svn-id: svn://10.0.0.236/trunk@193609 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 19:17:03 +00:00
gerv%gerv.net
97fae50e85 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@193311 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-31 08:35:02 +00:00
gerv%gerv.net
484d6212fd Bug 331600 - remove non-tri-licensed code patch, originally from bug 61746. r=rrelyea.
git-svn-id: svn://10.0.0.236/trunk@193151 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-28 20:52:14 +00:00
wtchang%redhat.com
3f7c0120bb Backed out a change in the previous checkin that broke the Windows gcc
(MinGW) build. (Bugzilla bug 330150 and bug 326168)


git-svn-id: svn://10.0.0.236/trunk@192253 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-13 02:16:58 +00:00
darin%meer.net
270cb91ef5 fixes bug 326168 "Add a UTF-16 API to load a library" patch by jshin1987@gmail.com r=wtc,darin
git-svn-id: svn://10.0.0.236/trunk@192138 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-10 05:38:31 +00:00
wtchang%redhat.com
c981b6753f Bugzilla Bug 322578: Support ppc<->x86 cross builds for Mac OS X. The
patch is contributed by Mark Mentovai <mark@moxienet.com>.  r=wtc.
Modified Files: configure configure.in autoconf.mk.in rules.mk _darwin.cfg


git-svn-id: svn://10.0.0.236/trunk@190786 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-22 02:39:59 +00:00
wtchang%redhat.com
112a14111d Bugzilla bug 326110: declare PR_SetSysfdTableSize and PR_GetSysfdTableMax
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
2006-02-06 23:13:10 +00:00
wtchang%redhat.com
1a89ca7749 Bugzilla Bug 322956: added PR_SI_HOSTNAME_UNTRUNCATED, which does not
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
2006-01-19 22:11:59 +00:00
wtchang%redhat.com
a0e35a7d1e Bugzilla Bug 322427: removed a very old workaround for a zero-size array in
<sys/socket.h> on Linux. r=kengert.


git-svn-id: svn://10.0.0.236/trunk@187201 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-09 21:43:52 +00:00
wtchang%redhat.com
e60f0ee77b Bugzilla Bug 322287: Implemented NSPR atomic routines in x86 assembly code
for Intel Macs.  The patch is contributed by Josh Aas <joshmoz@gmail.com>.
r=mark.mentovai,wtc.
Modified files: configure configure.in _darwin.h
Added file: os_Darwin_x86.s


git-svn-id: svn://10.0.0.236/trunk@187174 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-09 18:38:54 +00:00
wtchang%redhat.com
f10d9ed91b Bugzilla Bug 261649: more changes for GNU/k*BSD and GNU/Hurd support.
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
2005-12-24 15:03:31 +00:00
wtchang%redhat.com
979d43900e Bugzilla Bug 261649: added GNU/k*BSD and preliminary GNU/Hurd support. The
patch is contributed by Robert Millan <rmh@aybabtu.com>. r=wtc.
Modified files: configure configure.in _linux.cfg _pth.h _unixos.h
prosdep.h pr/src/linking/Makefile.in prlink.c prosdep.c unix.c uxproces.c
uxrng.c prnetdb.c ptio.c pr/tests/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@186557 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-24 08:25:31 +00:00
cls%seawood.org
464c90a54d Rename real_install target as install.
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
2005-11-23 06:35:20 +00:00
cls%seawood.org
8572319c57 Only export *.cfg files needed for cross-compiling.
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
2005-11-23 06:25:56 +00:00
wtchang%redhat.com
39824e4332 Bugzilla bug 195219: implemented the atomic routines in IA-64 assembly for
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
2005-11-21 22:15:55 +00:00
wtchang%redhat.com
85d3afc6ee Bugzilla Bug 312199: HP-UX IPF (Itanium) changes contributed by Grace Lu
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
2005-11-11 22:23:08 +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
67a60a323a Determine if the visibility(default) attribute can be used by using only
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
2005-10-13 17:43:36 +00:00
wtchang%redhat.com
5016d59337 Bugzilla Bug 308331: the guard for the int32 typedef is no longer
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
2005-09-15 23:15:53 +00:00
wtchang%redhat.com
0ec1b8054e Set NSPR version to 4.7 (Beta).
git-svn-id: svn://10.0.0.236/trunk@180256 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-14 23:39:56 +00:00
wtchang%redhat.com
61a42f9170 Set NSPR version to 4.6.1 Beta.
Modified files: configure configure.in repackage.sh prinit.h vercheck.c


git-svn-id: svn://10.0.0.236/trunk@177758 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 17:38:07 +00:00