Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
REBOOT.2
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:
OS Develop
Development Platform:
WINDOWS
- .TH REBOOT 2
- .SH NAME
- reboot - close down the system or reboot
- .SH SYNTAX
- .ft B
- .nf
- #define _MINIX_SOURCE 1
- #include <unistd.h>
- int reboot(int fIhowfP, ...)
- .fi
- .ft P
- .SH DESCRIPTION
- .B Reboot()
- is used to close down the system. It allows several ways of shutting
- down depending on
- .IR how :
- .PP
- .TP 5
- .BI "reboot(RBT_HALT)"
- Halt the system and return to the monitor prompt.
- .TP
- .BI "reboot(RBT_REBOOT)"
- Reboot the system by letting the monitor execute the "boot" command.
- .TP
- .BI "reboot(RBT_PANIC)"
- Cause a system panic. This is not normally done from user mode, but by
- servers using the
- .B sys_abort()
- kernel call.
- .TP
- .BI "reboot(RBT_MONITOR" ", code, length" ")"
- Halt the system and let the monitor execute the given code of the given
- length.
- .RI ( code
- is of type
- .B "char *"
- and
- .I length
- of type
- .BR size_t .)
- .TP
- .BI "reboot(RBT_RESET)"
- Reboot the system with a hardware reset.
- .PP
- .B Reboot()
- may only be executed by the super-user.
- .SH DIAGNOSTICS
- If the call succeeds, it never returns. If something went wrong,
- the return value is -1 and an error is indicated by
- .BR errno .
- .SH SEE ALSO
- .BR shutdown (8),
- .BR reboot (8),
- .BR halt (8),
- .BR sync (1).
- .SH NOTES
- Minix can not return to the monitor if running in real mode, or if started
- from MS-DOS. This means that most of the reboot functions will change
- to a reset.
- .SH AUTHOR
- Edvard Tuinder (v892231@si.hhs.NL)