The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
reboot.h File Reference

restart or turn off the machine (root only), as on Linux. More...

Go to the source code of this file.

Macros

#define RB_AUTOBOOT   0x01234567
#define RB_POWER_OFF   0x4321FEDC

Functions

int reboot (int how)
 restart or turn off the machine.

Detailed Description

restart or turn off the machine (root only), as on Linux.

Macro Definition Documentation

◆ RB_AUTOBOOT

#define RB_AUTOBOOT   0x01234567

◆ RB_POWER_OFF

#define RB_POWER_OFF   0x4321FEDC

Function Documentation

◆ reboot()

int reboot ( int how)

restart or turn off the machine.

Parameters
howRB_AUTOBOOT or RB_POWER_OFF.
Returns
does not return on success; -1 with errno EPERM for other users, EINVAL for another value.