summaryrefslogtreecommitdiff
path: root/minix/lib/libc/sys/stime.c
blob: 67527dd83efee65972c7a31bc24a09285daa7665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <sys/cdefs.h>

#include "namespace.h"

#include <minix/sysutil.h>
#include <lib.h>
#include <string.h>
#include <time.h>

int stime(time_t *top)
{
  message m;

  memset(&m, 0, sizeof(m));
  m.m_lc_pm_time.sec = *top;
  return(_syscall(PM_PROC_NR, PM_STIME, &m));
}