Added empty and non-working versions of mktime() and localtime(). BSD code

is not in a good shape, Linux code is pretty ugly - we'll see which one
we'll choose :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8324 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-07-05 22:23:25 +00:00
parent 71f590f7f7
commit f5a134ac42
3 changed files with 42 additions and 0 deletions

View File

@ -2,6 +2,8 @@ SubDir OBOS_TOP src kernel libroot posix time ;
KernelMergeObject posix_time.o :
<$(SOURCE_GRIST)>asctime.c
<$(SOURCE_GRIST)>localtime.c
<$(SOURCE_GRIST)>mktime.c
<$(SOURCE_GRIST)>time.c
:
-fPIC -DPIC

View File

@ -0,0 +1,24 @@
/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the Haiku License.
*/
#include <time.h>
#include <stdio.h>
struct tm *
localtime_r(const time_t *_timer, struct tm *tm)
{
return tm;
}
struct tm *
localtime(const time_t *_timer)
{
static struct tm tm;
return localtime_r(_timer, &tm);
}

View File

@ -0,0 +1,16 @@
/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the Haiku License.
*/
#include <time.h>
#include <stdio.h>
time_t
mktime(struct tm *tm)
{
return 0;
}