/seL4-refos-master/libs/libmuslc/src/time/ |
H A D | localtime.c | 3 struct tm *__localtime_r(const time_t *restrict, struct tm *restrict); 5 struct tm *localtime(const time_t *t) 7 static struct tm tm; local 8 return __localtime_r(t, &tm);
|
H A D | gmtime.c | 4 struct tm *__gmtime_r(const time_t *restrict, struct tm *restrict); 6 struct tm *gmtime(const time_t *t) 8 static struct tm tm; local 9 return __gmtime_r(t, &tm);
|
H A D | asctime.c | 3 char *__asctime(const struct tm *, char *); 5 char *asctime(const struct tm *tm) argument 8 return __asctime(tm, buf);
|
H A D | asctime_r.c | 3 char *__asctime(const struct tm *restrict, char *restrict); 5 char *asctime_r(const struct tm *restrict tm, char *restrict buf) argument 7 return __asctime(tm, buf);
|
H A D | ctime_r.c | 5 struct tm tm; local 6 localtime_r(t, &tm); 7 return asctime_r(&tm, buf);
|
H A D | gmtime_r.c | 7 struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm) argument 9 if (__secs_to_tm(*t, tm) < 0) { 13 tm->tm_isdst = 0; 14 tm->__tm_gmtoff = 0; 15 tm->__tm_zone = __gmt; 16 return tm;
|
H A D | timegm.c | 7 time_t timegm(struct tm *tm) argument 9 struct tm new; 10 long long t = __tm_to_secs(tm); 15 *tm = new; 16 tm->tm_isdst = 0; 17 tm->__tm_gmtoff = 0; 18 tm->__tm_zone = __gmt;
|
H A D | __asctime.c | 9 char *__asctime(const struct tm *restrict tm, char *restrict buf) argument 12 __nl_langinfo_l(ABDAY_1+tm->tm_wday, C_LOCALE), 13 __nl_langinfo_l(ABMON_1+tm->tm_mon, C_LOCALE), 14 tm->tm_mday, tm->tm_hour, 15 tm->tm_min, tm->tm_sec, 16 1900 + tm->tm_year) >= 26) 20 * is _supposed_ to crash if the fields in tm ar [all...] |
H A D | localtime_r.c | 5 struct tm *__localtime_r(const time_t *restrict t, struct tm *restrict tm) argument 13 __secs_to_zone(*t, 0, &tm->tm_isdst, &tm->__tm_gmtoff, 0, &tm->__tm_zone); 14 if (__secs_to_tm((long long)*t + tm->__tm_gmtoff, tm) < 0) { 18 return tm;
|
H A D | __tm_to_secs.c | 3 long long __tm_to_secs(const struct tm *tm) argument 6 long long year = tm->tm_year; 7 int month = tm->tm_mon; 19 t += 86400LL * (tm->tm_mday-1); 20 t += 3600LL * tm->tm_hour; 21 t += 60LL * tm->tm_min; 22 t += tm->tm_sec;
|
H A D | strftime.c | 22 static int week_num(const struct tm *tm) argument 24 int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; 27 if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2) 34 int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7; 35 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1))) 41 int jan1 = (tm 51 __strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc) argument 218 __strftime_l(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm, locale_t loc) argument 270 strftime(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm) argument [all...] |
H A D | time_impl.h | 6 long long __tm_to_secs(const struct tm *); 7 int __secs_to_tm(long long, struct tm *);
|
H A D | strptime.c | 9 char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm) argument 35 dest = &tm->tm_wday; 40 dest = &tm->tm_mon; 45 s = strptime(s, nl_langinfo(D_T_FMT), tm); 54 dest = &tm->tm_mday; 59 s = strptime(s, "%m/%d/%y", tm); 63 dest = &tm->tm_hour; 68 dest = &tm->tm_hour; 73 dest = &tm [all...] |
H A D | mktime.c | 4 time_t mktime(struct tm *tm) argument 6 struct tm new; 8 long long t = __tm_to_secs(tm); 12 if (tm->tm_isdst>=0 && new.tm_isdst!=tm->tm_isdst) 22 *tm = new;
|
H A D | __secs_to_tm.c | 11 int __secs_to_tm(long long t, struct tm *tm) argument 71 tm->tm_year = years + 100; 72 tm->tm_mon = months + 2; 73 tm->tm_mday = remdays + 1; 74 tm->tm_wday = wday; 75 tm->tm_yday = yday; 77 tm->tm_hour = remsecs / 3600; 78 tm->tm_min = remsecs / 60 % 60; 79 tm [all...] |
H A D | wcsftime.c | 7 const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc); 9 size_t __wcsftime_l(wchar_t *restrict s, size_t n, const wchar_t *restrict f, const struct tm *restrict tm, locale_t loc) argument 38 t_mb = __strftime_fmt_1(&buf, &k, *f, tm, loc); 46 if (plus && tm->tm_year >= 10000-1900) 48 else if (tm->tm_year < -1900) 66 size_t wcsftime(wchar_t *restrict wcs, size_t n, const wchar_t *restrict f, const struct tm *restrict tm) argument 68 return __wcsftime_l(wcs, n, f, tm, CURRENT_LOCAL [all...] |
/seL4-refos-master/projects/refos/impl/apps/terminal/src/ |
H A D | print_time.h | 16 char * refos_print_time (struct tm *tm);
|
H A D | print_time.c | 36 char * refos_print_time (struct tm *tm) argument 40 day_to_string(tm->tm_wday), 41 month_to_string(tm->tm_mon), 42 tm->tm_mday, tm->tm_hour, 43 tm->tm_min, tm->tm_sec, 44 1900 + tm->tm_year);
|
/seL4-refos-master/apps/terminal/src/ |
H A D | print_time.h | 16 char * refos_print_time (struct tm *tm);
|
H A D | print_time.c | 36 char * refos_print_time (struct tm *tm) argument 40 day_to_string(tm->tm_wday), 41 month_to_string(tm->tm_mon), 42 tm->tm_mday, tm->tm_hour, 43 tm->tm_min, tm->tm_sec, 44 1900 + tm->tm_year);
|
/seL4-refos-master/libs/libplatsupport/include/platsupport/ |
H A D | time_manager.h | 120 if (!tm) return EINVAL;\ 121 if (!tm->FUN) return ENOSYS;\ 125 static inline int tm_alloc_id(time_manager_t *tm, unsigned int *id) argument 133 return tm->alloc_id(tm->data, id); 136 static inline int tm_alloc_id_at(time_manager_t *tm, unsigned int id) argument 139 return tm->alloc_id_at(tm->data, id); 142 static inline int tm_free_id(time_manager_t *tm, unsigned int id) argument 145 return tm 149 tm_register_cb(time_manager_t *tm, timeout_type_t type, uint64_t ns, uint64_t start, uint32_t id, timeout_cb_fn_t callback, uintptr_t token) argument 165 tm_register_abs_cb(time_manager_t *tm, uint64_t abs_ns, uint32_t id, timeout_cb_fn_t callback, uintptr_t token) argument 183 tm_register_rel_cb(time_manager_t *tm, uint64_t rel_ns, uint32_t id, timeout_cb_fn_t callback, uintptr_t token) argument 203 tm_register_periodic_cb(time_manager_t *tm, uint64_t period_ns, uint64_t start, uint32_t id, timeout_cb_fn_t callback, uintptr_t token) argument 210 tm_deregister_cb(time_manager_t *tm, unsigned int id) argument 216 tm_get_time(time_manager_t *tm, uint64_t *time) argument 228 tm_update(time_manager_t *tm) argument 240 tm_update_with_time(time_manager_t *tm, uint64_t time) argument [all...] |
H A D | local_time_manager.h | 28 * @param tm memory to initialise the time manager in 34 int tm_init(time_manager_t *tm, ltimer_t *ltimer, ps_io_ops_t *ops, int size);
|
/seL4-refos-master/projects/util_libs/libplatsupport/include/platsupport/ |
H A D | time_manager.h | 120 if (!tm) return EINVAL;\ 121 if (!tm->FUN) return ENOSYS;\ 125 static inline int tm_alloc_id(time_manager_t *tm, unsigned int *id) argument 133 return tm->alloc_id(tm->data, id); 136 static inline int tm_alloc_id_at(time_manager_t *tm, unsigned int id) argument 139 return tm->alloc_id_at(tm->data, id); 142 static inline int tm_free_id(time_manager_t *tm, unsigned int id) argument 145 return tm 149 tm_register_cb(time_manager_t *tm, timeout_type_t type, uint64_t ns, uint64_t start, uint32_t id, timeout_cb_fn_t callback, uintptr_t token) argument 165 tm_register_abs_cb(time_manager_t *tm, uint64_t abs_ns, uint32_t id, timeout_cb_fn_t callback, uintptr_t token) argument 183 tm_register_rel_cb(time_manager_t *tm, uint64_t rel_ns, uint32_t id, timeout_cb_fn_t callback, uintptr_t token) argument 203 tm_register_periodic_cb(time_manager_t *tm, uint64_t period_ns, uint64_t start, uint32_t id, timeout_cb_fn_t callback, uintptr_t token) argument 210 tm_deregister_cb(time_manager_t *tm, unsigned int id) argument 216 tm_get_time(time_manager_t *tm, uint64_t *time) argument 228 tm_update(time_manager_t *tm) argument 240 tm_update_with_time(time_manager_t *tm, uint64_t time) argument [all...] |
H A D | local_time_manager.h | 28 * @param tm memory to initialise the time manager in 34 int tm_init(time_manager_t *tm, ltimer_t *ltimer, ps_io_ops_t *ops, int size);
|
/seL4-refos-master/libs/libmuslc/include/ |
H A D | time.h | 38 struct tm { struct 55 time_t mktime (struct tm *); 56 size_t strftime (char *__restrict, size_t, const char *__restrict, const struct tm *__restrict); 57 struct tm *gmtime (const time_t *); 58 struct tm *localtime (const time_t *); 59 char *asctime (const struct tm *); 71 size_t strftime_l (char * __restrict, size_t, const char * __restrict, const struct tm * __restrict, locale_t); 73 struct tm *gmtime_r (const time_t *__restrict, struct tm *__restrict); 74 struct tm *localtime_ [all...] |