summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a few bugs in the new extended locale functions.Manuel Novoa III2003-08-241-4/+7
| | | | | | | | | 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.
* Don't use linux/sysctl.h and instead locally define struct __sysctl_args.Eric Andersen2003-08-221-1/+9
|
* Patch from Atsushi Nemoto, who writes:Eric Andersen2003-08-222-1/+95
| | | | | | | | | | | 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.
* Add missing semicolonsEric Andersen2003-08-211-2/+2
|
* Correct included header for ustat.Manuel Novoa III2003-08-201-1/+1
|
* Use the common version for bits/sem.h. Fixup the types toEric Andersen2003-08-145-351/+2
| | | | match the kernel type exactly.
* Patch from Paul Mundt adding uClibc sh64 support:Eric Andersen2003-08-1318-2/+1225
| | | | | | | | | | | | | | | | 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.
* Add support for the ulimit syscallEric Andersen2003-08-101-0/+81
|
* Add support for personality(), prctl(), ustat(), and ulimit()Eric Andersen2003-08-083-6/+38
| | | | | syscalls, which had managed to stay unimplemented thus far. -Erik
* Patch from David Wuertele to prevent "conflicts with new declaration with CEric Andersen2003-08-051-0/+4
| | | | linkage" problems with C++
* Zou WeiJun noticed a type breaking the stime syscallEric Andersen2003-08-051-1/+1
| | | | -Erik
* For sparc, powerpc, mips, and alpha we should also use theEric Andersen2003-08-044-251/+0
| | | | | common ipc.h header and struct definitions. -Erik
* Replace 'new' in a prototype to avoid c++ problems.Manuel Novoa III2003-08-011-1/+1
|
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-017-67/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove the arch specific shm.h and use the fixed up commonEric Andersen2003-08-016-496/+34
| | | | | one which now uses the kernel structs -Erik
* Patch from Peter Kjellerstedt to make it simpler for arches to specifyEric Andersen2003-07-151-1/+1
| | | | either -fPIC or -fpic
* As noted by Felix Radensky back on 16 Mar:Eric Andersen2003-07-032-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix a couple of typosEric Andersen2003-06-271-2/+1
|
* Revenge of the TypoEric Andersen2003-06-271-1/+1
|
* Cleanup a couple of ugly bitsEric Andersen2003-06-271-6/+4
|
* Implement mmap64 for armEric Andersen2003-06-272-1/+80
|
* add mmap64 for i386Eric Andersen2003-06-272-1/+113
|
* oops. Fix the name so it is "mmap64", not "__mmap64"Eric Andersen2003-06-271-2/+3
|
* Actually, some arches do support _syscall6, so implement a generic versionEric Andersen2003-06-271-7/+36
| | | | | for them... -Erik
* Mention that the common mmap64 is a stub and must be overriddenEric Andersen2003-06-271-0/+7
| | | | on a per arch basis using platform specific code
* Add missing madvise syscallEric Andersen2003-06-271-0/+6
|
* As noted by Peter S. MazingerEric Andersen2003-06-161-227/+0
| | | | | | | After removal of stropts.h none of the files references bits/stropts.h, so it can be removed. Peter
* Implement syscall() for powerpc. Fixup syscall code soEric Andersen2003-06-154-14/+61
| | | | | it compiles properly with gcc 3.3. -Erik
* Fix arm syscall implementation so it does not blow chunks with gcc 3.3Eric Andersen2003-06-112-9/+25
| | | | -Erik
* Kill the runtime fallback to fork and make it be compile timeEric Andersen2003-06-031-19/+9
|
* Fix brokenEric Andersen2003-06-031-44/+46
|
* Clone still had a few little PIC problems....Eric Andersen2003-05-301-39/+84
|
* In a number of places we erroneously used tests such as '#ifdef PIC' when weEric Andersen2003-05-308-15/+15
| | | | | | should instead have been testing for '#ifdef __PIC__'. This resulted in NON-PIC code getting mixed into the shared library. Oops!!! -Erik
* (__libc_open): Fix wacky indentation.Miles Bader2003-05-081-6/+6
|
* setjmp was trashing r12 which is bad and can cause apps to crash if they areDavid McCullough2003-05-011-3/+3
| | | | | using r12. r12 is supposed to be preserved across C function calls. r0-r7 are trashable :-)
* Some small fixups for the h8 support and add the h8s platform support.David McCullough2003-04-293-4/+18
|
* Fixup __libc_open to use varargs and match the prototype.David McCullough2003-04-291-2/+7
| | | | | On the H8 varargs are rather unusual and if you declare a function with varargs, it had better use them or it won't work.
* Fix SIGTRAP handling on arm. The defination of struct ucontext,Eric Andersen2003-04-211-8/+7
| | | | | which was copied from glibc, is wrong. So fix it. -Erik
* Konrad Taro Eisele noticed the sparc struct stat was broken.Eric Andersen2003-04-191-22/+18
| | | | Fix it.
* Patch from Liam Girdwood to fix mips profiling when usingEric Andersen2003-04-161-0/+5
| | | | newer gcc versions.
* sjhill needs to buy donuts for everyoneEric Andersen2003-03-111-1/+0
|
* Compliance with MIPS ABI and MIPS kernel changes."Steven J. Hill"2003-03-112-17/+2
|
* Patch from Stefan Allius:Eric Andersen2003-03-072-3/+7
| | | | fix a couple of gcc 3.3 compiler warnings in gmon.c
* For now, leave mmap on mips using mmap1, since mmap2 seemsEric Andersen2003-03-061-0/+5
| | | | | to have 'issues' (i.e. it doesn't work 100% properly). -Erik
* Finish off gmon based profiling for powerpcEric Andersen2003-03-063-4/+120
|
* Make profiling on arm workEric Andersen2003-03-062-2/+15
|
* Patch from Stefan Allius to finish off the last required bitsEric Andersen2003-03-063-29/+90
| | | | for gmon profiling support for the SuperH target.
* The vfork system call on powerpc seems to be completelyEric Andersen2003-03-051-3/+9
| | | | broken. Use fork instead, per glibc behavior.
* Default to using fork() for vfork() when no arch specificEric Andersen2003-03-052-1/+9
| | | | implementation of vfork is present.
* Fix compile when profiling is disabledEric Andersen2003-03-041-1/+1
|