Imported tab->space correction by redhat
[infodrom/manpages-de] / man2 / reboot.2
1 .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one
11 .\" 
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\" 
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Modified by Michael Haardt (u31b3hs@pool.informatik.rwth-aachen.de)
24 .\"
25 .\" Tue Jul  6 22:36:09 MDT 1993 (dminer@nyx.cs.du.edu)
26 .\"  Made this clearer...
27 .\" Modified Sat Jul 24 00:16:05 1993 by Rik Faith (faith@cs.unc.edu)
28 .\" 
29 .\" Translated into German by Wolfgang Jung (woju@keep.in-berlin.de) on
30 .\" Fri Apr  5 15:39:52 MET DST 1996
31 .\" Modified Mon Jun 10 13:31:45 1996 by Martin Schulze (joey@linux.de)
32 .\"
33 .TH REBOOT 2 "28. März 28, 1992" "Linux 0.99.10" "Systemaufrufe"
34 .SH BEZEICHNUNG
35 reboot \- Neustart, oder Deaktivieren von Cntrl-Alt-Entf (Ctrl-Alt-Del)
36 .SH "ÜBERSICHT"
37 .B #include <unistd.h>
38 .sp
39 .BI "int reboot (int " magic ", int " magic_too ", int " flag );
40 .SH BESCHREIBUNG
41 .B reboot
42 startet das System neu, oder deaktiviert CAD.
43 .PP
44 Wenn  
45 .I magic 
46 == 0xfee1dead && 
47 .I magictoo 
48 == 672274793, dann wird die Funktion unter Beachtung von 
49 .IR flag 
50 ausgeführt.
51 .sp
52 Wenn
53 .I flag
54 = 0x1234567 ist, dann wird ein ein Reset
55 .br
56 durchgeführt.
57 .br
58 Wenn
59 .I flag
60 = 0x89abcdef ist, dann wird CAD aktiviert.
61 .br
62 Wenn
63 .I flag
64 = 0 ist, dann wird CAD deaktiviert und ein
65 .br
66 Signal an den Prozess mit der PID 1 (in der Regel der
67 .br
68 INIT Prozess) geschickt.
69
70 Es gilt zu beachten, dass 
71 .B reboot() 
72 .I kein
73 .B sync()!
74 durchführt.
75
76 Nur dem Super-User ist es gestattet, diese Funktion aufzurufen.
77 .SH "RÜCKGABEWERT"
78 Bei erfolgreichem Bearbeiten der Funktion wird eine 0 zurückgeliefert.
79 Im Fehlerfall wird \-1 zurückgeliefert und es wird .I errno passend gesetzt.
80 .SH FEHLER
81 .TP 0.8i
82 .B EINVAL 
83 Inkorrekte Angabe der
84 .IR magic " number für " magic ", " magic_too " oder/und " flag .
85 .TP
86 .B EPERM
87 Nicht der Super-User hat den Zugriff gemacht.
88 .SH "KONFORM ZU"
89 .B reboot
90 ist Linux spezifisch.
91 .SH "SIEHE AUCH"
92 .BR sync (2),
93 .BR ctrlaltdel (8),
94 .BR halt (8),
95 .BR reboot (8).
96