Граф коммитов

408 Коммитов

Автор SHA1 Сообщение Дата
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 ac9e4f382a Fixed compilation problems on AIX 4.3. Test the macro SF_CLOSE to
determine whether an AIX revision has send_file().  Thanks to
Waqar Malik <waqar@netscape.com> for the bug report and fix.
1999-02-06 17:30:50 +00:00
wtc%netscape.com ff56da642f 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.
1999-02-06 17:25:17 +00:00
wtc%netscape.com 4932b6b8fc Implemented file descriptor inheritance for NT.
Modified files: _winnt.h, prfile.c, prio.c, prsocket.c, ntio.c,
w32poll.c, and prinit.c.
1999-02-05 06:45:06 +00:00
wtc%netscape.com 4259af374f Removed unused variable warnings by the Macintosh compiler. The patch
is contributed by Kathleen Brade <brade@netscape.com>.
1999-02-04 15:53:49 +00:00
wtc%netscape.com 35abd8a9b8 Bugsplat bug #340658: implemented a version of the atomic routines
for the pthreads version that doesn't require NSPR to be initialized.
1999-02-02 00:08:25 +00:00
wtc%netscape.com 128a2efb86 Pthreads version doesn't need _MD_StartInterrupts().
Modified files: prinit.c and ptmisc.c.
1999-02-01 23:25:44 +00:00
wtc%netscape.com 5449f15edc Commented out the sigwait() call for BSDI. BSD/OS 3.1 does not have
the sigwait() function.
1999-02-01 23:24:58 +00:00
wtc%netscape.com b29446a65f In _PR_InitThreads, call pthread_init to explicitly initialize the
pthread subsystem on BSD/OS because pthread_self() fails to initialize
pthreads implicitly.  This patch is contributed by Bert Driehuis
<bert_driehuis@nl.compuware.com>.
1999-02-01 20:01:36 +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 31cafba5e9 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.
1999-02-01 19:20:05 +00:00
srinivas%netscape.com 51a291f63e Add support for creating bound threads. Bug 338607. 1999-02-01 00:41:51 +00:00
wtc%netscape.com 495035291f This file is no longer necessary. 1999-01-28 03:41:08 +00:00
wtc%netscape.com d839bbda41 Bugsplat bug #340124: increase the default thread stack size to 64K
on IRIX, to be consistent with the other platforms.
1999-01-28 03:20:29 +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 aeaecc7b0e Bugsplat bug #340901: On AIX, PR_TransmitFile calls the new send_file()
system call if it is available.  The patch is contributed by IBM's
Anthony Moore <anthonym@npec.netscape.com>.
1999-01-27 03:12:16 +00:00
wtc%netscape.com 6a33ad3d67 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>)
1999-01-26 05:23:03 +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 e031b104dd Added BeOS files contributed by Matthew Zahorik <maz@albany.net>. 1999-01-25 23:52:00 +00:00
wtc%netscape.com 66386b80af Added new BeOS files contributed by Matthew Zahorik <maz@albany.net>. 1999-01-25 23:41:16 +00:00
wtc%netscape.com 5e0824f457 Bugsplat bug #340345: need to initialize the last two function pointers
in the file I/O method table.
1999-01-22 01:49:28 +00:00
wtc%netscape.com a2439bb775 Removed an extra comma. 1999-01-22 01:47:31 +00:00
wtc%netscape.com 582b6d7c75 Bugsplat bug #340332: _PR_MD_CLOSE should wait, with no timeout,
until the pending async I/O operation is aborted.  Thanks to
Mark Rawling <mwr@npec.netscape.com> for the bug report and help
with debugging.
1999-01-21 23:11:22 +00:00
srinivas%netscape.com 189e007e02 Suspended local threads should be moved to the suspend queue after I/O
completion or timeout.
1999-01-20 23:13:06 +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 b064cd8f7f Bugzilla bug #2248: PR_ImportFile, PR_ImportTCPSocket, and
PR_ImportUDPSocket should initialize NSPR implicitly.  Thanks
to John McMullen <mcmullen@netscape.com> for the bug report
and fix.
1999-01-08 22:24:14 +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 6755c5bd48 The lm argument for _PR_SetLogModuleLevel is
shadowed by a local variable by the same name.  Rewrote the code to
make it more clear.  Thanks to Kathy Brade <brade@netscape.com> for
reporting this bug.
1999-01-08 03:38:51 +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 db8fbfd534 Bugzilla bug #2227: PR_CEnterMonitor should initialize NSPR implicitly. 1999-01-08 00:31:15 +00:00
wtc%netscape.com 53d4b3a53c On AIX, removed the pthread_mutexattr_setkind_np call. The man page
says this function is provided only for compatibility with the DCE
threads and should not be used when writing new applications.
1999-01-07 01:33:57 +00:00
srinivas%netscape.com 0f10e44ba1 Fix compiler warnings on Mac; checkin for brade 1998-12-24 22:03:37 +00:00
wtc%netscape.com 0e0e8639ba Removed the #ifndef NO_NSPR_10_SUPPORT around the _PR_MD_GET_SP
macro definition.  This macro is used internally by NSPR20.
1998-12-16 18:56:01 +00:00
wtc%netscape.com f543d8d7e4 Replaced all but one use of IRIX5_3 by feature-based macros.
(Thanks to Brian Ostrom <briano@netscape.com>.)
Modified files: IRIX.mk and irix.c.
1998-12-16 05:58:43 +00:00
wtc%netscape.com 8c27ea6d1d 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.
1998-12-16 05:46:32 +00:00
wtc%netscape.com 4fc3518c4b In ntio.c, w95io.c, _PR_MD_OPEN, handle all combinations of
PR_CREATE_FILE and PR_TRUNCATE correctly.
1998-12-15 03:58:53 +00:00
wtc%netscape.com 2f92a0e40b Removed unnecessary -L/lib. 1998-12-14 23:30:43 +00:00
wtc%netscape.com 559cf87d86 Minor cleanup/fix in DoScanf. 1998-12-14 22:49:47 +00:00
wtc%netscape.com 6ec9db8422 Need to encode the fd type in the NSPR_INHERIT_FDS environment string,
so that in the child process we know whether it is a file, TCP socket,
or UDP socket.
1998-12-11 02:58:31 +00:00
wtc%netscape.com 4f92efc2e7 In PR_JoinThread, we need to call pthread_detach after pthread_join
under DCE threads because DCE threads' pthread_detach does not reclaim
the terminated thread's resources.
1998-12-10 19:58:23 +00:00
wtc%netscape.com 0bd4c249b6 Adjusted comments and white space. 1998-12-10 19:40:48 +00:00
wtc%netscape.com 53fd0fcf56 Removed redundant #include "macsocket.h" (already included by prinet.h). 1998-12-10 19:33:28 +00:00
wtc%netscape.com a8089eaea6 Implemented the PR_APPEND and PR_TRUNCATE flags for PR_Open. 1998-12-10 19:19:03 +00:00
wtc%netscape.com 845f331bce Removed obsolete file macsockclient.c. 1998-12-10 17:44:35 +00:00
wtc%netscape.com ae216ddfce 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.
1998-12-10 17:09:48 +00:00
wtc%netscape.com c565518e02 Removed mention of MAC in the makefile. Mac doesn't use makefles. 1998-12-09 17:43:00 +00:00
wtc%netscape.com 5997c96323 Added build support for the C++ wrappers in pr/src/cplus.
Set USE_CPLUS=1 to recurse into that directory.
1998-12-09 17:39:37 +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 eb469ec9aa Initial checkin of NSPR C++ wrapper classes (pr/src/cplus). 1998-12-09 06:54:06 +00:00
wtc%netscape.com 63c8ffe5f1 Apply the patch submitted by Joe Keane <jgk@jgk.org> to PR_Poll
so that we use a struct pollfd array allocated on the stack
when caller's poll descriptor array can fit in it.  This avoids
the cost of a malloc and a free call when the poll descriptor
arrays are small.
1998-12-07 01:39:48 +00:00
wtc%netscape.com 002b73643a In _MD_unix_map_open_error, map EOVERFLOW to PR_FILE_TOO_BIG_ERROR. 1998-12-07 01:22:31 +00:00
wtc%netscape.com 3cfadeab53 Removed inclusion of MacMemAllocator.h, which is not needed
and will be obsolete.  Also removed unused enum definition.
1998-12-06 01:52:20 +00:00
wtc%netscape.com 60276355f3 Fixed a bug in _MD_Open that incorrectly translates PR_WRONLY to
fsRdPerm.  Thanks to John McMullen <mcmullen@netscape.com> for
reporting this problem.
1998-12-05 06:51:33 +00:00
wtc%netscape.com 0a48c23197 Miscellaneous porting changes from Brian Ostrom <briano@netscape.com>. 1998-12-05 01:41:18 +00:00
wtc%netscape.com d8f10ccb96 The mktime routine in MetroWerks MSL C Runtime Library on the Mac
uses midnight 1 Jan 1900 as the epoch.  So we need to adjust its
return value to the NSPR epoch.  Thanks to Brendan Eich and Chris
Yeh for this fix.
1998-12-02 02:35:27 +00:00
wtc%netscape.com e364db36f4 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).
1998-12-02 01:37:59 +00:00
wtc%netscape.com 7750be02f1 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.
1998-12-01 21:53:37 +00:00
wtc%netscape.com 5224537be7 We also need to define the poll-related error reporting functions
if we are using our emulated poll().  This patch is contributed by
Jeremy Lea <reg@shale.csir.co.za>.
1998-12-01 07:31:15 +00:00
wtc%netscape.com 3fd76e05dd 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>.
1998-12-01 07:25:28 +00:00
wtc%netscape.com fe71ed97a6 Checked in Patrick Beard's temporary workaround (to use GetSharedLibrary
instead of NSGetSharedLibrary) because NSGetSharedLibrary is broken.
1998-12-01 02:56:29 +00:00
wtc%netscape.com dae1fc847c Temporarily commented out the poll() wrapper for Linux, because
glibc 2.0.7 on Debian 2.0 Linux doesn't have __syscall_poll defined.
This problem was reported by Adam Sulmicki <adam@cfar.umd.edu>.
1998-12-01 02:10:44 +00:00
wtc%netscape.com e54fb796b2 Bugzilla bug #1664: removed an unnecessary strdup call in
NSGetSharedLibrary.  Thanks to Patrick Beard <beard@netscape.com>
for the bug report.
1998-11-25 22:25:21 +00:00
wtc%netscape.com e277a7e8ff 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.
1998-11-25 21:01:14 +00:00
wtc%netscape.com d01ccb7c47 _MD_FreeSegment should call free (instead of DisposePtr) to deallocate
the memory allocated by _MD_AllocSegment using malloc.  Thanks to
Simon Fraser <sfraser@netscape.com> for the bug report and fix.
1998-11-24 01:59:41 +00:00
wtc%netscape.com cf9c0b6af5 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.
1998-11-24 01:31:07 +00:00
wtc%netscape.com 6cea04ed00 Temporarily ifdef out assertions for the Mac while I debug the
problem.
1998-11-24 00:25:25 +00:00
wtc%netscape.com 50374cf595 Handle the sa_len field of struct sockaddr correctly on platforms
whose struct sockaddr has that field.  Thanks to Bert Driehuis
<driehuis@playbeing.org> for suggesting this fix.
1998-11-23 21:22:07 +00:00
wtc%netscape.com 81203004dc Added 'else true;" to the if statement in our shell scripts because
QNX's shell doesn't work correctly without it.
1998-11-23 21:20:38 +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 927374761c BugZilla #1473 1998-11-21 00:20:16 +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 2fd86286e1 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-20 20:17:20 +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
srinivas%netscape.com 3d132b87fb Conditionally compile pthread priority call;
checkin for Jeremy Lea <reg@shale.csir.co.za>.
1998-11-18 22:58:55 +00:00
srinivas%netscape.com a6275d222b Enable use of poll system call for FreeBSD 3.0.0-RELEASE;
checkin for Jeremy Lea <reg@shale.csir.co.za>.
1998-11-18 22:57:33 +00:00
srinivas%netscape.com b13a5ba639 Implement poll for those platforms that don't support the system call. 1998-11-18 22:56:06 +00:00
srinivas%netscape.com 45ab6a8901 Enable ELF builds and use of poll system call for FreeBSD 3.0.0-RELEASE;
checkin for Jeremy Lea <reg@shale.csir.co.za>.
1998-11-18 22:54:11 +00:00
wtc%netscape.com a67c4ac5df Added Alec Flett's comments on the version of glibc2/sparc whose
setjmp/longjmp works.
1998-11-16 23:39:10 +00:00
wtc%netscape.com f3e3e01be1 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
1998-11-13 02:12:38 +00:00
wtc%netscape.com e7d66e5edd Linux/m68k porting change (define _MD_SP_TYPE), contributed by
Jes Sorensen <Jes.Sorensen@cern.ch>.
1998-10-29 21:04:47 +00:00
wtc%netscape.com 4bfb5610d0 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).
1998-10-08 21:31:09 +00:00
wtc%netscape.com bfa38ecb19 Restored libultrasparc.so. Our prior attempt to eliminate this
library doesn't work.
Modified files: Makefile, objs.mk, os_SunOS_ultrasparc.s, solaris.c.
1998-10-07 00:34:51 +00:00
wtc%netscape.com a20ecdf247 Fixed HP-UX classic NSPR build breakage. 1998-10-06 02:31:53 +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
cyeh%netscape.com f31dc000c8 removing obsolete files. use MANIFEST instead. 1998-10-05 18:42:02 +00:00
pinkerton%netscape.com 9d311b37f7 carbon fixes. 1998-09-29 17:27:42 +00:00
wtc%netscape.com 56ac8f97c1 Fixed Linux pthreads build breakage. Define _PR_POLL_AVAILABLE on
glibc systems.
1998-09-29 14:28:25 +00:00
wtc%netscape.com e2ac954fa7 Fixed DG/UX build problems in NSPR20 v3.0 beta. The patch is
contributed by Marc J. Fraioli (fraioli@dg-rtp.dg.com).
1998-09-28 20:13:23 +00:00
wtc%netscape.com 1ccc30b706 Temporary fix: comment out the exit() wrapper so that at least
Mozilla client builds and runs.  We will fix the wrong exit status
bug or zombie sproc bug later (which the exit() wrapper is for).
1998-09-26 14:32:11 +00:00
wtc%netscape.com 25ec64e023 Temporarily comment out the symbol __exit, which is not found
on all versions of IRIX.
1998-09-26 07:28:04 +00:00
wtc%netscape.com 3be1d45421 Removed reference to nonexisting test file. 1998-09-26 02:28:57 +00:00
wtc%netscape.com ebed194527 poll() doesn't work on some Linux machines, so we go back
to using select().
1998-09-26 02:23:06 +00:00
wtc%netscape.com a7f3b5c267 Include <sys/time.h> for the definition of FD_SETSIZE. 1998-09-26 00:08:49 +00:00
wtc%netscape.com 53e684bc7f Define _PR_POLL_AVAILABLE and _PR_USE_POLL only for glibc2. 1998-09-26 00:01:16 +00:00
wtc%netscape.com 56b5f4e134 Include <poll.h> instead of <sys/poll.h>. Some machines don't
have <sys/poll.h>.
1998-09-25 23:54:51 +00:00
wtc%netscape.com 0411a3a8f0 Removed unused macro and enum constant definitions. 1998-09-25 20:38:11 +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 f390fe814a Got rid of references to "OSF1" in this file. Thanks to
raff@aromatic.com for the problem report and the patch.
1998-09-24 06:14:26 +00:00
wtc%netscape.com b064b17d15 Bugzilla bug #122: merged NetBSD patch contributed by
Frank van der Linden (frank@wins.uva.nl).
1998-09-24 03:55:47 +00:00
wtc%netscape.com 96a6a02078 NO_NSPR_PRIVATE_HEADER_BRANCH landing. Removed the inclusions of
private NSPR headers (prosdep.h and primpl.h) from the Mozilla source.
The part of prosdep.h that is actually needed by Mozilla was extracted
and put in the new file mozilla/include/xp_path.h.
1998-09-22 16:59:57 +00:00
wtc%netscape.com 4816d3eaee Removed the NSPR20 macro definition for XP_MAC. 1998-09-20 01:04:58 +00:00
wtc%netscape.com 0f7aa903bc Backed out the HAVE_LONG_LONG change temporarily because
it breaks binary compatibility.  We will put it back in
after the v3.0 release is branched off.
1998-09-20 00:50:31 +00:00
wtc%netscape.com 89e37b4c7a Bug fix: If the envp argument for PR_CreateProcess is NULL,
call execv (instead of execve) so that the new process inherits
the environment of the parent process.
1998-09-20 00:21:35 +00:00
wtc%netscape.com 72e5c9daf2 Renamed the 'index' argument for PR_Get/SetThreadPrivate to 'tpdIndex'.
This is because BSD systems have a funciton named 'index' in
<string.h>, and if you compile with the -Wshadow flag, gcc warns
that our declaration of `index' shadows global declaration.
Thanks to Ben Laurie <ben@algroup.co.uk> for the problem report
and the suggested workaround.
1998-09-20 00:18:18 +00:00
wtc%netscape.com 3fe9196cce Added the 'const' qualifier to the 'fmt' argument for PR_FormatTime.
This patch is contributed by Ben Laurie <ben@algroup.co.uk>.
Files changed: prtime.h and prtime.c.
1998-09-19 23:52:13 +00:00
wtc%netscape.com d06e6fa3d8 Moved the obsolete function PR_SetStdioRedirect from probslet.h
back to prproces.h because we don't want to break source
compatibility in this release.
1998-09-19 01:00:52 +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
wtc%netscape.com 085deb6d59 Define HAVE_LONG_LONG on BSDI. (Acknowledgements: Bert Driehuis
<driehuis@playbeing.org>.)
1998-09-17 01:10:21 +00:00
wtc%netscape.com a32ad94d34 For DG/UX, rename its OS_ARCH fro "dgux" to "DGUX".
dgux.mk is also renamed DGUX.mk.
1998-09-13 04:18:06 +00:00
wtc%netscape.com 66d884cf5d Port to Linux/Strong Arm 110. Only the pthreads version works.
Files changed: Linux.mk, _linux.cfg, _linux.h.
1998-09-13 03:43:33 +00:00
wtc%netscape.com 3f86b47ae3 In CreateMacPathFromUnixPath, return paramErr if unixPath is nil. 1998-09-10 21:08:47 +00:00
wtc%netscape.com e8f9bf611c In CreateMacPathFromUnixPath, the length of the macPath buffer
should be (strlen(unixPath) + 2) instead of (strlen(unixPath) * 2).
This is because for a zero-length unixPath, the macPath is ":",
which needs two bytes.  Thanks to Patrick Beard <beard@netscape.com>
and Steve Dagley <sdagley@netscape.com> for reporting the bug and
suggesting a fix.
1998-09-10 20:49:14 +00:00
wtc%netscape.com faf263bb06 Fixed dprintf as suggested by Patrick Beard (beard@netscape.com).
Now dprintf calls PR_vsnprintf instead of PR_vsmprintf, so that
dprintf does not allocate memory.  This is because PR_Assert (which
calls dprintf) can get called at interrupt time, and it is unsafe
to allocate memory at interrupt time on the Mac.
1998-09-09 01:17:41 +00:00
wtc%netscape.com 899aec042d On Unix, include <sys/types.h> for 'uint'. 1998-09-04 03:43:07 +00:00
warren%netscape.com 04a7740fa4 Added PR_DestroyLogModule. 1998-09-01 00:17:18 +00:00
cls%seawood.org 9020b80c52 Updates to autoconf files. 1998-08-26 04:04:57 +00:00
cls%seawood.org 84f1cedcbb AUTOCONF_1_0 landing. 1998-08-19 20:42:14 +00:00
wtc%netscape.com 142a9bdd7f Define HAVE_LONG_LONG because gcc/g++ support 'long long'. 1998-08-18 15:00:22 +00:00
wtc%netscape.com 267d484791 Use $< so that VPATH works. 1998-08-13 04:39:45 +00:00
wtc%netscape.com 3562329355 Increase the timer interval from 1ms to 8ms. 1998-08-13 04:38:42 +00:00
wtc%netscape.com e94e434281 Checked in DG/UX port contributed by Marc Fraioli <fraioli@dg-rtp.dg.com>.
New files: dgux.mk, _dgux.cfg, _dgux.h, and dgux.c.
Files changed: lib/msgc/tests/Makefile, pr/include/md/Makefile,
_unixos.h, prosdep.h, prsocket.c, pr/src/md/unix/Makefile,
pr/src/md/unix/objs.mk, unix.c.
1998-08-11 22:29:48 +00:00
wtc%netscape.com bbee84c164 The local threads don't work on RedHat 5.1 Sparc Linux (with glibc2).
I suspect it's because glibc2's setjmp/longjmp (Sparc version) does
not allow us to modify the jmp_buf.  So I added some comments and
a #error directive to force the build to fail.
1998-08-10 23:38:38 +00:00
wtc%netscape.com 229de91d6d Merged Linux/MIPS patch contributed by Ralf <ralf@uni-koblenz.de>.
Files changed: _linux.cfg and _linux.h.
1998-07-24 00:52:44 +00:00
wtc%netscape.com bf8f82da73 Bugzilla bug #263: Merged the NetBSD port of NSPR contributed by
Frank van der Linden <frank@wins.uva.nl>.
1998-07-17 23:33:36 +00:00
danm c32dd09d90 glowcode, the right way. bug 299200 a:don 1998-07-10 02:04:46 +00:00
danm 30f8c8b987 glowcode. bug 299200 a:don. 1998-07-09 16:33:15 +00:00
wtc d77705d89e In _PR_MD_OPEN_DIR, we append \*.* to the directory name,
but if the directory name ends in a slash or backslash,
we do not append the backslash.
Files changed: ntio.c and w95io.c.
1998-07-01 05:13:10 +00:00
wtc 15cac26f3a Bug #180965: Mac gets PR_IO_PENDING_ERROR. In SendReceiveStream and SendReceiveDgram, make sure that we set the io_pending flag of the current thread to PR_FALSE before we return. In gethostbyname(), just store the OS error code in me->md.osErrCode. Do not call macsock_map_error() to map to NSPR error code. 1998-06-26 20:24:25 +00:00
spider cb94dae31e NORMANDY_DDAY merge... 1998-06-25 05:50:45 +00:00
spider 365c772ff9 Normandy Merge .... 1998-06-22 21:21:28 +00:00
wtc 2ba9c2caec Bugzilla bug #351: Removed two extra '>' characters.
Thanks to Romain Vignes <rvignes@cal.fr> for the problem report and fix.
1998-06-09 01:14:56 +00:00
wtc 6418ed1985 Port to Sparc Linux. Files changed: _linux.cfg, _linux.h. 1998-06-09 00:51:10 +00:00
wtc 302b1960a0 On HP-UX, we should just include <model.h> and use its definition
of the types int8, int16, and int32.  This way people can include
nspr header and model.h in any order and won't get "type defined
twice" errors.
1998-06-08 23:45:45 +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
scc 432f3ea897 First Checked In. 1998-06-04 22:51:07 +00:00
wtc e06ebb0b68 Backed out revision 3.7. First, XP_PC not only means Win NT and Win 95,
but also WIN16 and OS2.  I don't think WIN16 and OS2 have GetLastError().
Second, we always call DllErrorInternal() with the argument
_MD_ERRNO(), and _MD_ERRNO() is defined as GetLastError() on NT and
Win95.
1998-06-03 21:46:18 +00:00
wtc d5808c772f Backed out revision 3.2. In C and C++, a pointer to any datatype
can be implicitly cast to void *.  So the explicit (void *) cast
in the argument for PR_Free() should not be necessary.
1998-06-03 21:23:24 +00:00
jgellman 9f800f1e0e merge from OJI branch 1998-06-03 00:37:20 +00:00
wtc 01cfc7a328 Moved the definition of _AIX_AtomicSet() to the outside of the
#ifndef AIX4_1 block.  Thanks to C. Fung <carsonf@torolab.ibm.com>
for reporting this problem.
1998-06-02 03:25:22 +00:00
scc c1e5127c0b First Checked In. 1998-05-30 03:18:48 +00:00
wtc 202b5af68c Removed unused variables. Thanks to Wei Tsang Ooi
<weitsang@cs.cornell.edu> for the patch.
1998-05-27 23:21:10 +00:00
sfraser 34ba33bcfc Added some more headers to export 1998-05-27 00:53:55 +00:00
sfraser 44e9956672 First Checked In. 1998-05-23 01:14:17 +00:00
wtc b47efa6e65 OSF1 V3.2 does not have <machines/builtins.h>, which declares the
atomic routines.  Thanks to Andrew Cassin <acassin@cs.mu.oz.au> for
this patch.
1998-05-22 00:59:33 +00:00
atotic b32cf33e30 Renamed nsstring.[c|h] to macstdlibextras.[c|h] because of the naming conflict with Raptor (which uses ns prefix exclusively). 1998-05-15 16:54:09 +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 6b123aed81 The type of the third argument for accept, recvfrom, getsockname, and
getpeername is 'int', not 'size_t'.
1998-05-08 18:50:15 +00:00
wtc 09e0473845 Fixed comment. 1998-05-08 18:48:46 +00:00
wtc ae12cbcc21 Merged patches from Matt Watson <mwatson@apple.com> to make loadable
modules work on Rhapsody.  Still have a few kinks to iron out.
1998-05-08 18:43:58 +00:00
wtc 73c54cbc55 Matt Watson <mwatson@apple.com> pointed out that it is not safe to
redefine FD_SETSIZE on Rhapsody.
1998-05-08 18:41:51 +00:00
wtc 34e5144ff8 Added a few function declarations and header inclusions to get rid of
compiler warnings.
1998-05-08 18:37:38 +00:00
wtc 7629ad13c7 Merged Rhapsody patches contributed by Matt Watson <mwatson@apple.com>. 1998-05-08 18:35:19 +00:00
wtc 75c25ae7cb Fixed Bugzilla bug #235: Define the macro _PR_HAVE_SOCKADDR_LEN to
indicate that struct sockaddr_in on BSD/OS has a sa_len field.
The code in unix.c checks this macro.  We acknowledge Bert Driehuis
<driehuis@playbeing.com> for reporting the bug and suggesting a fix.
1998-05-07 15:43:43 +00:00
wtc e8f298c4f1 Bugzilla bug #218: define HAVE_STRERROR only if it is not yet defined.
Thanks to David Nebinger (dnebinger@synertech.highmark.com) for reporting
the problem and suggesting the fix.
1998-05-07 06:38:26 +00:00
wtc e382aa1298 Bugzilla bug #265: Use full pathname /usr/ccs/bin/as (as opposed to just
'as') to assemble os_SunOS_ultrasparc.s because we need the -P option
of Solaris 'as' to run cpp and process header file inclusion.  This
way we won't accidentally get GNU 'as', which doesn't understand -P.
We acknowledge Paul Kanz (pkanz@conix.com) for suggesting the fix.
1998-05-07 06:29:44 +00:00
wtc 8baaa72a5d On Alpha Linux, the mmap'd stack needs to be made executable because
setjmp/signal seem to put machine instructions on the stack.  This
fix is contributed by gatgul@voicenet.com (Uncle George).
1998-05-07 05:07:25 +00:00
wtc 0e913de567 The stack pointer is the 0th element in the jmp_buf. 1998-05-07 01:52:43 +00:00
wtc 076ba566b9 Checked in (unfinished) Rhapsody port provided by Chris McAfee and
Chris Toshok (mcafee, toshok@netscape.com).  It is classic NSPR,
local threads only (based on setjmp/longjmp).
1998-05-05 23:28:45 +00:00
radha e81715dd79 Bug fix for 83769. Add MOZILLA_HOME/lib to the list of library_paths. 1998-05-01 23:27:04 +00:00
srinivas 301d11ba40 Set up pointers to the stack-pointer/frame-pointer words in the thread's
context structure. Useful for displaying thread stacks in the debugger.
1998-05-01 19:47:14 +00:00
srinivas a3ed7efc6b Initialize the outermost stack frame for the thread and setup pointers to the
stack-pointer/frame-pointer words in the thread's context structure.
Useful for displaying thread stacks in the debugger.
1998-05-01 19:45:13 +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 0b3f6a8a76 Got rid of the LINUX1_2 and LINUX2_0 macros. I hope that this will
make building on 2.1.x easier.  In case we need to distinguish between
different versions of Linux, we will try to use feature-based macros
as opposed to version-based macros.
Files changed: Linux.mk, _linux.h, _pth.h, prnetdb.c, and ptthread.c.
1998-04-28 23:54:29 +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 1fd1e00f5a Serge Orlov <sorlov@con.mcst.ru> reported that gmake 3.74 on Solaris 2.5
doesn't like the extra tabs in this file.  I don't know why.  It works
for me and everyone else.  But since it doesn't hurt, I deleted the
extra tabs.
1998-04-24 18:13:13 +00:00
wtc 5e08ba3f0b Added parentheses around a type cast. Fix provided by Kipp Hickmann
<kipp@netscape.com>.
1998-04-22 22:36:47 +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
wtc 35395be1eb Eliminated compiler warnings. Fixed by Rick Osborne <rick@stacey.net>. 1998-04-20 18:58:25 +00:00
wtc 5938dd45fb Declare PrintUsage() to return void. Fixed by Rick Osborne
<rick@spacey.net>.
1998-04-20 18:55:32 +00:00
wtc f63a723b2e Ported to Linux/m68k. The patches were kindly provided by
Jes Sorensen <Jes.Sorensen@cern.ch>.
1998-04-16 22:56:27 +00:00
wtc 820ab53246 In ConvertUnixPathToMacPath, removed the checks that disallow path names
that begin with /bin, /dev, and /etc.  These directories don't have
any special meaning on the Mac and should be allowed.  Thanks to
Mike Pinkerton <pinkerton@netscape.com> for reporting this bug and
providing the fix.
1998-04-15 01:28:33 +00:00
wtc 7cd7c2c3a4 Ported to HP-UX 9. We acknowledge Richard K. Lloyd <rkl@csc.liv.ac.uk>
for his help.

Files changed: HP-UX.mk, pr/src/Makefile, hpux.c, unix.c, and uxproces.c.
HP-UX.mk: Compare $(basename $(OS_RELEASE)) with A.09 to cover all HP-UX
9 revisions.  Define _PR_NEED_H_ERRNO for HP-UX 9.
1998-04-15 01:02:00 +00:00
wtc 1c10b9066d Deleted the unused variable 'count' in _PR_MD_INTERVAL_PER_SEC(). We
acknowledge Rick Osborne <rick@spacey.net> for reporting this problem
and suggesting a fix.
1998-04-14 01:06:32 +00:00
wtc 9d7242d3d8 Got rid of compiler warnings. We acknowledge the help of Nathan
Torkington <gnat@frii.com>.
1998-04-13 22:55:27 +00:00
wtc 3204b4d5fc Got rid of compiler warnings. We acknoweldge the help of Nathan
Torkington <gnat@frii.com>.
1998-04-13 22:49:10 +00:00
wtc 1f5be81692 localtime_r is declared on Solaris only if _REENTRANT is defined. 1998-04-13 22:48:07 +00:00
wtc d7e8e8cce0 Got rid of compiler warnings. We acknowledge the help of Nathan
Torkington <gnat@frii.com>.
1998-04-13 22:46:48 +00:00
wtc 01db978aa9 Fixed printf format mismatch problems. We acknowledge the help of
Nathan Torkington <gnat@frii.com>.
1998-04-13 22:26:32 +00:00
wtc e8f3cf3f95 In PR_GetSpecialFD, cast the PRSpecialFD variable 'osfd' to int
because some compilers make the enum PRSpecialFD an unsigned int
type and complain that 'osfd' is always >= PR_StandardInput, which
has the value 0.
1998-04-13 22:25:13 +00:00
wtc 1a658dc679 Added function declarations to eliminate compiler warnings. 1998-04-13 22:22:43 +00:00
wtc 15e1a7fd39 Added declaration of _MD_YIELD. 1998-04-13 22:21:00 +00:00
wtc 72d6375ce2 Fixed compiler warnings, mostly by adding function declarations. 1998-04-13 22:19:51 +00:00
wtc 428ceeffc5 Fixed compiler warnings, mostly undeclared functions. We acknoweldge
the help of Nathan Torkington <gnat@frii.com>.
1998-04-13 22:04:19 +00:00
wtc 7d61cbfe99 Declare _MD_EarlyInit() to eliminate 'undeclared function' compiler warning.
Contributed by Nat <gnat@frii.com>.
1998-04-09 19:50:19 +00:00
wtc 6c8e7f8f24 Fixed 'unused variable' warning for the variable 'nfds' in select()
on local-threads-only platforms.  This is pointed out by many people,
including Nat <gnat@frii.com>.
1998-04-09 19:44:46 +00:00
wtc 666c848a9f Fixed 'unused variable' compiler warning in prsocket.c. This is pointed
out by many people, including Nat <gnat@frii.com>.
1998-04-09 19:41:13 +00:00
wtc 9bde636b16 If RTLD_LAZY is not defined, define it to be the same as RTLD_NOW,
as oppposed to the value 1.  This is to avoid conflicting with the
value of other RTLD_XXX flags.
On HP-UX, shared libraries built using aCC cannot be dynamically loaded
with BIND_DEFERRED, so we have to use the BIND_IMMEDIATE flag in
shl_load().
1998-04-07 23:05:07 +00:00
wtc 4d20316856 Digital Unix has atomic routines declared in <machines/builtins.h>,
so we define _PR_MD_ATOMIC_XXX to use them.
1998-04-07 22:43:50 +00:00
wtc c5f0bd3b5e Fixed the return type of the _PR_MD_ATOMIC_XXX routines. They
should return PRInt32, not void. (Reported by William A. Law,
law@netscape.com.)
1998-04-07 20:36:46 +00:00
ltabb 3b56a9af51 Free the lizard 1998-03-28 02:44:41 +00:00