summaryrefslogtreecommitdiffstats
path: root/libc/misc/time
Commit message (Collapse)AuthorAgeFilesLines
* Hide some of mem* and str*Peter S. Mazinger2005-11-271-0/+3
|
* 100 JUMP relocs less (remaining 431) by hiding internally used onesPeter S. Mazinger2005-11-261-9/+9
|
* Remove TOPDIRPeter S. Mazinger2005-11-211-3/+1
|
* Remove duplicate ifdefsPeter S. Mazinger2005-11-041-2/+0
|
* Correct XLOCALE enabled builds pointed out by nitinkgPeter S. Mazinger2005-11-041-3/+3
|
* Last bits for IMA, now everything can be built w/ DOMULTI=y on gcc-3.4.4 ↵Peter S. Mazinger2005-11-031-5/+2
| | | | with my config (no locale, the rest enabled). Not tested if libc is complete and usable. All the files listed in *_NO_MULTI need love, best would be to replace all multisources w/ single sources.
* Enable IMAPeter S. Mazinger2005-11-031-2/+5
|
* Only because of multi sources I had to touch up these and add code duplicationPeter S. Mazinger2005-11-011-2/+8
|
* Remove last unused references to libc-a-pic-, we use only the lists in ↵Peter S. Mazinger2005-11-011-2/+0
| | | | libc-a-y for objects that go into static libs, changing their suffix to .os, of they should be PIC
* Replace all Makefiles for new build infrastucturePeter S. Mazinger2005-10-291-64/+8
|
* All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other ↵Peter S. Mazinger2005-10-251-0/+69
| | | | archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
* More IMA compilingPeter S. Mazinger2005-10-211-4/+4
|
* Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all ↵Peter S. Mazinger2005-10-121-12/+10
| | | | objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
* weaks moved after the related function so gcc4 won't warnPeter S. Mazinger2005-09-221-4/+4
|
* Frank Mehnert writes:Mike Frysinger2005-08-261-1/+1
| | | | | | libc/misc/time/time.c does not compile if __UCLIBC_HAS_TZ_FILE__ is disabled but __UCLIBC_HAS_TZ_CACHING__ is enabled. The following patch fixes this issue.
* Fix 2 bugs in strftime related to glibc struct tm extensions.Manuel Novoa III2005-07-251-1/+24
| | | | | | | | | 1) Need to negate tm_gmtoff field value when used. (bug 336). 2) Deal with NULL ptr case for tm_zone field, which was causing segfaults in both the NIST/PCTS tests and the Python 2.4.1 self-test suite. NOTE: We set uninitialized timezone names to "???", and this differs (intentionally) from glibc's behavior.
* tweak to get rid of warning when TZ is disabledMike Frysinger2005-06-291-0/+2
|
* Change strptime so that it only modifies struct tm fields specified.Manuel Novoa III2005-05-101-1/+3
|
* Added support for clock_getres() and clock_settime() in addition toPeter Kjellerstedt2005-04-282-41/+1
| | | | | | | the already existing clock_gettime(). In addition they will now use the corresponding system calls if they exists, which resulted in a move to libc/sysdeps/linux/common for clock_gettime.c (it was previously located in libc/misc/time).
* merge parallel build supportMike Frysinger2005-01-251-5/+4
|
* Revert Peter's __lib_gettimeofday patch. There's the minor issue ofManuel Novoa III2004-10-313-3/+3
| | | | | | adding cruft to include/sys/time.h. But also, there's no sense in making changes like this until we decide how we're going to approach the hidden symbol transition.
* Peter S. Mazinger writes:Eric Andersen2004-10-193-3/+3
| | | | | | | | | | | Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
* Obligatory forgotten file...Manuel Novoa III2004-05-081-1/+2
|
* Change clock() to allow wrapping.Manuel Novoa III2004-05-081-86/+145
| | | | | | | Add timegm() function. Make lookup_tzname() static (as it should have been). Have strftime() get timezone information from the passed struct for the %z and %Z conversions when using struct tm extensions.
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-111-1/+1
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* Add a dummy (always fails) wcsftime. This is needed for the libstdc++ localeManuel Novoa III2004-01-142-0/+36
| | | | implementation to build. Later this month I'll add a functional wcsftime.
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-271-2/+2
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* Fix some dst issues in _time_mktime().Manuel Novoa III2003-12-141-5/+12
| | | | | Normalize the tm_isdst value to -1, 0, or 1. If no dst for this timezone, then reset tm_isdst to 0.
* I forgot to update the thread locking in the last dst fix.Manuel Novoa III2003-11-161-2/+4
|
* Add clock_gettime() submitted by Justus Pendleton <uc@ryoohki.net>.Manuel Novoa III2003-11-072-1/+41
|
* Hopefully fix the struct tm extension problem once and for all.Manuel Novoa III2003-11-021-22/+65
| | | | Also fix a dst-related bug which caused the use of uninitialized data.
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-1/+1
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Apply a trivial patch that doesn't change anything, but which is alledged toEric Andersen2003-10-081-1/+1
| | | | workaround a toolchain specifi bug for the e1.
* Fix a few bugs in the new extended locale functions.Manuel Novoa III2003-08-241-2/+6
| | | | | | | | | 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.
* 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