summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/reboot.c
blob: 57ac2398bb36c3bdf0d374607d23bcb7a21f5a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* vi: set sw=4 ts=4: */
/*
 * _reboot() for uClibc
 *
 * Copyright (C) 2000-2004 by Erik Andersen <andersen@codepoet.org>
 *
 * GNU Library General Public License (LGPL) version 2 or later.
 */

#include "syscalls.h"
#define __NR__reboot __NR_reboot
static inline _syscall3(int, _reboot, int, magic, int, magic2, int, flag);
int reboot(int flag)
{
	return (_reboot((int) 0xfee1dead, 672274793, flag));
}