Changes in uspace/lib/c/include/sys/time.h [664fc031:5fd3f2d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/sys/time.h
r664fc031 r5fd3f2d 1 1 /* 2 2 * Copyright (c) 2006 Ondrej Palkovsky 3 * Copyright (c) 2011 Petr Koupy4 * Copyright (c) 2011 Jiri Zarevucky5 3 * All rights reserved. 6 4 * … … 41 39 42 40 #define DST_NONE 0 43 #define ASCTIME_BUF_LEN 2644 41 45 42 typedef long time_t; … … 48 45 typedef uint32_t useconds_t; 49 46 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 };62 47 63 48 struct timeval { … … 76 61 extern int tv_gteq(struct timeval *tv1, struct timeval *tv2); 77 62 extern int gettimeofday(struct timeval *tv, struct timezone *tz); 78 extern int getuptime(struct timeval *tv);79 63 80 64 extern void udelay(useconds_t); 81 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);91 65 92 66 #endif
Note:
See TracChangeset
for help on using the changeset viewer.