.\" Copyright (c) 1998 Andries Brouwer (aeb@cwi.nl), 24 September 1998 .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .TH REBOOT 2 "24 September 1998" "Linux 2.1.122" "Linux Programmeurs Handleiding" .SH NAAM reboot \- heropstarten of maak klaar/onklaar Ctrl-Alt-Del .SH OVERZICHT Voor libc4 en libc5 waren de bibliotheek aanroep en de systeem aanroep hetzelfde, en sinds kernel versie 2.1.30 zijn er symbolische namen LINUX_REBOOT_* {linux heropstarten} voor constanten en een vierde argument in de aanroep: .sp .B #include .br .B #include .sp .BI "int reboot (int " magie ", int " magie2 ", int " vlag ", void *" arg ); .sp Onder glibc hebben sommige van de constanten die hiermee te maken hebben symbolische namen RB_* gekregen, en de bibliotheek aanroep is een 1-argument wikkel om de 3-argument systeem aanroep: .B #include .br .B #include .sp .BI "int reboot (int " vlag ); .SH BESCHRIJVING De .B reboot aanroep her-opstart het systeem, of maakt klaar/onklaar de heropstart toetsaanslag (afgekort CAD, omdat de standaard Ctrl-Alt-Delete is; het kan veranderd worden met .BR loadkeys (1)). .PP Deze systeem aanroep zal falen (met EINVAL {ongeldig}) tenzij .I magie gelijk is aan LINUX_REBOOT_MAGIC1 {linux heropstart magie 1} (dat is: 0xfee1dead) en .I magie2 gelijk is aan LINUX_REBOOT_MAGIC2 {linux heropstart magie 2} (dat is: 672274793). Sinds 2.1.17 worden echter ook LINUX_REBOOT_MAGIC2A {* magie 2A} (dat is: 85072278) en sinds 2.1.97 ook LINUX_REBOOT_MAGIC2B {* magie 2B} (dat is: 369367448) toegestaan als waarde voor .IR magie2 . (De hexadecimale waardes van deze constanten hebben betekenis.) Het .I vlag argument kan de volgende waardes hebben: .TP .B LINUX_REBOOT_CMD_RESTART {linux heropstart opdracht herstart} (RB_AUTOBOOT {*automatisch opstarten}, 0x1234567). Het bericht 'Restarting system.' {Herstarten systeem} wordt afgedrukt, en een standaard herstart wordt on-Middelijk uitgevoerd. Als niet voorafgegaan door een .BR sync (2), zullen gegevens verloren gaan. .TP .B LINUX_REBOOT_CMD_HALT {linux heropstart opdracht stop} (RB_HALT_SYSTEM {*stop systeem}, 0xcdef0123; sinds 1.1.76). Het bericht `System halted.' {systeem gestuit} wordt afgedrukt, en het systeem wordt gestopt. Als niet voorafgegaan door een .BR sync (2), zullen gegevens verloren gaan. .TP .B LINUX_REBOOT_CMD_POWER_OFF {linux heropstart opdracht voeding uit} (0x4321fedc; sinds 2.1.30). Het bericht `Power down.' {Voeding uit} wordt afgedrukt, het systeem wordt gestopt en alle voeding wordt losgekoppeld van het systeem als dat mogelijk is. Als niet voorafgegaan door .BR sync (2), zullen gegevens verloren gaan. .TP .B LINUX_REBOOT_CMD_RESTART2 {linux heropstart opdracht herstart 2} (0xa1b2c3d4; sinds 2.1.30). Het bericht `Restarting system with command '%s'' wordt afgedrukt, en een herstart (met gebruik van het opdracht-string gegeven met .IR arg ) wordt onmiddellijk uitgevoerd. Als niet voorafgegaan door een .BR sync (2), zullen gegevens verloren gaan. .TP .B LINUX_REBOOT_CMD_CAD_ON {linux heropstart opdracht Cntrl-Alt-Del aan} (RB_ENABLE_CAD {*zet aan CAD}, 0x89abcdef). CAD wordt gebruiksklaar gemaakt. Dit betekend dat de CAD toetsaanslag onmiddellijk de actie behorend bij LINUX_REBOOT_CMD_RESTART zal veroorzaken. .TP .B LINUX_REBOOT_CMD_CAD_OFF {linux heropstart opdracht CAD uit} (RB_DISABLE_CAD {*maak onklaar CAD}, 0). CAD wordt uitgezet. Dit betekend dat de CAD toetsaanslag een SIGINT signaal zal veroorzaken dat gezonden zal worden naar init {"begin"} (proces 1), waarop dit proces kan beslissen wat een juiste actie is (wellicht: vermoord alle processen, harmonizeer {"sync"}, en heropstart). .LP Alleen de super-gebruiker mag deze functie gebruiken. .LP Het exacte gevolg van de bovenstaande acties hangt af van de architectuur. Voor de i386 architectuur doet het extra argument helemaal niets momenteel (2.1.122), maar het soort heropstart kan bepaald worden met een kernel opdracht-regel argument (`reboot=...' {heropstart=...}), het kan warm of koud zijn, en hard of door de BIOS. .SH "TERUGGEEF WAARDE" Bij success wordt nul teruggegeven. Bij falen wordt \-1 teruggegeven en .I errno wordt naar behoren gezet. .SH FOUTEN .TP .B EINVAL {ongeldig} Slechte magische nummers of \fIvlag\fP. .TP .B EPERM {toestemming} Een niet-root {"root"} gebruiker probeert om .BR reboot " aan te roepen." .SH "VOLDOET AAN" .B reboot is Linux-eigen, en zou niet gebruikt moeten worden in programma's die bedoeld zijn om draagbaar te zijn. .SH "ZIE OOK" .BR sync "(2) {harmonizeer (werk/vast geheugen)}," .BR bootparam "(7) {start grootheden}," .BR ctrlaltdel "(8)," .BR halt "(8) {stop/stuit}," .BR reboot "(8) {her-opstarten}" .\" Translated Thu Nov 16 16:23:39 CET 2000 Jos Boersema .\" .SH VERTALING Dit is een handleiding uit \fBmanpages-dev 1.29\fR. Alles wat tussen `\fB{\fR'..`\fB}\fR' staat is \fBaanvullende vertaling\fR, en hoort \fBniet\fR bij de originele handleiding. Email naar . .\"Vertaling Jos Boersema $Id: reboot.2,v 1.1 2003/04/28 18:43:35 bokkie Exp $