source: mainline/uspace/lib/compat/time.c@ 3daba9de

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 3daba9de was f5c8046, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 14 years ago

add basics of libcompat

  • Property mode set to 100644
File size: 358 bytes
Line 
1
2#include "time.h"
3
4
5struct tm *localtime(const time_t *timep) {
6 // FIXME: stub
7 static struct tm result = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
8 return &result;
9}
10
11char *asctime(const struct tm *tm) {
12 // FIXME: stub
13 static char result[] = "Mon Jan 01 00:00:00 1900\n";
14 return result;
15}
16
17char *ctime(const time_t *timep) {
18 return asctime(localtime(timep));
19}
20
Note: See TracBrowser for help on using the repository browser.