summaryrefslogtreecommitdiffstats
path: root/libc/misc/time
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-012-73/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-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.
* Use a define for the path to /etc/TZDavid McCullough2003-02-171-1/+2
|
* Fix bug in setting daylight and timezone when no (valid) TZ.Manuel Novoa III2002-11-271-3/+5
| | | | Bug reported by Arne Bernin <arne@alamut.de> in regards to freeswan.
* Ok... here's the summary:Manuel Novoa III2002-11-221-0/+7
| | | | | | | | | | | | | | 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.
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-311-1/+1
| | | | | | | | | | | | | | | 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
* Allow timezone info to be specified in a file... /etc/TZ. Turned on byManuel Novoa III2002-10-281-3/+132
| | | | | | | | | | | | | | default for now. From the comments... * Defining __TIME_TZ_FILE causes tzset() to attempt to read the TZ value * from the file /etc/TZ if the TZ env variable isn't set. The file contents * must be the intended value of TZ, followed by a newline. No other chars, * spacing, etc is allowed. As an example, an easy way for me to init * /etc/TZ appropriately would be: echo CST6CDT > /etc/TZ Also optimized timezone setting when the timezone string hasn't changed, as well as fixed a minor buglet wrt SUSv3-allowed chars in TZ std and dst fields.
* Revert commit by davidm to printf.c that initialized conv_numManuel Novoa III2002-08-121-2/+3
| | | | | | | | | needlessly. To do so increases the generated code size with bcc. Eliminate duplicate define warnings in wstring.c. Fix potentially broken preprocessor comparisons. The preprocessor converts integers to maximal signed type, so inequality comparisons involving UINTMAX_MAX, ULLONG_MAX, and (if no long long) ULONG_MAX were potentially broken.
* A couple of little cleanups I forgot to check in.Manuel Novoa III2002-08-031-1/+1
|
* Clean up CLK_TCK situation. clock() and sysconf() now use anManuel Novoa III2002-07-151-13/+18
| | | | | | arch-specific constant value defined in bits/uClibc_clk_tck.h. Default is 100 (common/bits) but alpha uses 1024 following glibc. Override per arch as necessary.
* Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III2002-07-031-4/+1
| | | | | | Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
* Add in thread locking for tzset() and associated data. Also, fix a bug soManuel Novoa III2002-06-181-5/+42
| | | | that localtime_r() calls tzset() to initialize/update timezone data.
* Commit the new time stuff, even though I haven't made it threadsafe yet.Manuel Novoa III2002-06-1721-2203/+1879
| | | | At least people can play with it. Also, fix a buglet in setenv.c.
* time() is implemented in syscalls.cEric Andersen2002-06-152-39/+1
| | | | -Erik
* Cleanup slightlyEric Andersen2002-05-231-8/+10
|
* Begin the process of reworking the time functions for properEric Andersen2002-05-1115-410/+432
| | | | | | time zone and locale support (in theory). More work is still needed. -Erik
* Add strptime, and commonize some locale stringsEric Andersen2002-03-155-20/+1010
| | | | -Erik
* OOps.Eric Andersen2002-02-051-1/+0
|
* Add in a weak for __adjtimeEric Andersen2002-02-021-0/+2
|
* Fix duplicate of timezoneEric Andersen2002-01-091-4/+0
|
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-191-0/+1
|
* A few symbols needed for testingEric Andersen2001-11-202-2/+9
|
* Update to accomodate the header file changesEric Andersen2001-09-275-2/+7
|
* Patch from Andrew Ip <aip@cwlinux.com> to add ftime,Eric Andersen2001-09-062-1/+37
| | | | allowing openssl to be built.
* Ok, this should finish off my massive ro-organization. The sourceEric Andersen2001-05-121-2/+1
| | | | | | | | | tree is less messy now (which helps), all libraries are placed into uClibc/lib when compiling, all libraries now use a consistant mechanism for being built, all libraries use a consistant naming scheme where the lib name includes the uClibc version number, which makes ldconfig happy and willing to work with us. -Erik
* Add missing time()Eric Andersen2001-04-182-1/+39
|
* Fix up more leftovers resultant from fixing _LIBCEric Andersen2001-04-061-2/+39
|
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-1/+1
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Fix from Jon Nelson for error in timezoneEric Andersen2001-03-201-1/+1
| | | | -Erik
* Add in the timezone global from time.h, from a patch byEric Andersen2001-03-191-0/+5
| | | | Jon Nelson <jnelson@boa.org>
* Remove times and all the foolishness surrounding it. There isEric Andersen2001-02-091-1/+1
| | | | | a syscall that does this, so use that. -Erik
* Reduced code size; fixed ANSI bug for day -- 5 not 05; mode days and mons const.Manuel Novoa III2001-01-281-28/+48
|
* Reduce dependancies -- don't use sysconf() internal to libc.Eric Andersen2001-01-151-7/+5
|
* Patch from James Graves <jgraves@deltamobile.com> to better handle m68k.Eric Andersen2001-01-121-6/+1
| | | | | | Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik
* A large update from Manuel Novoa III <mnovoa3@bellsouth.net>.Eric Andersen2001-01-111-2/+2
|
* Oops. left strftime.c in twice.Eric Andersen2001-01-021-1/+1
|
* Patch from James Graves <jgraves@deltamobile.com> to getEric Andersen2001-01-021-0/+6
| | | | | m68k started. Should be just sysdeps/linux/m68k left to hack at this point...
* Fix doc blunder.Eric Andersen2000-11-041-4/+4
|
* Make spelling of uClibc be consistant.Eric Andersen2000-11-041-1/+1
|
* More cleanups. Fix things so tinylogin compiles.Eric Andersen2000-11-043-1/+113
| | | | Fix a bug in getdelim -- patch from David Whedon <dwhedon@gordian.com>.
* More random fixes and additions.Eric Andersen2000-10-272-1/+400
|
* More reorg. A place for everything and everything in its place...Eric Andersen2000-10-233-1/+68
|
* Strip all object files of all non global symbols and .note andEric Andersen2000-10-201-1/+3
| | | | | .comment, saving a lot of space in the resultant binaries... -Erik
* Makefile updateEric Andersen2000-10-121-1/+1
|
* Finish reorganizing things. At least I think I've finished.Eric Andersen2000-10-111-1/+1
|
* Bug ugly formatting updateEric Andersen2000-10-0913-390/+407
|
* Dependancy updateEric Andersen2000-10-071-5/+8
|
* Fix all the makefiles. Clean up some warnings, cleanup some headers.Eric Andersen2000-10-041-10/+27
| | | | -Erik
* Rework all the string handling. Make const stuff be constified.Eric Andersen2000-07-061-1/+1
| | | | -Erik
* Many bugfixes, header cleanups, etc. Added abort and glob.Eric Andersen2000-07-051-1/+0
| | | | | It is getting closer... -Erik