From 4fe4cbd39c1df92b263e7ecbe7adc290ad0ed29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 4 Nov 2004 23:02:54 +0000 Subject: [PATCH] added implementation of stime git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9801 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/time/Jamfile | 1 + src/kernel/libroot/posix/time/stime.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/kernel/libroot/posix/time/stime.c 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; +} +