OSDN Git Service
Tobias Anderberg [Mon, 23 Sep 2002 10:37:16 +0000 (10:37 -0000)]
Removed redundant code. Same thing exist in sys/syscalls.h so include that
instead.
Tobias Anderberg [Fri, 20 Sep 2002 15:19:28 +0000 (15:19 -0000)]
Build libpthread now that the CRIS as support for it!
Tobias Anderberg [Fri, 20 Sep 2002 15:17:16 +0000 (15:17 -0000)]
* Added clone() system call.
* Proper implementation of bits/syscalls.h, no cheating by just including
<asm/unistd.h>.
* Proper implementation of syscall.S, it no longer contains the
__syscall_error, instead it contains code which makes syscall(nr,...) a
system call.
* Added sysdep.S which contains the code for __syscall_error.
* Added some macros to sysdep.h.
* Added sys/procfs.h, which is needed when compiling with thread support.
* Removed unused syscall-cris.c.
Tobias Anderberg [Fri, 20 Sep 2002 15:09:58 +0000 (15:09 -0000)]
Added pthread support for CRIS.
Tobias Anderberg [Fri, 20 Sep 2002 11:12:13 +0000 (11:12 -0000)]
Removed unused file
Manuel Novoa III [Thu, 19 Sep 2002 17:34:34 +0000 (17:34 -0000)]
Add gnu obstack support. I still need to implement the obstack_printf
and obstack_vprintf, but at least now the reiserfsprogs build.
Manuel Novoa III [Thu, 19 Sep 2002 17:31:15 +0000 (17:31 -0000)]
Add SUSv3 function getsubopt.
Manuel Novoa III [Thu, 19 Sep 2002 17:30:05 +0000 (17:30 -0000)]
Hide my personal #warning reminders. Add __wcschrnul, rename strchrnul
to __strchrnul, and add weak aliases for them.
Tobias Anderberg [Thu, 19 Sep 2002 13:43:05 +0000 (13:43 -0000)]
* Changed paramater names to match their register, i.e. __a -> __r10.
* Do not clobber things that are specified as outputs.
David McCullough [Tue, 17 Sep 2002 02:08:25 +0000 (02:08 -0000)]
Fixup thread support for the 5200/5307 coldfire platforms.
David McCullough [Tue, 17 Sep 2002 01:43:35 +0000 (01:43 -0000)]
Add in clone and make the assembler PIC/msep-data friendly.
David McCullough [Tue, 17 Sep 2002 01:41:54 +0000 (01:41 -0000)]
Fixup JMPBUF_UNWINDS so that is will compile if used :-)
David McCullough [Tue, 17 Sep 2002 01:40:47 +0000 (01:40 -0000)]
Fix a memory corruption bug.
With gcc, sizeof on a sized array argument to a function returns 4, not
16 as was expected in this code. This caused inet_ntoa to overwrite
whatever came before the buffer in the BSS by up to 12 bytes.
Eric Andersen [Mon, 16 Sep 2002 19:28:08 +0000 (19:28 -0000)]
Add url
Eric Andersen [Mon, 16 Sep 2002 19:24:29 +0000 (19:24 -0000)]
Update index
Eric Andersen [Mon, 16 Sep 2002 15:39:55 +0000 (15:39 -0000)]
Use __UCLIBC_HAVE_LFS__ not __USE_LARGEFILE64 to decide if
64 bit interfaces should be used.
-Erik
Tobias Anderberg [Mon, 16 Sep 2002 08:18:46 +0000 (08:18 -0000)]
* Added semi-support for version scripts. If sysdeps/linux/<arch>/libc.map
exists read it and include it when linking.
* Add LIBGCC when linking libc.
Tobias Anderberg [Mon, 16 Sep 2002 08:16:08 +0000 (08:16 -0000)]
* Updated for the CRIS port.
* Added variable LIBGCC which is included when linking libc.so. Arch
specific linker options go into LIBGCC_CFLAGS defined in Config.<arch>.
Tobias Anderberg [Mon, 16 Sep 2002 08:13:37 +0000 (08:13 -0000)]
Configuration for the CRIS port.
Tobias Anderberg [Mon, 16 Sep 2002 08:12:33 +0000 (08:12 -0000)]
Updated for the CRIS port.
Tobias Anderberg [Mon, 16 Sep 2002 08:11:43 +0000 (08:11 -0000)]
Initial version of the dynamic linker code for the CRIS port.
Tobias Anderberg [Mon, 16 Sep 2002 08:09:21 +0000 (08:09 -0000)]
Added cris to ALL_SUBDIRS
Tobias Anderberg [Mon, 16 Sep 2002 08:08:37 +0000 (08:08 -0000)]
Initial version of the CRIS port.
Eric Andersen [Mon, 16 Sep 2002 06:32:16 +0000 (06:32 -0000)]
Fix stupid typo noticed by John Mullin <john.mullin@homenetcomm.com>
Eric Andersen [Sat, 14 Sep 2002 19:00:07 +0000 (19:00 -0000)]
Fix a thinko -- I used the wrong symbol to check for LFS support.
-Erik
Miles Bader [Fri, 13 Sep 2002 07:45:50 +0000 (07:45 -0000)]
(__heap_check_failure): New function.
(__heap_check): Add more checks. Use `__heap_check_failure'.
Tobias Anderberg [Thu, 12 Sep 2002 15:09:53 +0000 (15:09 -0000)]
Support LD_DEBUG=all
Eric Andersen [Thu, 12 Sep 2002 09:55:06 +0000 (09:55 -0000)]
Some minor C++ support updates
Eric Andersen [Thu, 12 Sep 2002 04:37:56 +0000 (04:37 -0000)]
Add missing _dl_dprintf arguments, as noticed by Tero Lyytik�inen <tero@paravant.fi>
"Steven J. Hill" [Wed, 11 Sep 2002 17:00:51 +0000 (17:00 -0000)]
Forgot one more #ifdef related to MIPS soft floating point.
Eric Andersen [Tue, 10 Sep 2002 21:01:59 +0000 (21:01 -0000)]
Don't run floating point opcodes when code is compiled -msoft-float
-Erik
"Steven J. Hill" [Tue, 10 Sep 2002 19:50:47 +0000 (19:50 -0000)]
Don't unconditionally save/restore FP registers, we might be doing soft
floating point. Thanks to Jay Carlson.
Eric Andersen [Tue, 10 Sep 2002 05:53:30 +0000 (05:53 -0000)]
Fix some locking problems noted by Manuel. __getgrent() was always
called under lock, but the callers did not share the same locks...
-Erik
Eric Andersen [Tue, 10 Sep 2002 05:37:10 +0000 (05:37 -0000)]
Patch from Tiago Marques <tmarques@viaconnect.inf.br> -- fall back to
using SOCK_STREAM if SOCK_DGRAM fails.
-Erik
Eric Andersen [Tue, 10 Sep 2002 05:21:03 +0000 (05:21 -0000)]
As noted by Bill Huang <billhuang@redsonic.com>, the gid and uid
were reversed in putpwent(). Oops.
-Erik
Manuel Novoa III [Mon, 9 Sep 2002 21:43:26 +0000 (21:43 -0000)]
Remove malloc_simple from subdir list.
Manuel Novoa III [Mon, 9 Sep 2002 21:42:27 +0000 (21:42 -0000)]
Clean up a warning.
"Steven J. Hill" [Mon, 9 Sep 2002 19:41:33 +0000 (19:41 -0000)]
Fixed compile bugs having to do with 64-bit filesystem operations that
need to be disabled when 'DOLFS' is disabled.
Eric Andersen [Mon, 9 Sep 2002 11:37:36 +0000 (11:37 -0000)]
Fixup multi-line string
-Erik
Miles Bader [Mon, 9 Sep 2002 07:40:07 +0000 (07:40 -0000)]
(realloc): Record the correct size in the malloc header in the case
where we extended the existing allocation, and got back more than we
asked for from the heap.
Manuel Novoa III [Fri, 6 Sep 2002 15:34:42 +0000 (15:34 -0000)]
Patch from Tero_Lyytik�inen <tero@paravant.fi> to fix bug in matchchar
case.
Manuel Novoa III [Fri, 6 Sep 2002 15:25:18 +0000 (15:25 -0000)]
Add #include <malloc.h> to silence warning.
Miles Bader [Fri, 6 Sep 2002 04:59:34 +0000 (04:59 -0000)]
Initial checkin.
Miles Bader [Fri, 6 Sep 2002 04:58:53 +0000 (04:58 -0000)]
Update debugging hooks.
Eric Andersen [Fri, 6 Sep 2002 00:25:50 +0000 (00:25 -0000)]
Add in some weak aliases to allow C99 apps to compile w/o defining
_ISOC99_SOURCE, per what glibc does.
-Erik
Tobias Anderberg [Thu, 5 Sep 2002 13:41:19 +0000 (13:41 -0000)]
Fixed another address alignment where a pagesize of 4k were assumed.
Eric Andersen [Thu, 5 Sep 2002 05:54:26 +0000 (05:54 -0000)]
split-out memalign and realloc
-Erik
Miles Bader [Thu, 5 Sep 2002 05:29:49 +0000 (05:29 -0000)]
Change <bits/syscall.h> to <bits/sysnum.h>.
"Steven J. Hill" [Wed, 4 Sep 2002 21:56:24 +0000 (21:56 -0000)]
'syscall' now properly works for MIPS.
Eric Andersen [Wed, 4 Sep 2002 20:44:36 +0000 (20:44 -0000)]
Make sjhill happy, and revive memalign
-Erik
"Steven J. Hill" [Wed, 4 Sep 2002 20:15:39 +0000 (20:15 -0000)]
Fixed 'struct ipc_perm' and 'struct msqid_ds' members to allow the Linux
Test Project to compile as well as be consistent with the architecture
specific files. Maybe eventually the architecture specific files could
be removed all together.
"Steven J. Hill" [Wed, 4 Sep 2002 20:12:44 +0000 (20:12 -0000)]
Per discussions with Erik, 'valloc.c' should be built on top of whichever
memory allocator you choose. Unfortunately, the 'malloc-930716' needs a
fair amount of work before it is functional. For now, changes have been
made to add the 'valloc' call and it works properly with the plain 'malloc'
allocator.
"Steven J. Hill" [Wed, 4 Sep 2002 14:17:22 +0000 (14:17 -0000)]
Added 'valloc' back in. Ok, Erik can smack me now.
"Steven J. Hill" [Wed, 4 Sep 2002 02:48:29 +0000 (02:48 -0000)]
Add syscalls: modify_ldt _sysctl setresuid getresuid setresgid getresgid
"Steven J. Hill" [Wed, 4 Sep 2002 02:45:42 +0000 (02:45 -0000)]
Added function 'mkdtemp' for Linux Test Project.
"Steven J. Hill" [Wed, 4 Sep 2002 02:44:32 +0000 (02:44 -0000)]
Added function 'get_current_dir_name' for Linux Test Project. Tested and
works identically to function in glibc.
Miles Bader [Wed, 4 Sep 2002 02:11:08 +0000 (02:11 -0000)]
(free):
Update debug statement.
Update to use __heap_delete and __heap_is_empty.
Miles Bader [Wed, 4 Sep 2002 02:09:13 +0000 (02:09 -0000)]
(__heap_delete): Renamed from `__heap_unlink_free_area'.
(__heap_free_area_alloc): Use __heap_delete.
(__heap_is_empty): New macro.
Eric Andersen [Tue, 3 Sep 2002 22:01:05 +0000 (22:01 -0000)]
Support fstatvfs64 and statvfs64
-Erik
Eric Andersen [Tue, 3 Sep 2002 21:58:19 +0000 (21:58 -0000)]
Oops. Turns out I broke statvfs() and fstatvfs() back in February,
when I accidentally changed them unconditionally into the 64 bit
versions... Oops.
-Erik
Miles Bader [Fri, 30 Aug 2002 09:15:48 +0000 (09:15 -0000)]
Redo stat structures (kernel changed too).
Miles Bader [Fri, 30 Aug 2002 09:14:28 +0000 (09:14 -0000)]
Add __kernel_ino64_t.
Make __kernel_loff_t unconditional.
Aaron Lehmann [Fri, 30 Aug 2002 07:34:29 +0000 (07:34 -0000)]
CFLAGS+=-D__FORCE_NOGLIBC, not CFLAGS+=__FORCE_NOGLIBC
Change a than to then
Miles Bader [Fri, 30 Aug 2002 06:00:00 +0000 (06:00 -0000)]
Doc fix.
Miles Bader [Fri, 30 Aug 2002 05:59:09 +0000 (05:59 -0000)]
(__heap_free): Tighten up the inner loop, and make the code more readable.
Miles Bader [Fri, 30 Aug 2002 05:15:31 +0000 (05:15 -0000)]
Use `likely' & `unlikely' instead of the `__malloc_'-prefixed versions.
Miles Bader [Fri, 30 Aug 2002 05:14:26 +0000 (05:14 -0000)]
(likely, unlikely): New macros.
Miles Bader [Fri, 30 Aug 2002 05:13:57 +0000 (05:13 -0000)]
(likely, unlikely): New macros.
(__malloc_likely, __malloc_unlikely): Macros removed.
Eric Andersen [Wed, 28 Aug 2002 19:58:21 +0000 (19:58 -0000)]
Fix a silly bug notices by Ronald Wahl <rwa@peppercon.com>
David McCullough [Wed, 28 Aug 2002 14:16:30 +0000 (14:16 -0000)]
If the initfini.pl script changes, regenerate the crt[in].S files.
Eric Andersen [Wed, 28 Aug 2002 03:34:38 +0000 (03:34 -0000)]
Fix broken getpriority syscall, per email from Marshall M. Midden
-Erik
Eric Andersen [Wed, 28 Aug 2002 00:59:09 +0000 (00:59 -0000)]
fix grammar
Eric Andersen [Tue, 27 Aug 2002 23:27:47 +0000 (23:27 -0000)]
Final update
David McCullough [Tue, 27 Aug 2002 23:11:13 +0000 (23:11 -0000)]
Somehow the bit of code that add the offset of envp to argv got lost
and envp was a very small number and not an address. I think this fixes
most of the SH platform.
Eric Andersen [Tue, 27 Aug 2002 22:04:31 +0000 (22:04 -0000)]
update for release
Eric Andersen [Tue, 27 Aug 2002 21:55:51 +0000 (21:55 -0000)]
Update changelog for release
Manuel Novoa III [Tue, 27 Aug 2002 19:42:55 +0000 (19:42 -0000)]
Obligatory forgotten file... sys_errlist garbage.
Eric Andersen [Tue, 27 Aug 2002 19:38:14 +0000 (19:38 -0000)]
Semonstrate a problem where weak symbols referenced in shared libs are not
being overridden when those same symbols _are_ overridden by other shared libs
in the main app. Ick.
-Erik
Eric Andersen [Tue, 27 Aug 2002 19:31:31 +0000 (19:31 -0000)]
Make sure that bits/syscalls.h always includes bits/syscall.h
-Erik
Manuel Novoa III [Tue, 27 Aug 2002 19:23:02 +0000 (19:23 -0000)]
Reimplement sys_errlist[] so that it works on sparc, alpha, and mips.
In my opinion, this is a complete waste of good memory and is only
done to avoid the anticipated whining by people who think this libary
is named uCglibc. At some point this may become a configurable option.
And even then, it may not be available in all configs... for instance
when system error messages become locale-dependent.
Manuel Novoa III [Tue, 27 Aug 2002 18:16:18 +0000 (18:16 -0000)]
Make this as glibc-like as possible while avoiding the fileutils
problem. glibc hides the DT_* enum values unless __USE_BSD is defined.
David McCullough [Tue, 27 Aug 2002 06:28:30 +0000 (06:28 -0000)]
Fix a delay slot problem, this gets some apps working on SH, a good number
are still seg-faulting.
Eric Andersen [Tue, 27 Aug 2002 01:47:10 +0000 (01:47 -0000)]
Move the _DIRENT_HAVE_D_TYPE test to avoid breaking fileutils
-Erik
Eric Andersen [Tue, 27 Aug 2002 01:29:54 +0000 (01:29 -0000)]
No need to hide this stuff when _DIRENT_HAVE_D_TYPE is not
defined... Nothing too sacred in there and it can be used
for other things...
-Erik
David McCullough [Tue, 27 Aug 2002 01:20:21 +0000 (01:20 -0000)]
Added __kernel_fsid_t to satisfy some apps that need it.
Definitions taken from 2.4 kernel sources for each of the platforms.
Eric Andersen [Mon, 26 Aug 2002 18:46:06 +0000 (18:46 -0000)]
Implement missing readdir64_r.c
-Erik
Manuel Novoa III [Mon, 26 Aug 2002 18:06:53 +0000 (18:06 -0000)]
sparc, alpha, and mips have different errno values than the other
supported platforms. Adjust _susv3_strerror_r function to deal with
this. Also fix an error in strerror() wrt invalid errnos.
NOTE: sys_errlist and sys_nerr are no longer supported!!!
Eric Andersen [Mon, 26 Aug 2002 17:18:02 +0000 (17:18 -0000)]
Oops. I got the include guard wrong. Fix it per current
value in include/asm-v850/posix_types.h on cvs.uclinux.org
-Erik
Eric Andersen [Mon, 26 Aug 2002 17:13:30 +0000 (17:13 -0000)]
Make bits/kernel_types.h include guard names match the include
guard names used by the kernel's asm/posix_types.h to eliminate
gratuitous conflicts and let our file win over the very-likely-
to-be-broken kernel header file.
-Erik
Miles Bader [Mon, 26 Aug 2002 07:03:33 +0000 (07:03 -0000)]
Initial checkin.
Eric Andersen [Sun, 25 Aug 2002 22:22:30 +0000 (22:22 -0000)]
Update version to 0.9.15 in preparation for making a release
-Erik
Manuel Novoa III [Sun, 25 Aug 2002 22:11:29 +0000 (22:11 -0000)]
Changed fclose behavior when custom streams were enabled. Previously,
the cookie pointer was set to NULL as a debugging aid. However,
some of the perl 5.8 test rely on being able to close stderr and
still try writing to it. So now, the cookie pointer and handler
function pointers are set to that it is a "normal" file with a
file descriptor of -1.
Note: The cookie pointer is reset to NULL if the FILE struct is
free'd by fclose.
Eric Andersen [Sun, 25 Aug 2002 22:04:43 +0000 (22:04 -0000)]
Kill the HAS_LONG_LONG option. It really did not make a lot of
sense to exclude it, gcc always supports long long, and we never
fully excluded long long anyways (off64_t for example).
-Erik
Eric Andersen [Sun, 25 Aug 2002 21:21:24 +0000 (21:21 -0000)]
Use the kernel version of struct msqid_ds directly, since we don't
do any of that silly translating...
-Erik
Eric Andersen [Sun, 25 Aug 2002 00:22:16 +0000 (00:22 -0000)]
Finish off the bits/kernel_stat.h cleanup for proper
__USE_FILE_OFFSET64 handling.
-Erik
Eric Andersen [Sun, 25 Aug 2002 00:08:23 +0000 (00:08 -0000)]
Make shm stuff work properly.
-Erik
Eric Andersen [Sun, 25 Aug 2002 00:06:10 +0000 (00:06 -0000)]
ignore generated stuff
Manuel Novoa III [Sat, 24 Aug 2002 21:38:44 +0000 (21:38 -0000)]
Tweak things so that struct stat and struct stat64 (seem to) work on
i386. This is for Erik to look at wrt the other archs.
Eric Andersen [Sat, 24 Aug 2002 21:23:58 +0000 (21:23 -0000)]
Simple shared memory test
Eric Andersen [Sat, 24 Aug 2002 01:35:44 +0000 (01:35 -0000)]
Avoid `ECANCELED' redefined on mips
-Erik