update to cinit-0.3pre19

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-11-30 07:27:49 +01:00
commit 7c47ae1c48
1119 changed files with 101885 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2007 Nico Schottelius (nico-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-2007 Nico Schottelius (nico-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-2007 Nico Schottelius (nico-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-2007 Nico Schottelius (nico-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-2007 Nico Schottelius (nico-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-2007 Nico Schottelius (nico-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,19 @@
/***********************************************************************
*
* 2005-2007 Nico Schottelius (nico-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* poweroff
*
*/
#define _NETBSD_SOURCE 1
#include <unistd.h> /* reboot */
#include <sys/reboot.h> /* reboot */
#include <stdio.h> /* NULL */
void cinit_halt(void)
{
reboot(RB_HALT,NULL);
}

View file

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

View file

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

View file

@ -0,0 +1,19 @@
/***********************************************************************
*
* 2005-2007 Nico Schottelius (nico-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* poweroff
*
*/
#define _NETBSD_SOURCE 1
#include <unistd.h> /* reboot */
#include <sys/reboot.h> /* reboot */
#include <stdio.h> /* NULL */
void cinit_reboot(void)
{
reboot(RB_AUTOBOOT,NULL);
}

View file

@ -0,0 +1,17 @@
/***********************************************************************
*
* 2005-2007 Nico Schottelius (nico-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-2007 Nico Schottelius (nico-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-2007 Nico Schottelius (nico-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);
}