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:
@@ -6,6 +6,7 @@ KernelMergeObject posix_time.o :
|
|||||||
difftime.c
|
difftime.c
|
||||||
localtime.c
|
localtime.c
|
||||||
mktime.c
|
mktime.c
|
||||||
|
stime.c
|
||||||
strftime.cpp
|
strftime.cpp
|
||||||
time.c
|
time.c
|
||||||
tzset.c
|
tzset.c
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user