Changes in uspace/lib/c/include/sys/time.h [9d58539:d3e3a71] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/sys/time.h
r9d58539 rd3e3a71 1 1 /* 2 2 * Copyright (c) 2006 Ondrej Palkovsky 3 * Copyright (c) 2011 Petr Koupy 4 * Copyright (c) 2011 Jiri Zarevucky 3 5 * All rights reserved. 4 6 * … … 39 41 40 42 #define DST_NONE 0 43 #define ASCTIME_BUF_LEN 26 41 44 42 45 typedef long time_t; … … 45 48 typedef uint32_t useconds_t; 46 49 typedef uint32_t mseconds_t; 50 51 struct tm { 52 int tm_sec; /* Seconds [0,60]. */ 53 int tm_min; /* Minutes [0,59]. */ 54 int tm_hour; /* Hour [0,23]. */ 55 int tm_mday; /* Day of month [1,31]. */ 56 int tm_mon; /* Month of year [0,11]. */ 57 int tm_year; /* Years since 1900. */ 58 int tm_wday; /* Day of week [0,6] (Sunday = 0). */ 59 int tm_yday; /* Day of year [0,365]. */ 60 int tm_isdst; /* Daylight Savings flag. */ 61 }; 47 62 48 63 struct timeval { … … 64 79 extern void udelay(useconds_t); 65 80 81 extern time_t mktime(struct tm *tm); 82 extern struct tm *gmtime(const time_t *timer); 83 extern char *asctime(const struct tm *timeptr); 84 extern struct tm *localtime(const time_t *timer); 85 extern char *ctime(const time_t *timer); 86 extern double difftime(time_t time1, time_t time0); 87 extern size_t strftime(char *restrict s, size_t maxsize, 88 const char *restrict format, const struct tm *restrict tm); 89 66 90 #endif 67 91
Note:
See TracChangeset
for help on using the changeset viewer.