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.
git-svn-id: svn://10.0.0.236/trunk@15895 18797224-902f-48f8-a5cc-f745e15eee43
fsRdPerm. Thanks to John McMullen <mcmullen@netscape.com> for
reporting this problem.
git-svn-id: svn://10.0.0.236/trunk@15827 18797224-902f-48f8-a5cc-f745e15eee43
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.
git-svn-id: svn://10.0.0.236/trunk@15607 18797224-902f-48f8-a5cc-f745e15eee43
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
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
if we are using our emulated poll(). This patch is contributed by
Jeremy Lea <reg@shale.csir.co.za>.
git-svn-id: svn://10.0.0.236/trunk@15512 18797224-902f-48f8-a5cc-f745e15eee43
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
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>.
git-svn-id: svn://10.0.0.236/trunk@15489 18797224-902f-48f8-a5cc-f745e15eee43
NSGetSharedLibrary. Thanks to Patrick Beard <beard@netscape.com>
for the bug report.
git-svn-id: svn://10.0.0.236/trunk@15322 18797224-902f-48f8-a5cc-f745e15eee43
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
the memory allocated by _MD_AllocSegment using malloc. Thanks to
Simon Fraser <sfraser@netscape.com> for the bug report and fix.
git-svn-id: svn://10.0.0.236/trunk@15221 18797224-902f-48f8-a5cc-f745e15eee43
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
whose struct sockaddr has that field. Thanks to Bert Driehuis
<driehuis@playbeing.org> for suggesting this fix.
git-svn-id: svn://10.0.0.236/trunk@15176 18797224-902f-48f8-a5cc-f745e15eee43
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
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
- 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.
git-svn-id: svn://10.0.0.236/trunk@11916 18797224-902f-48f8-a5cc-f745e15eee43