745 Commits

Author SHA1 Message Date
wtc%netscape.com
009810cff6 Bugzilla bug #17223: added the PR_MSG_PEEK (with same value as MSG_PEEK)
for PR_Recv().  Define _PR_EMULATE_MSG_PEEK on platforms that don't
natively support MSG_PEEK.  Implemented PR_MSG_PEEK for pthreads.
Added the peek.c test case.
Modified files: prio.h, _macos.h, _winnt.h, primpl.h, ptio.c,
pr/tests/Makefile, pr/tests/Makefile.in
Added file: pr/tests/peek.c


git-svn-id: svn://10.0.0.236/trunk@67998 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 01:22:54 +00:00
cls%seawood.org
45512a73c8 Set PR_MD_ASFILES for Linux.
Set default AS to $(CC).


git-svn-id: svn://10.0.0.236/trunk@67887 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 06:53:54 +00:00
wtc%netscape.com
d1df095344 Bugzilla bug #37761: changed open file to correctly handle
PR_TRUNCATE | PR_CREATE_FILE and also fixed _PR_MD_SET_FD_INHERITABLE.
Thanks to Skip Nizinski <snizinsk@us.ibm.com> of IBM Corporation for
the patch.


git-svn-id: svn://10.0.0.236/trunk@67786 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 23:12:01 +00:00
wtc%netscape.com
8edf811bd7 Bugzilla bug #37595: checked in patches for building on BSD/OS 4.1
and 4.2 from Kurt J. Lidl <lidl@pix.net>.


git-svn-id: svn://10.0.0.236/trunk@67776 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 22:38:58 +00:00
wtc%netscape.com
66c442fe8e Bugzilla bug #37240: define DebugBreak() for OS/2 for use by PR_Assert().
Thanks to snizinsk@us.ibm.com of IBM Corporation for contributing the
patch.


git-svn-id: svn://10.0.0.236/trunk@67441 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:01:57 +00:00
wtc%netscape.com
a9cb65d0b6 Bugzilla bug #37272: inet_addr() should return -1 rather than assert on
failure.


git-svn-id: svn://10.0.0.236/trunk@67256 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:10:59 +00:00
wtc%netscape.com
e5b434bb22 Bugzilla bug #36818: fixed bugs in PR_WaitCondVar, PR_NotifyAllCondVar,
and PR_Interrupt.  Thanks to justin morey <justin@68k.org> for the bug
report and the patch.
Modified files: btcvar.c, btthread.c


git-svn-id: svn://10.0.0.236/trunk@67162 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:31:48 +00:00
wtc%netscape.com
d0253ef8e5 Bugzilla bug #30902: added an alternative implementation of PR_AtomicSet
using cmpxchg in the comments.  Made PR_AtomicAdd a little more efficient.


git-svn-id: svn://10.0.0.236/trunk@67130 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 22:33:10 +00:00
wtc%netscape.com
c8d51401c5 In _PR_MD_ATOMIC_ADD, use the edx register instead of the ebx register.
git-svn-id: svn://10.0.0.236/trunk@67128 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 21:48:33 +00:00
wtc%netscape.com
048f25aa33 Bugzilla bug #37146: fixed the output of the test.
git-svn-id: svn://10.0.0.236/trunk@67127 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 21:40:49 +00:00
larryh%netscape.com
a408760231 BugZilla 32048 is realy 35408
git-svn-id: svn://10.0.0.236/trunk@67125 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 21:08:03 +00:00
larryh%netscape.com
05abe12da0 BugZilla: 32048. WinGate bug. Use loopback address in PR_NewTCPSocketPair()
git-svn-id: svn://10.0.0.236/trunk@67121 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 18:54:17 +00:00
wtc%netscape.com
98b0948880 Removed 'nop' instructions that I accidentally added.
git-svn-id: svn://10.0.0.236/trunk@67120 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 18:23:56 +00:00
wtc%netscape.com
50696e13da Bugzilla bug #30902: use true atomic implementation of the NSPR atomic
routines on Linux on Intel x86.
Modified files: _linux.h, pr/src/md/unix/Makefile,
pr/src/md/unix/Makefile.in, pr/src/md/unix/objs.mk
Added file: os_Linux_x86.s


git-svn-id: svn://10.0.0.236/trunk@67018 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:22:14 +00:00
wtc%netscape.com
29e39470f2 Bugzilla bug #36464: OpenBSD shared libraries must be named .so.n.m.
Thanks to greg-mozillabugs@nest.cx for the bug report and the fix.


git-svn-id: svn://10.0.0.236/trunk@66726 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 17:51:36 +00:00
wtc%netscape.com
9b91a671e3 Bugzilla bug #36170: pass the correct OS error code to PR_SetError when
the load library function fails.  Thanks to justin@68k.org for the bug
report and suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@66476 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 23:34:48 +00:00
wtc%netscape.com
8b4c9c2280 Bugzilla bug #35405: use memcmp, as opposed to ==, to compare two structs.
Thanks to Braden N. McDaniel <braden@endoframe.com> for the bug report.


git-svn-id: svn://10.0.0.236/trunk@65584 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 00:39:12 +00:00
wtc%netscape.com
2c58e6354d Bugzilla bug #29427: restore the realclean/clobber_all targets to their
original behavior.
Modified files: Makefile, Makefile.in, config/rules.mk


git-svn-id: svn://10.0.0.236/trunk@65373 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-05 20:18:13 +00:00
wtc%netscape.com
2cf9ce8e79 Bugzilla bug #33740: checked in a patch contributed by Skip Nizinski
<snizinsk@us.ibm.com> to change write() to DosWrite().


git-svn-id: svn://10.0.0.236/trunk@65048 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 20:59:39 +00:00
wtc%netscape.com
47247a6335 Bugzilla bug #33364: checked in a patch contributed by pb@futuretv.com
that allows ARM systems other than v4l and SA110 to be correctly detected.


git-svn-id: svn://10.0.0.236/trunk@65037 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 18:25:35 +00:00
wtc%netscape.com
8acc6a5465 Bugzilla bug #34292: checked in OS/2 patch from Skip Nizinski
<snizinsk@us.ibm.com> to build with the VisualAge C++ compiler
which uses the Optlink calling convention.
Modified files: prtypes.h, OS2.mk, prlog.c


git-svn-id: svn://10.0.0.236/trunk@65035 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 17:51:02 +00:00
wtc%netscape.com
9ca65bd604 Bugzilla bug #34048: set the fragment names of the DLLs. Thanks to
Simon Fraser <sfraser@netscape.com> for the patch.


git-svn-id: svn://10.0.0.236/trunk@64799 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 22:21:07 +00:00
cls%seawood.org
ee80602d45 Updating config.guess & config.sub to latest GNU versions. Bug #22599, r=wtc
git-svn-id: svn://10.0.0.236/trunk@64561 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 02:48:00 +00:00
wtc%netscape.com
dc9b7ae8e6 Bugzilla bug #27175: define the new functions PR_FindFunctionSymbol
and PR_FindFunctionSymbolAndLibrary in terms of the old functions
PR_FindSymbol and PR_FindSymbolAndLibrary, to minimize the risk of
the new code breaking the build.


git-svn-id: svn://10.0.0.236/trunk@64539 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 01:05:01 +00:00
wtc%netscape.com
d217b7e240 Bugzilla bug #27175: Changed the PRFuncPtr type to void (*)(), to be
consistent with the type of the 'fp' field of PRStaticLinkTable.


git-svn-id: svn://10.0.0.236/trunk@64535 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 00:54:33 +00:00
wtc%netscape.com
8bb729bd1c Bugzilla bug #31437: the ERANGE error handling code also needs to be
added to pt_send_cont.


git-svn-id: svn://10.0.0.236/trunk@64504 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 21:57:01 +00:00
wtc%netscape.com
3f0cdbdcbb Bugzilla bug #31437: this goto statement inside the while loop can be
replaced by a continue statement.


git-svn-id: svn://10.0.0.236/trunk@64503 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 21:47:08 +00:00
wtc%netscape.com
85ad9a0cc3 Bugzilla bug #33652: align PRNetAddr on 8-byte boundaries.
Modified files: prsocket.c, ptio.c


git-svn-id: svn://10.0.0.236/trunk@64437 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 02:24:39 +00:00
wtc%netscape.com
09b18f8def Bugsplat bug #67751: Renamed _PR_UnblockWaiters to _PR_UnblockLockWaiter
and changed the return type to void.  Fixed a bug in the code that skips
over a suspended thread.
Modified files: primpl.h, prulock.c, pruthr.c


git-svn-id: svn://10.0.0.236/trunk@64406 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 00:17:59 +00:00
wtc%netscape.com
3bea8a58da Bugzilla bug #32184: added 'const' versions of hash table lookup
functions that don't reorder the hash entries.
Modified files: plhash.h, plhash.c


git-svn-id: svn://10.0.0.236/trunk@64069 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 23:13:45 +00:00
wtc%netscape.com
2032d7ea0e Bugzilla bug #33043: use System V shared memory and semaphores on
Solaris 2.5.1 because the POSIX shared memory and semaphore functions
fail with ENOSYS.


git-svn-id: svn://10.0.0.236/trunk@63868 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 19:05:37 +00:00
wtc%netscape.com
bcba23cde6 Removed obsolete code.
git-svn-id: svn://10.0.0.236/trunk@63818 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 02:52:24 +00:00
wtc%netscape.com
f6b7b3c133 Bugzilla bug #31697: Mac OS X has System V shared memory.
git-svn-id: svn://10.0.0.236/trunk@63814 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 02:23:53 +00:00
wtc%netscape.com
9d75231c68 Bugzilla bug #32779: PR_Interrupt should increment the cv's
pending_notify count before broadcasting on the cv to prevent
the interrupted thread from destroying the cv before
pthread_cond_broadcast returns.


git-svn-id: svn://10.0.0.236/trunk@63751 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 18:47:54 +00:00
wtc%netscape.com
3e5a68ce2e Removed a temporary hack added before the delayed notify fix was checked
in.


git-svn-id: svn://10.0.0.236/trunk@63750 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 18:44:54 +00:00
wtc%netscape.com
91de97c45a Provide a default implementation of interprocess named semaphore
functions (which just fail with PR_NOT_IMPLEMENTED_ERROR) if neither
POSIX nor System V semaphores are supported.  Fixed an error in the
comments.


git-svn-id: svn://10.0.0.236/trunk@63749 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 18:21:12 +00:00
wtc%netscape.com
eed58ed70c Bugzilla bug #5757: added a while loop around the PR_Wait call.
git-svn-id: svn://10.0.0.236/trunk@63685 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-22 02:13:35 +00:00
srinivas%netscape.com
7db04928fa Fixed PR_Poll to call select, instead of poll, on HPUX and OSF1 platforms.
Bug 153459.


git-svn-id: svn://10.0.0.236/trunk@63526 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-21 02:57:55 +00:00
srinivas%netscape.com
1d1743caf8 Implemented a new style stack of IO layers with a fixed, dummy header.
Bug #30914.


git-svn-id: svn://10.0.0.236/trunk@63334 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 23:15:27 +00:00
srinivas%netscape.com
ec49a9e479 For the IO continuation operation, use select(), instead of poll(),
on OSF1. Bug #153459.


git-svn-id: svn://10.0.0.236/trunk@63306 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 20:01:41 +00:00
srinivas%netscape.com
bad8a3ee96 Fixed syntax error.
git-svn-id: svn://10.0.0.236/trunk@63301 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-17 18:24:29 +00:00
wtc%netscape.com
d29cbfd262 Bugzilla bug #29427: implemented the 'distclean' target and made
'realclean' and 'clobber_all' synonymous with 'distclean'.  This
patch is contributed by Chris Seawood <cls@seawood.org>. r=wtc@netscape.com
Modified files: Makefile, Makefile.in, configure, configure.in,
config/Makefile.in, config/config.mk, config/rules.mk


git-svn-id: svn://10.0.0.236/trunk@63171 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 22:46:02 +00:00
wtc%netscape.com
5d0bf8cfad Checked in a patch contributed by Jerry L. Kirk
<Jerry.Kirk@Nexwarecorp.com>.


git-svn-id: svn://10.0.0.236/trunk@63070 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 22:00:37 +00:00
wtc%netscape.com
e907c19e9b Improved comments. Bugzilla bug #30746
git-svn-id: svn://10.0.0.236/trunk@63066 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 20:58:45 +00:00
wtc%netscape.com
3fc793a715 Bugzilla bug #30746: add a PR_SetConcurrency(2) call in NSPR
initialization and have NSPR initialization wait until the timer
manager thread starts to run.
Modified files: prmwait.c, prinit.c


git-svn-id: svn://10.0.0.236/trunk@63063 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 20:00:42 +00:00
wtc%netscape.com
92b30b65a1 Added the generated header file to GARBAGE.
Modified files: lib/ds/Makefile, pr/src/Makefile, pr/src/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@62971 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 01:45:35 +00:00
wtc%netscape.com
f85013994d Moved the definition of GARBAGE to a standard place.
git-svn-id: svn://10.0.0.236/trunk@62969 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 01:43:40 +00:00
wtc%netscape.com
6bbad5d3b9 Bugzilla bug #29908: make sure that md.write.thread or md.read.thread is
nil when we return from SendReceiveStream so that we don't leave a
dangling reference for the OT notifier routine.  This patch is submitted
by Gordon Sheridon <gordon@netscape.com>.  r=wtc@netscape.com
a=jar@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@62950 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-15 00:01:06 +00:00
srinivas%netscape.com
e3d4bda386 When a PRLock is released all the waiters are unblocked, rather than assign
the lock to a waiting thread. Bug #67751.


git-svn-id: svn://10.0.0.236/trunk@62946 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 20:16:39 +00:00
srinivas%netscape.com
f463e58338 Added new functions to look up function symbols in dynamic libraries.
Bugzilla #27175.


git-svn-id: svn://10.0.0.236/trunk@62935 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 14:54:25 +00:00