Added missing function tzset() - doesn't do a lot yet, though. The source
file also contains the tzname symbol. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8763 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
SubDir OBOS_TOP src kernel libroot posix time ;
|
SubDir OBOS_TOP src kernel libroot posix time ;
|
||||||
|
|
||||||
KernelMergeObject posix_time.o :
|
KernelMergeObject posix_time.o :
|
||||||
<$(SOURCE_GRIST)>asctime.c
|
asctime.c
|
||||||
<$(SOURCE_GRIST)>ctime.c
|
ctime.c
|
||||||
<$(SOURCE_GRIST)>difftime.c
|
difftime.c
|
||||||
<$(SOURCE_GRIST)>localtime.c
|
localtime.c
|
||||||
<$(SOURCE_GRIST)>mktime.c
|
mktime.c
|
||||||
<$(SOURCE_GRIST)>strftime.cpp
|
strftime.cpp
|
||||||
<$(SOURCE_GRIST)>time.c
|
time.c
|
||||||
|
tzset.c
|
||||||
: -fPIC -DPIC
|
: -fPIC -DPIC
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
|
** Distributed under the terms of the Haiku License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
|
||||||
|
char *tzname[2];
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
tzset(void)
|
||||||
|
{
|
||||||
|
// ToDo: implement me properly!
|
||||||
|
|
||||||
|
tzname[0] = "std";
|
||||||
|
tzname[0] = "dst";
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user