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