Magellan Linux

Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/reboot.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 320 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 /*
2     * reboot.c
3     */
4    
5     #include <unistd.h>
6     #include <sys/reboot.h>
7     #include <sys/syscall.h>
8    
9     /* This provides the one-argument glibc-ish version of reboot.
10     The full four-argument system call is available as __reboot(). */
11    
12     int reboot(int flag)
13     {
14     return __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, flag, NULL);
15     }