Changeset 8d2963d in mainline


Ignore:
Timestamp:
2012-04-03T07:51:15Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
923b2eba
Parents:
28ca043f
Message:

rtc: replace time_t with the new tm structure

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    r28ca043f r8d2963d  
    6565
    6666static int
    67 rtc_time_get(ddf_fun_t *fun, time_t *t);
    68 
    69 static int
    70 rtc_time_set(ddf_fun_t *fun, time_t t);
     67rtc_time_get(ddf_fun_t *fun, struct tm *t);
     68
     69static int
     70rtc_time_set(ddf_fun_t *fun, struct tm *t);
    7171
    7272static int
     
    231231 */
    232232static int
    233 rtc_time_get(ddf_fun_t *fun, time_t *t)
     233rtc_time_get(ddf_fun_t *fun, struct tm *t)
    234234{
    235235        return EOK;
     
    244244 */
    245245static int
    246 rtc_time_set(ddf_fun_t *fun, time_t t)
     246rtc_time_set(ddf_fun_t *fun, struct tm *t)
    247247{
    248248        return EOK;
  • uspace/lib/c/include/sys/time.h

    r28ca043f r8d2963d  
    4646typedef uint32_t mseconds_t;
    4747
     48struct tm {
     49        int tm_sec;       /* 0 - 59 */
     50        int tm_min;       /* 0 - 59 */
     51        int tm_hour;      /* 0 - 23 */
     52        int tm_mday;      /* 1 - 31 */
     53        int tm_year;      /* years since 1900 */
     54};
     55
    4856struct timeval {
    4957        time_t tv_sec;        /* seconds */
  • uspace/lib/drv/include/ops/clock.h

    r28ca043f r8d2963d  
    4040
    4141typedef struct {
    42         int (*time_set)(ddf_fun_t *, time_t);
    43         int (*time_get)(ddf_fun_t *, time_t *);
     42        int (*time_set)(ddf_fun_t *, struct tm *);
     43        int (*time_get)(ddf_fun_t *, struct tm *);
    4444} clock_dev_ops_t;
    4545
Note: See TracChangeset for help on using the changeset viewer.