From d21f25079b60523b73b02fd2ac4be6bc57575094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 1 Sep 2004 10:28:25 +0000 Subject: [PATCH] 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 --- src/kernel/libroot/posix/time/Jamfile | 15 ++++++++------- src/kernel/libroot/posix/time/tzset.c | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 src/kernel/libroot/posix/time/tzset.c diff --git a/src/kernel/libroot/posix/time/Jamfile b/src/kernel/libroot/posix/time/Jamfile index 97c93e870e..b3f92bc10d 100644 --- a/src/kernel/libroot/posix/time/Jamfile +++ b/src/kernel/libroot/posix/time/Jamfile @@ -1,12 +1,13 @@ SubDir OBOS_TOP src kernel libroot posix time ; KernelMergeObject posix_time.o : - <$(SOURCE_GRIST)>asctime.c - <$(SOURCE_GRIST)>ctime.c - <$(SOURCE_GRIST)>difftime.c - <$(SOURCE_GRIST)>localtime.c - <$(SOURCE_GRIST)>mktime.c - <$(SOURCE_GRIST)>strftime.cpp - <$(SOURCE_GRIST)>time.c + asctime.c + ctime.c + difftime.c + localtime.c + mktime.c + strftime.cpp + time.c + tzset.c : -fPIC -DPIC ; diff --git a/src/kernel/libroot/posix/time/tzset.c b/src/kernel/libroot/posix/time/tzset.c new file mode 100644 index 0000000000..5391500055 --- /dev/null +++ b/src/kernel/libroot/posix/time/tzset.c @@ -0,0 +1,21 @@ +/* +** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ + + +#include + + +char *tzname[2]; + + +void +tzset(void) +{ + // ToDo: implement me properly! + + tzname[0] = "std"; + tzname[0] = "dst"; +} +