File: setjmp.3

package info (click to toggle)
manpages-de 0.4-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,808 kB
  • ctags: 4
  • sloc: sh: 7,666; makefile: 60
file content (66 lines) | stat: -rw-r--r-- 2,362 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.\" Written by Michael Haardt, Fri Nov 25 14:51:42 MET 1994
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" Modifications, Sun Feb 26 14:39:45 1995, faith@cs.unc.edu
.\" Translated to German Sun Dec 1 1996 by Patrick Rother <krd@gulu.net>
.\"
.TH SETJMP 3 "1. Dezember 1996" "" "Bibliotheksfunktionen"
.SH BEZEICHNUNG
setjmp \- sichere Stack-Zusammenhang fr nichtlokale Verzweigung
.SH BERSICHT
.ad l
#include <setjmp.h>
.sp
.BI "int setjmp(jmp_buf " env );
.ad b
.SH BESCHREIBUNG
.BR setjmp " und " longjmp (3)
sind ntzlich fr die Behandlung von Fehlern und Unterbrechungen,
die in einem low-level-Unterprogramm eines Programms auftreten.
.B setjmp()
sichert den Stack-Zusammenhang bzw. die Stack-Umgebung in
.I env
fr sptere Benutzung durch
.BR longjmp() . 
Der Stack-Zusammenhang wird ungltig wenn die Funktion, die
.B setjmp()
aufgerufen hat, beendet wird.
.SH "RCKGABEWERT"
Es wird 0 zurckgegeben, wenn sofort zurckgekehrt wird, und Nichtnull,
wenn von
.B longjmp()
mit gesichertem Zusammenhang zurckgekehrt wird.
.SH "KONFORM ZU"
POSIX
.SH BEMERKUNGEN
POSIX spezifiziert nicht, ob der Signalzusammenhang gesichert werden
soll oder nicht. Wenn Sichern der Signalmasken gewnscht wird, sollte
.BR sigsetjmp (3)
benutzt werden.  Die Verwendung von
.B setjmp()
bewirkt, da Programme schwer zu verstehen und zu warten sind.
Wenn mglich sollten Alternativen benutzt werden.
.SH "SIEHE AUCH"
.BR longjmp (3),
.BR sigsetjmp (2),
.BR siglongjmp (2).