diff --git a/src/kernel/libroot/posix/time/Jamfile b/src/kernel/libroot/posix/time/Jamfile index b3f92bc10d..ba096f2731 100644 --- a/src/kernel/libroot/posix/time/Jamfile +++ b/src/kernel/libroot/posix/time/Jamfile @@ -6,6 +6,7 @@ KernelMergeObject posix_time.o : difftime.c localtime.c mktime.c + stime.c strftime.cpp time.c tzset.c diff --git a/src/kernel/libroot/posix/time/stime.c b/src/kernel/libroot/posix/time/stime.c new file mode 100644 index 0000000000..022e06ad97 --- /dev/null +++ b/src/kernel/libroot/posix/time/stime.c @@ -0,0 +1,18 @@ +/* +** Copyright 2004, Jérôme Duval. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ + +#include +#include + + +int +stime(const time_t *tp) +{ + if (tp == NULL) + return B_ERROR; + set_real_time_clock(*tp); + return B_OK; +} +