File: 10_truncate_2_CVS.dpatch

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 (189 lines) | stat: -rw-r--r-- 6,199 bytes parent folder | download
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_truncate_2_CVS.dpatch by Daniel Kobras <kobras@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New manpage for truncate(2) and ftruncate(2).
## DP: From upstream CVS.

@DPATCH@
--- manpages-de/man2/truncate.2	1970-01-01 01:00:00.000000000 +0100
+++ manpages-de/man2/truncate.2	2002-09-27 12:20:58.000000000 +0200
@@ -0,0 +1,174 @@
+.\" Copyright (c) 1983, 1991 The Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"	This product includes software developed by the University of
+.\"	California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"     @(#)truncate.2	6.9 (Berkeley) 3/10/91
+.\"
+.\" Modified Sat Jul 24 12:46:33 1993 by Rik Faith (faith@cs.unc.edu)
+.\" Modified Tue Oct 22 22:36:33 1996 by Eric S. Raymond <esr@thyrsus.com>
+.\" Modified Mon Dec 21 13:37:05 1998 by Andries Brouwer (aeb@cwi.nl)
+.\" Translated into German by Dennis Stampfer <kontakt@dstampfer.de>
+.\"
+.TH TRUNCATE 2 "8. September 2002" "" "Systemaufrufe"
+.SH BEZEICHNUNG
+truncate, ftruncate \- krzt eine Datei auf eine bestimmte Lnge
+.SH "BERSICHT"
+.B #include <unistd.h>
+.sp
+.BI "int truncate(const char *" path ", off_t " length );
+.br
+.BI "int ftruncate(int " fd ", off_t " length );
+.SH BESCHREIBUNG
+Die Funktionen
+.B truncate
+und
+.B ftruncate
+bewirken, da die regulre Datei, die durch
+.I path
+oder
+.I fd
+angegeben ist, auf eine Gre von exakt
+.I length
+Bytes abgeschnitten wird.
+.LP
+Wenn die Datei vorher grer war, gehen berschssige Daten verloren.
+Wenn die Datei vorher kleiner war, wird sie vergrert und die
+zustzlichen Bytes werden als Nullen gelesen.
+.LP
+Der Dateizeiger wird nicht verndert.
+.LP
+Fr
+.B ftruncate
+mu die Datei zum Schreiben geffnet sein, fr 
+.B truncate
+mu die Datei schreibbar sein.
+.SH RCKGABEWERT
+Bei Erfolg gibt die Funktion 0 zurck.  Bei Fehlern wird \-1 zurckgegeben und
+.I errno
+entsprechend gesetzt.
+.SH FEHLER
+Fr
+.BR truncate :
+.TP
+.B EACCES
+Ein Teil des Pfades kann nicht gelesen werden oder die Datei kann vom
+Benutzer nicht beschrieben werden.
+.TP
+.B EFAULT
+.I pfad
+liegt auerhalb des Programmspeichers.
+.TP
+.B EFBIG
+Der Parameter
+.I length
+ist grer als die maximale Dateigre. (XSI)
+.TP
+.B EINTR
+Whrend der Ausfhrung wurde ein Signal empfangen.
+.TP
+.B EINVAL
+Der Parameter
+.I length
+ist negativ oder grer als die maximale Dateigre.
+.TP
+.B EIO
+Ein I/O Fehler ist beim aktualisieren der Inode aufgetreten.
+.TP
+.B EISDIR
+.I pfad
+ist ein Verzeichnis, keine Datei.
+.TP
+.B ELOOP
+Zu viele Symbolische Links wurden im Pfad gefunden.
+.TP
+.B ENAMETOOLONG
+Ein Teil des Pfades ist grer als 255 Zeichen oder der komplette Pfad
+berschreitet eine Gre von 1023 Zeichen.
+.TP
+.B ENOENT
+Die angegebene Datei existiert nicht.
+.TP
+.B ENOTDIR
+Ein Teil des Pfades ist kein Verzeichnis.
+.TP
+.B EROFS
+Die Datei befindet sich in einem read-only Dateisystem.
+.TP
+.B ETXTBSY
+Die Datei ist eine Prozedur, die ausgefhrt wird.
+.PP
+Fr
+.BR ftruncate
+gelten die gleichen Fehlermeldungen.  Anstelle von Dingen, die mit
+.B path
+schieflaufen knnen, gibt es jetzt Dinge, die mit
+.B fd
+schiefgehen knnen:
+.TP
+.B EBADF
+.I fd
+ist kein gltiger Dateideskriptor.
+.TP
+.BR EINVAL " oder " EBADF
+.I fd
+ist nicht zum Schreiben geffnet.
+.TP
+.B EINVAL
+.I fd
+referenziert einen Socket, nicht eine Datei.
+.SH "KONFORM ZU"
+4.4BSD, SVr4 (diese Funktionsaufrufe traten zuerst in BSD 4.2 auf).
+POSIX 1003.1-1996 beschreibt
+.BR ftruncate .
+POSIX 1003.1-2001 beschreibt ebenfalls
+.IR truncate
+als eine XSI-Erweiterung.
+.LP
+SVr4 beschreibt zustzlich die Fehler EMFILE, EMULTIHP, ENFILE und
+ENOLINK fr
+.BR truncate .
+SVr4 dokumentiert fr
+.B ftruncate
+den zustzlichen Fehler EAGAIN.
+.SH BERMERKUNGEN
+Die Beschreibung oben ist fr XSI-kompatible Systeme gedacht.  Fr
+nicht-XSI-kompatible Systeme erlaubt der POSIX-Standard zwei Verhalten von
+.BR ftruncate ,
+wenn
+.I length
+grer ist als die Dateilnge
+(beachten Sie, da
+.B truncate
+is fr eine derartige Umgebung nicht spezifiziert):
+entweder wird ein Fehler zurckgeliefert oder die Datei wird vergrert.
+(Die meisten Unixe folgen den XSI-Anforderungen.)
+.\" At the very least: OSF/1, Solaris 7, and FreeBSD conform, mtk, Jan 2002
+.SH "SEE ALSO"
+.BR open (2).
--- manpages-de/man2/ftruncate.2	1970-01-01 01:00:00.000000000 +0100
+++ manpages-de/man2/ftruncate.2	2002-09-27 12:21:35.000000000 +0200
@@ -0,0 +1 @@
+.so man2/truncate.2