Eric Andersen [Tue, 26 Feb 2002 09:55:04 +0000 (09:55 -0000)]
Patch from Miles Bader to restrict common truncate64/ftruncate64
syscalls to 64-bit systems, since we can't be sure that the _syscall
macros can cope with 64 bit args on 32 bit arches.
Eric Andersen [Tue, 26 Feb 2002 03:02:20 +0000 (03:02 -0000)]
Thomas Fritzsche noticed that __open_etc_hosts was only changing a
local copy of the FILE pointer, thereby causing /etc/hosts lookups
to fail with Resolver errors. This patch from Thomas fixes the
problem.
Eric Andersen [Mon, 25 Feb 2002 15:06:10 +0000 (15:06 -0000)]
When messing with fd NONBLOCK status, put things back the way we found
them afterwards. As was, this hosed things up for fds shared with a
parent process. Very bad for shells... Oops.
-Erik
Eric Andersen [Sat, 23 Feb 2002 12:35:19 +0000 (12:35 -0000)]
IEEE Std 1003.1-2001 says that the "fclose() function shall fail [with]
EINTR [when] the fclose() function was interrupted by a signal". But
looking in the current uClibc stdio.c for some bizarre reason we had a
special case where when errno was EINTR, we would keep on trying
instead. Doh! Fix that,
-Erik
Eric Andersen [Sat, 23 Feb 2002 06:02:02 +0000 (06:02 -0000)]
Per discussion with Manuel, when we call __stdio_flush_buffers
from abort() and from _exit(), we need to ensure that flushing
will not cause us to block. So use fcntl to set the fd's to
non-block mode...
I was confusing the effects of _LARGEFILE_SOURCE with those of
_FILE_OFFSET_BITS regarding aliasing of the *64 funcs. :-(
Hopefully, this version is correct...
Eric Andersen [Thu, 21 Feb 2002 12:39:48 +0000 (12:39 -0000)]
Lose the _GNU_SOURCE and just add __USE_GNU to the one file that needs
it, since we definately do not want silent remapping of functions to
their large-file counterparts.
-Erik
Eric Andersen [Wed, 20 Feb 2002 09:18:50 +0000 (09:18 -0000)]
Merge in the pthread library. This is the linuxthreads library taken from
glibc 2.1.3 and ported to work with uClibc by Stefan Soucek and Erik Andersen
(me). Stefan has hacked things up such that linuxthreads runs on MMU-less
systems (tested only on arm-nommu). Erik cleaned things up and made it work
properly as a shared library.
-Erik
Eric Andersen [Mon, 18 Feb 2002 08:50:08 +0000 (08:50 -0000)]
Miles Bader writes:
Programs that don't use stdio crash in the `exit' function, because
they call through the pointer__uClibc_cleanup, which has a value of 0.
It has a value of 0 because __uClibc_main.c initializes it to the
address of `__stdio_close_all', which is a weak symbol (and so is 0 if
stdio is not used).
This patch from Miles fixes it, though we need to audit
__stdio_close_all usage to be sure...
Eric Andersen [Wed, 13 Feb 2002 09:47:04 +0000 (09:47 -0000)]
A number of naming updates in preparation for adding in
proper threading. Most of this is from Stefan Soucek,
with additions and changes as needed from me.
Eric Andersen [Tue, 12 Feb 2002 20:28:12 +0000 (20:28 -0000)]
Mark Robson noticed that our strcasecmp() behaviour was not
standards compliant. Brian Stafford then provided these new
implementations, which apprear to properly follow SUSv2.
-Erik
David Schleef [Mon, 11 Feb 2002 03:10:32 +0000 (03:10 -0000)]
mksnapshot: updated version and filenames. control.in: changed
dependency from kernel-headers to kernel-source packages. rules:
force HAS_MMU=true, change mipsel to mips, untar kernel-source
package include directory and use that as kernel source
Eric Andersen [Mon, 4 Feb 2002 08:30:23 +0000 (08:30 -0000)]
Be consistant about the ways in which asm/unistd.h might
be included to avoid gratuitous conflicts... This is
a hack till we have proper _syscall macros for all archs.
-Erik