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)); +}