diff options
author | Mystery Man <unknown@mandriva.org> | 2003-08-20 07:37:27 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2003-08-20 07:37:27 +0000 |
commit | 7f2ac73888b8ef372ea597049981b27e7d810ac2 (patch) | |
tree | 354132889b63bbe5f446cb82869b3c3367135a80 /mdk-stage1/dietlibc/include/time.h | |
parent | 327bd24f8e4291bd1882de1990dd7339f781a9cb (diff) | |
download | drakx-7f2ac73888b8ef372ea597049981b27e7d810ac2.tar drakx-7f2ac73888b8ef372ea597049981b27e7d810ac2.tar.gz drakx-7f2ac73888b8ef372ea597049981b27e7d810ac2.tar.bz2 drakx-7f2ac73888b8ef372ea597049981b27e7d810ac2.tar.xz drakx-7f2ac73888b8ef372ea597049981b27e7d810ac2.zip |
This commit was manufactured by cvs2svn to create branch 'MDKC_1_0'.topic/MDKC_1_0
Diffstat (limited to 'mdk-stage1/dietlibc/include/time.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/time.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/mdk-stage1/dietlibc/include/time.h b/mdk-stage1/dietlibc/include/time.h index 827c85b97..29681fa3d 100644 --- a/mdk-stage1/dietlibc/include/time.h +++ b/mdk-stage1/dietlibc/include/time.h @@ -7,7 +7,6 @@ extern int __isleap(int year); int nanosleep(const struct timespec *req, struct timespec *rem) __THROW; -unsigned int sleep(unsigned int secs) __THROW; time_t mktime(struct tm *timeptr) __THROW __pure__; @@ -16,9 +15,26 @@ char *asctime_r(const struct tm *timeptr, char *buf) __THROW; char *ctime(const time_t *timep) __THROW; -size_t strftime(char *s, size_t max, const char *format, const struct tm *tm) __THROW; +size_t strftime(char *s, size_t max, const char *format, const struct tm *tm) __THROW __attribute__((format(strftime,3,0))); time_t time(time_t *t) __THROW; int stime(time_t *t) __THROW; +double difftime(time_t time1, time_t time0) __THROW __attribute__((const)); + +#define CLOCKS_PER_SEC 1000000l + +extern long int timezone; +extern int daylight; +extern char* tzname[2]; + +void tzset (void) __THROW; + +struct tm* localtime(const time_t* t) __THROW; +struct tm* gmtime(const time_t* t) __THROW; +struct tm* localtime_r(const time_t* t, struct tm* r) __THROW; +struct tm* gmtime_r(const time_t* t, struct tm* r) __THROW; + +clock_t clock(void); + #endif |