From d3243d719b595f52deff84b0bdf2ce5392d01480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 16 Nov 2002 17:43:28 +0000 Subject: [PATCH] Added an empty time() implementation (just returns zero) to let the kernel build again. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1959 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/Jamfile | 1 + src/kernel/libroot/posix/time/Jamfile | 11 +++++++++++ src/kernel/libroot/posix/time/time.c | 21 +++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 src/kernel/libroot/posix/time/Jamfile create mode 100644 src/kernel/libroot/posix/time/time.c diff --git a/src/kernel/libroot/posix/Jamfile b/src/kernel/libroot/posix/Jamfile index e64598bf65..849c8121a8 100644 --- a/src/kernel/libroot/posix/Jamfile +++ b/src/kernel/libroot/posix/Jamfile @@ -27,3 +27,4 @@ SubInclude OBOS_TOP src kernel libroot posix stdlib ; SubInclude OBOS_TOP src kernel libroot posix unistd ; SubInclude OBOS_TOP src kernel libroot posix sys ; SubInclude OBOS_TOP src kernel libroot posix math ; +SubInclude OBOS_TOP src kernel libroot posix time ; diff --git a/src/kernel/libroot/posix/time/Jamfile b/src/kernel/libroot/posix/time/Jamfile new file mode 100644 index 0000000000..1ad6a4b102 --- /dev/null +++ b/src/kernel/libroot/posix/time/Jamfile @@ -0,0 +1,11 @@ +SubDir OBOS_TOP src kernel libroot posix time ; + +KernelMergeObject posix_time.o : + <$(SOURCE_GRIST)>time.c + : + -fPIC -DPIC + ; + +MergeObjectFromObjects kernel_posix_time.o : + <$(SOURCE_GRIST)>time.o + ; diff --git a/src/kernel/libroot/posix/time/time.c b/src/kernel/libroot/posix/time/time.c new file mode 100644 index 0000000000..8acd00b675 --- /dev/null +++ b/src/kernel/libroot/posix/time/time.c @@ -0,0 +1,21 @@ +/* +** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the OpenBeOS License. +*/ + + +#include +#include + + +time_t +time(time_t *timer) +{ + // ToDo: implement time() + + if (timer) + *timer = 0; + + return 0; +} +