added implementation of stime

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9801 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2004-11-04 23:02:54 +00:00
parent 8665123697
commit 4fe4cbd39c
2 changed files with 19 additions and 0 deletions

View File

@ -6,6 +6,7 @@ KernelMergeObject posix_time.o :
difftime.c
localtime.c
mktime.c
stime.c
strftime.cpp
time.c
tzset.c

View File

@ -0,0 +1,18 @@
/*
** Copyright 2004, Jérôme Duval. All rights reserved.
** Distributed under the terms of the Haiku License.
*/
#include <time.h>
#include <OS.h>
int
stime(const time_t *tp)
{
if (tp == NULL)
return B_ERROR;
set_real_time_clock(*tp);
return B_OK;
}