118 Commits

Author SHA1 Message Date
dmose%mozilla.org
427e742473 updating to license version 1.1 in boilerplate comments
git-svn-id: svn://10.0.0.236/trunk@28534 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 21:40:44 +00:00
wtc%netscape.com
8698beda5f Bugzilla bug #5358: temporary fix for the build problem on Solaris/x86.
We don't have an assembly language implementation of atomic stacks for
Solaris/x86 yet.  Thanks to Justin A. Kolodziej
<4wg7kolodzie@marquette.edu> for reporting the bug.


git-svn-id: svn://10.0.0.236/trunk@28520 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-21 21:02:10 +00:00
wtc%netscape.com
6807332f25 Declare _PR_Unblock_IO_Wait.
git-svn-id: svn://10.0.0.236/trunk@27763 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 00:17:46 +00:00
larryh%netscape.com
8495837305 Fix warning message on _MD_EXIT
git-svn-id: svn://10.0.0.236/trunk@27471 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-14 22:39:33 +00:00
wtc%netscape.com
d3d72487ff Made the i/o continuation thread ignore the events that have
been consumed by prior continuation function calls.
(Bugsplat bug #345296)
Modified files: primpl.h, ptio.c.


git-svn-id: svn://10.0.0.236/trunk@26108 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-02 23:21:08 +00:00
wtc%netscape.com
91c0209e2a Moved SocketPollFD functions from public header(prio.h) to this private header.
git-svn-id: svn://10.0.0.236/trunk@25818 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 05:11:27 +00:00
wtc%netscape.com
63f7ed24da Moved SocketPollFD functions from public header(prio.h) to the private
header pprio.h.


git-svn-id: svn://10.0.0.236/trunk@25817 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 05:10:59 +00:00
wtc%netscape.com
f55ee2aa0c Name the third argument for PR_Writev 'iov_size', as opposed
to 'size'.


git-svn-id: svn://10.0.0.236/trunk@25808 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 04:57:35 +00:00
wtc%netscape.com
ca94a9c903 Bugzilla bug #4297: the use of 'stack' as function arguments conflicts
with the class name 'stack' in STL, so renamed it to 'fd_stack'.
Thanks to joseph.gregorio@mts.com for reporting the problem and
suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@25807 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 04:30:37 +00:00
wtc%netscape.com
a0efa9ea24 Two new functions defined to enable polling native and NSPR FDs simultaneously.
git-svn-id: svn://10.0.0.236/trunk@25551 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-30 01:36:34 +00:00
wtc%netscape.com
5f470d2244 Define HAVE_LONG_LONG for NetBSD on alpha, powerpc, and m68k.
git-svn-id: svn://10.0.0.236/trunk@24928 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-24 00:22:09 +00:00
wtc%netscape.com
032604a8a8 FreeBSD/Alpha port, contributed by Brian Ostrom <briano@netscape.com>.
Modified files: FreeBSD.mk, gencfg.c, _freebsd.cfg, _freebsd.h,
pr/tests/Makefile.


git-svn-id: svn://10.0.0.236/trunk@24785 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 04:09:23 +00:00
wtc%netscape.com
a7b84ef29a Merged NSPR patches for BSD/OS 4.0.1 + sparc, contributed by
Kurt J. Lidl <lidl@eng.us.uu.net>.
Modified files: BSD_OS.mk, _bsdi.cfg, _bsdi.h.


git-svn-id: svn://10.0.0.236/trunk@24718 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-22 23:04:13 +00:00
wtc%netscape.com
a8b6b4e24a Update from the internal CVS repository /m/src. Includes: first
cut at 64-bit AIX port.


git-svn-id: svn://10.0.0.236/trunk@24482 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 22:47:21 +00:00
gordon%netscape.com
36fad31c19 Fix for Mac OT bugs #2133, #2405, #2451, #2623, #3580 among others. Steve Dagley served as buddy for my changes. This is basically the first half of the redesign for Mac NSPR Sockets. Blocking mode or Server sockets remain to be implemented.
git-svn-id: svn://10.0.0.236/trunk@24086 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-14 00:15:39 +00:00
wtc%netscape.com
35f5c7deeb Another update from the internal CVS repository /m/src.
git-svn-id: svn://10.0.0.236/trunk@23284 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-09 05:12:06 +00:00
wtc%netscape.com
cda9f78e88 Another update of the latest stuff from the internal CVS repository /m/src.
git-svn-id: svn://10.0.0.236/trunk@22608 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 22:23:14 +00:00
wtc%netscape.com
48cd560372 Another update from the internal CVS repository /m/src to mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@22482 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-02 00:58:34 +00:00
wtc%netscape.com
1091f97f61 Landing of miscellaneous changes, including the new error code to
string function contributed by John Myers <jgmyers@netscape.com>.


git-svn-id: svn://10.0.0.236/trunk@22218 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-26 20:41:06 +00:00
wtc%netscape.com
69eda9d37b Changed NSPR ==> NSPS.
git-svn-id: svn://10.0.0.236/trunk@21973 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 19:58:12 +00:00
wtc%netscape.com
b97395c726 Bugsplat bug #343158: corrected a typo in the comment. Thanks to
John Bandhauer <jband@netscape.com> for the bug report and fix.


git-svn-id: svn://10.0.0.236/trunk@21243 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-19 00:45:35 +00:00
wtc%netscape.com
fcb29be1ad On BSDI, zero a pthread_mutex_t or pthread_cond_t before initializing
it.  This patch is contributed by Bert Driehuis
<bert_driehuis@nl.compuware.com>.


git-svn-id: svn://10.0.0.236/trunk@21233 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-18 23:20:11 +00:00
larryh%netscape.com
e63575051f Set version
git-svn-id: svn://10.0.0.236/trunk@20583 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 18:39:17 +00:00
larryh%netscape.com
34ccb6c231 add reader-writer locks
git-svn-id: svn://10.0.0.236/trunk@20561 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 17:18:46 +00:00
wtc%netscape.com
decc73730c Added struct declarations to eliminate compiler warnings from
<arpa/inet.h> on AIX 4.3.  Thanks to Waqar Malik <waqar@netscpe.com>
for the bug report.


git-svn-id: svn://10.0.0.236/trunk@19925 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-06 17:25:17 +00:00
wtc%netscape.com
eb5213b27e Implemented file descriptor inheritance for NT.
Modified files: _winnt.h, prfile.c, prio.c, prsocket.c, ntio.c,
w32poll.c, and prinit.c.


git-svn-id: svn://10.0.0.236/trunk@19827 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-05 06:45:06 +00:00
wtc%netscape.com
ee128013bb In primpl.h, moved the definitions of macros _PR_MD_INIT_LOCKS and
_PR_MD_START_INTERRUPTS from the common section to the classic nspr
section.  These macros are not used in the pthreads version.
Modified files: primpl.h, _pth.h, and ptsynch.c.


git-svn-id: svn://10.0.0.236/trunk@19187 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 19:20:05 +00:00
srinivas%netscape.com
04c3551b99 Add support for creating bound threads. Bug 338607.
git-svn-id: svn://10.0.0.236/trunk@19131 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-01 00:41:51 +00:00
wtc%netscape.com
f2c3098f2c Dealt with the definitions of the obsolete integer types that
conflict with the typedefs in BeOS's <support/SupportDefs.h>.
(Acknowledgment: Matthew Zahorik <maz@albany.net>)


git-svn-id: svn://10.0.0.236/trunk@18585 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 05:23:03 +00:00
wtc%netscape.com
7761ce2d75 Merged first batch of BeOS port patches contributed by
Matthew Zahorik <maz@albany.net>.


git-svn-id: svn://10.0.0.236/trunk@18564 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 01:56:55 +00:00
wtc%netscape.com
18ddca2674 Added new BeOS files contributed by Matthew Zahorik <maz@albany.net>.
git-svn-id: svn://10.0.0.236/trunk@18529 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-25 23:41:16 +00:00
wtc%netscape.com
661e55b97f Merged the pthreads patches for BSD/OS 4.0 contributed by
Bert Driehuis <bert_driehuis@nl.compuware.com>.
Modified files: BSD_OS.mk, _pth.h, bsdi.c, ptio.c, and pr/tests/Makefile.


git-svn-id: svn://10.0.0.236/trunk@18037 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-19 23:38:54 +00:00
wtc%netscape.com
1ea155fbbe Removed the #ifndef NO_NSPR_10_SUPPORT around the _PR_MD_GET_SP
macro definition.  This macro is used internally by NSPR20.


git-svn-id: svn://10.0.0.236/trunk@16529 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 18:56:01 +00:00
wtc%netscape.com
1476b01c77 Include protypes.h only if NO_NSPR_10_SUPPORT is not defined.
Also, always define the data types PRWord and PRUword but
warn people not to use these two undocumented types in new code.


git-svn-id: svn://10.0.0.236/trunk@16498 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-16 05:46:32 +00:00
wtc%netscape.com
3cff93e11d Made the second argument for PR_Writev a const pointer
(const PRIOVec *iov).
Modified files: prio.h, _unixos.h, primpl.h, rcfileio.cpp, rcfileio.h,
rcio.h, rcnetio.cpp, rcnetio.h, priometh.c, prlayer.c, prsocket.c,
macsockotpt.c, os2sock.c, solaris.c, unix.c, ntio.c, w16sock.c,
w95sock.c, ptio.c.


git-svn-id: svn://10.0.0.236/trunk@16151 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-10 17:09:48 +00:00
wtc%netscape.com
4c71f93c90 This checkin consists on three things:
1. File descriptor inheritance
2. Set thread->md.handle on Win32 for attached native threads.
3. Miscellaneous code cleanup.


git-svn-id: svn://10.0.0.236/trunk@16057 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-09 16:37:26 +00:00
wtc%netscape.com
dc6fc49a76 In the struct-emulated version of LL_I2L, added a PRInt32 cast
to make sure we are right shifting a signed integer (in case
someone passes in an unsigned).


git-svn-id: svn://10.0.0.236/trunk@15596 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-02 01:37:59 +00:00
wtc%netscape.com
e2b7d6fd95 Undefine _PR_HAVE_SOCKADDR_LEN because struct sockaddr doesn't have
the sa_len field on NEXTSTEP/OPENSTEP.  Thanks to Balazs Pataki for
<pataki@ovid.aszi.sztaki.hu> for confirming this.


git-svn-id: svn://10.0.0.236/trunk@15554 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 21:53:37 +00:00
wtc%netscape.com
2c43676866 Undefine _PR_POLL_AVAILABLE for pthreads. libc_r doesn't have
poll().  The poll() in libc is not thread-safe, so we can't use
it with pthreads.  This patch is contributed by Jeremy Lea
<reg@shale.csir.co.za>.


git-svn-id: svn://10.0.0.236/trunk@15511 18797224-902f-48f8-a5cc-f745e15eee43
1998-12-01 07:25:28 +00:00
wtc%netscape.com
577817af39 Removed -D_PR_NEED_FAKE_POLL from FreeBSD.mk and NEXTSTEP.mk. This
macro is defined internally.
In _freebsd.h, include poll.h if poll is available.
Thanks to Jeremy Lea <reg@shale.csir.co.za> for suggesting the patches.


git-svn-id: svn://10.0.0.236/trunk@15319 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-25 21:01:14 +00:00
wtc%netscape.com
f9841381ad Fixed a bug in Mac's PR_IntervalNow() and PR_TicksPerSecond(). A
tick is one millisecond on the Mac.
Files changed: _macos.h, mactime.c.
Also removed a temporary comment-out in prinrval.c.


git-svn-id: svn://10.0.0.236/trunk@15214 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-24 01:31:07 +00:00
wtc%netscape.com
e9708a17e4 A jumbo checkin, consisting of:
1. Ports to older revisions of some Unix variants, e.g., BSD/OS 1.1,
   OSF1 V2.0, etc., contributed by Brian Ostrom <briano@netscape.com>.
2. QNX port, also contributed by Brian Ostrom.
3. New macro USE_MACH_DYLD to represent the dynamic library loading
   API of NEXTSTEP and Rhapsody.
4. On platforms whose socket address has the sa_len field, make a
   copy of the PRNetAddr argument for PR_Bind, PR_Connect, and PR_SendTo
   and set its sa_len before passing it to the system calls.  This
   fix is suggested by Bert Driehuis <driehuis@playbeing.org>.
5. Removed the unused field _lockf64 of struct _MD_IOVector.  Not
   every Unix platform has lockf, and the POSIX file locking API
   uses fcntl.


git-svn-id: svn://10.0.0.236/trunk@15158 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-23 06:33:00 +00:00
srinivas%netscape.com
c02c8d8708 Enable OS/2 builds with IBM's compiler (Visualage) and gcc port of OS/2 (emx).
Checkin for Eric Olson <Eric.Olson@Sympatico.CA> and Henry <sobotka@axess.com>.


git-svn-id: svn://10.0.0.236/trunk@14963 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-19 22:20:31 +00:00
wtc%netscape.com
d3ec260e4d NEXT port. Contributed by Balazs Pataki (balazs.pataki@sztaki.hu).
git-svn-id: svn://10.0.0.236/trunk@14911 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 23:53:21 +00:00
srinivas%netscape.com
3274bf855b Implement poll for those platforms that don't support the system call.
git-svn-id: svn://10.0.0.236/trunk@14902 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:56:06 +00:00
srinivas%netscape.com
6e404c3359 Enable ELF builds and use of poll system call for FreeBSD 3.0.0-RELEASE;
checkin for Jeremy Lea <reg@shale.csir.co.za>.


git-svn-id: svn://10.0.0.236/trunk@14901 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-18 22:54:11 +00:00
wtc%netscape.com
28d4ab0218 Added Alec Flett's comments on the version of glibc2/sparc whose
setjmp/longjmp works.


git-svn-id: svn://10.0.0.236/trunk@14764 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-16 23:39:10 +00:00
wtc%netscape.com
b813447f3a Merged the NetBSD patch contributed by Frank van der Linden
(frank@wins.uva.nl).
ftp://ftp.netbsd.org/pub/NetBSD/misc/fvdl/mozilla/diff-19981008.001


git-svn-id: svn://10.0.0.236/trunk@14566 18797224-902f-48f8-a5cc-f745e15eee43
1998-11-13 02:12:38 +00:00
wtc%netscape.com
1cf2eda599 Linux/m68k porting change (define _MD_SP_TYPE), contributed by
Jes Sorensen <Jes.Sorensen@cern.ch>.


git-svn-id: svn://10.0.0.236/trunk@13669 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-29 21:04:47 +00:00
wtc%netscape.com
90fdb6e3db Ports to many Unix variants. Added the OMIT_LIB_BUILD_TIME workaround
for platforms that don't have 'long long'.  In pr/src/Makefile and
lib/libc/src/Makefile, use single quotes so that we can avoid
using backslashes in double quotes (that doesn't work under
MKS shell).


git-svn-id: svn://10.0.0.236/trunk@12330 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-08 21:31:09 +00:00