summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
AgeCommit message (Collapse)Author
2003-09-24Hm. Keep using crt0.c for now. My fever-hack of crt0.S didn't do theTobias Anderberg
expected thing. A so called "D'oh!".
2003-09-21Fix "subst -g,," problem for SAFECFLAGS.Manuel Novoa III
2003-09-19Added assembler version of startup code. Fix Makefile so it uses the newTobias Anderberg
code.
2003-09-17Fix fcntl64 when UCLIBC_HAS_LFS is enabled, but __NR_fcntl64Eric Andersen
is not defined.
2003-09-16This should enabled building of uClibc locale support when using uClibc itself.Manuel Novoa III
Sorry I didn't test this before the release. Please remember that the locale data generation tools are not very robust, so doing something like disabling 8-bit codeset support is likely to break things. As it stands, UTF-8 support is required, but I'm not sure I test for that. Also, you will notice a difference in the locale data generated by uClibc verses glibc. That's because the bg_BG locale specifies use of grouping in LC_NUMERIC, but supplies no grouping char. The uClibc locale code tests for and works around this (at the moment) by disabling grouping. But the result is slightly different data which ripples throughout the rest of the tables.
2003-09-09Make sure that __syscall_fcntl is extern when LFSEric Andersen
is disabled
2003-09-08Oops! I broke pread on mips with my last update. ThisEric Andersen
fixes it again so it both compiles and works, -Erik
2003-09-08Fix a trivial compile problemEric Andersen
2003-09-08Add back in table-less ctype funcs for those interested in minimizingManuel Novoa III
static build sizes and not needing wchar support. Add in a SUSv3 getopt as an option for those not needing gnu getopt. Again, mainly for the static linking crowd.
2003-09-08Use __libc_fork for the uClinux fork stubEric Andersen
2003-09-08mjn3 pointed out that my brain was not in gear....Eric Andersen
2003-09-07A few minor syscall cleanupsEric Andersen
2003-09-07Some updates from glibc. mjn3 reports this fixes profilingEric Andersen
on i386, at least, so seems like a good thing.
2003-09-07i386/mcount.S expects to call __mcount_internal with the 2 args passedManuel Novoa III
in registers. NOTE: i386/mcount.S really needs to be rewritten. It currently won't work for non-PIC builds.
2003-09-07Remove profil.c, since it is constained within gmon.c.Manuel Novoa III
2003-09-07Fix some more problems found by the ltpEric Andersen
2003-09-06Add an implementation of profil(), based on the version fromEric Andersen
glibc, with several changes for use in uClibc.
2003-09-06Fix numerous problems with both getcwd implementations.Eric Andersen
-Erik
2003-08-28Create a typedef for the ctype bitmask table entries.Manuel Novoa III
Hack a fix for ctype support of 8-bit codeset locales. Note: toupper/tolower mappings do not handle the special cases for the tr_TR and az_AZ locales, since the wide versions currently handle them either. That will be addressed when I rewrite the data generation tools and the libc locale code.
2003-08-27Added cris to "define list".Tobias Anderberg
2003-08-27Cosmetic changes.Tobias Anderberg
2003-08-24Fix a few bugs in the new extended locale functions.Manuel Novoa III
Move stub gettext functions to a stub libintl to make switching in gnu gettext easier. Also add a few gnu-isms. Change to using hidden names with global weak aliases for the extended locale functions, as expected by libstd++. Slightly rework the locale data generation stuff to allow pregenerated locale data to be used with buildroot.
2003-08-22Don't use linux/sysctl.h and instead locally define struct __sysctl_args.Eric Andersen
2003-08-22Patch from Atsushi Nemoto, who writes:Eric Andersen
I found that current pread/pwrite is broken on mips. On mips, kernel needs 6 arguments for pread/pwrite system call. (3 words for first 3 arguments + 1 padding word + 2 words for last 64bit argument). Also, mips64 kernel needs just 4 arguments so no wrapper will be required. This is a patch against 0.9.20.
2003-08-21Add missing semicolonsEric Andersen
2003-08-20Correct included header for ustat.Manuel Novoa III
2003-08-14Use the common version for bits/sem.h. Fixup the types toEric Andersen
match the kernel type exactly.
2003-08-13Patch from Paul Mundt adding uClibc sh64 support:Eric Andersen
Here's a patch that implements the beginnings of a rudimentary sh64 port. So far, this only works static, as I haven't done any of the ldso work yet. I've also not touched the libpthread stuff yet either, so that's also disabled for now. This port was based off of some work that Sean McGoogan at SuperH did for his initial port, but the this patch doesn't carry over too much from there (basically the libc/sysdeps/linux/sh64/Makefile (or rather, parts of it), the setjmp/longjmp stuff (which I had to rewrite portions of it to work with the new toolchains), etc.). However, for static, everything appears to work correcly, at least in a hello world type application.
2003-08-10Add support for the ulimit syscallEric Andersen
2003-08-08Add support for personality(), prctl(), ustat(), and ulimit()Eric Andersen
syscalls, which had managed to stay unimplemented thus far. -Erik
2003-08-05Patch from David Wuertele to prevent "conflicts with new declaration with CEric Andersen
linkage" problems with C++
2003-08-05Zou WeiJun noticed a type breaking the stime syscallEric Andersen
-Erik
2003-08-04For sparc, powerpc, mips, and alpha we should also use theEric Andersen
common ipc.h header and struct definitions. -Erik
2003-08-01Replace 'new' in a prototype to avoid c++ problems.Manuel Novoa III
2003-08-01Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III
Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration.
2003-08-01Remove the arch specific shm.h and use the fixed up commonEric Andersen
one which now uses the kernel structs -Erik
2003-07-15Patch from Peter Kjellerstedt to make it simpler for arches to specifyEric Andersen
either -fPIC or -fpic
2003-07-03As noted by Felix Radensky back on 16 Mar:Eric Andersen
I've tried several times to compile uClibc with soft-float (both gcc-3.2.2 toolchain and wrapper), but applications compiled with uClibc always failed with "Invalid instruction". So I ended up disabling floating point at all and this works well. I also has no problem with glibc from Monta Vista, which is compiled with soft-float. My processor is PowerPC 405GP. Maybe the problem is in FP() macro definition in libc/sysdeps/linux/powerpc/setjmp.S and libc/sysdeps/linux/powerpc/__longjmp.S #ifdef __UCLIBC_HAS_FLOATS__ #define FP(x...) x #else #define FP(x...) #endif which should be defined as if defined __UCLIBC_HAS_FLOATS__ && ! defined __UCLIBC_HAS_SOFT_FLOAT__ #define FP(x...) x #else #define FP(x...) #endif
2003-06-27Fix a couple of typosEric Andersen
2003-06-27Revenge of the TypoEric Andersen
2003-06-27Cleanup a couple of ugly bitsEric Andersen
2003-06-27Implement mmap64 for armEric Andersen
2003-06-27add mmap64 for i386Eric Andersen
2003-06-27oops. Fix the name so it is "mmap64", not "__mmap64"Eric Andersen
2003-06-27Actually, some arches do support _syscall6, so implement a generic versionEric Andersen
for them... -Erik
2003-06-27Mention that the common mmap64 is a stub and must be overriddenEric Andersen
on a per arch basis using platform specific code
2003-06-27Add missing madvise syscallEric Andersen
2003-06-16As noted by Peter S. MazingerEric Andersen
After removal of stropts.h none of the files references bits/stropts.h, so it can be removed. Peter
2003-06-15Implement syscall() for powerpc. Fixup syscall code soEric Andersen
it compiles properly with gcc 3.3. -Erik
2003-06-11Fix arm syscall implementation so it does not blow chunks with gcc 3.3Eric Andersen
-Erik