1234 Commits

Author SHA1 Message Date
wtchang%redhat.com
790bfcd5a7 Bugzilla bug 34843: moved PR_StringToNetAddr and PR_NetAddrToString to the
end of the file. They will be enhanced to use getaddrinfo and getnameinfo,
so they need to be after the definitions of GETADDRINFO and FREEADDRINFO.


git-svn-id: svn://10.0.0.236/trunk@208380 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-25 01:21:29 +00:00
mkaply%us.ibm.com
650e1e9fb8 #346376
r=wtc, sr=mkaply
Patch from Peter Weilbacher - OS/2 - Don't use PRTYC_IDLETIME class for thread priorities


git-svn-id: svn://10.0.0.236/trunk@206488 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-03 16:01:49 +00:00
wtchang%redhat.com
c7f85e3b7e Bugzilla Bug 326168: Windows NT 3.51 doesn't support CP_UTF8 either, so
having Unicode support doesn't imply having CP_UTF8 support. The patch is
contributed by neil@parkwaycc.co.uk <neil@httl.net>. r=wtc.


git-svn-id: svn://10.0.0.236/trunk@201860 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 00:56:43 +00:00
wtchang%redhat.com
4e83e0e699 Bugzilla Bug 340956: when emulating PR_APPEND, we should use PR_Seek64
instead of PR_Seek, otherwise it won't work on large files.  The patch is
contributed by Nils Maier <MaierMan@web.de> and Masatoshi Kimura (:emk)
<VYV03354@nifty.ne.jp>. r=wtc.  Thanks to Nils Maier for tracking down the
bug.


git-svn-id: svn://10.0.0.236/trunk@199665 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-11 02:52:29 +00:00
wtchang%redhat.com
e2d947dcfb Test PR_GetMemMapAlignment.
git-svn-id: svn://10.0.0.236/trunk@198823 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-01 21:05:32 +00:00
wtchang%redhat.com
372a6826be Bugzilla Bug 326168: fixed an allocation size bug. The patch is
contributed by neil@parkwaycc.co.uk. r=wtc.


git-svn-id: svn://10.0.0.236/trunk@194193 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-12 00:33:06 +00:00
wtchang%redhat.com
dc3874c6d2 Bugzilla bug 247896 and bug 331216: fixed the bug that 'end' was moved one
character too far when parsing the minutes, and simplified the code.
r=timeless,darin.


git-svn-id: svn://10.0.0.236/trunk@194160 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 18:57:07 +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
90616470c0 Bugzilla Bug 330364: fixed a NULL pointer dereference in
PR_LoadStaticLibrary by moving the PR_LOG statement to the same location
as in pr_LoadLibraryByPathname. The bug was discovered by Coverity's tool.
r=Kenneth Herron,Gavin Sharp.


git-svn-id: svn://10.0.0.236/trunk@192286 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-13 21:54:58 +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
a97d7518ed Bugzilla Bug 261649: BeOS has the getprotobyxxx_r functions, but they
aren't glibc's 5-argument version.


git-svn-id: svn://10.0.0.236/trunk@191350 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-28 00:03:51 +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
c6a39f9266 Bugzilla Bug 327448: added the function pointers back because we will
need them when we emulate the MSLU W functions.  Map
ERROR_CALL_NOT_IMPLEMENTED to PR_NOT_IMPLEMENTED_ERROR.  The patch is
contributed by Masatoshi Kimura (emk) <VYV03354@nifty.ne.jp>. r=wtc,jshin.
Modified Files: w95io.c win32_errors.c


git-svn-id: svn://10.0.0.236/trunk@190608 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-20 22:05:54 +00:00
wtchang%redhat.com
8fd71929dc Bugzilla Bug 111428: more file pathname internationalization bug fixes.
The patch is contributed by Masayuki Nakano <masayuki@d-toybox.com> and
Jungshik Shin <jshin1987@gmail.com>. r=wtc,darin
 Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH


git-svn-id: svn://10.0.0.236/trunk@190414 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-17 23:16:24 +00:00
wtchang%redhat.com
4b4be82ee3 Bugzilla Bug 327448: it's not necessary to do dynamic lookup of the W
functions because they are also defined (as stubs) on Windows 9x.  The
patch is contributed by Masatoshi Kimura (emk) <VYV03354@nifty.ne.jp>.
r=wtc.


git-svn-id: svn://10.0.0.236/trunk@190302 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-16 21:34:46 +00:00
wtchang%redhat.com
a3f0969f95 Bugzilla Bug 124695: the implementation of _PR_MD_GET_INTERVAL for MinGW
was wrong.  Thanks to Stefan Sitter <ssitter@googlemail.com> for reporting
the bug and verifying the fix.


git-svn-id: svn://10.0.0.236/trunk@189895 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-13 23:16:53 +00:00
wtchang%redhat.com
6f63aa3533 Bugzilla Bug 307527: implement NSPR interval timer with timeGetTime instead
of QueryPerformanceCounter or GetTickCount. r=darin,bienvenu.
Modified files: pr/src/Makefile.in ntinrval.c


git-svn-id: svn://10.0.0.236/trunk@189276 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:46:18 +00:00
wtchang%redhat.com
525fd16ed4 Bugzilla bug 326110: use PR_IMPLEMENT with two exported functions.
Modified files: prfile.c ptio.c


git-svn-id: svn://10.0.0.236/trunk@189272 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-07 01:21:00 +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
0bb4d81100 Bugzilla Bug 322422: fixed a negative integer division truncation direction
error, which resulted in a negative PRTime with fractional seconds being
converted to PRExplodedTime off by one second.  Thanks to Aleksey Sanin
<aleksey@aleksey.com> for reporting and investigating the bug and reviewing
the patch. r=aleskey.


git-svn-id: svn://10.0.0.236/trunk@187210 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-09 22:48:25 +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
57473c77df Bugzilla Bug 322287: the "lock" prefix is not required for the x86 "xchg"
instruction.  r=mark.mentovai.
Modified files: os2emx.s os2vacpp.asm os_Linux_x86.s os_Linux_x86_64.s
                os_SunOS_x86.s os_SunOS_x86_64.s ntmisc.c


git-svn-id: svn://10.0.0.236/trunk@187170 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-09 17:43:53 +00:00
wtchang%redhat.com
6d4cd5c830 Bugzilla Bugs 261649 and 321579: fixed BeOS build error caused by previous
checkin.  BeOS uses glibc but not the dlxxx functions declared in dlfcn.h.


git-svn-id: svn://10.0.0.236/trunk@187114 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-07 01:03:12 +00:00
wtchang%redhat.com
96c0b254cf Bugzilla bug 322427: do not compile NSPR with -ansi and with _POSIX_SOURCE,
_BSD_SOURCE, _SVID_SOURCE, _LARGEFILE64_SOURCE, and _XOPEN_SOURCE defined.
Instead, just define _GNU_SOURCE.  r=kengert.
Modified files: configure configure.in pr/src/linking/Makefile.in
                pr/src/pthreads/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@187112 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-07 00:51:39 +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
a226796866 Bugzilla bug 195219: put the stops (double semicolons) that delimit
instruction groups on the same lines as the last instructions in the
groups.  This is the style used in Intel documentation.
Modified files: os_HPUX_ia64.s os_Linux_ia64.s


git-svn-id: svn://10.0.0.236/trunk@185093 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-21 22:49:19 +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
c9c9b369e9 Bugzilla Bug 164070: fixed the bug that PR_ImplodeTime and PR_NormalizeTime
only worked with years 1901-2099.  The patch is contributed by Shanmu
<shanmus@gmail.com>. r=wtc.


git-svn-id: svn://10.0.0.236/trunk@184608 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-14 23:03:21 +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
f1b33b3619 Bugzilla Bug 302212: allow Mac OS X x86 builds to target SDKs. The patch
was contributed by Mark Mentovai <mark@moxienet.com>.  r=wtc,joshmoz.
Modified Files:
        configure configure.in config/autoconf.mk.in
        pr/src/linking/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@184275 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-07 22:51:44 +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
wtchang%redhat.com
8082a3d914 Bugzilla Bug 314070: do not use CFM on Mac OS X x86. The patch is
contributed by Mark Mentovai <mark@moxienet.com>. r=wtc,joshmoz


git-svn-id: svn://10.0.0.236/trunk@184268 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-07 22:04:52 +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
9b0fd1a6df Bugzilla Bug 312100: fixed an uninitialized variable bug.
git-svn-id: svn://10.0.0.236/trunk@182015 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-11 21:48:09 +00:00
darin%meer.net
f8fe652a2a fixes bug 308587 "PR_GetPhysicalMemorySize returns garbage on systems with more than 2GB RAM" r=wtc
git-svn-id: svn://10.0.0.236/trunk@180456 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-17 01:45:22 +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
wtchang%redhat.com
2f8deabb49 Bugzilla Bug 303345: added comments for obsolete XP_MAC only enum constants
and union members. r=joshmoz,sfraser.


git-svn-id: svn://10.0.0.236/trunk@177682 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-13 00:20:49 +00:00