Query: reboot
OS: opensolaris
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
reboot(3C) Standard C Library Functions reboot(3C)NAMEreboot - reboot system or halt processorSYNOPSIS#include <sys/reboot.h> int reboot(int howto, char *bootargs);DESCRIPTIONThe reboot() function reboots the system. The howto argument specifies the behavior of the system while rebooting and is a mask con- structed by a bitwise-inclusive-OR of flags from the following list: RB_AUTOBOOT The machine is rebooted from the root filesystem on the default boot device. This is the default behavior. See boot(1M) and kernel(1M). RB_HALT The processor is simply halted; no reboot takes place. This option should be used with caution. RB_ASKNAME Interpreted by the bootstrap program and kernel, causing the user to be asked for pathnames during the bootstrap. RB_DUMP The system is forced to panic immediately without any further processing and a crash dump is written to the dump device (see dumpadm(1M)) before rebooting. Any other howto argument causes the kernel file to boot. The interpretation of the bootargs argument is platform-dependent.RETURN VALUESUpon successful completion, reboot() never returns. Otherwise, -1 is returned and errno is set to indicate the error.ERRORSThe reboot() function will fail if: EPERM The {PRIV_SYS_CONFIG} privilege is not asserted in the effective set of the calling process.SEE ALSOIntro(1M), boot(1M), dumpadm(1M), halt(1M), init(1M), kernel(1M), reboot(1M), uadmin(2) SunOS 5.11 22 Mar 2004 reboot(3C)
Related Man Pages |
---|
reboot(1m) - sunos |
reboot(2) - ultrix |
reboot(8) - freebsd |
reboot(1m) - php |
reboot(1m) - x11r4 |
Similar Topics in the Unix Linux Community |
---|
Can I reboot SunBlade150 from CD? |
Java Runtime Execution require reboot of pSeries server regularly? |
AIX reboots |
Logging to SMS after rebooting!! |
Start Script on system reboot |