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:
parent
8665123697
commit
4fe4cbd39c
@ -6,6 +6,7 @@ KernelMergeObject posix_time.o :
|
||||
difftime.c
|
||||
localtime.c
|
||||
mktime.c
|
||||
stime.c
|
||||
strftime.cpp
|
||||
time.c
|
||||
tzset.c
|
||||
|
18
src/kernel/libroot/posix/time/stime.c
Normal file
18
src/kernel/libroot/posix/time/stime.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user