summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/reboot.c
blob: a015d40ad89bb283dde4486240877f77717a77ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* vi: set sw=4 ts=4: */
/*
 * _reboot() for uClibc
 *
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include "syscalls.h"
#include <sys/reboot.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));
}