summaryrefslogtreecommitdiff
path: root/include/lib/libc/time.h
diff options
context:
space:
mode:
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-14 13:39:29 +0100
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>2018-08-22 10:26:05 +0100
commit2fb88cb2e9050d4cda97f8de1e8f000a28599869 (patch)
tree6c3ac166bf1f1d8b4fef14c2bc601d74f996f26a /include/lib/libc/time.h
parent7c0ff9c40ceeacf239ec9a3465be0477594cf898 (diff)
libc: Cleanup SCC headers
Only leave the parts relevant to the Trusted Firmware. Change-Id: I0444c16e402f6c1629211d03bf6cb32ca3dbcf59 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/lib/libc/time.h')
-rw-r--r--include/lib/libc/time.h34
1 files changed, 3 insertions, 31 deletions
diff --git a/include/lib/libc/time.h b/include/lib/libc/time.h
index 5a486848..71d3e7ec 100644
--- a/include/lib/libc/time.h
+++ b/include/lib/libc/time.h
@@ -8,8 +8,8 @@
* All rights reserved.
*/
-#ifndef _TIME_H
-#define _TIME_H
+#ifndef TIME_H
+#define TIME_H
#include <time_.h>
@@ -17,32 +17,4 @@
#define NULL ((void *) 0)
#endif
-#define CLOCKS_PER_SEC 1000000
-
-typedef long int clock_t;
-
-struct tm {
- int tm_sec;
- int tm_min;
- int tm_hour;
- int tm_mday;
- int tm_mon;
- int tm_year;
- int tm_wday;
- int tm_yday;
- int tm_isdst;
-};
-
-extern clock_t clock(void);
-extern double difftime(time_t time1, time_t time0);
-extern time_t mktime(struct tm *timeptr);
-extern time_t time(time_t *timer);
-extern char *asctime(const struct tm *timeptr);
-extern char *ctime(const time_t *timer);
-extern struct tm *gmtime(const time_t *timer);
-extern struct tm *localtime(const time_t *timer);
-extern size_t strftime(char * restrict s, size_t maxsize,
- const char * restrict format,
- const struct tm * restrict timeptr);
-
-#endif
+#endif /* TIME_H */