977 Commits

Author SHA1 Message Date
wtc%netscape.com
ae0fe3d699 1. Use $(CC) (the compiler) to build shared libraries on Solaris. Added
the -z defs linker flag back.
Modified files: configure configure.in lib/ds/Makefile.in
lib/libc/src/Makefile.in pr/src/Makefile.in
2. Let pr/src/md/unix/Makefile.in be responsible for removing the
pr/src/cpu directory because it creates that directory.  Note that the
'clean' target does not remove the directory because it doesn't remove
the .so's either.
Modified files: pr/src/Makefile.in, pr/src/md/unix/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@135990 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 19:19:01 +00:00
wtc%netscape.com
86d10f26d7 The PTDebug type doesn't need to be defined in optimized builds.
git-svn-id: svn://10.0.0.236/trunk@135971 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 03:28:54 +00:00
wtc%netscape.com
41c6e98c5f Use quotes instead of angle brackets to fix classic mac bustage.
git-svn-id: svn://10.0.0.236/trunk@135941 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 20:51:24 +00:00
wtc%netscape.com
e5334c1c96 Bug 158704: need to define a stub for PT_FPrintStats in classic NSPR.
git-svn-id: svn://10.0.0.236/trunk@135932 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 05:45:59 +00:00
wtc%netscape.com
1ac1a4cd07 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


git-svn-id: svn://10.0.0.236/trunk@135927 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-07 04:52:25 +00:00
wtc%netscape.com
d9c6fe3fae Bug 158704: 1. Added comments explaining why we need to install an
additional copy of libnspr_flt4.so in pr/src/cpu/sparcv8plus if the
libnspr4.so installed in dist/lib is a symbolic link.
Modified files: pr/src/Makefile.in, pr/src/md/unix/Makefile.in
2. Made the 'release' and 'real_install' makefile targets install
libnspr_flt4.so in the cpu/sparcv8plus subdirectory of lib.
Modified files: config/rules.mk pr/src/md/unix/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@135913 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-06 23:42:06 +00:00
wtc%netscape.com
2f2e3e4bd3 Bug 183907: increase the default and minimum thread stack size to 128K on
AIX because bos.rte.libc 4.3.3.88 includes a fix for a security bug that
greatly increases the amount of stack space used when calling functions
like gethostbyname.  Thanks to Philip K. Warren <pkw@us.ibm.com> for the
fix.


git-svn-id: svn://10.0.0.236/trunk@135902 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-06 22:13:28 +00:00
wtc%netscape.com
6a4400f0c5 Bug 158704: should use GARBAGE instead of ALL_TRASH to specify that
$(MAPFILE) should be removed by "make clean".  In pr/src, the "cpu"
directory needs to be removed if NSDISTMODE is not "copy".
Modified Files:
	pr/src/Makefile.in lib/ds/Makefile.in lib/libc/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@135893 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-06 19:43:48 +00:00
wtc%netscape.com
f38ca95e78 Bug 158704: merged the Solaris packaging stuff onto the trunk. The three
shared libraries are built with mapfiles that specify versioned export
symbols.  We use the $ORIGIN and $ISALIST linker keywords to specify the
location of the ultrasparc filtee.


git-svn-id: svn://10.0.0.236/trunk@135843 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-04 02:14:13 +00:00
wtc%netscape.com
e14b8f32b4 Bug 158704: the counter, ordered lock, and trace symbols should be defined
in optimized builds as well.
Modified files: prcountr.h prolock.h prtrace.h prcountr.c prolock.c
prtrace.c


git-svn-id: svn://10.0.0.236/trunk@135839 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-03 23:09:17 +00:00
wtc%netscape.com
a0936b7c6f Bug 158704: added nspr.def, plds.def, and plc.def to the tip (pre 4.3).
git-svn-id: svn://10.0.0.236/trunk@135837 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-03 22:14:14 +00:00
wtc%netscape.com
b830b449ec Bug 185450: fixed a typo in pr_PredictNextNotifyTime which caused the
function to always return 0 instead of delta time interval.  The fix was
contributed by Peter Klavins <klavins@netspace.net.au>.


git-svn-id: svn://10.0.0.236/trunk@135410 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-17 18:28:46 +00:00
wtc%netscape.com
2b957e0bab Bug 176881: we should also look at the high 32 bits of the performance
counter frequency.  Ignoring the high part of the frequency will cause
our interval timer code to malfunction if the high part is not zero.
Also took the opportunity to simplify the arithmetics.


git-svn-id: svn://10.0.0.236/trunk@135170 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-12 14:51:20 +00:00
wtc%netscape.com
b4939c1915 Bug 180293: moved the OpenVMS build from the POSIX subsystem to native VMS
(GNV).  The patch is contributed by Colin Blakes <colin@theblakes.com>.
Modified Files: configure configure.in rules.mk pr/include/md/Makefile
        openvms.c
Added Files: plds_symvec.opt plc_symvec.opt nspr_symvec.opt


git-svn-id: svn://10.0.0.236/trunk@135156 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-12 01:41:31 +00:00
wtc%netscape.com
e8cfa137a1 Bug 166412: ported NSPR to AIX 5.1. AIX 5.1 is the same as AIX 4.3 as far
as NSPR is concerned.  Invented a new macro AIX4_3_PLUS to indicate AIX 4.3
or higher.
Modified files: configure configure.in _pth.h prnetdb.c


git-svn-id: svn://10.0.0.236/trunk@135142 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 23:10:41 +00:00
wtc%netscape.com
edd8212c6a Bug 175423: fixed the problems pointed out by gcc's -pedantic-errors flag.
Modified files: prwin16.h unix.c


git-svn-id: svn://10.0.0.236/trunk@135141 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 23:03:31 +00:00
seawood%netscape.com
cd7937182e Fix CFData memory leak.
Bug #131306 r=beard


git-svn-id: svn://10.0.0.236/trunk@135110 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 05:05:42 +00:00
wtc%netscape.com
7a20504c45 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


git-svn-id: svn://10.0.0.236/trunk@134523 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-27 03:17:13 +00:00
wtc%netscape.com
c224c7ae61 Bug 173827: deleted the l10n_debug cruft. Added the FLAG prefix to
the _LEFT, _SIGNED, _SPACED, _ZEROS, and _NEG macros.  This patch is
contributed by Brendan Eich.


git-svn-id: svn://10.0.0.236/trunk@133796 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-14 01:06:02 +00:00
seawood%netscape.com
bec7157f3e Remove $(CONFIG) from real_install target. It was a typo anyway.
git-svn-id: svn://10.0.0.236/trunk@133467 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-09 09:23:31 +00:00
seawood%netscape.com
4ee80820c1 Add CFM, CFBundle and mach-o library loading support to OSX NSPR. Support is only available if the carbon toolkit is detected at build time.
Original patch by Patrick Beard <beard@netscape.com> with modifications by Wan-Teh Chang <wtc@netscape.com>.
Bug #131306 r=cls


git-svn-id: svn://10.0.0.236/trunk@133114 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-06 05:10:22 +00:00
wtc%netscape.com
a06389d13d Bug 176543: handle the case of invoking a program wit no arguments. The
command line should be an empty string in that case.  Initialize newEnvp.
The patch is contributed by Michael Kaply <mkaply@us.ibm.com>.


git-svn-id: svn://10.0.0.236/trunk@132760 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-31 05:00:01 +00:00
wtc%netscape.com
864087d9c6 Bug 168831: fixed the bug that PR_Poll was ignoring out_flags reported by
the poll methods of I/O layers on the Mac.  This patch was written by
jgmyers and reviewed by sfraser and wtc.


git-svn-id: svn://10.0.0.236/trunk@132525 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-25 12:43:40 +00:00
wtc%netscape.com
92651ad585 Bug 115865: our code only uses the lower 32 bits of the result of
QueryPerformanceFrequency, so assert that the higher 32 bits are all zeros.


git-svn-id: svn://10.0.0.236/trunk@132441 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-24 04:10:25 +00:00
wtc%netscape.com
fbe2f49a08 Bug 175668: merged the fix for the pointer aliasing bug from the 2001
version of dtoa.c.  Removed the workaround of disabling compiler
optimizations on AIX.
Modified Files: Makefile.in prdtoa.c


git-svn-id: svn://10.0.0.236/trunk@132379 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-22 21:28:03 +00:00
wtc%netscape.com
a540a3c70b Converted runtests.ksh (rev. 1.25) into a Bourne shell script. Replaced
Korn shell's echo command by the printf command.


git-svn-id: svn://10.0.0.236/trunk@131877 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-13 00:04:00 +00:00
wtc%netscape.com
cf0e5f700d Bug 165602: checked in Brian Ryner's changes to allow Mac OS X 10.2 builds
to run on 10.1. r=wtc.
Modified files: configure configure.in pr/src/misc/prdtoa.c


git-svn-id: svn://10.0.0.236/trunk@130523 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 12:51:34 +00:00
wtc%netscape.com
bfeaab7530 Bug 168993: PR_Poll should clear out_flags for null fd's. r=jgmyers.
Modified files: bfile.c os2poll.c uxpoll.c w32poll.c ptio.c


git-svn-id: svn://10.0.0.236/trunk@130354 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:24:46 +00:00
wtc%netscape.com
d979b885ba Bug 72100: added macros for the maximum and minimum values of PRInt8,
PRUint8, PRInt16, PRUint16, PRInt32, and PRUint32. r=jkeiser.


git-svn-id: svn://10.0.0.236/trunk@129902 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-18 14:23:46 +00:00
wtc%netscape.com
96fe5c4899 Bug 167375: configuration changes needed for building on BSD/OS 5.0.
The patch is contributed by lidl@pix.net.
Modified files: configure configure.in _bsdi.h


git-svn-id: svn://10.0.0.236/trunk@129351 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-12 15:04:22 +00:00
wtc%netscape.com
01a7871a7f Bug 166716: do not assert in the unimplemented memory-mapped file
functions.  It is sufficient for them to fail with the not implemented
error.
Modified Files: bmmap.c macio.c os2misc.c


git-svn-id: svn://10.0.0.236/trunk@128930 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 01:37:32 +00:00
wtc%netscape.com
789c824caa Bug 166257: declare 'temp' with #if DEBUG because it is only used in code
that is ifdef'd with DEBUG.  Thanks to timeless@bemail.org for the patch.


git-svn-id: svn://10.0.0.236/trunk@128790 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 01:29:48 +00:00
wtc%netscape.com
ce6bccbfd7 Bug 166257: removed an unused variable. Thanks to timeless@bemail.org for
the fix.


git-svn-id: svn://10.0.0.236/trunk@128788 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-04 01:27:00 +00:00
wtc%netscape.com
bb1ca285a3 Updated for NSPR 4.3.
git-svn-id: svn://10.0.0.236/trunk@128375 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 20:27:31 +00:00
wtc%netscape.com
92d4dc2f03 Set NSPR version to 4.3 Beta.
git-svn-id: svn://10.0.0.236/trunk@128374 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 20:22:15 +00:00
wtc%netscape.com
b2dbf23328 Set NSPR version to 4.2.2 Beta.
git-svn-id: svn://10.0.0.236/trunk@128364 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 18:23:30 +00:00
wtc%netscape.com
70a1745c7f Updated for NSPR 4.2.2.
git-svn-id: svn://10.0.0.236/trunk@128363 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 18:21:32 +00:00
wtc%netscape.com
7197a32e24 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


git-svn-id: svn://10.0.0.236/trunk@128312 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-28 00:04:47 +00:00
wtc%netscape.com
07f1f35d31 Bug 164161: made PR_ResumeSet and PR_ResumeTest static and remove the
unused function PR_SuspendAllSuspended. Use the pt_ prefix for static
functions.


git-svn-id: svn://10.0.0.236/trunk@127908 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-23 00:04:19 +00:00
wtc%netscape.com
b0832a36fb Fixed the comments for PR_Poll. PR_Poll only works on sockets; the support
for files is not portable. Document the fd field of PRPollDesc.


git-svn-id: svn://10.0.0.236/trunk@127659 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-19 22:51:06 +00:00
wtc%netscape.com
6fd696962e The comments for PR_ConnectContinue incorrectly referred to
PR_GetConnectStatus.


git-svn-id: svn://10.0.0.236/trunk@127635 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-19 20:26:45 +00:00
wtc%netscape.com
90a3d136f5 Bug 160030: check for __sparc and __i386, which is defined by the Solaris
compilers and gcc in strict ANSI conformance mode.  sparc and i386 are not
defined by the compilers in strict ANSI conformance mode.
Modified Files: _solaris32.cfg _solaris64.cfg


git-svn-id: svn://10.0.0.236/trunk@127419 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-15 23:04:03 +00:00
wtc%netscape.com
9ce59ef31c Bug 162930: fixed the bug that PR_GetSystemInfo always returns "sparc"
as PR_SI_ARCHITECTURE on Solaris, even though Solaris also runs on x86.
Thanks to Sonja Mirtitsch <sonja.mirtitsch@sun.com> for the fix.


git-svn-id: svn://10.0.0.236/trunk@127410 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-15 22:25:42 +00:00
wtc%netscape.com
2232defa0d Bug 158396: added comments explaining the importance of keeping the buffer
size and the sscanf format strings in sync.


git-svn-id: svn://10.0.0.236/trunk@126856 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-09 01:41:02 +00:00
seawood%netscape.com
8e768703b6 Remove explicitly linking against -lc on linux as it could break backwards binary compatibility. Linking using gcc/g++ should automatically link against libc.
Thanks to Franz.Sirl-kernel@lauterbach.com for the patch.
Bug #72766 r=wtc,cls


git-svn-id: svn://10.0.0.236/trunk@126659 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 11:34:44 +00:00
wtc%netscape.com
2c04bc3eb8 Bug 136344: added type casts to allow compilation with a C++ compiler.
The patch is contributed by Nick Blievers <nickb@adacel.com.au>.


git-svn-id: svn://10.0.0.236/trunk@126568 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 00:40:44 +00:00
wtc%netscape.com
440721fc59 Bug 149195: added IPv6 support for IRIX. The patch is contributed by
nickb@adacel.com.au (Nick Blievers).


git-svn-id: svn://10.0.0.236/trunk@126561 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 00:16:39 +00:00
wtc%netscape.com
6ec7cdf9ee Bug 158396: fixed an off-by-one error. Replaced -1 by the EOF macro.
git-svn-id: svn://10.0.0.236/trunk@126560 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-07 00:11:38 +00:00
sfraser%netscape.com
473553d46e Fix bug 158927 -- controls not drawing correctly in QuickTime plugin. The problem was that the thread scheduling Timer Task would call WakeUpProcess() every time when we are blocked and not servicing NSPR threads (for example when tracking plugin controls). A side effect of this is to prevent Mac OS X from flushing the window back buffers, hence the drawing issues. Fix is to only call WakeUpProcess() if we've been through the scheduler since the last time. r=sdaglye, wtc. a=asa.
git-svn-id: svn://10.0.0.236/trunk@125921 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-27 01:01:36 +00:00
sfraser%netscape.com
a962c21d41 Fixing the MachO (DARWIN) build, which broke when wtc checked in a patch in bug 153525. r=bryner.
git-svn-id: svn://10.0.0.236/trunk@125673 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-24 04:06:07 +00:00