From 41b2bdc2609fce0a8c1060b41007d27f846af30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 5 Jul 2004 22:43:39 +0000 Subject: [PATCH] Added working ctime() to the build. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8325 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/time/Jamfile | 1 + src/kernel/libroot/posix/time/ctime.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/kernel/libroot/posix/time/ctime.c diff --git a/src/kernel/libroot/posix/time/Jamfile b/src/kernel/libroot/posix/time/Jamfile index 44ec5f9ae4..9d6b4b8d01 100644 --- a/src/kernel/libroot/posix/time/Jamfile +++ b/src/kernel/libroot/posix/time/Jamfile @@ -2,6 +2,7 @@ SubDir OBOS_TOP src kernel libroot posix time ; KernelMergeObject posix_time.o : <$(SOURCE_GRIST)>asctime.c + <$(SOURCE_GRIST)>ctime.c <$(SOURCE_GRIST)>localtime.c <$(SOURCE_GRIST)>mktime.c <$(SOURCE_GRIST)>time.c diff --git a/src/kernel/libroot/posix/time/ctime.c b/src/kernel/libroot/posix/time/ctime.c new file mode 100644 index 0000000000..c7abc31446 --- /dev/null +++ b/src/kernel/libroot/posix/time/ctime.c @@ -0,0 +1,14 @@ +/* +** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ + + +#include + + +char * +ctime(const time_t *_timer) +{ + return asctime(localtime(_timer)); +}