summaryrefslogtreecommitdiffstats
path: root/include/time.h
Commit message (Collapse)AuthorAgeFilesLines
* time.c, time.h: remove unused hidden strftime/strptimePeter S. Mazinger2011-03-101-2/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* include/: add tls errno and res_stateAustin Foxley2009-09-261-6/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Merge some pre-work from branch, needed by NPTL.Khem Raj2008-12-311-0/+2
|
* - revert 24148:24151Bernhard Reutner-Fischer2008-11-261-1/+2
|
* - hide some time related relocsBernhard Reutner-Fischer2008-11-251-2/+1
|
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-0/+11
| | | | | Appears to build fine (several .configs tried)
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-181-7/+1
|
* - remove relocations for clock_getresBernhard Reutner-Fischer2008-09-111-0/+1
|
* - adds several config-options to allow for turning off certain featuresBernhard Reutner-Fischer2008-06-031-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like o UCLIBC_HAS_GNU_ERROR o UCLIBC_HAS_BSD_ERR o UCLIBC_HAS_PTY o UCLIBC_HAS_GETPT (1) o UCLIBC_SYSCALL_STUBS o UCLIBC_SYSCALL_STUB_WARNING o UCLIBC_LINUX_SPECIFIC (2) o UCLIBC_BSD_SPECIFIC (3) o UCLIBC_NTP_LEGACY (4) o UCLIBC_SV4_DEPRECATED (5) o UCLIBC_HAVE_REALTIME (6) o UCLIBC_HAVE_ADVANCED_REALTIME (7) o UCLIBC_HAVE_EPOLL (8) o UCLIBC_HAVE_XATTR (9) o UCLIBC_HAVE_PROFILING (10) (1) make non-standard getpt optional and implement standard posix_openpt (2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(), personality() ppoll(), setresuid() (3) mincore(), getdomainname(), setdomainname() (4) ntp_adjtime(), ntp_gettime() aliases (5) ustat() [use statfs(2) in your code instead] (6) All marked as "(REALTIME)" in SUSv3 (7) All marked as "(ADVANCED REALTIME)" in SUSv3 (8) epoll_create(), epoll_ctl(), epoll_wait() (9) all Extended Attributes (10) helpers for gcc's -finstrument-functions - Fixes _dl_exit() - Implements sleep(3) for !UCLIBC_HAVE_REALTIME - Implements usleep(3) for !UCLIBC_HAVE_REALTIME - adds #warning about incorrect posix_fadvise{,64}() - removes unused and unwanted uselib() Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead of formerly 130k.
* Experimentally move libc_hidden_proto(time) to time.h.Denis Vlasenko2008-04-281-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only code change observed is actually a case where we were not doing that as needed: 00000000 <__GI_tzset>: -53 push %ebx -e8 00 00 00 00 call 6 <__GI_tzset+0x6> -5b pop %ebx -81 c3 03 00 00 00 add $0x3,%ebx - R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 6a 00 push $0x0 -e8 fc ff ff ff call 10 <__GI_tzset+0x10> - R_386_PLT32 time +e8 fc ff ff ff call 3 <__GI_tzset+0x3> + R_386_PC32 __GI_time 3d ff 4e 98 45 cmp $0x45984eff,%eax 0f 9e c0 setle %al 0f b6 c0 movzbl %al,%eax 50 push %eax -e8 fc ff ff ff call 21 <__GI_tzset+0x21> +e8 fc ff ff ff call 14 <__GI_tzset+0x14> R_386_PC32 _time_tzset 58 pop %eax 5a pop %edx -5b pop %ebx c3 ret No mass migration of libc_hidden_proto(foo) planned. Lets wait for potential fallout first.
* the timer_* funcs have been implemented in librt so enable their prototypesMike Frysinger2006-01-291-1/+1
|
* Sync w/ glibcPeter S. Mazinger2006-01-231-2/+6
|
* Remove unused CLOCK_IDFIELD_SIZE, not in glibcPeter S. Mazinger2006-01-181-2/+0
|
* Merge from branch."Steven J. Hill"2006-01-051-0/+2
|
* Sync headers w/ glibcPeter S. Mazinger2005-11-031-13/+2
|
* Added support for clock_getres() and clock_settime() in addition toPeter Kjellerstedt2005-04-281-5/+5
| | | | | | | 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).
* Hide a bunch of unimplemented time function prototypes, andEric Andersen2004-10-071-5/+13
| | | | mark them as mjn3's problem. :-)
* Change clock() to allow wrapping.Manuel Novoa III2004-05-081-2/+0
| | | | | | | 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.
* Hopefully fix the struct tm extension problem once and for all.Manuel Novoa III2003-11-021-3/+2
| | | | Also fix a dst-related bug which caused the use of uninitialized data.
* We do not provide gmtime(), so disable the prototype toEric Andersen2003-10-101-0/+2
| | | | prevent confusing autoconf
* Don't install floating point related headers, and wrap some previouslyManuel Novoa III2003-09-061-0/+2
| | | | | | unwrapped prototypes, when float support is disabled. Also don't install printf.h if glibc custom printf specifier support is disabled.
* Fix a few bugs in the new extended locale functions.Manuel Novoa III2003-08-241-0/+11
| | | | | | | | | 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-011-18/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-171-4/+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.
* Commit the new time stuff, even though I haven't made it threadsafe yet.Manuel Novoa III2002-06-171-0/+2
| | | | At least people can play with it. Also, fix a buglet in setenv.c.
* Rev all the header files to sync things with glibc 2.2.4Eric Andersen2001-09-271-87/+331
|
* Handle definition of struct timespec.Manuel Novoa III2001-02-151-2/+0
|
* Fix up a few messes so it compiles cleanly again.Eric Andersen2000-11-111-4/+0
|
* Initial revision0_9_1Erik Andersen2000-05-141-0/+128