1011 Commits

Author SHA1 Message Date
wtc%netscape.com
1495fdd9f8 Set NSPR version to 4.3.
git-svn-id: svn://10.0.0.236/trunk@140372 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-27 02:15:33 +00:00
wtc%netscape.com
2edc559488 Bug 196004: support building with gcc on Solaris better, whether gcc uses
the GNU ld or Solaris ld. Do not pass -B/usr/ccs/bin/ to gcc.
Modified files: configure configure.in autoconf.mk.in
        lib/ds/Makefile.in lib/libc/src/Makefile.in pr/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@140069 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 15:36:13 +00:00
wtc%netscape.com
f657253076 Bug 135450: OS/2 only - don't set priority if it is the default.
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
2003-03-22 14:59:55 +00:00
wtc%netscape.com
5ea79c3477 Bug 192797: improved the implementation of PR_Poll for Win32. Increase
FD_SETSIZE from the default 64 to 1024.  Make PR_Poll fail with
PR_INVALID_ARGUMENT_ERROR if we try to add more than FD_SETSIZE fd's to a
fd_set.  Do not pass an empty fd_set to select, and do not call select if
all three fd_sets are empty.


git-svn-id: svn://10.0.0.236/trunk@139803 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 00:10:31 +00:00
wtc%netscape.com
bcadca0b7a Bug 195411: added the LL_MaxUint function and the LL_MAXUINT macro.
Modified Files: prlong.h nspr.def nspr_symvec.opt openvms.c prlong.c


git-svn-id: svn://10.0.0.236/trunk@138832 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 02:14:53 +00:00
wtc%netscape.com
82d7ee91b8 Backed out the previous checkin. I'd like to come up with a better patch
that does not require setting FD_SETSIZE to 1024, which makes each fd_set
a 4 KB objec5.


git-svn-id: svn://10.0.0.236/trunk@138689 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 04:57:50 +00:00
wtc%netscape.com
bd91014273 Bug 192797: improved the implementation of PR_Poll for Win32. Increase
FD_SETSIZE from the default 64 to 1024.  Make PR_Poll fail with
PR_INVALID_ARGUMENT_ERROR if we try to add more than FD_SETSIZE fd's to a
fd_set.  Do not pass an empty fd_set to select, and do not call select if
all three fd_sets are empty.


git-svn-id: svn://10.0.0.236/trunk@138677 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 03:14:09 +00:00
wtc%netscape.com
e05b71615e Bug 164841: use high performance timers (again) on OS/2.
git-svn-id: svn://10.0.0.236/trunk@138676 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 02:46:12 +00:00
wtc%netscape.com
836c0bc65d Added a comment.
git-svn-id: svn://10.0.0.236/trunk@138670 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 02:23:15 +00:00
wtc%netscape.com
d4963d24fe Bug 191948: a better implementation of PR_GetLibraryFilePathname for 32-bit
HP-UX.


git-svn-id: svn://10.0.0.236/trunk@138579 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 01:46:36 +00:00
wtc%netscape.com
412580ef29 Bug 191703: if struct tm has the nonstandard tm_zone and tm_gmtoff fields,
set them to the appropriate values.  Calling mktime is not really correct
(it assumes the local time zone) and does not work on NetBSD.


git-svn-id: svn://10.0.0.236/trunk@138555 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 23:40:57 +00:00
wtc%netscape.com
3b710a04cb Bug 193380: added IPv6 support on HP-UX 11i or later. Cleaned up the
detection of HP-UX B.11.* in configure.in.
Modified Files: configure.in configure _hpux.h


git-svn-id: svn://10.0.0.236/trunk@138506 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 02:00:33 +00:00
wtc%netscape.com
1c758a2922 Bug 191270: passed the XXX_RETURN_ON_ERROR flags to several Mac OS X
linker functions.  Correctly handle the return value of NSUnLinkModule.
Pass NSADDIMAGE_OPTION_WITH_SEARCHING to NSAddImage.
cvs: ----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@138504 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 01:57:16 +00:00
wtc%netscape.com
31d2750532 Bug 192015: implemented the PR_GetLibraryFilePathname function for OpenVMS.
The patch is contributed by Colin Blakes <colin@theblakes.com>.


git-svn-id: svn://10.0.0.236/trunk@138456 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 15:48:58 +00:00
wtc%netscape.com
8bf5c4cafc Bug 191823: implement PR_GetLibraryFilePathname for OS/2. The patch is
contributed by Julien Pierre <jpierre@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@138452 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 15:37:04 +00:00
wtc%netscape.com
12d3fe7269 Bug 193007: export PR_CreateThread and PR_SetError and new NSPR 4.3
symbols.  Added stubs so that PR_CreateThread ended up in its old position.
The patch is contributed by Colin Blakes <colin@theblakes.com>.
Modified Files: nspr_symvec.opt md/unix/openvms.c


git-svn-id: svn://10.0.0.236/trunk@138450 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 15:24:20 +00:00
wtc%netscape.com
6f8afb73ad Bug 186745: use the BSD getifaddrs() function to query the presence of
IPv4 and IPv6 network interfaces on NetBSD.


git-svn-id: svn://10.0.0.236/trunk@138448 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 15:13:22 +00:00
wtc%netscape.com
c1ed49d8a4 Bug 194298: inherit from the shell instead of the parent. The patch is
contributed by Michael Kaply <mkaply@us.ibm.com>.


git-svn-id: svn://10.0.0.236/trunk@138388 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 22:47:16 +00:00
wtc%netscape.com
5d35d944e0 Bug 186745: on FreeBSD, use the getifaddrs function to query the presence
of IPv4 and IPv6 network interfaces.


git-svn-id: svn://10.0.0.236/trunk@138240 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 22:52:03 +00:00
wtc%netscape.com
1a833f934a Bug 192589: keep querying the presence of IPv4 and IPv6 interfaces until at
least one is up. This allows us to detect the local machine going from
offline to online.


git-svn-id: svn://10.0.0.236/trunk@138230 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 20:27:25 +00:00
wtc%netscape.com
e6d72154c0 Bug 193969: implemented atomic routines for Darwin PPC in assembly.
Changed old name "Rhapsody" to new name "Darwin".
Modified files: configure configure.in _darwin.h darwin.c
Added file: os_Darwin_ppc.s


git-svn-id: svn://10.0.0.236/trunk@138187 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:00:13 +00:00
wtc%netscape.com
905a4b6aa2 Bug 192962: include <string.h> for the declaration of memcpy.
Modified files: priometh.c prrng.c


git-svn-id: svn://10.0.0.236/trunk@137722 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-12 19:19:12 +00:00
wtc%netscape.com
ff703600ef Bug 191270: added the ability to load a dynamic shared library (.dylib) on
Mac OS X.


git-svn-id: svn://10.0.0.236/trunk@137350 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-04 02:28:39 +00:00
wtc%netscape.com
b44671fc7c Should pass NSUNLINKMODULE_OPTION_NONE instead of FALSE as the second
argument to NSUnLinkModule.  Both macros have the same value (0), so this
is a cosmetic change.


git-svn-id: svn://10.0.0.236/trunk@136890 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-23 17:07:50 +00:00
wtc%netscape.com
0b8da990ed Bug 90010: added support for Linux for s390 and s390x. The patch is
contributed by Gerhard Tonn <GerhardTonn@swol.de>.
Modified Files: _linux.cfg _linux.h prprf.c


git-svn-id: svn://10.0.0.236/trunk@136889 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-23 17:03:22 +00:00
wtc%netscape.com
783f471234 Bug 188439: fixed a bug in the PR_Poll implementation for
_PR_POLL_WITH_SELECT.  We could still call FD_SET if the osfd was larger
than FD_SETSIZE.  Fixed the bug that _PR_POLL_WITH_SELECT was defined after
the system header files had been included.  Need to define it on the
compile command line.  Define _USE_BIG_FDS on HP-UX.  Because that macro
increases the size of fd_set to about 7500 bytes and PR_Poll allocates 3
fd_sets on the stack, also increased the minimum thread stack size to 128KB
on HP-UX.
Modified Files: configure configure.in _hpux.h _osf1.h ptio.c


git-svn-id: svn://10.0.0.236/trunk@136698 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-20 20:52:48 +00:00
wtc%netscape.com
ce8700c963 Bug 80082: need to install libnspr_flt4.so in dist/bin too, for the Mozilla
client.


git-svn-id: svn://10.0.0.236/trunk@136682 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-20 16:29:42 +00:00
wtc%netscape.com
7d9945c67e Bug 134113: make NSPR build on Win32 using MinGW gcc. The patch is
contributed by Chris Seawood <seawood@cls.org> and Dan Mosedale
<dmose@mozilla.org>. r=wtc.
Modified files: configure configure.in config/Makefile.in autoconf.mk.in
now.c rules.mk lib/ds/Makefile.in lib/libc/src/Makefile.in
lib/msgc/src/Makefile.in prtypes.h _winnt.h pr/src/Makefile.in prmapopt.c
pr/src/md/windows/Makefile.in ntio.c ntmisc.c pr/tests/Makefile.in
runtests.ksh pr/tests/dll/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@136681 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-20 16:26:24 +00:00
wtc%netscape.com
0b0de85fee Bug 185687: added PR_CallOnceWithArg, a version of PR_CallOnce that allows
the callers to pass an argument to the call-once function.
Modified files: prinit.h nspr.def prinit.c


git-svn-id: svn://10.0.0.236/trunk@136571 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-18 02:04:45 +00:00
wtc%netscape.com
a21a8e2df0 Bug 189332: Implemented the new function PR_GetLibraryFilePathname for
AIX, HP-UX, Linux, Mac OS X, OSF1, Solaris, and Windows.  Added the new
error code PR_LIBRARY_NOT_LOADED_ERROR for the error condition that the
library specified by "name" and "addr" is not loaded.  Added a new test,
libfilename.c.  Extended the PR_GetLibraryName function to not prepend any
directory if the first argument "dir" is NULL.  The OSF1 implementation was
contributed by Steve Streeter <Stephen.Streeter@hp.com>.
Modified files: prerr.h prlink.h nspr.def pr/src/linking/Makefile.in
prlink.c compile-et.pl prerr.c prerr.et prerr.properties
pr/tests/Makefile.in runtests.ksh runtests.sh
Added file: pr/tests/libfilename.c


git-svn-id: svn://10.0.0.236/trunk@136465 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-17 01:03:47 +00:00
wtc%netscape.com
2ed5827ecf Bug 168228: added IPv6 support for Darwin (Mac OS X). Added two new
feature macros _PR_HAVE_INET_NTOP and _PR_GHBA_DISALLOW_V4MAPPED to
handle the differences of Darwin's IPv6 sockets implementation and
other platforms' implementations.
Modified files: _aix.h _bsdi.h _darwin.h _freebsd.h _irix.h _linux.h
_netbsd.h _openvms.h _osf1.h _solaris.h prnetdb.c


git-svn-id: svn://10.0.0.236/trunk@136419 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-16 16:16:34 +00:00
wtc%netscape.com
2a3cdb735c Bug 185034: updated the OpenVMS symbol vector tables for NSPR 4.3.
The patch is contributed by Colin Blake <colin@theblakes.com>.
Modified Files: nspr_symvec.opt plds_symvec.opt plc_symvec.opt


git-svn-id: svn://10.0.0.236/trunk@136347 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-15 00:00:14 +00:00
wtc%netscape.com
653f21baea Bug 186599: 1. added support for relative paths to PR_LoadLibrary on
Mac OS X. 2. Reordered the Mac code in pr_LoadLibraryByPathName to try
loading various kinds of shared libraries in the order of most likely
success.  The patch is contributed by Conrad Carlen <ccarlen@netscape.com>.
r=wtc. sr=sfraser.


git-svn-id: svn://10.0.0.236/trunk@136342 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-14 23:38:56 +00:00
wtc%netscape.com
ef80751250 Bug 188396: don't use ftime because its 32-bit timestamp will overflow
around year 2038.  Use GetSystemTimeAsFileTime instead.  The patch is
contributed by timeless@bemail.org.
Modified files: config/now.c _win95.h _winnt.h ntio.c ntmisc.c w95io.c


git-svn-id: svn://10.0.0.236/trunk@136305 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-14 13:22:32 +00:00
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