summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* add missing prototypeEric Andersen2003-09-061-0/+2
|
* Add an implementation of profil(), based on the version fromEric Andersen2003-09-062-1/+114
| | | | glibc, with several changes for use in uClibc.
* Fix numerous problems with both getcwd implementations.Eric Andersen2003-09-061-66/+63
| | | | -Erik
* Fix errno values. Fix MALLOC_GLIBC_COMPAT handling in malloc/malloc.c,Eric Andersen2003-09-064-37/+59
| | | | | which was reversed. Provide more consistancy between implementations. Handle it when people do stupid things like malloc(-1);
* Running ltp 20030905 showed that tcsendbreak was broken.Eric Andersen2003-09-061-11/+13
| | | | This fixes it.
* Implement vsnprintf (old_vfprintf only) and vsnscanf when uClibc isManuel Novoa III2003-09-064-70/+358
| | | | | | | | configured with non-buffered stdio and non-wchar mode. Fix a couple of bugs that showed up in minimalist configurations. Update old_vfprintf to handle size qualifiers on the integer and %n conversions. It now passed the glibc printf tests with the exception of a floating point rounding difference.
* Small fix for when threading (I think) was disabled.Manuel Novoa III2003-09-061-1/+1
|
* oops. ftw would blow chunks if UCLIBC_HAS_LFS was disabled.Eric Andersen2003-09-061-4/+1
|
* fixup ftw and ftw64. Unfortunately, adding ftw64 doubles theEric Andersen2003-09-062-20/+51
| | | | size... :-(
* Fix the bugs I stupidly addedEric Andersen2003-09-063-2/+29
|
* Let people enable ftw, make glob an option, add a new "Big and Tall"Eric Andersen2003-09-061-1/+7
| | | | top level config menu.
* Add support for ftw and nftwEric Andersen2003-09-052-0/+660
|
* mjn3 noticed we were missing seed48, which was odd since we hadEric Andersen2003-09-053-1/+70
| | | | all the other *48 random functions.
* Always build _store_inttype since it is used by the new scanf.Manuel Novoa III2003-09-051-3/+3
|
* Oops... Forgot to convert this to the new floating point conversion func.Manuel Novoa III2003-09-051-6/+48
|
* Some more buildroot-motivated fixes. Avoid installing some headers, asManuel Novoa III2003-09-032-2/+6
| | | | well as stub libintl, depending on configuration.
* Hack around bg_BG bug; grouping specified but no thousands separator.Manuel Novoa III2003-09-011-0/+24
| | | | | Also, disable the locale link_warnings for now, as they generate a lot of noise when using libstd++.
* 15 retries is really rather excessive...Eric Andersen2003-09-011-1/+1
|
* Greg Nutt writes:Eric Andersen2003-09-011-2/+2
| | | | | | | | | | Attached is a patch for a bug I found in libc/termios/ttyname.c. Essentially the length of the buffer is calculated incorrectly in a strncpy call and then the null terminator is placed on the byte after the buffer. This probably cause some very strange behavior on my system (it ended up setting malloc's heapsize to zero) but may be innocuous on other systems.
* Rework a few things.Manuel Novoa III2003-09-012-5/+52
|
* Fix precision bug for %g conversion specifier when using %f style.Manuel Novoa III2003-09-011-3/+4
|
* Create a typedef for the ctype bitmask table entries.Manuel Novoa III2003-08-284-35/+142
| | | | | | | | | 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.
* Added cris to "define list".Tobias Anderberg2003-08-271-1/+1
|
* Cosmetic changes.Tobias Anderberg2003-08-273-5/+8
|
* conditionally add wordexp, in this case ripped from glibc.Eric Andersen2003-08-243-1/+2287
| | | | I hate to add this stuff, but it is specified by SuSv3...
* Fix a few bugs in the new extended locale functions.Manuel Novoa III2003-08-2413-192/+166
| | | | | | | | | 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
|
* 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
|