OSDN Git Service
Eric Andersen [Fri, 24 Jan 2003 16:09:00 +0000 (16:09 -0000)]
Don't clean config system except on 'make distclean'. Remember to
clean locale stuff on 'make clean'
Eric Andersen [Fri, 24 Jan 2003 16:04:35 +0000 (16:04 -0000)]
Better stat tests
Eric Andersen [Fri, 24 Jan 2003 11:52:51 +0000 (11:52 -0000)]
I thought it would be smaller to inline since these funcs are small.
Well, not inlining saves 300 bytes, so do that instead.
-Erik
Eric Andersen [Fri, 24 Jan 2003 11:44:14 +0000 (11:44 -0000)]
Ok, people are probably going to hate me for this... This commit changes the
type of 'struct stat' and 'struct stat64' so they use consistant types.
This change is the result of a bug I found while trying to use GNU tar. The
problem was caused by our using kernel types within struct stat and trying to
directly compare these values with standard types. Trying an 'if (a < b)' when
'a' is an 'unsigned long' and 'b' is an 'int' leads to very different results
then when comparing entities of the same type (i.e. time_t values)....
Grumble. Nasty stuff, but I'm glad I got this out of the way now.
As a result of this fix, uClibc 0.9.17 will not be binary compatible with
earlier releases. I have always warned people this can and will happen.
-Erik
Eric Andersen [Fri, 24 Jan 2003 11:21:22 +0000 (11:21 -0000)]
Add FAQ entry for "sh: can't access tty; job control turned off"
-Erik
Eric Andersen [Fri, 24 Jan 2003 11:18:29 +0000 (11:18 -0000)]
Doh! Fix potential stack corruption caused by dynamic atexit
allocating size incorrectly....
-Erik
Eric Andersen [Thu, 23 Jan 2003 17:55:27 +0000 (17:55 -0000)]
Update architecture specific support to consistantly
generate a crt0 and crt1 file. Most arches still need
to be updated to call __uClibc_start_main() rather than
__uClibc_main().
Eric Andersen [Thu, 23 Jan 2003 17:33:54 +0000 (17:33 -0000)]
Hopefully this is correct
Eric Andersen [Thu, 23 Jan 2003 17:30:12 +0000 (17:30 -0000)]
Hopefully this will work as expected. I have no way to
test but this should be correct.
Eric Andersen [Thu, 23 Jan 2003 17:21:48 +0000 (17:21 -0000)]
Update crt0 for arm to provide the main reference
a bit more nicely, and make _init and _fini be weak
for people with broken compilers
-Erik
Eric Andersen [Thu, 23 Jan 2003 16:56:45 +0000 (16:56 -0000)]
Shuffle OPTIMIZATION setting a bit
Manuel Novoa III [Thu, 23 Jan 2003 16:55:06 +0000 (16:55 -0000)]
Wasn't thinking... we don't need to seek to end when appending if stdio
is built without buffer support.
Eric Andersen [Thu, 23 Jan 2003 16:28:10 +0000 (16:28 -0000)]
Update tests to be somewhat consistant with the rest of the world
Eric Andersen [Thu, 23 Jan 2003 16:16:40 +0000 (16:16 -0000)]
Update ignore list
Eric Andersen [Thu, 23 Jan 2003 15:39:41 +0000 (15:39 -0000)]
Update a tiny bit
Eric Andersen [Thu, 23 Jan 2003 15:36:00 +0000 (15:36 -0000)]
Cleanup makefiles and make clean a bit
Eric Andersen [Thu, 23 Jan 2003 14:03:02 +0000 (14:03 -0000)]
Making atexit weak does nothing for dynamicly linked apps. And for
staticly linked apps it entirely prevents destructors from running
unless atexit is called for some other reason. So if they enabled
ctor/dtor support we need to have a call to the real atexit for
dtors to work properly. If people don't want the extra 4k or so
of junk in their static apps, they should leave ctor/dtor support
disabled.
-Erik
Eric Andersen [Thu, 23 Jan 2003 13:18:58 +0000 (13:18 -0000)]
simpler method for getting a 'main' reference. Make _init and _fini
be weak so people won't need to fix their compilers
Eric Andersen [Thu, 23 Jan 2003 13:17:42 +0000 (13:17 -0000)]
Shuffle two lines so the comment applies to the correct line.
Eric Andersen [Thu, 23 Jan 2003 13:10:30 +0000 (13:10 -0000)]
Rewrite powerpc crt0.S for proper ctor/dtor handling
Eric Andersen [Thu, 23 Jan 2003 09:06:36 +0000 (09:06 -0000)]
Kill the needless '#if 1'
Eric Andersen [Thu, 23 Jan 2003 09:05:34 +0000 (09:05 -0000)]
Update malloc behavior on malloc(0) to be consistant with
malloc-930716 behavior, i.e. return a NULL.
Eric Andersen [Thu, 23 Jan 2003 08:25:15 +0000 (08:25 -0000)]
Just be a bit less different from latest glibc version in comments
and in the files where variables live.
Eric Andersen [Thu, 23 Jan 2003 07:58:29 +0000 (07:58 -0000)]
Per patch from Nathan Field at ghs.com, fix the mips __compare_and_swap inline
function. Without this fix, pthread_mutex_lock/pthread_mutex_unlock don't work
on mips.
Eric Andersen [Thu, 23 Jan 2003 07:57:02 +0000 (07:57 -0000)]
Per patch from Nathan Field at ghs.com, fix __pthread_initialize_manager so it
locks before calling clone when under a debugger, and unlocks on success or
failure of clone when under a debugger.
Eric Andersen [Thu, 23 Jan 2003 07:55:00 +0000 (07:55 -0000)]
Per patch from Nathan Field at ghs.com, add a couple of variables
needed to make gdb happy when debugging threadded apps.
Eric Andersen [Thu, 23 Jan 2003 07:52:47 +0000 (07:52 -0000)]
Fix indenting. Per patch from Nathan Field at ghs.com, change
LINUXTHREADS_PTHREAD_THREADS_MAX to properly point to "__pthread_threads_max".
Eric Andersen [Thu, 23 Jan 2003 06:36:15 +0000 (06:36 -0000)]
Patch from Brett Hunt at micron.com to fixup potential segfaults
during 'make menuconfig'
Manuel Novoa III [Wed, 22 Jan 2003 19:08:38 +0000 (19:08 -0000)]
Fixed a bug related file position in append mode. _stdio_fwrite now
seeks to the end of the stream when append mode is set and we are
transitioning to write mode, so that subsequent ftell() return
values are correct.
Also fix _stdio_fopen to support fdopen() with append specified when
the underlying file didn't have O_APPEND set. It now sets the
O_APPEND flag as recommended by SUSv3 and is done by glibc.
Eric Andersen [Wed, 22 Jan 2003 17:43:14 +0000 (17:43 -0000)]
Update sigaction syscall names to act more like glibc. Fix the x86 sigaction
implementation such that gdb can actually debug signal handlers. Gdb behaves
much better now, for example, on multi-threaded apps.
-Erik
"Steven J. Hill" [Wed, 22 Jan 2003 16:55:19 +0000 (16:55 -0000)]
Changed '__kernel_nlink_t' data type to match Linux/MIPS kernel type
definition and to be consistent with the ABI. Done per conversation
with Ralf (Linux/MIPS) maintainer.
Eric Andersen [Wed, 22 Jan 2003 15:35:45 +0000 (15:35 -0000)]
Add in arm specific sigaction implementation to fix sa_restorer
behavior so it works as expected
Eric Andersen [Wed, 22 Jan 2003 15:03:47 +0000 (15:03 -0000)]
Missed an endif
Eric Andersen [Wed, 22 Jan 2003 14:51:59 +0000 (14:51 -0000)]
Looks like sigaction on arm needs adjustment, so split this into
a common header file and a default implementation.
Eric Andersen [Sat, 18 Jan 2003 19:46:17 +0000 (19:46 -0000)]
Only include lockf64 when large file support is enabled, fixing
a problem noticed by Jeff Mock. Sorry about that.
-Erik
Eric Andersen [Fri, 17 Jan 2003 07:57:44 +0000 (07:57 -0000)]
Remember to also export LC_ALL in addition to setting it.
-Erik
Eric Andersen [Thu, 16 Jan 2003 07:15:18 +0000 (07:15 -0000)]
Update build rules a bit. fix quoting problems. Update default
x86 compiler optimization to not force building i386 opcodes.
Eric Andersen [Tue, 14 Jan 2003 09:15:35 +0000 (09:15 -0000)]
Strip off unwanted quotes from ARCH_CFLAGS. Attempt to
enforce consistent sort order, 'gcc -print-search-dirs'
behavior, etc by forcing the build into the C locale.
-Erik
Eric Andersen [Sat, 11 Jan 2003 18:07:38 +0000 (18:07 -0000)]
Patch from Robert Schwebel -- support ncurses installed in /usr/local
Eric Andersen [Fri, 10 Jan 2003 14:43:40 +0000 (14:43 -0000)]
Update website dev image blurb
Eric Andersen [Fri, 10 Jan 2003 06:26:14 +0000 (06:26 -0000)]
Patch from Jay Kulpinski:
__decode_dotted() does not count the null terminating byte of
a hostname in the DNS response. This causes lookups to fail
if the DNS response doesn't compress domain names in the
message.
Eric Andersen [Fri, 10 Jan 2003 03:47:08 +0000 (03:47 -0000)]
Fix warnings
Eric Andersen [Fri, 10 Jan 2003 03:32:11 +0000 (03:32 -0000)]
Implement lockf64
-Erik
Eric Andersen [Fri, 10 Jan 2003 03:07:38 +0000 (03:07 -0000)]
Patch from Nick Fedchik to support ether_aton
Eric Andersen [Thu, 9 Jan 2003 16:17:39 +0000 (16:17 -0000)]
mention the uClibc root_fs now available on uclibc.org
Eric Andersen [Thu, 9 Jan 2003 01:44:24 +0000 (01:44 -0000)]
Hide unimplemented and legacy ecvt and friends from configure.
-Erik
Eric Andersen [Wed, 8 Jan 2003 18:52:00 +0000 (18:52 -0000)]
Disable the __USE_EXTERN_INLINES versions of these headers, which
use non-existant glibc internals.
Manuel Novoa III [Wed, 8 Jan 2003 18:24:56 +0000 (18:24 -0000)]
For now, "#if 0" out the inlining of (currently unsupported) glibc-specific
string->numeric conversion functions.
Eric Andersen [Wed, 8 Jan 2003 01:16:51 +0000 (01:16 -0000)]
Lineo has ceased to exist and is no longer a sponsor
Manuel Novoa III [Sun, 5 Jan 2003 04:47:26 +0000 (04:47 -0000)]
Fix a silly bug in _wstdio_fwrite. wprintf %s should now work correctly.
Eric Andersen [Fri, 3 Jan 2003 19:55:47 +0000 (19:55 -0000)]
If they call dlopen with anything other than RTLD_LAZY
or RTLD_NOW then we need to error out.
Eric Andersen [Thu, 2 Jan 2003 16:48:42 +0000 (16:48 -0000)]
Rework sparc architecture support so it will compile
and run. Seems to be working...
-Erik
Eric Andersen [Sat, 21 Dec 2002 08:56:39 +0000 (08:56 -0000)]
Be sure we have a crt1.o file. Use the asm version by default.
-Erik
Manuel Novoa III [Fri, 20 Dec 2002 22:05:29 +0000 (22:05 -0000)]
Update.
Manuel Novoa III [Fri, 20 Dec 2002 21:53:37 +0000 (21:53 -0000)]
Obligatory forgotten update...
Manuel Novoa III [Fri, 20 Dec 2002 21:52:24 +0000 (21:52 -0000)]
Add a target so that people can download and use pregenerated locale data
files instead of generating approx 40Mb of glibc locales to get the 300+
locales currently supported.
Manuel Novoa III [Fri, 20 Dec 2002 19:26:35 +0000 (19:26 -0000)]
The big thing is locale dependent collation support.
Also added outdigit support and (legacy) YESSTR/NOSTR support.
Eric Andersen [Thu, 19 Dec 2002 21:23:42 +0000 (21:23 -0000)]
Thanks to Siim Vahtre, add mplayer
Miles Bader [Wed, 18 Dec 2002 02:16:29 +0000 (02:16 -0000)]
Initial checkin
Miles Bader [Wed, 18 Dec 2002 02:15:02 +0000 (02:15 -0000)]
whitespace
Miles Bader [Wed, 18 Dec 2002 02:13:16 +0000 (02:13 -0000)]
(SSRC): Rename longjmp.S to __longjmp.S
(CSRC): Add clone.c
Miles Bader [Wed, 18 Dec 2002 02:11:58 +0000 (02:11 -0000)]
Rename longjmp.S to __longjmp.S
Remove extra weak symbols defined by ../common/longjmp.c
Eric Andersen [Tue, 17 Dec 2002 07:28:28 +0000 (07:28 -0000)]
Patch from Stefan Allius. Only build config stuff when needed.
Eric Andersen [Tue, 17 Dec 2002 01:55:53 +0000 (01:55 -0000)]
Dop not restrict the IFTODT() and DTTOIF() macros when
_DIRENT_HAVE_D_TYPE is not defined.
-Erik
Eric Andersen [Fri, 13 Dec 2002 22:43:38 +0000 (22:43 -0000)]
Only build the ncurses stuff when it is needed, based on a
patch from Stefan Allius (though the extra/config/Makefile
rework is mine),
-Erik
Eric Andersen [Fri, 13 Dec 2002 04:40:10 +0000 (04:40 -0000)]
Move the soft float check
Eric Andersen [Thu, 12 Dec 2002 22:22:03 +0000 (22:22 -0000)]
Rework things such that staticly linked applications can use
dlopen and have it be successful. This required moving some
things out of ldso.c into readelflib1.c, and directly including
hash.c and readelflib1.c into dlib.c when building the static
version of the library.
-Erik
Eric Andersen [Thu, 12 Dec 2002 22:03:49 +0000 (22:03 -0000)]
Use crt1.o when ctor/dtor support is enabled
Eric Andersen [Thu, 12 Dec 2002 21:58:41 +0000 (21:58 -0000)]
When -shared is specified, meaning they wish to create a shared
library, we need to disable adding start files (i.e. crt0) since
it isn't supposed to be creating an executable, just a shared lib.
-Erik
Eric Andersen [Thu, 12 Dec 2002 19:06:30 +0000 (19:06 -0000)]
Oops. Patch was vs 5beta.
Eric Andersen [Thu, 12 Dec 2002 19:02:29 +0000 (19:02 -0000)]
It seems SCO puts touch in a wierd place
Eric Andersen [Thu, 12 Dec 2002 10:14:19 +0000 (10:14 -0000)]
Based on discussions with Stefan Allius, change it so that we always
build a crt0.o and a crt1.o. crt1.o will support ctors and dtors if
such support is enabled. One more gratuitous toolchain support issue
is thereby removed...
-Erik
Eric Andersen [Thu, 12 Dec 2002 09:16:53 +0000 (09:16 -0000)]
Add portmap and patch from Steven Elling
Eric Andersen [Thu, 12 Dec 2002 08:27:57 +0000 (08:27 -0000)]
Fix typo noticed by V.Radhakrishnan
Eric Andersen [Thu, 12 Dec 2002 03:10:14 +0000 (03:10 -0000)]
Add in a stub libnsl library to make stupid configure scripts
(i.e. openssh) do the right thing when used with uClibc's gcc
wrapper (which does not currently prevent system libraries from
leaking into the link).
-Erik
Eric Andersen [Thu, 12 Dec 2002 03:08:25 +0000 (03:08 -0000)]
Fix broken ignore file
Eric Andersen [Thu, 12 Dec 2002 01:56:48 +0000 (01:56 -0000)]
Avoid silly namespace pollution
Eric Andersen [Wed, 11 Dec 2002 20:44:48 +0000 (20:44 -0000)]
Remove a stray ')'
Manuel Novoa III [Wed, 11 Dec 2002 01:40:36 +0000 (01:40 -0000)]
Remove trailing comma from enum list as a nicety for older compilers.
Eric Andersen [Mon, 9 Dec 2002 00:06:32 +0000 (00:06 -0000)]
Cleanup the case when using the system shared lib loader
-Erik
Tobias Anderberg [Thu, 5 Dec 2002 17:37:44 +0000 (17:37 -0000)]
Added CPU_CFLAGS and CPU_LDFLAGS for cris.
Added additional CFLAGS for cris when compiling with PIC.
Tobias Anderberg [Thu, 5 Dec 2002 17:35:47 +0000 (17:35 -0000)]
Removed redundant definition of __USE_WEAK_ALIASES.
Added option for selecting cris architecure type. For now, only CRIS is
available.
Added a default configuration for cris.
Eric Andersen [Wed, 4 Dec 2002 22:40:20 +0000 (22:40 -0000)]
Change some variable names so we are more consistant with what
the linux kernel uses.
-Erik
Eric Andersen [Wed, 4 Dec 2002 20:54:08 +0000 (20:54 -0000)]
I forgot to kill these files in my last commit.
-Erik
Eric Andersen [Wed, 4 Dec 2002 20:52:25 +0000 (20:52 -0000)]
This is based on a patch posted to lkml by Petr Baudis on 23 Nov, which was
then considerably hacked up by me. This eliminates the separate lxdialog and
instead directly uses the lxdialog internals. This allows 'make menuconfig'
to be much faster.
-Erik
Eric Andersen [Wed, 4 Dec 2002 18:27:15 +0000 (18:27 -0000)]
Implement the rest of the missing include/net/if.h interfaces
-Erik
Eric Andersen [Wed, 4 Dec 2002 05:47:30 +0000 (05:47 -0000)]
Looks like this is in fact needed to properly debug dynamically
linked stuff, so put it back but add a check for NULL
Eric Andersen [Wed, 4 Dec 2002 05:30:38 +0000 (05:30 -0000)]
Override optimization settings when debugging
Eric Andersen [Wed, 4 Dec 2002 02:34:26 +0000 (02:34 -0000)]
Fix the other instance of getcwd
Eric Andersen [Wed, 4 Dec 2002 00:21:49 +0000 (00:21 -0000)]
For now, always claim we have exactly one cpu. It should
generally be the truth...
Eric Andersen [Wed, 4 Dec 2002 00:08:52 +0000 (00:08 -0000)]
Properly allocate memory when size is 0, but so is buf
Eric Andersen [Tue, 3 Dec 2002 23:12:09 +0000 (23:12 -0000)]
Make the arm cpu-specific optimizations work properly
Eric Andersen [Mon, 2 Dec 2002 18:44:03 +0000 (18:44 -0000)]
Don't leak outside of the target area when installing things.
-Erik
Eric Andersen [Mon, 2 Dec 2002 17:55:30 +0000 (17:55 -0000)]
Spelling fixes
-Erik
Manuel Novoa III [Mon, 2 Dec 2002 16:34:56 +0000 (16:34 -0000)]
Cut and paste error.
Manuel Novoa III [Mon, 2 Dec 2002 16:24:08 +0000 (16:24 -0000)]
Forgot one...
Manuel Novoa III [Mon, 2 Dec 2002 16:20:50 +0000 (16:20 -0000)]
Add hsearch and hsearch_r. Consolidate all functions prototyped in
search.h in one directory.
David McCullough [Sun, 1 Dec 2002 23:32:17 +0000 (23:32 -0000)]
If the wait failed in pclose it would return a random status code
instead of -1 as expected.
David Schleef [Sun, 1 Dec 2002 00:57:23 +0000 (00:57 -0000)]
Make ldd work even more like GNU ldd by appending dummy load addresses
Eric Andersen [Fri, 29 Nov 2002 12:41:38 +0000 (12:41 -0000)]
I forgot to include features.h