blob: 5652399d33678297d25b42e21ae9f12612b93d19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* ISC license. */
#include <skalibs/nonposix.h>
#include <unistd.h>
#include <sys/reboot.h>
#include "os.h"
void os_reboot (int what)
{
reboot(what == 3 ? RB_AUTOBOOT : what == 2 ? RB_POWEROFF : RB_HALT) ;
}
|