summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-0113-464/+1336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Optionally support the struct tm extension fields.Manuel Novoa III2003-06-172-5/+4
| | | | | | | 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.
* Add memmem().Manuel Novoa III2003-06-161-2/+0
|
* Comment out the rpl_malloc workaround. It was a good idea, but it violatesEric Andersen2003-06-141-0/+2
| | | | | namespace guarantees and conflicts with other programs that have used the AC_FUNC_MALLOC autoconf macro properly.
* The mere presence of stropts.h causes many configure scripts to erroneouslyEric Andersen2003-06-121-88/+0
| | | | | | | believe that uClibc supports STREAMS. Well, we don't. So I am hereby removing this header file, since it was empty anyways. Applications that depend on stropts.h being present, but do not depend on its contents, are broken anyways. -Erik
* We do not provide getfsent and friends, so remove this headerEric Andersen2003-06-051-82/+0
| | | | file, to prevent stupid configure scripts from getting confused.
* Eviscerate stropts.h so configure scripts won't try to use STREAMSEric Andersen2003-05-291-1/+8
| | | | | garbage. uClibc does not support STREAMS in any way whatsoever. -Erik
* grr. It's a void *, not a char *.Eric Andersen2003-05-271-1/+1
|
* Change 'N' to '__size' to avoid conflicts with common #define of NEric Andersen2003-05-271-5/+5
|
* Cope with autoconf's broken AC_FUNC_MALLOC macro, which redefines malloc asEric Andersen2003-05-231-0/+12
| | | | | | | | | rpl_malloc if it does not detect glibc style returning-a-valid-pointer-for-malloc(0) behavior. This wrapper calls malloc() as usual, but if N is zero, we allocate and return a 1-byte block instead.... sigh... -Erik
* resync with glibc 2.3Eric Andersen2003-03-131-129/+357
|
* Patch from Stefan Allius:Eric Andersen2003-03-071-1/+1
| | | | fix a couple of gcc 3.3 compiler warnings in gmon.c
* Initial effort at adding profiling support.Eric Andersen2003-03-032-0/+281
|
* Major update for pthreads, based in large part on improvementsEric Andersen2003-02-271-14/+22
| | | | | from glibc 2.3. This should make threads much more efficient. -Erik
* Patch from Stefan Allius:Eric Andersen2003-02-171-1/+1
| | | | | I patched the link_warning macro in features.h to fix warnings like: locale.c:358: warning: `__evoke_link_warning_localeconv' defined but not used
* Use a define for the path to /etc/TZDavid McCullough2003-02-171-0/+1
|
* Hide unimplemented and legacy ecvt and friends from configure.Eric Andersen2003-01-091-0/+2
| | | | -Erik
* Disable the __USE_EXTERN_INLINES versions of these headers, whichEric Andersen2003-01-081-4/+3
| | | | use non-existant glibc internals.
* For now, "#if 0" out the inlining of (currently unsupported) glibc-specificManuel Novoa III2003-01-081-1/+6
| | | | string->numeric conversion functions.
* The big thing is locale dependent collation support.Manuel Novoa III2002-12-201-2/+12
| | | | Also added outdigit support and (legacy) YESSTR/NOSTR support.
* Dop not restrict the IFTODT() and DTTOIF() macros whenEric Andersen2002-12-171-2/+0
| | | | | _DIRENT_HAVE_D_TYPE is not defined. -Erik
* Fixup sysconf to report the correct answer when UCLIBC_DYNAMIC_ATEXITEric Andersen2002-11-271-1/+6
| | | | is enabled.
* Ok... here's the summary:Manuel Novoa III2002-11-221-0/+54
| | | | | | | | | | | | | | Hopefully locale support will build when cross compiling now. Collation is still not supported, but that's what I'm currently working on. In the next couple of days, I'll probably put up a couple of files for download that will save people the trouble of generating all the glibc locales. Added *wprintf functions, although they currently don't support floating point. That will be fixed when I rewrite _dtostr... or possibly before. Added the wcsto{inttype} functions. Added iconv() and a mini iconv utility. The require locale support and only provide for conversions involving the various unicode encodings { UCS-4*, UCS-2*, UTF-32*, UTF-16*, UTF-8 }, the 8-bit codesets built with the locale data, and the internal WCHAR_T.
* Patch from Aidan Van Dyk to make _toupper and _tolowerEric Andersen2002-11-201-2/+2
| | | | work properly, reverting my wrong reading of SuSv3
* Aidan Van Dyk noticed that _toupper and _tolower were misbehaving.Eric Andersen2002-11-191-3/+3
| | | | This corrects them, per SuSv3.
* cut-n-paste typoEric Andersen2002-11-191-1/+1
|
* Update to sync up with glibc 2.3Eric Andersen2002-11-191-9/+16
|
* Implement sendfile64Eric Andersen2002-11-141-8/+23
| | | | -Erik
* Make sure we have __linux__ definedEric Andersen2002-11-091-0/+3
|
* Disble unimplemented function prototypesEric Andersen2002-11-081-0/+3
|
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-312-6/+6
| | | | | | | | | | | | | | | been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
* It turns out that __thread is now a gcc keyword. We used __thread inEric Andersen2002-10-131-2/+2
| | | | | | | | a few spots in our header files. In this change I do a s/__thread/__thread_id/ so we no longer conflict with newer CVS versions of gcc (such as the patched up gcc 3.2 included with RedHat 3.0). -Erik
* Add gnu obstack support. I still need to implement the obstack_printfManuel Novoa III2002-09-192-1/+606
| | | | and obstack_vprintf, but at least now the reiserfsprogs build.
* Hide my personal #warning reminders. Add __wcschrnul, rename strchrnulManuel Novoa III2002-09-191-4/+2
| | | | to __strchrnul, and add weak aliases for them.
* Added function 'get_current_dir_name' for Linux Test Project. Tested and"Steven J. Hill"2002-09-041-3/+0
| | | | works identically to function in glibc.
* Obligatory forgotten file... sys_errlist garbage.Manuel Novoa III2002-08-271-0/+12
|
* Make this as glibc-like as possible while avoiding the fileutilsManuel Novoa III2002-08-271-1/+3
| | | | problem. glibc hides the DT_* enum values unless __USE_BSD is defined.
* Move the _DIRENT_HAVE_D_TYPE test to avoid breaking fileutilsEric Andersen2002-08-271-1/+1
| | | | -Erik
* No need to hide this stuff when _DIRENT_HAVE_D_TYPE is notEric Andersen2002-08-271-1/+1
| | | | | | defined... Nothing too sacred in there and it can be used for other things... -Erik
* sparc, alpha, and mips have different errno values than the otherManuel Novoa III2002-08-261-12/+0
| | | | | | | 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!!!
* Kill the HAS_LONG_LONG option. It really did not make a lot ofEric Andersen2002-08-251-16/+0
| | | | | | sense to exclude it, gcc always supports long long, and we never fully excluded long long anyways (off64_t for example). -Erik
* Unlike glibc, uClibc doesn't always support the d_type field ofManuel Novoa III2002-08-201-1/+1
| | | | | struct dirent. So, disable the d_type support macros when d_type isn't available. This fixes a build problem file fileutils-4.1.
* Eliminate wrapping of struct stat and use the kernel versionEric Andersen2002-08-191-114/+0
| | | | | | directly. Eliminate all the attendant baggage. Fix internal types to match kernel types more closely. -Erik
* Fixup struct _res handling so apps using struct _res can actuallyEric Andersen2002-08-191-3/+2
| | | | | compile ("worst standard ever!") -Erik
* Disable macro implementations. Somehow I missed the following from theManuel Novoa III2002-08-161-1/+4
| | | | | | | | | | | | | | | ANSI/ISO C99 std... A library macro that masks a function declaration expands to an expression that evaluates each of its arguments once (and only once). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Arguments that have side effects evaluate the same way whether the expression executes the macro expansion or calls the function. Macros for the functions getc and putc are explicit exceptions to this rule. Their stream arguments can be evaluated more than once. Avoid argument expressions that have side effects with these macros. This will be reworked before the next release. And yes, I feel stupid.
* Remove thread-specific stuff entirely.Miles Bader2002-08-161-16/+5
|
* (_res): Define as a macro if __UCLIBC_HAS_THREADS__ is defined,Miles Bader2002-08-161-3/+9
| | | | regardless of _LIBC.
* (h_errno): Only define as a macro if __UCLIBC_HAS_THREADS__ is defined.Miles Bader2002-08-161-12/+3
| | | | | (__set_h_errno): Just assign to `h_errno' (which will be expanded to the thread-friendly version when appropriate).
* Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__Eric Andersen2002-08-162-4/+4
| | | | -Erik
* Patch from Jarkko to fix drand48 to not use long long whenEric Andersen2002-08-151-0/+2
| | | | long long support is disabled in the uClibc Config.