Imported tab->space correction by redhat
[infodrom/manpages-de] / man2 / alarm.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
4 .\"                               1993 Michael Haardt, Ian Jackson.
5 .\"
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one
14 .\" 
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\" 
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\"
26 .\" Modified Wed Jul 21 19:42:57 1993, Rik Faith (faith@cs.unc.edu)
27 .\" German Translation Tue Feb 6 21:07:00 1996 Elmar Jansen (ej@pumuckel.gun.de)
28 .\" Modified Mon Jun 10 00:55:48 1996 by Martin Schulze (joey@linux.de)
29 .\"
30 .TH ALARM 2 "10. Juni 1996" Linux "Systemaufrufe"
31 .SH BEZEICHNUNG
32 alarm \- setzt einen Wecker, um ein Signal zu senden
33 .SH "ÜBERSICHT"
34 .nf
35 .B #include <unistd.h>
36 .sp
37 .BI "long alarm(long " seconds );
38 .fi
39 .SH BESCHREIBUNG
40 .BR alarm " setzt die Zeit " 
41 .I seconds
42 in Sekunden, in der der Prozess das Signal
43 .BR SIGALRM
44 gesandt bekommen soll.
45
46 Wenn die Zeit
47 .I seconds
48 gleich Null ist, wird kein neuer 
49 .B alarm
50 ausgelöst.   
51
52 Jeder vorher gesetzte
53 .B alarm
54 wird gelöscht.
55 .SH "RÜCKGABEWERT"
56 .B alarm
57 gibt die Zeit in Sekunden zurück, die verbleiben bis ein vorher gesetzter
58 alarm ausgelöst wird.  War kein
59 .B alarm
60 gesetzt, so wird Null zurückgegeben.
61 .SH BEMERKUNGEN
62 .BR alarm " und " setitimer
63 teilen sich den gleichen Timer; ein Aufruf einer der Funktionen beeinflusst
64 die Andere.
65
66 Scheduling kann die Ausführung des Prozesses für unbestimmte Zeit unterbrechen.
67 .SH "KONFORM ZU"
68 SVID, AT&T, POSIX, X/OPEN, BSD 4.3
69 .SH "SIEHE AUCH"
70 .BR setitimer (2),
71 .BR signal (2),
72 .BR sigaction (2),
73 .BR gettimeofday (2),
74 .BR select (2),
75 .BR pause (2),
76 .BR sleep (3).