summaryrefslogtreecommitdiffstats
path: root/libc/include/time.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove a non-standard turd: strtotimeval.Elliott Hughes2014-04-071-2/+0
| | | | Change-Id: I1b1e40746cb573e3fb73a5276969b40c5da36d15
* Prepare to switch to the uapi <linux/signal.h>.Elliott Hughes2013-11-071-5/+2
| | | | | | | | | | <time.h> didn't need to copy the cruft from <signal.h>, and <signal.h> only needs the uid_t hack when it's not using uapi headers. pthread_exit.cpp should include what it uses. Change-Id: I836c36abe0f0a781d41fc425b249d1c7686bb124
* Fix <sys/select.h> for LP64, clean up <time.h>.Elliott Hughes2013-11-051-63/+46
| | | | | | | | | | | The 64-bit uapi headers don't define FD_CLR and friends, so this patch updates libc/kernel/common/linux/time.h after the change b934bbec145e9e084bf48149a3a94ae3dd132157 in external/kernel-headers, then fixes <sys/select.h> to work in this new world, and removes some now-unnecessary duplication from <time.h> (with other cruft cleaned up while I'm here). Change-Id: Ifd26f901b4d200c65065b3e6ef1b74055127e052
* libc: remove obsolete CLOCK_REALTIME_HR and CLOCK_MONOTONIC_HRTodd Poynor2013-05-141-2/+3
| | | | | | | | | | Add CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE as supported by recent linux kernels. (cherry-pick of 60e5144ca312b210b54ac8e6966108da0c97ff80.) Bug: 8895727 Change-Id: If79a4d05d1301108f49a37588f9416c4be19277a
* libc: add clock ids CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARMTodd Poynor2013-05-141-0/+2
| | | | | | (cherry-pick of b928bda83d4413b703329f607e2706602f15293f.) Change-Id: Ica6aad84299819ffc5e57ae4891e057d2e401fa1
* Revert "libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>"David 'Digit' Turner2012-10-171-1/+4
| | | | | | | | | This creates build issues in the internal Android tree. Will investigate later. Original patch: https://android-review.googlesource.com/#/c/38875/ Change-Id: I12c5995ebf172890051af42a5d3b31014c9c5117
* libc: Provide ucontext_t/mcontext_t/<sys/ucontext.h>David 'Digit' Turner2012-10-171-4/+1
| | | | | | | | | | | | | | | | This patch updates the C library headers to provide ucontext_t definitions for three architectures. + Fix <signal.h> to always define 'struct sigcontext'. The new declarations are announced with new macros defined in <sys/cdefs.h> in order to make it easier to adapt client code that already defines its own, incompatible, versions of the structures seen here. http://code.google.com/p/android/issues/detail?id=34784 Change-Id: Ie78c48690a4ce61c50593f6c39639be7fead3596
* Update time.h for CLOCK_BOOTTIME.Nick Pelly2012-07-191-0/+1
| | | | | | (cherry-pick of 8958a383296ea0e1cc106ae245c37671809ffd49) Change-Id: Ie8de6b32fa81566db53ad7e9fd4b197f4cede628
* libc: remove private declarations from <time.h> and <resolv.h>David 'Digit' Turner2012-01-131-29/+0
| | | | | | | | | | This patch is used to remove private C library declarations from the public headers (that are exported to the NDK). It should *only* be submitted after all other patches modifying the users of said private functions have been submitted to the tree, to avoid breakages. Change-Id: I0a5e3014f8e3ac9ed8df86a5cdae506337c23252
* libc: Copy private C library declarations to private/David 'Digit' Turner2012-01-131-2/+13
| | | | | | | | | | | | | | | | | | | This patch is the first in a series that aims at cleaning up the public C library headers (which end up being distributed with the NDK). <resolv.h> and <time.h> contain declarations that should not be public. They are used by other parts of the platform, but NDK applications should not use or rely on them. So copy them to private <bionic_time.h> and <resolv_iface.h> headers and use a guard macro to avoid conflicts when both headers are included at the same time. The idea is that we're going to fix the other platform modules to include these private headers. After this is done, we will remove the duplicate definitions from <resolv.h> and <time.h> Change-Id: I121c11936951c98ca7165e811126ed8a4a3a394d
* <time.h>: Add timegm(), timelocal() and others.David 'Digit' Turner2010-12-061-0/+5
| | | | | | | Add timegm(), timelocal(), time2posix() and posix2time() to the C library. Change-Id: I34d5771ed83dd994870a5ca58a511d01898b1ffb
* libc: add void to clock() function prototypeErik Gilling2009-09-091-1/+1
| | | | Signed-off-by: Erik Gilling <konkers@android.com>
* Add standalone_months field to libc strftime().Eric Fischer2009-05-151-0/+1
| | | | | Replicate my change 722a5c0462f38827f4097065bfc3826b9e0e9fb4 into bionic in an attempt to fix the build.
* auto import //branches/master/...@140412The Android Open Source Project2009-03-181-0/+19
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+113
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-113/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+1
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-211-0/+112