4a0199d66d
Change-Id: I609ee8cac7aae8af2c0c0381710433a5df0caebd
19 lines
298 B
C
19 lines
298 B
C
#include <sys/cdefs.h>
|
|
#include <lib.h>
|
|
#include "namespace.h"
|
|
|
|
#include <string.h>
|
|
#include <time.h>
|
|
|
|
#ifdef __weak_alias
|
|
__weak_alias(stime, _stime)
|
|
#endif
|
|
|
|
int stime(time_t *top)
|
|
{
|
|
message m;
|
|
|
|
memset(&m, 0, sizeof(m));
|
|
m.PM_TIME_SEC = *top;
|
|
return(_syscall(PM_PROC_NR, PM_STIME, &m));
|
|
}
|