223 Commits

Author SHA1 Message Date
wtc%google.com
472dc0c360 Bug 807883: Add 'const' to the 'pool' parameter and 'arena' local variable
of PL_SizeOfArenaPoolExcludingPool. Fix comments. r=n.nethercote.
Modified Files:
	plarena.c plarenas.h


git-svn-id: svn://10.0.0.236/trunk@264716 18797224-902f-48f8-a5cc-f745e15eee43
2013-02-11 15:36:33 +00:00
wtc%google.com
09b9d71f92 Bug 807883: Add the PL_SizeOfArenaPoolExcludingPool function to measure all
memory used by a PLArenaPool, excluding the PLArenaPool structure. The
patch is contributed by Nicholas Nethercote <nnethercote@mozilla.com>.
r=wtc.
Modified Files:
	plarena.c plarenas.h plds.def


git-svn-id: svn://10.0.0.236/trunk@264710 18797224-902f-48f8-a5cc-f745e15eee43
2013-02-10 18:34:43 +00:00
wtc%google.com
be98838f49 Bug 804806: Remove code related to NCR, NEC, NEXTSTEP, SINIX, SNI, SONY,
NEWS-OS, SunOS4, and SunOS 4.1.3_U1. Remove the os_ReliantUNIX.s file.
TBR=ted.
Modified Files:
	config/Makefile.in config/nsinstall.c lib/ds/Makefile.in
	lib/libc/src/Makefile.in lib/prstreams/Makefile.in
	lib/prstreams/tests/testprstrm/Makefile.in
	lib/tests/Makefile.in pr/include/gencfg.c
	pr/include/md/_unixos.h pr/include/private/primpl.h
	pr/src/Makefile.in pr/src/cplus/tests/Makefile.in
	pr/src/io/Makefile.in pr/src/io/prfile.c pr/src/io/prmapopt.c
	pr/src/linking/Makefile.in pr/src/linking/prlink.c
	pr/src/malloc/Makefile.in pr/src/md/prosdep.c
	pr/src/md/beos/beos_errors.c pr/src/md/unix/Makefile.in
	pr/src/md/unix/unix.c pr/src/md/unix/unix_errors.c
	pr/src/md/unix/uxproces.c pr/src/md/unix/uxrng.c
	pr/src/md/unix/uxwrap.c pr/src/misc/prtime.c
	pr/src/pthreads/Makefile.in pr/src/pthreads/ptio.c
	pr/src/threads/combined/Makefile.in pr/tests/Makefile.in
	pr/tests/dll/Makefile.in tools/Makefile.in
Removed Files:
	pr/src/md/unix/os_ReliantUNIX.s


git-svn-id: svn://10.0.0.236/trunk@264433 18797224-902f-48f8-a5cc-f745e15eee43
2012-11-13 23:18:00 +00:00
wtc%google.com
311c53b8e7 Bug 716564 - update licence to MPL 2. r=gerv.
git-svn-id: svn://10.0.0.236/trunk@263881 18797224-902f-48f8-a5cc-f745e15eee43
2012-05-31 21:54:55 +00:00
ted.mielczarek%gmail.com
e96bea3bc9 bug 681588 - Cleanup wrap malloc and its use on Android. Patch by Mike Hommey <mh@glandium.org>. r=ted
git-svn-id: svn://10.0.0.236/trunk@262740 18797224-902f-48f8-a5cc-f745e15eee43
2011-08-29 17:02:52 +00:00
wtc%google.com
d062a70c7a Bug 678993: remove lib/msgc from CVS.
Removed Files:
	lib/msgc/.cvsignore lib/msgc/Makefile.in
	lib/msgc/include/.cvsignore lib/msgc/include/Makefile.in
	lib/msgc/include/gcint.h lib/msgc/include/prgc.h
	lib/msgc/src/.cvsignore lib/msgc/src/Makefile.in
	lib/msgc/src/os2gc.c lib/msgc/src/prgcapi.c
	lib/msgc/src/prmsgc.c lib/msgc/src/unixgc.c
	lib/msgc/src/win32gc.c lib/msgc/tests/.cvsignore
	lib/msgc/tests/Makefile.in lib/msgc/tests/gc1.c
	lib/msgc/tests/thrashgc.c


git-svn-id: svn://10.0.0.236/trunk@262655 18797224-902f-48f8-a5cc-f745e15eee43
2011-08-15 20:59:58 +00:00
wtc%google.com
fc6a0d9748 Bug 678993: update the lib/msgc makefiles to support objdir builds.
Modified Files:
	lib/msgc/include/Makefile.in lib/msgc/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@262654 18797224-902f-48f8-a5cc-f745e15eee43
2011-08-15 20:52:44 +00:00
wtc%google.com
55e6128c40 Bug 676457: Avoid wasted space in PLArenaPools due to jemalloc rounding up
the gross size per arena, by reducing pool->arenasize by the header +
alignment slop size.  The 'size' argument of PL_InitArenaPool now means the
gross size rather than the net size.  The patch is contributed by
Nicholas Nethercote <nnethercote@mozilla.com>.  r=wtc.
Modified Files: plarena.c plarenas.h


git-svn-id: svn://10.0.0.236/trunk@262646 18797224-902f-48f8-a5cc-f745e15eee43
2011-08-13 19:57:23 +00:00
wtc%google.com
4a8a56918a Bug 427858: code cleanup. Remove declarations for unimplemented functions
PL_AllocArenaPool and PL_DestroyArenaPool.  Warn that PL_CompactArenaPool
is not implemented (a no-op).  The patch is contributed by
Robin Bate Boerop <moz@shorestreet.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@262570 18797224-902f-48f8-a5cc-f745e15eee43
2011-08-03 22:28:42 +00:00
wtc%google.com
f1354259f5 Bug 629653: Fix two cases where PL_ArenaRelease fails to "free" memory it
should.  The patch was originally proposed by Brendan Eich in bug 41381
comment 5 in 2000, and was proposed recently by javakit@gmail.com.
r=cjones,wtc.


git-svn-id: svn://10.0.0.236/trunk@261893 18797224-902f-48f8-a5cc-f745e15eee43
2011-02-05 04:14:07 +00:00
wtc%google.com
9fa1ed73e0 Bug 557712: NSPR tests under lib/tests do not compile for Android.
The patch is contributed by Alex Pakhotin <alexp@mozilla.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@260918 18797224-902f-48f8-a5cc-f745e15eee43
2010-07-30 02:51:59 +00:00
wtc%google.com
0771ac202a Bug 581465: A modern and standards compliant implementation. The patch
is contributed by Fredrik Roubert <roubert@google.com>.  r=wtc.
Modified Files:
	Makefile.in prstrms.cpp prstrms.h
	tests/testprstrm/testprstrm.cpp


git-svn-id: svn://10.0.0.236/trunk@260873 18797224-902f-48f8-a5cc-f745e15eee43
2010-07-23 22:47:12 +00:00
wtc%google.com
72c428c906 Bug 547064: build nsprpub/lib/tests for Windows Mobile. The patch is
contributed by Brad Lassey <blassey@mozilla.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@260848 18797224-902f-48f8-a5cc-f745e15eee43
2010-07-23 01:39:16 +00:00
nelson%bolyard.com
510a8dc592 Bug 547677: plgetopt: missing associated value fails to cause PL_OPT_BAD if
option is the the last one in argv.
Patch contributed by Tomas Hoger <thoger@redhat.com>, r=nelson


git-svn-id: svn://10.0.0.236/trunk@260226 18797224-902f-48f8-a5cc-f745e15eee43
2010-04-25 01:15:22 +00:00
nelson%bolyard.com
3addbb93a2 Bug 347106: Need function to clear out PLArenas in PLArenaPools for security
Patch contributed by Nelson Bolyard <nelson@bolyard.me>, r=wtc


git-svn-id: svn://10.0.0.236/trunk@260065 18797224-902f-48f8-a5cc-f745e15eee43
2010-03-28 20:46:37 +00:00
wtc%google.com
947178f031 Remove unused header plresolv.h from CVS. r=christophe.
Modified Files:
	pkg/solaris/SUNWprd/prototype
Removed Files:
	lib/libc/include/plresolv.h


git-svn-id: svn://10.0.0.236/trunk@259488 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-27 22:20:40 +00:00
wtc%google.com
ccd8ff76b8 Remove obsolete MANIFEST files for the Classic Mac build system.
Removed Files:
	lib/ds/MANIFEST lib/libc/include/MANIFEST
	lib/msgc/include/MANIFEST pr/include/MANIFEST


git-svn-id: svn://10.0.0.236/trunk@259460 18797224-902f-48f8-a5cc-f745e15eee43
2010-01-23 01:24:06 +00:00
sgautherie.bz%free.fr
686ecd3c69 Bug 506502 - Remove "MOZ_BITS == 16" parts (in dbm and nsprpub); (Cv1) Remove "MOZ_BITS == 16" blocks; r=wtc
git-svn-id: svn://10.0.0.236/trunk@257942 18797224-902f-48f8-a5cc-f745e15eee43
2009-08-04 18:07:35 +00:00
wtc%google.com
d9880dcf9a Bug 492779: Added comments to plbase64.h to explain how to avoid PRUint32
overflow when calculating destination buffer sizes.  Call strlen instead of
PL_strlen so we can detect size_t to PRUint32 truncations.  Changed
PL_Base64Decode to use the exact same formula documented in the header.
r=nelson.
Modified Files: plbase64.h base64.c


git-svn-id: svn://10.0.0.236/trunk@257264 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:17:38 +00:00
wtc%google.com
cd42121f73 Bug 492779: assert that PL_strlen's return value doesn't overflow PRInt32
in optimized builds as well.  r=nelson.


git-svn-id: svn://10.0.0.236/trunk@257263 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-22 04:13:11 +00:00
wtc%google.com
46b49ff85b Bug 492779: In PL_Base64Encode and PL_Base64Decode, ensure that all
PRUint32 values stay within range.  In PL_strlen, replaced the magic
constant 2147483647 by PR_INT32_MAX.  r=nelson.
Modified Files: base64.c strlen.c


git-svn-id: svn://10.0.0.236/trunk@257203 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-15 16:00:59 +00:00
wtc%google.com
e921477bf3 Bug 476996: removed obsolete XP_MAC code for Mac OS Classic.
git-svn-id: svn://10.0.0.236/trunk@257115 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-06 14:15:29 +00:00
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
8b6e3007e7 Bug 491045: Remove support for VMS (a.k.a., OpenVMS) from NSPR, r=wtc
git-svn-id: svn://10.0.0.236/trunk@257100 18797224-902f-48f8-a5cc-f745e15eee43
2009-05-01 23:08:06 +00:00
wtc%google.com
72cf124ef4 Bug 433790: removed obsolete Win16 code from mozilla/nsprpub/lib. The
patch is contributed by Arpad Borsos <arpad.borsos@googlemail.com>.  r=wtc.
Modified Files:
	ds/plhash.c libc/src/plerror.c msgc/include/prgc.h
	msgc/src/prgcapi.c msgc/src/prmsgc.c msgc/tests/Makefile.in
	prstreams/tests/testprstrm/Makefile.in tests/Makefile.in
Removed Files:
	msgc/src/win16gc.c


git-svn-id: svn://10.0.0.236/trunk@256286 18797224-902f-48f8-a5cc-f745e15eee43
2009-02-22 18:56:04 +00:00
wtc%google.com
774a08b056 Bug 313282: Include <string.h> for strlen.
git-svn-id: svn://10.0.0.236/trunk@253799 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-23 17:17:18 +00:00
wtc%google.com
3c6cdc8f9e Bug 313282: comnined strccmp.c (rev. 3.7) and strcstr.c (rev. 3.8) into
strcase.c so that the functions can share the |uc| table easily.
Modified Files:
	Makefile.in
Added Files:
	strcase.c
Removed Files:
	strccmp.c strcstr.c


git-svn-id: svn://10.0.0.236/trunk@252182 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-07 19:20:10 +00:00
wtc%google.com
65fda1c9b4 Bug 313282: we can call strlen instead of PL_strlen after checking their
arguments for null.  The patch is contributed by Alfred Kayser
<alfredkayser@gmail.com>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@252037 18797224-902f-48f8-a5cc-f745e15eee43
2008-06-01 18:28:06 +00:00
wtc%google.com
a46ada4e85 Bug 430684: PL_ArenaFinish should zero the static variable
"PRCallOnceType once". r=nelson.


git-svn-id: svn://10.0.0.236/trunk@251682 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-17 04:19:34 +00:00
wtc%google.com
501d9b1d92 Bug 430884: restored the -lpthread linker options (and the associated
comments) removed in the previous checkin.  Remove the LOCAL_THREADS_ONLY
build variable; now Solaris can just use the CLASSIC_NSPR build variable.
Modified Files:
	lib/msgc/tests/Makefile.in
	lib/prstreams/tests/testprstrm/Makefile.in
	lib/tests/Makefile.in pr/include/md/_solaris.h
	pr/src/Makefile.in pr/src/cplus/tests/Makefile.in
	pr/tests/Makefile.in tools/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@251143 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-03 22:28:44 +00:00
wtc%google.com
8a19b2f49a Bug 430884: removed the obsolete implementation based on Solaris threads.
Contributed by Julien Pierre <julien.pierre.boogz@sun.com>.  r=wtc.
Modified Files:
	configure configure.in lib/msgc/tests/Makefile.in
	lib/prstreams/tests/testprstrm/Makefile.in
	lib/tests/Makefile.in pr/include/md/_solaris.h
	pr/src/Makefile.in pr/src/cplus/tests/Makefile.in
	pr/src/md/unix/solaris.c pr/tests/Makefile.in
	pr/tests/foreign.c pr/tests/provider.c tools/Makefile.in
Removed Files:
	pr/src/md/unix/os_SunOS.s


git-svn-id: svn://10.0.0.236/trunk@251126 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-03 13:41:41 +00:00
wtc%google.com
9f5eebb518 Bug 330720: white space adjustments.
git-svn-id: svn://10.0.0.236/trunk@251111 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-02 18:58:20 +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
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
d556eb1986 Bug 404824: use a look-up table to avoid expensive PR_CeilingLog2
calculations for common cases.  The patch is contributed by Steve Snyder
<swsnyder@insightbb.com>.  r=nelson,wtc


git-svn-id: svn://10.0.0.236/trunk@243524 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-19 06:04:29 +00:00
nelson%bolyard.com
8495ce7432 Bug 346354 - Add test program for new PL_CreateLongOptState function. r=wtc
git-svn-id: svn://10.0.0.236/trunk@231619 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-08 00:40:16 +00:00
nelson%bolyard.com
8733f6d407 Bug 346354 - add capability to parse string command line options, r=wtc
git-svn-id: svn://10.0.0.236/trunk@231495 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-04 23:26:07 +00:00
wtc%google.com
fce55018eb Bugzilla Bug 385347: change "CompanyName" to "Mozilla Foundation\0" and
remove the optional "LegalCopyright".  r=sspitzer
Modified Files: plds.rc plc.rc prstrms.rc nspr.rc


git-svn-id: svn://10.0.0.236/trunk@230402 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-20 23:21:43 +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
wtchang%redhat.com
25355e66ec Bug 369467: use a more robust way to ensure the pointer p does not point
before the array big.  The patch is contributed by Wolfgang Rosenauer
<mozilla@rosenauer.org>. r=wtc


git-svn-id: svn://10.0.0.236/trunk@220323 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-15 18:23:15 +00:00
wtchang%redhat.com
3d53310c7b Bugzilla Bug 360933: removed the 'windows' directory from CVS.
git-svn-id: svn://10.0.0.236/trunk@217167 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-19 02:25:11 +00:00
wtchang%redhat.com
45f6755c7f Bugzilla Bug 360933: removed dead code (for the plevent.h functions, which
have been moved to XPCOM).
Removed files: makefile readme.1st winevent.c


git-svn-id: svn://10.0.0.236/trunk@217166 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-19 02:21:06 +00:00
julien.pierre.bugs%sun.com
8aa9be9e09 Fix for bug 356616 . NSPR DLLs should build at default base address. r=wtchang
git-svn-id: svn://10.0.0.236/trunk@213831 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-19 00:36:57 +00:00
wtchang%redhat.com
93d4002a3c Bugzilla Bug 353427: changed PL_FPrintError to use PR_ErrorToName to avoid
duplicating the error table.  This fixed an array index out of bounds error
reported by Klockwork as a by-product. r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@212141 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-22 02:10:40 +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
wtchang%redhat.com
81329f10b8 Bugzilla Bug 156633: replaced the deprecated PR_CurrentThread by
PR_GetCurrentThread.  The patch is contributed by Tim <timwatt@gmail.com>.
r=wtc.
Modified Files: prmsgc.c btthread.c rcthread.cpp mdmac.c prthinfo.c ptio.c
        ptsynch.c ptthread.c cltsrv.c intrupt.c perf.c provider.c


git-svn-id: svn://10.0.0.236/trunk@184272 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-07 22:39:09 +00:00
cls%seawood.org
448f178000 Use dashes instead of backslashes for program options to avoid msys shell expansion.
Thanks to Howard Chu <hyc@symas.com> for the patch.
Bug #294122 r=cls a=shaver


git-svn-id: svn://10.0.0.236/trunk@173906 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 14:28:35 +00:00
wtchang%redhat.com
1a97a65f35 Changed "it's" to "its".
git-svn-id: svn://10.0.0.236/trunk@170819 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-17 02:24:01 +00:00
wtchang%redhat.com
80d95a6465 Removed blank lines in *.def files.
Modified Files: plds.def plc.def nspr.def my.def


git-svn-id: svn://10.0.0.236/trunk@170354 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 03:01:05 +00:00
wtchang%redhat.com
feb4b07f0a Bugzilla Bug 281763: fixed a leak of the first arena on the freelist when
the second arena is taken.  The patch is contributed by Nelson Bolyard of
Sun Microsystems.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@169112 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-11 18:16:31 +00:00