import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
3729fc68eb
commit
423ba10303
13396 changed files with 269468 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
os/current/halt.o
|
||||
os/current/poweroff.o
|
||||
os/current/reboot.o
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
os/current/halt.o
|
||||
os/current/poweroff.o
|
||||
os/current/reboot.o
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
os/current/halt.o
|
||||
os/current/poweroff.o
|
||||
os/current/reboot.o
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue