Changes in uspace/lib/c/include/sys/time.h [664fc031:7f9d97f3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/sys/time.h
r664fc031 r7f9d97f3 40 40 #include <sys/types.h> 41 41 42 #define DST_NONE 043 #define ASCTIME_BUF_LEN 2642 #define DST_NONE 0 43 #define ASCTIME_BUF_LEN 26 44 44 45 45 typedef long time_t; … … 50 50 51 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. */ 52 int tm_usec; /* Microseconds [0,999999]. */ 53 int tm_sec; /* Seconds [0,60]. */ 54 int tm_min; /* Minutes [0,59]. */ 55 int tm_hour; /* Hour [0,23]. */ 56 int tm_mday; /* Day of month [1,31]. */ 57 int tm_mon; /* Month of year [0,11]. */ 58 int tm_year; /* Years since 1900. */ 59 int tm_wday; /* Day of week [0,6] (Sunday = 0). */ 60 int tm_yday; /* Day of year [0,365]. */ 61 int tm_isdst; /* Daylight Savings flag. */ 61 62 }; 62 63 … … 71 72 }; 72 73 73 extern void tv_add(struct timeval *tv, suseconds_t usecs); 74 extern suseconds_t tv_sub(struct timeval *tv1, struct timeval *tv2); 75 extern int tv_gt(struct timeval *tv1, struct timeval *tv2); 76 extern int tv_gteq(struct timeval *tv1, struct timeval *tv2); 77 extern int gettimeofday(struct timeval *tv, struct timezone *tz); 78 extern int getuptime(struct timeval *tv); 74 extern void tv_add_diff(struct timeval *, suseconds_t); 75 extern void tv_add(struct timeval *, struct timeval *); 76 extern suseconds_t tv_sub_diff(struct timeval *, struct timeval *); 77 extern void tv_sub(struct timeval *, struct timeval *); 78 extern int tv_gt(struct timeval *, struct timeval *); 79 extern int tv_gteq(struct timeval *, struct timeval *); 80 extern void gettimeofday(struct timeval *, struct timezone *); 81 extern void getuptime(struct timeval *); 79 82 80 83 extern void udelay(useconds_t); 84 extern int usleep(useconds_t); 81 85 82 extern time_t mktime(struct tm *tm); 83 extern int time_utc2tm(const time_t time, struct tm *result); 84 extern int time_utc2str(const time_t time, char *buf); 85 extern void time_tm2str(const struct tm *timeptr, char *buf); 86 extern int time_local2tm(const time_t time, struct tm *result); 87 extern int time_local2str(const time_t time, char *buf); 88 extern double difftime(time_t time1, time_t time0); 89 extern size_t strftime(char *restrict s, size_t maxsize, 90 const char *restrict format, const struct tm *restrict tm); 86 extern time_t mktime(struct tm *); 87 extern int time_utc2tm(const time_t, struct tm *); 88 extern int time_utc2str(const time_t, char *); 89 extern void time_tm2str(const struct tm *, char *); 90 extern int time_tv2tm(const struct timeval *, struct tm *); 91 extern int time_local2tm(const time_t, struct tm *); 92 extern int time_local2str(const time_t, char *); 93 extern double difftime(time_t, time_t); 94 extern size_t strftime(char *restrict, size_t, const char *restrict, 95 const struct tm *restrict); 91 96 92 97 #endif
Note:
See TracChangeset
for help on using the changeset viewer.