update to cinit-0.3pre19
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
367a74c75e
commit
7c47ae1c48
1119 changed files with 101885 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
os/current/halt.o
|
||||
os/current/poweroff.o
|
||||
os/current/reboot.o
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
os/current/halt.o
|
||||
os/current/poweroff.o
|
||||
os/current/reboot.o
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
os/current/halt.o
|
||||
os/current/poweroff.o
|
||||
os/current/reboot.o
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
os/current/halt.o
|
||||
os/current/poweroff.o
|
||||
os/current/reboot.o
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue