summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* scanf %lc,%ls,%l[ would always set mb_fail on eof or error,Manuel Novoa III2003-08-181-8/+22
| | | | | even when just starting a new mb char. wscanf would incorrectly unget in certain situations.
* _wchar_utf8sntowcs and _wchar_wcsntoutf8s now set errno if EILSEQ.Manuel Novoa III2003-08-181-0/+7
|
* Fix a cut-and-paste error. Collation should be working again.Manuel Novoa III2003-08-171-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 in a MALLOC_GLIBC_COMPAT option to let people decide if theyEric Andersen2003-08-082-0/+10
| | | | want glibc style malloc(0) behavior
* 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
* Update inet_aton() to support an undocumented feature of inet_aton,Eric Andersen2003-08-041-7/+13
| | | | | | | | per UNIX Network Programming, Volume 1, second edition: An undocumented feature of inet_aton is that if addrptr is a null pointer, the function still performs it validation of the input string, but does not store the result.
* 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-0134-2166/+6903
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bug fix from Peter Kjellerstedt <peter.kjellerstedt@axis.com>. vfscanf wasManuel Novoa III2003-07-171-1/+9
| | | | | not setting the FILE bufread member to flag the end of the buffer. Also, do not set bufgetc member if getc macro support is disabled.
* Patch from Peter Kjellerstedt to make it simpler for arches to specifyEric Andersen2003-07-151-1/+1
| | | | either -fPIC or -fpic
* Yikes! This was doing another lock instead of unlocking the stream.Manuel Novoa III2003-07-141-1/+1
|
* 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
* Yield to yet another glibc-ism and add __prognameEric Andersen2003-06-301-0/+3
|
* Fix a couple of typosEric Andersen2003-06-271-2/+1
|
* ret could have been used uninitialized in one caseEric Andersen2003-06-272-2/+2
|
* Revenge of the TypoEric Andersen2003-06-271-1/+1
|
* Yet more cleanup for the reentrant pwd/grp functions so theyEric Andersen2003-06-279-20/+55
| | | | should now actually be doing the right thing
* Fixup errno handlingEric Andersen2003-06-2713-55/+93
| | | | -Erik
* Do not let isatty mess up errnoEric Andersen2003-06-271-3/+11
|
* 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
|
* Per a patch from Rob McMullen, add getprotoent_r, getprotobyname_r,Eric Andersen2003-06-271-20/+74
| | | | and getprotobynumber_r
* Change 'undefined behavior' of fflush() on readonly or reading streamsManuel Novoa III2003-06-241-8/+18
| | | | | | | to match that of current glibc; i.e. don't do anything and return success. Apparently, php calls fflush() on a file opened as readonly before trying to read. Eventually I'll add some config options to flag this and several other instances of nonportable code.
* Optionally support the struct tm extension fields.Manuel Novoa III2003-06-172-12/+40
| | | | | | | Add a few misc functions mentioned in time.h. Revert davidm's change regarding using a define for the "/etc/TZ" path, as this is eventually meant to be a configurable extension and not unconditionally supported.
* Patch from Ronald Wahl fixing an IPV6 specific problemEric Andersen2003-06-171-2/+2
| | | | with getaddrinfo().
* 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
* Add memmem().Manuel Novoa III2003-06-162-1/+35
|
* 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
* Patch from Peter S. Mazinger to make the get-needed-libgcc-objectsEric Andersen2003-06-051-2/+3
| | | | script work with newer binutils versions.
* 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