Commit Graph

153 Commits

Author SHA1 Message Date
wtc%netscape.com
0c9675a0c6 Bugzilla bug #17728: pt_writev_cont, pt_write_cont, pt_send_cont, and
pt_sendto_cont need to deal with the possibility of a zero-length buffer.
r=srinivas@netscape.com.  Added a test zerolen.c for this bug.
Modified files: ptio.c, pr/tests/Makefile, pr/tests/Makefile.in,
pr/tests/runtests.ksh.
Added file: pr/tests/zerolen.c
1999-11-17 01:59:23 +00:00
srinivas%netscape.com
96ba9c8ba0 Added a new test case for PR_SendFile. Bugzilla #17486. 1999-11-12 13:40:17 +00:00
larryh%netscape.com
30c4fb7805 BugZilla 17558. Add PR_Open() PR_EXCL flag 1999-11-01 22:59:27 +00:00
wtc%netscape.com
d62cb68cf5 Need to set the reuseaddr socket option before PR_Bind, now that
PR_Bind no longer sets that option automatically (see Bugzilla #17184).
1999-10-29 01:41:34 +00:00
srinivas%netscape.com
923e93d99e Add PR_Block/Unblock_Interrupt functions. Bugzilla 17055 1999-10-28 02:48:01 +00:00
wtc%netscape.com
3c5064327b Bugzilla bug #17184: PR_Bind should not set the SO_REUSEADDR socket
option.  The HAVE_SOCKET_REUSEADDR macro is now obsolete.  Tests
that depended on the old PR_Bind behavior needs to call PR_SetSocketOption
before PR_Bind.
Modified files: _beos.h, _os2.h, _unixos.h, _win16.h, _win95.h, _winnt.h,
prsocket.c, ptio.c, accept.c, acceptread.c, sel_spd.c, servr_kk.c,
servr_ku.c, servr_uk.c, and servr_uu.c.
1999-10-26 01:58:10 +00:00
srinivas%netscape.com
6bd71d2ece Fixed typo in debug statement. 1999-10-22 20:59:34 +00:00
wtc%netscape.com
886045c92a Bugsplat bug #366840: PR_StringToNetAddr needs to set the address family
field of the PRNetAddr structure. Added a new test str2addr.c for this
bug. r=larryh@netscape.com
Modified files: prnetdb.c, pr/tests/runtests.ksh, pr/tests/Makefile,
    pr/tests/Makefile.in
Added file: pr/tests/str2addr.c
1999-10-20 23:07:38 +00:00
larryh%netscape.com
8e27542a54 BugSplat 367096 1999-10-20 00:12:37 +00:00
larryh%netscape.com
d18119c2c7 BugSplat 367096 1999-10-20 00:07:01 +00:00
cls%seawood.org
bb9d2ebe79 Syncing Makefile.ins with srinivas' previous checkin.
r=shaver
1999-10-19 05:30:36 +00:00
srinivas%netscape.com
57e7bdef64 Update with post-3.5 fixes on the tip 1999-10-19 00:40:39 +00:00
srinivas%netscape.com
46739047de Initial version 1999-10-18 23:46:10 +00:00
cls%seawood.org
c3ac045cd4 Bug 11893. r=shaver
Sync the autoconf Makefile.ins.
1999-10-17 15:12:41 +00:00
srinivas%netscape.com
bc24d35ef7 Add autoconf for NSPR. Check in for cls@seawood.org. Buzill 11893 1999-10-14 15:09:11 +00:00
larryh%netscape.com
76ed113c5c NSPR 3.5 landing 1999-10-13 18:32:42 +00:00
srinivas%netscape.com
58f510bc61 Backed out previous checkin. 1999-10-06 19:33:52 +00:00
srinivas%netscape.com
71d16537a7 Fixed bug in previous checkin - initialize variables before use. 1999-10-06 19:07:19 +00:00
srinivas%netscape.com
ebb8b5579a Add the SO_BROADCAST option. Bug #365862. 1999-10-06 18:31:22 +00:00
srinivas%netscape.com
dbba9534ed Enable specification of extra linker options and libraries from command line. 1999-07-31 17:19:19 +00:00
srinivas%netscape.com
37c359d4bb NSPR no longer defines symbols with the PTHREAD prefix. Bugzilla #9907. 1999-07-15 13:06:28 +00:00
wtc%netscape.com
8551056933 Checked in BeOS changes contributed by Duncan Wilcox (duncan@be.com).
Modified files: plevent.c, prstreams/Makefile, prlink.c, bfile.c,
testfile.c, tmocon.c.
1999-06-26 01:07:12 +00:00
wtc%netscape.com
cfeaff9c0a Declared 'loops' signed so that it can be compared with 0
safely.  Other cleanups.  Thanks to Philip Pokorny
<ppokorny@mindspring.com> for the patch.
1999-06-25 22:50:37 +00:00
wtc%netscape.com
bb9a3e68fb Bugzilla bug #4842: do not export private NSPR headers (private/pprmwait.h,
private/primpl.h, and md/*.h) to mozilla/dist.  NSPR files will get
these headers from the source tree, via -I$(MOD_DEPTH)/pr/include and
-I$(MOD_DEPTH)/pr/include/private.  Non-NSPR files must not include
these private NSPR headers and should get the exported NSPR headers
from mozilla/dist/<platform.OBJ>/include.
1999-06-03 22:35:44 +00:00
srinivas%netscape.com
11155af018 OpenVMS port; checkin for "Colin R. Blake" <colin@theblakes.com>. 1999-05-19 00:53:52 +00:00
wtc%netscape.com
0249f5cda7 Create 10 server threads by default. 1999-05-04 22:06:00 +00:00
wtc%netscape.com
b3fc357c4b Added curly braces around nested if's to achieve the if-else association
suggested by the identation.  Thanks to Dorin-Ioan Marinca <dim@csti.fr>
for reporting the problem and Bert Driehuis
<bert_driehuis@nl.compuware.com> for suggesting the fix.
1999-05-04 21:53:10 +00:00
wtc%netscape.com
23b930ace9 Added new tests bigfile2.c and bigfile3.c that reproduce Bugzilla
bug #5451.
1999-04-24 00:32:25 +00:00
dmose%mozilla.org
40c9c56b74 updating to license version 1.1 in boilerplate comments 1999-04-21 21:40:44 +00:00
wtc%netscape.com
c204c15dd1 Bugsplat bug #345296: added a test program that have multiple
threads accepting on the same listening socket.
1999-04-15 01:11:31 +00:00
wtc%netscape.com
b70f2dcb90 Bugzilla bug #2802: prepend current directory to $(DIST)/lib only
if $(DIST) is a relative pathname.  Thanks to trini@kernel.crashing.org
for reporting this bug.
1999-04-14 01:00:11 +00:00
larryh%netscape.com
bad65ac63f add coverage for functions that should be called by this test case 1999-04-13 22:58:40 +00:00
larryh%netscape.com
9d60d64427 Fix thread-type rotation for Win95 1999-04-09 16:38:11 +00:00
wtc%netscape.com
97235cae95 The file type PR_DESC_SOCKET_POLL is not defined by NSPR. 1999-04-05 23:24:11 +00:00
wtc%netscape.com
dc1a1f6e96 On Solaris, the prpoll test needs to link with -lsocket because
it calls BSD socket functions.  Moved the rule for the attach
test to be together with other tests that need to link with -lpthread.
1999-04-05 23:23:05 +00:00
wtc%netscape.com
f54e374982 Added test cases for the new NSPR functions, PR_CreateSocketPollFd and
PR_DestroySocketPollFd.
1999-03-30 01:38:27 +00:00
wtc%netscape.com
a9ee1f14fe Don't need to link with -lc_r explicitly on FreeBSD. The -pthread
flag takes care of that.
1999-03-23 05:46:07 +00:00
wtc%netscape.com
08520a5974 FreeBSD/Alpha port, contributed by Brian Ostrom <briano@netscape.com>.
Modified files: FreeBSD.mk, gencfg.c, _freebsd.cfg, _freebsd.h,
pr/tests/Makefile.
1999-03-23 04:09:23 +00:00
wtc%netscape.com
c7e15201d8 Update from the internal CVS repository /m/src. Includes: first
cut at 64-bit AIX port.
1999-03-19 22:47:21 +00:00
wtc%netscape.com
1f1b4b0aaa NSPR library name change (libnspr21 ==> libnspr3) and
plevent.c.
1999-03-17 21:25:08 +00:00
wtc%netscape.com
a48a204528 Another update from the internal CVS repository /m/src. 1999-03-09 05:12:06 +00:00
wtc%netscape.com
cf64106572 Another update from the internal CVS repository /m/src. 1999-03-05 22:32:56 +00:00
wtc%netscape.com
8b2132aba2 Another update of the latest stuff from the internal CVS repository /m/src. 1999-03-02 22:23:14 +00:00
wtc%netscape.com
a8f60387ec Another update from the internal CVS repository /m/src to mozilla.org. 1999-03-02 00:58:34 +00:00
wtc%netscape.com
64c672ac1b New test file vercheck.c. 1999-03-01 00:23:34 +00:00
wtc%netscape.com
cf5a813894 Landing of miscellaneous changes, including the new error code to
string function contributed by John Myers <jgmyers@netscape.com>.
1999-02-26 20:41:06 +00:00
wtc%netscape.com
cbd5277f58 New test file acceptread.c. 1999-02-26 20:38:30 +00:00
wtc%netscape.com
7396376f72 print thread scope. 1999-02-26 18:34:31 +00:00
wtc%netscape.com
47519d7115 print elapsed and expected times. 1999-02-26 18:33:19 +00:00
wtc%netscape.com
bb2c94f0d6 Test list for nspr. 1999-02-19 00:14:41 +00:00
wtc%netscape.com
c65fb8643f Minor improvements. 1999-02-12 18:41:52 +00:00
wtc%netscape.com
7850111cb9 Completely rewrote the test. 1999-02-12 18:41:36 +00:00
larryh%netscape.com
1441f309b6 make reader-writer locks 1999-02-12 18:40:42 +00:00
larryh%netscape.com
51f4225370 add reader-writer locks 1999-02-12 17:18:46 +00:00
wtc%netscape.com
51a6664e64 Added the sockping and sockpong tests. 1999-02-11 00:44:06 +00:00
wtc%netscape.com
25d331a11f Declare Test_Result as returning void. Changed AF_INET and INADDR_XXX
to PR_AF_INET and PR_INADDR_XXX.
1999-02-11 00:43:30 +00:00
wtc%netscape.com
4697338176 Changed AF_INET and INADDR_XXX to PR_AF_INET and PR_INADDR_XXX. 1999-02-11 00:39:16 +00:00
wtc%netscape.com
3472340f17 Added the pipeping, pipepong, and pipeself tests. 1999-02-10 19:46:39 +00:00
srinivas%netscape.com
d681340296 Display nspr version info. by default. 1999-02-09 03:34:09 +00:00
srinivas%netscape.com
a7122489b6 Code cleanup. 1999-02-09 03:30:29 +00:00
srinivas%netscape.com
0bbafa3b0b Reduce default thread count. 1999-02-09 03:29:40 +00:00
srinivas%netscape.com
de02f9dcf7 Reduce default values of counters. 1999-02-08 20:28:30 +00:00
srinivas%netscape.com
fcbfdb00c1 Code cleanup. 1999-02-08 20:27:02 +00:00
srinivas%netscape.com
81bb6e69b1 Build additional tests 1999-02-08 20:25:05 +00:00
wtc%netscape.com
cb5076cfe2 Added a missing PR_htons call. Thanks to Bert Driehuis
<bert_driehuis@nl.compuware.com> for the bug report and fix.
1999-02-01 19:56:49 +00:00
wtc%netscape.com
1ae6b19ea0 Changed /usr/tmp/ to /tmp/. BSD/OS does not have /usr/tmp/.
Thanks to Bert Driehuis <bert_driehuis@nl.compuware.com> for the fix.
1999-02-01 19:55:48 +00:00
wtc%netscape.com
ddd2fef156 Run the default test program 'cvar -c 2000" if no command-line
arguments are given.
1999-02-01 19:26:56 +00:00
wtc%netscape.com
afc8914ff1 Minor editing. 1999-01-28 00:27:20 +00:00
wtc%netscape.com
dd866e1ff1 changed value of TOO_LONG to 5000 1999-01-28 00:26:30 +00:00
wtc%netscape.com
8c49ef052c Checked in second batch of BeOS port patches contributed by
Matthew Zahorik <maz@albany.net>.
1999-01-28 00:19:40 +00:00
wtc%netscape.com
a4bbcb925f Backed out the previous revision, which was checked in when the tree
is closed.
1999-01-27 22:39:53 +00:00
wtc%netscape.com
e240c72bd5 changed value of TOO_LONG to 5000 1999-01-27 22:36:24 +00:00
sdagley%netscape.com
4ce26fdce3 First Checked In. 1999-01-27 04:12:38 +00:00
sdagley%netscape.com
82d5bff1c1 Updating so that builds on the Mac will use a SIOUX console window rather than writing to a file (which doesn't work unless running under the debugger for an undetermined reason). 1999-01-27 04:11:54 +00:00
wtc%netscape.com
a82867f527 Merged first batch of BeOS port patches contributed by
Matthew Zahorik <maz@albany.net>.
1999-01-26 01:56:55 +00:00
wtc%netscape.com
37cbd0cad7 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.
1999-01-19 23:38:54 +00:00
wtc%netscape.com
1d3e4ba47a Removed hardcoded AIX pathnames /usr/lpp/xlC from the makefiles,
because the new version of AIX xlC compilers (3.6.4) is installed
in a different directory (/usr/ibmcxx).
1999-01-08 19:51:14 +00:00
wtc%netscape.com
435a195934 md/_pth.h should be included after pthread.h. 1999-01-08 03:15:21 +00:00
wtc%netscape.com
c9f4f25104 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.
1998-12-09 16:37:26 +00:00
wtc%netscape.com
fee8cf3706 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.
1998-11-23 06:33:00 +00:00
larryh%netscape.com
326a6e59f2 fix compile error introduced with OS/2 port 1998-11-20 23:56:29 +00:00
srinivas%netscape.com
3df666ca4a 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>.
1998-11-19 22:20:31 +00:00
wtc%netscape.com
a4ede5cb1c NEXT port. Contributed by Balazs Pataki (balazs.pataki@sztaki.hu). 1998-11-18 23:53:21 +00:00
wtc%netscape.com
4a45eb1ad1 Removed all the autoconf *.in files in mozilla/nsprpub. 1998-10-05 19:19:56 +00:00
wtc%netscape.com
6462b9a6d7 More mozilla/nsprpub updates, including:
- Patch for MkLinux and glibc 2.1.  Removed the MKLINUX macro.
  This patch is contributed by Tom Rini <trini@kernel.crashing.org>.
- Patch to make the emulated threads work on ARM/Linux.  Contributed
  by raff@netwinder.org.
1998-10-05 18:58:25 +00:00
wtc%netscape.com
3be1d45421 Removed reference to nonexisting test file. 1998-09-26 02:28:57 +00:00
wtc%netscape.com
5155300605 NSPR20 v3.0 beta landing from NSPRPUB_RELEASE_3_0_LANDING_BRANCH. 1998-09-25 20:34:39 +00:00
wtc%netscape.com
7c89778fe0 Added PR_ProcessAttrSetCurrentDirectory to allow setting the current
working directory of the new process.  PR_SetStdioRedirect is renamed
PR_ProcessAttrSetStdioRedirect.  The old name is retained but moved
to obsolete/probslet.h.  This work is contributed by Ben Laurie
<ben@algroup.co.ul>.
Files changed: prproces.h, probslet.h, primpl.h, uxproces.c, ntmisc.c,
prinit.c, and parent.c.
1998-09-18 02:15:21 +00:00
cls%seawood.org
84f1cedcbb AUTOCONF_1_0 landing. 1998-08-19 20:42:14 +00:00
wtc
412d6f3a7c Use -32 flag for compiler and linker explicitly on IRIX 6.x. This is
necessary on IRIX 6.4 where -n32 is the default.  Thanks to Tomi (a
CS student in Finland whose last name I forget) for the patch.
1998-06-08 23:43:33 +00:00
wtc
4d1413640a Merged NSPRPUB_19980508_BRANCH to the main trunk. The 19980508
branch is a temporary branch for us to copy the latest changes
from our internal development tree to the public mozilla tree.
1998-05-14 18:09:56 +00:00
wtc
c26be6a6d8 Added new test files. 1998-05-08 23:07:27 +00:00
wtc
9746ddd1ec Use cc -bundle to build loadable modules on Rhapsody. Thanks to
Matt Watson <mwatson@apple.com> for the patch.
1998-05-08 18:52:44 +00:00
wtc
5a5cb58738 Various makefile cleanups. On SCO OpenServer, the value of OS_ARCH
is now 'SCOOS' instead of 'SCO_SV'.  Also, we just use the cpp macro 'SCO'
and deleted the macro 'SCO_SV'.
In pr/src/md/unix/Makefile, we do not assemble the ultrasparc assembly
file if we are compiling with gcc.
1998-04-30 19:36:53 +00:00
wtc
94d547105a ReliantUNIX is renamed SINIX. 1998-04-29 00:08:32 +00:00
wtc
7aa439229c Merged NSPRPUB_19980421_BRANCH to the main trunk. 1998-04-28 22:43:48 +00:00
wtc
d221fae7a3 Eliminated compiler warnings. Fixed by Rick Osborne <rick@stacey.net>. 1998-04-24 19:48:37 +00:00
wtc
dc51a884b5 Fixed build problems on BSD/OS. Some makefiles need to change:
the value of OS_ARCH is changed from BSD_386 to BSD_OS.
In unix.c, we now conditionalize on the macros O_SYNC and O_FSYNC,
as opposed to the platform macros like FREEBSD and BSDI.  We
acknowledge jason@ackley.net for reporting and providing a fix
for this problem.
1998-04-22 22:10:37 +00:00
wtc
1ce33d0f6f Merged the makefile changes from Netscape's internal development version
of NSPR to the public ns/nsprpub on mozilla.org.
Removed ns/nsprpub/tools/winsock.lib, which should not have been
released.  This file can be generated from winsock.dll by following
the NSPR build instructions for Windows 3.11 at
http://www.mozilla.org/docs/refList/refNSPR/win16.html.
1998-04-21 17:21:53 +00:00
wtc
d66533676a Eliminated compiler warnings. Fixed by Rick Osborne <rick@spacey.net>. 1998-04-20 19:04:42 +00:00