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:
parent
71f590f7f7
commit
f5a134ac42
@ -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
|
||||
|
24
src/kernel/libroot/posix/time/localtime.c
Normal file
24
src/kernel/libroot/posix/time/localtime.c
Normal 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);
|
||||
}
|
||||
|
16
src/kernel/libroot/posix/time/mktime.c
Normal file
16
src/kernel/libroot/posix/time/mktime.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user