import cinit from unix.schottelius.org

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-09-16 12:53:45 +02:00
commit 423ba10303
13396 changed files with 269468 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* halt the system
*
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_halt(void)
{
reboot(RB_HALT);
}

View file

@ -0,0 +1,3 @@
os/current/halt.o
os/current/poweroff.o
os/current/reboot.o

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* poweroff
*
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_poweroff(void)
{
reboot(RB_POWEROFF);
}

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* reboot the system
*
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_reboot(void)
{
reboot(RB_AUTOBOOT);
}

View file

@ -0,0 +1,16 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* How to halt the system
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_halt(void)
{
reboot(RB_HALT_SYSTEM);
}

View file

@ -0,0 +1,3 @@
os/current/halt.o
os/current/poweroff.o
os/current/reboot.o

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* poweroff the system
*
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_poweroff(void)
{
reboot(RB_POWER_OFF);
}

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* reboot the system
*
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_reboot(void)
{
reboot(RB_AUTOBOOT);
}

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* halt the system
*
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_halt(void)
{
reboot(RB_HALT);
}

View file

@ -0,0 +1,3 @@
os/current/halt.o
os/current/poweroff.o
os/current/reboot.o

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* poweroff
*
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_poweroff(void)
{
reboot(RB_HALT | RB_POWERDOWN);
}

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2006 Nico Schottelius (nico-linux-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* reboot the system
*
*/
#include <unistd.h>
#include <sys/reboot.h>
void cinit_reboot(void)
{
reboot(RB_AUTOBOOT);
}