Debian Codegraph @

po/de/man2/readlink.2.po

raw
1 # German translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Markus Kaufmann <[email protected]>
5 # Chris Leick <[email protected]>, 2010.
6 # Mario Blättermann <[email protected]>, 2013-2014.
7 # Dr. Tobias Quathamer <[email protected]>, 2011, 2016.
8 # Helge Kreutzmann <[email protected]>, 2014, 2016, 2021.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n 4.28.0\n"
12 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
13 "PO-Revision-Date: 2025-11-02 17:57+0100\n"
14 "Last-Translator: Helge Kreutzmann <[email protected]>\n"
15 "Language-Team: German <[email protected]>\n"
16 "Language: de\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, no-wrap
26 msgid "readlink"
27 msgstr "readlink"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-08"
34 msgstr "8. Februar 2026"
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, no-wrap
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.18"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "BEZEICHNUNG"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "readlink, readlinkat - read value of a symbolic link"
53 msgstr "readlink, readlinkat - liest das Ziel eines symbolischen Links"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTHEK"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "ÜBERSICHT"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>unistd.hE<gt>>\n"
80 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
81
82 # WONTFIX B<…>size_t bufsiz → B<…size_t> I<bufsiz> // forward declaration
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<ssize_t readlink(>size_t bufsiz;\n"
89 "B< const char *restrict >I<path>B<,>\n"
90 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
91 msgstr ""
92 "B<ssize_t readlink(>size_t Puffergröße;\n"
93 "B< const char *restrict >I<Pfad>B<,>\n"
94 "B< char >I<Puffer>B<[restrict >I<Puffergröße>B<], size_t >I<Puffergröße>B<);>\n"
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid ""
101 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
102 "B<#include E<lt>unistd.hE<gt>>\n"
103 msgstr ""
104 "B<#include E<lt>fcntl.hE<gt> >/* Definition der B<AT_*>-Konstanten */\n"
105 "B<#include E<lt>unistd.hE<gt>>\n"
106
107 # WONTFIX B<…>size_t bufsiz → B<…size_t> I<bufsiz> // forward declaration
108 #. type: Plain text
109 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
110 #: opensuse-tumbleweed
111 #, no-wrap
112 msgid ""
113 "B<ssize_t readlinkat(>size_t bufsiz;\n"
114 "B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
115 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
116 msgstr ""
117 "B<ssize_t readlinkat(>size_t Puffergröße;\n"
118 "B< int >I<Verzdd>B<, const char *restrict >I<Pfad>B<,>\n"
119 "B< char >I<Puffer>B<[restrict >I<Puffergröße>B<], size_t >I<Puffergröße>B<);>\n"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 msgid ""
125 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
126 msgstr ""
127 "Mit Glibc erforderliche Feature-Test-Makros (siehe "
128 "B<feature_test_macros>(7)):"
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid "B<readlink>():"
134 msgstr "B<readlink>():"
135
136 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid ""
142 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
143 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
144 msgstr ""
145 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
146 " || /* Glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
147
148 #. type: Plain text
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 msgid "B<readlinkat>():"
152 msgstr "B<readlinkat>():"
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid ""
159 " Since glibc 2.10:\n"
160 " _POSIX_C_SOURCE E<gt>= 200809L\n"
161 " Before glibc 2.10:\n"
162 " _ATFILE_SOURCE\n"
163 msgstr ""
164 " Seit Glibc 2.10:\n"
165 " _POSIX_C_SOURCE E<gt>= 200809L\n"
166 " Vor Glibc 2.10:\n"
167 " _ATFILE_SOURCE\n"
168
169 #. type: SH
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "DESCRIPTION"
174 msgstr "BESCHREIBUNG"
175
176 #. type: Plain text
177 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
178 #: opensuse-tumbleweed
179 msgid ""
180 "B<readlink>() places the contents of the symbolic link I<path> in the "
181 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
182 "terminating null byte to I<buf>. It will (silently) truncate the contents "
183 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
184 "hold all of the contents."
185 msgstr ""
186 "B<readlink>() platziert den Inhalt des symbolischen Links I<Pfad> in den "
187 "I<Puffer>, der die Größe I<Puffergröße> hat. B<readlink>() hängt kein "
188 "abschließendes Nullbyte an I<Puffer> an. Ist der Puffer zu klein, um den "
189 "ganzen Inhalt aufzunehmen, verkürzt es (stillschweigend) den Inhalt (auf die "
190 "Länge von I<Puffergröße> Zeichen)."
191
192 #. type: SS
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "readlinkat()"
197 msgstr "readlinkat()"
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "The B<readlinkat>() system call operates in exactly the same way as "
204 "B<readlink>(), except for the differences described here."
205 msgstr ""
206 "Der Systemaufruf B<readlinkat>() funktioniert, bis auf die hier "
207 "beschriebenen Unterschiede, genauso wie B<readlink>()."
208
209 #. type: Plain text
210 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
211 #: opensuse-tumbleweed
212 msgid ""
213 "If I<path> is relative, then it is interpreted relative to the directory "
214 "referred to by the file descriptor I<dirfd> (rather than relative to the "
215 "current working directory of the calling process, as is done by "
216 "B<readlink>() for a relative pathname)."
217 msgstr ""
218 "Falls I<Pfad> relativ ist, wird er als relativ zu dem im Dateideskriptor "
219 "I<Verzdd> referenzierten Verzeichnis interpretiert (statt relativ zum "
220 "aktuellen Arbeitsverzeichnis des aufrufenden Prozesses, wie es bei "
221 "B<readlink>() für einen relativen Pfadnamen erfolgt)."
222
223 # WONTFIX What does "like B<readlink>()" refer to? This is the man page of readlink(2) // It refers to the readlink() system call. It's in the description of the readlinkat() system call, which is in the same page, so one refers to the other.
224 #. type: Plain text
225 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
226 #: opensuse-tumbleweed
227 msgid ""
228 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
229 "I<path> is interpreted relative to the current working directory of the "
230 "calling process (like B<readlink>())."
231 msgstr ""
232 "Falls I<Pfad> relativ ist und I<Verzdd> den besonderen Wert B<AT_FDCWD> "
233 "annimmt, wird I<Pfad> als relativ zum aktuellen Arbeitsverzeichnis des "
234 "aufrufenden Prozesses interpretiert (wie B<readlink>())."
235
236 #. type: Plain text
237 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
238 #: opensuse-tumbleweed
239 msgid "If I<path> is absolute, then I<dirfd> is ignored."
240 msgstr "Falls I<Pfad> absolut ist, wird I<Verzdd> ignoriert."
241
242 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
243 #. type: Plain text
244 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
245 #: opensuse-tumbleweed
246 msgid ""
247 "Since Linux 2.6.39, I<path> can be an empty string, in which case the call "
248 "operates on the symbolic link referred to by I<dirfd> (which should have "
249 "been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> flags)."
250 msgstr ""
251 "Seit Linux 2.6.39 kann I<Pfad> eine leere Zeichenkette sein. In diesem Fall "
252 "arbeitet der Aufruf auf dem durch I<Verzdd> referenzierten symbolischen Link "
253 "(der durch die Verwendung der Schalter B<O_PATH> und B<O_NOFOLLOW> von "
254 "B<open>(2) erlangt worden sein kann)."
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid "See B<openat>(2) for an explanation of the need for B<readlinkat>()."
260 msgstr ""
261 "Lesen Sie B<openat>(2) für eine Beschreibung der Notwendigkeit von "
262 "B<readlinkat>()."
263
264 #. type: SH
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "RETURN VALUE"
269 msgstr "RÜCKGABEWERT"
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid ""
275 "On success, these calls return the number of bytes placed in I<buf>. (If "
276 "the returned value equals I<bufsiz>, then truncation may have occurred.) On "
277 "error, -1 is returned and I<errno> is set to indicate the error."
278 msgstr ""
279 "Bei Erfolg geben diese Aufrufe die Anzahl der Byte zurück, die in I<Puffer> "
280 "platziert wurden. (Falls der zurückgegebene Wert gleich I<Puffergröße> ist, "
281 "könnte eine Verkürzung aufgetreten sein.) Bei einem Fehler wird -1 "
282 "zurückgegeben und I<errno> so gesetzt, dass es den Fehler angibt."
283
284 #. type: SH
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "ERRORS"
289 msgstr "FEHLER"
290
291 #. type: TP
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid "B<EACCES>"
296 msgstr "B<EACCES>"
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "Search permission is denied for a component of the path prefix. (See also "
303 "B<path_resolution>(7).)"
304 msgstr ""
305 "Ein Bestandteil des Pfad-Präfix durfte nicht durchsucht werden. (Siehe auch "
306 "B<path_resolution>(7).)"
307
308 #. type: TP
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "B<EBADF>"
313 msgstr "B<EBADF>"
314
315 #. type: Plain text
316 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
317 #: opensuse-tumbleweed
318 msgid ""
319 "(B<readlinkat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> "
320 "nor a valid file descriptor."
321 msgstr ""
322 "(B<readlinkat>()) Der I<Pfad> ist relativ, aber I<Verzdd> ist weder "
323 "B<AT_FDCWD> noch ein gültiger Dateideskriptor."
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<EFAULT>"
330 msgstr "B<EFAULT>"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid "I<buf> extends outside the process's allocated address space."
336 msgstr "I<Puffer> überschreitet den reservierten Adressbereich des Prozesses."
337
338 #. type: TP
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "B<EINVAL>"
343 msgstr "B<EINVAL>"
344
345 #. At the glibc level, bufsiz is unsigned, so this error can only occur
346 #. if bufsiz==0. However, the in the kernel syscall, bufsiz is signed,
347 #. and this error can also occur if bufsiz < 0.
348 #. See: http://thread.gmane.org/gmane.linux.man/380
349 #. Subject: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall?
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid "I<bufsiz> is not positive."
354 msgstr "I<Puffergröße> ist nicht positiv."
355
356 #. type: Plain text
357 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
358 #: opensuse-tumbleweed
359 msgid ""
360 "The named file (i.e., the final filename component of I<path>) is not a "
361 "symbolic link."
362 msgstr ""
363 "Die benannte Datei (d.h. die endgültige Dateinamenkomponente von I<Pfad>) "
364 "ist kein symbolischer Link."
365
366 #. type: TP
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "B<EIO>"
371 msgstr "B<EIO>"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid "An I/O error occurred while reading from the filesystem."
377 msgstr "Beim Lesen vom Dateisystem trat ein E/A-Fehler (engl. I/O) auf."
378
379 #. type: TP
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "B<ELOOP>"
384 msgstr "B<ELOOP>"
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid "Too many symbolic links were encountered in translating the pathname."
390 msgstr ""
391 "Beim Übersetzen des Pfadnamens wurden zu viele symbolische Links vorgefunden."
392
393 #. type: TP
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 #, no-wrap
397 msgid "B<ENAMETOOLONG>"
398 msgstr "B<ENAMETOOLONG>"
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 msgid "A pathname, or a component of a pathname, was too long."
404 msgstr "Ein Pfadname oder eine Komponente eines Pfadnamens war zu lang."
405
406 #. type: TP
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid "B<ENOENT>"
411 msgstr "B<ENOENT>"
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid "The named file does not exist."
417 msgstr "Die angegebene Datei existiert nicht."
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<ENOMEM>"
424 msgstr "B<ENOMEM>"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid "Insufficient kernel memory was available."
430 msgstr "Es war nicht genügend Kernelspeicher verfügbar."
431
432 #. type: TP
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "B<ENOTDIR>"
437 msgstr "B<ENOTDIR>"
438
439 #. type: Plain text
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 msgid "A component of the path prefix is not a directory."
443 msgstr "Eine Komponente des Pfad-Präfixes ist kein Verzeichnis."
444
445 #. type: Plain text
446 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
447 #: opensuse-tumbleweed
448 msgid ""
449 "(B<readlinkat>()) I<path> is relative and I<dirfd> is a file descriptor "
450 "referring to a file other than a directory."
451 msgstr ""
452 "(B<readlinkat>()) I<Pfad> ist relativ und I<Verzdd> ist ein Dateideskriptor, "
453 "der sich auf eine Datei bezieht, die kein Verzeichnis ist."
454
455 #. type: SH
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "STANDARDS"
460 msgstr "STANDARDS"
461
462 #. type: Plain text
463 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
464 #: opensuse-tumbleweed
465 msgid "POSIX.1-2024."
466 msgstr "POSIX.1-2024."
467
468 #. type: SH
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid "HISTORY"
473 msgstr "GESCHICHTE"
474
475 #. type: TP
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "B<readlink>()"
480 msgstr "B<readlink>()"
481
482 #. type: Plain text
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 msgid "4.4BSD (first appeared in 4.2BSD), POSIX.1-2001, POSIX.1-2008."
486 msgstr "4.4BSD (erschien erstmalig in 4.2BSD), POSIX.1-2001, POSIX.1-2008."
487
488 #. type: TP
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "B<readlinkat>()"
493 msgstr "B<readlinkat>()"
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
499 msgstr "POSIX.1-2008. Linux 2.6.16, Glibc 2.4."
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 msgid ""
505 "Up to and including glibc 2.4, the return type of B<readlink>() was "
506 "declared as I<int>. Nowadays, the return type is declared as I<ssize_t>, as "
507 "(newly) required in POSIX.1-2001."
508 msgstr ""
509 "Bis einschließlich Glibc 2.4 wurde der Typ des Rückgabewerts von "
510 "B<readlink>() als I<int> deklariert. Heutzutage ist der Typ des "
511 "Rückgabewerts als I<ssize_t> deklariert, wie es (neuerdings) in POSIX.1-2001 "
512 "benötigt wird."
513
514 #. type: SS
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "glibc"
519 msgstr "Glibc"
520
521 #. type: Plain text
522 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
523 #: opensuse-tumbleweed
524 msgid ""
525 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
526 "function falls back to the use of B<readlink>(). When I<path> is relative, "
527 "glibc constructs a pathname based on the symbolic link in I</proc/self/fd> "
528 "that corresponds to the I<dirfd> argument."
529 msgstr ""
530 "Unter älteren Kerneln, in denen B<readlinkat>() nicht verfügbar ist, weicht "
531 "die Glibc-Wrapper-Funktion auf B<readlink>() aus. Wenn I<Pfad> relativ ist, "
532 "dann konstruiert die Glibc einen Pfadnamen, der auf jenem symbolischen Link "
533 "in I</proc/self/fd> basiert, der dem Argument I<Verzdd> entspricht."
534
535 #. type: SH
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "NOTES"
540 msgstr "ANMERKUNGEN"
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid ""
546 "Using a statically sized buffer might not provide enough room for the "
547 "symbolic link contents. The required size for the buffer can be obtained "
548 "from the I<stat.st_size> value returned by a call to B<lstat>(2) on the "
549 "link. However, the number of bytes written by B<readlink>() and "
550 "B<readlinkat>() should be checked to make sure that the size of the "
551 "symbolic link did not increase between the calls. Dynamically allocating "
552 "the buffer for B<readlink>() and B<readlinkat>() also addresses a common "
553 "portability problem when using B<PATH_MAX> for the buffer size, as this "
554 "constant is not guaranteed to be defined per POSIX if the system does not "
555 "have such limit."
556 msgstr ""
557 "Wenn Sie einen Puffer mit einer festen Größe verwenden, ist eventuell nicht "
558 "genug Platz für die Inhalte des symbolischen Links vorhanden. Die "
559 "erforderliche Größe für den Puffer kann aus dem Wert I<stat.st_size> "
560 "ermittelt werden, der nach einem Aufruf der Funktion B<lstat>(2) für den "
561 "Link zurückgegeben wird. Allerdings sollte die Anzahl der Byte, die von "
562 "B<readlink>() und B<readlinkat>() geschrieben wurden, überprüft werden. "
563 "Damit kann sichergestellt werden, dass die Größe des symbolischen Links "
564 "zwischen den Aufrufen nicht zugenommen hat. Die dynamische Zuweisung des "
565 "Puffers für B<readlink>() und B<readlinkat>() behebt außerdem ein "
566 "verbreitetes Portabilitätsproblem, wenn Sie B<PATH_MAX> für die Puffergröße "
567 "benutzen. Diese Konstante muss laut POSIX nicht zwingend definiert sein, "
568 "wenn das System eine solche Beschränkung nicht hat."
569
570 #. type: SH
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "EXAMPLES"
575 msgstr "BEISPIELE"
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "The following program allocates the buffer needed by B<readlink>() "
582 "dynamically from the information provided by B<lstat>(2), falling back to a "
583 "buffer of size B<PATH_MAX> in cases where B<lstat>(2) reports a size of "
584 "zero."
585 msgstr ""
586 "Das folgende Programm reserviert den von B<readlink>() benötigten Puffer "
587 "dynamisch mittels der Information, die von B<lstat>(2) bereitgestellt wird. "
588 "Dabei wird in Fällen, in denen B<lstat>(2) die Größe Null zurückliefert, auf "
589 "einen Puffer der Größe B<PATH_MAX> zurückgefallen."
590
591 #. type: Plain text
592 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
593 #: opensuse-tumbleweed
594 #, no-wrap
595 msgid ""
596 "#include E<lt>limits.hE<gt>\n"
597 "#include E<lt>stdio.hE<gt>\n"
598 "#include E<lt>stdlib.hE<gt>\n"
599 "#include E<lt>sys/stat.hE<gt>\n"
600 "#include E<lt>sys/types.hE<gt>\n"
601 "#include E<lt>unistd.hE<gt>\n"
602 "\\&\n"
603 "int\n"
604 "main(int argc, char *argv[])\n"
605 "{\n"
606 " char *buf;\n"
607 " ssize_t nbytes, bufsiz;\n"
608 " struct stat sb;\n"
609 "\\&\n"
610 " if (argc != 2) {\n"
611 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
612 " exit(EXIT_FAILURE);\n"
613 " }\n"
614 "\\&\n"
615 " if (lstat(argv[1], &sb) == -1) {\n"
616 " perror(\"lstat\");\n"
617 " exit(EXIT_FAILURE);\n"
618 " }\n"
619 "\\&\n"
620 " /* Add one to the link size, so that we can determine whether\n"
621 " the buffer returned by readlink() was truncated. */\n"
622 "\\&\n"
623 " bufsiz = sb.st_size + 1;\n"
624 "\\&\n"
625 " /* Some magic symlinks under (for example) /proc and /sys\n"
626 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
627 " a \"good enough\" estimate. */\n"
628 "\\&\n"
629 " if (sb.st_size == 0)\n"
630 " bufsiz = PATH_MAX;\n"
631 "\\&\n"
632 " buf = malloc(bufsiz);\n"
633 " if (buf == NULL) {\n"
634 " perror(\"malloc\");\n"
635 " exit(EXIT_FAILURE);\n"
636 " }\n"
637 "\\&\n"
638 " nbytes = readlink(argv[1], buf, bufsiz);\n"
639 " if (nbytes == -1) {\n"
640 " perror(\"readlink\");\n"
641 " exit(EXIT_FAILURE);\n"
642 " }\n"
643 "\\&\n"
644 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
645 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
646 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
647 "\\&\n"
648 " /* If the return value was equal to the buffer size, then\n"
649 " the link target was larger than expected (perhaps because the\n"
650 " target was changed between the call to lstat() and the call to\n"
651 " readlink()). Warn the user that the returned target may have\n"
652 " been truncated. */\n"
653 "\\&\n"
654 " if (nbytes == bufsiz)\n"
655 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
656 "\\&\n"
657 " free(buf);\n"
658 " exit(EXIT_SUCCESS);\n"
659 "}\n"
660 msgstr ""
661 "#include E<lt>limits.hE<gt>\n"
662 "#include E<lt>stdio.hE<gt>\n"
663 "#include E<lt>stdlib.hE<gt>\n"
664 "#include E<lt>sys/stat.hE<gt>\n"
665 "#include E<lt>sys/types.hE<gt>\n"
666 "#include E<lt>unistd.hE<gt>\n"
667 "\\&\n"
668 "int\n"
669 "main(int argc, char *argv[])\n"
670 "{\n"
671 " char *buf;\n"
672 " ssize_t nbytes, bufsiz;\n"
673 " struct stat sb;\n"
674 "\\&\n"
675 " if (argc != 2) {\n"
676 " fprintf(stderr, \"Aufruf: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
677 " exit(EXIT_FAILURE);\n"
678 " }\n"
679 "\\&\n"
680 " if (lstat(argv[1], &sb) == -1) {\n"
681 " perror(\"lstat\");\n"
682 " exit(EXIT_FAILURE);\n"
683 " }\n"
684 "\\&\n"
685 " /* Einen zur Linkgröße hinzufügen, so dass bestimmt werden\n"
686 " kann, ob der von readlink() zurückgelieferte Puffer\n"
687 " abgeschnitten wurde. */\n"
688 "\\&\n"
689 " bufsiz = sb.st_size + 1;\n"
690 "\\&\n"
691 " /* Einige magische Symlinks unter (beispielsweise) /proc und /sys\n"
692 " geben »st_size« als Null zurück. In diesem Fall wird PATH_MAX als\n"
693 " eine »genügend gute« Schätzung angenommen. */\n"
694 "\\&\n"
695 " if (sb.st_size == 0)\n"
696 " bufsiz = PATH_MAX;\n"
697 "\\&\n"
698 " buf = malloc(bufsiz);\n"
699 " if (buf == NULL) {\n"
700 " perror(\"malloc\");\n"
701 " exit(EXIT_FAILURE);\n"
702 " }\n"
703 "\\&\n"
704 " nbytes = readlink(argv[1], buf, bufsiz);\n"
705 " if (nbytes == -1) {\n"
706 " perror(\"readlink\");\n"
707 " exit(EXIT_FAILURE);\n"
708 " }\n"
709 "\\&\n"
710 " /* Gibt nur »nbyte« von »buf« aus, da es kein abschließenes\n"
711 " Nullbyte (»\\[rs]0«) enthält. */\n"
712 " printf(\"»%s« zeigt auf »%.*s«\\[rs]n\", argv[1], (int) nbytes, buf);\n"
713 "\\&\n"
714 " /* Falls der Rückgabewert der Puffergröße entsprach, dann war das\n"
715 " Link-Ziel größer als erwartet (vielleicht weil das Ziel zwischen\n"
716 " dem Aufruf von lstat() und dem Aufruf von readlink() geändert\n"
717 " wurde). Den Benutzer warnen, dass das zurückgelieferte Ziel\n"
718 " abgeschnitten worden sein kann. */\n"
719 "\\&\n"
720 " if (nbytes == bufsiz)\n"
721 " printf(\"(Zurückgelieferter Puffer könnte abgeschnitten worden sein)\\[rs]n\");\n"
722 "\\&\n"
723 " free(buf);\n"
724 " exit(EXIT_SUCCESS);\n"
725 "}\n"
726
727 #. SRC END
728 #. type: SH
729 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
730 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
731 #, no-wrap
732 msgid "SEE ALSO"
733 msgstr "SIEHE AUCH"
734
735 #. type: Plain text
736 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
737 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
738 msgid ""
739 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
740 "B<path_resolution>(7), B<symlink>(7)"
741 msgstr ""
742 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
743 "B<path_resolution>(7), B<symlink>(7)"
744
745 #. type: TH
746 #: debian-trixie
747 #, no-wrap
748 msgid "2024-06-15"
749 msgstr "15. Juni 2024"
750
751 #. type: TH
752 #: debian-trixie
753 #, no-wrap
754 msgid "Linux man-pages 6.9.1"
755 msgstr "Linux man-pages 6.9.1"
756
757 #. type: Plain text
758 #: debian-trixie
759 msgid "Standard C library (I<libc>, I<-lc>)"
760 msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)"
761
762 #. type: Plain text
763 #: debian-trixie
764 #, no-wrap
765 msgid ""
766 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
767 "B< size_t >I<bufsiz>B<);>\n"
768 msgstr ""
769 "B<ssize_t readlink(const char *restrict >I<Pfadname>B<, char *restrict >I<Puffer>B<,>\n"
770 "B< size_t >I<Puffergröße>B<);>\n"
771
772 #. type: Plain text
773 #: debian-trixie
774 #, no-wrap
775 msgid ""
776 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
777 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
778 msgstr ""
779 "B<ssize_t readlinkat(int >I<Verzdd>B<, const char *restrict >I<Pfadname>B<,>\n"
780 "B< char *restrict >I<Puffer>B<, size_t >I<Puffergröße>B<);>\n"
781
782 #. type: Plain text
783 #: debian-trixie fedora-44 fedora-rawhide
784 msgid ""
785 "B<readlink>() places the contents of the symbolic link I<pathname> in the "
786 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
787 "terminating null byte to I<buf>. It will (silently) truncate the contents "
788 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
789 "hold all of the contents."
790 msgstr ""
791 "B<readlink>() platziert den Inhalt des symbolischen Links I<Pfadname> in den "
792 "I<Puffer>, der die Größe I<Puffergröße> hat. B<readlink>() hängt kein "
793 "abschließendes Nullbyte an I<Puffer> an. Ist der Puffer zu klein, um den "
794 "ganzen Inhalt aufzunehmen, verkürzt es (stillschweigend) den Inhalt (auf die "
795 "Länge von I<Puffergröße> Zeichen)."
796
797 #. type: Plain text
798 #: debian-trixie fedora-44 fedora-rawhide
799 msgid ""
800 "If the pathname given in I<pathname> is relative, then it is interpreted "
801 "relative to the directory referred to by the file descriptor I<dirfd> "
802 "(rather than relative to the current working directory of the calling "
803 "process, as is done by B<readlink>() for a relative pathname)."
804 msgstr ""
805 "Falls der in I<Pfadname> übergebene Pfadname relativ ist, wird er als "
806 "relativ zu dem im Dateideskriptor I<Verzdd> referenzierten Verzeichnis "
807 "interpretiert (statt relativ zum aktuellen Arbeitsverzeichnis des "
808 "aufrufenden Prozesses, wie es bei B<readlink>() für einen relativen "
809 "Pfadnamen erfolgt)."
810
811 #. type: Plain text
812 #: debian-trixie fedora-44 fedora-rawhide
813 msgid ""
814 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
815 "then I<pathname> is interpreted relative to the current working directory of "
816 "the calling process (like B<readlink>())."
817 msgstr ""
818 "Falls I<Pfadname> relativ ist und I<Verzdd> den besonderen Wert B<AT_FDCWD> "
819 "annimmt, wird I<Pfadname> als relativ zum aktuellen Arbeitsverzeichnis des "
820 "aufrufenden Prozesses interpretiert (wie B<readlink>())."
821
822 #. type: Plain text
823 #: debian-trixie fedora-44 fedora-rawhide
824 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
825 msgstr "Falls I<Pfadname> absolut ist, wird I<Verzdd> ignoriert."
826
827 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
828 #. type: Plain text
829 #: debian-trixie fedora-44 fedora-rawhide
830 msgid ""
831 "Since Linux 2.6.39, I<pathname> can be an empty string, in which case the "
832 "call operates on the symbolic link referred to by I<dirfd> (which should "
833 "have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> "
834 "flags)."
835 msgstr ""
836 "Seit Linux 2.6.39 kann I<Pfadname> eine leere Zeichenkette sein. In diesem "
837 "Fall arbeitet der Aufruf auf dem durch I<Verzdd> referenzierten symbolischen "
838 "Link (der durch die Verwendung der Schalter B<O_PATH> und B<O_NOFOLLOW> von "
839 "B<open>(2) erlangt worden sein kann)."
840
841 #. type: Plain text
842 #: debian-trixie fedora-44 fedora-rawhide
843 msgid ""
844 "(B<readlinkat>()) I<pathname> is relative but I<dirfd> is neither "
845 "B<AT_FDCWD> nor a valid file descriptor."
846 msgstr ""
847 "(B<readlinkat>()) Der I<Pfadname> ist relativ, aber I<Verzdd> ist weder "
848 "B<AT_FDCWD> noch ein gültiger Dateideskriptor."
849
850 #. type: Plain text
851 #: debian-trixie fedora-44 fedora-rawhide
852 msgid ""
853 "The named file (i.e., the final filename component of I<pathname>) is not a "
854 "symbolic link."
855 msgstr ""
856 "Die benannte Datei (d.h. die endgültige Dateinamenkomponente von "
857 "I<Pfadname>) ist kein symbolischer Link."
858
859 #. type: Plain text
860 #: debian-trixie fedora-44 fedora-rawhide
861 msgid ""
862 "(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
863 "referring to a file other than a directory."
864 msgstr ""
865 "(B<readlinkat>()) I<Pfadname> ist relativ und I<Verzdd> ist ein "
866 "Dateideskriptor, der sich auf eine Datei bezieht, die kein Verzeichnis ist."
867
868 #. type: Plain text
869 #: debian-trixie fedora-44 fedora-rawhide
870 msgid "POSIX.1-2008."
871 msgstr "POSIX.1-2008."
872
873 #. type: Plain text
874 #: debian-trixie fedora-44 fedora-rawhide
875 msgid ""
876 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
877 "function falls back to the use of B<readlink>(). When I<pathname> is a "
878 "relative pathname, glibc constructs a pathname based on the symbolic link in "
879 "I</proc/self/fd> that corresponds to the I<dirfd> argument."
880 msgstr ""
881 "Unter älteren Kerneln, in denen B<readlinkat>() nicht verfügbar ist, weicht "
882 "die Glibc-Wrapper-Funktion auf B<readlink>() aus. Wenn I<Pfadname> ein "
883 "relativer Pfadname ist, dann konstruiert die Glibc einen Pfadnamen, der auf "
884 "jenem symbolischen Link in I</proc/self/fd> basiert, der dem Argument "
885 "I<Verzdd> entspricht."
886
887 #. type: Plain text
888 #: debian-trixie fedora-44 fedora-rawhide
889 #, no-wrap
890 msgid ""
891 "#include E<lt>limits.hE<gt>\n"
892 "#include E<lt>stdio.hE<gt>\n"
893 "#include E<lt>stdlib.hE<gt>\n"
894 "#include E<lt>sys/stat.hE<gt>\n"
895 "#include E<lt>sys/types.hE<gt>\n"
896 "#include E<lt>unistd.hE<gt>\n"
897 "\\&\n"
898 "int\n"
899 "main(int argc, char *argv[])\n"
900 "{\n"
901 " char *buf;\n"
902 " ssize_t nbytes, bufsiz;\n"
903 " struct stat sb;\n"
904 "\\&\n"
905 " if (argc != 2) {\n"
906 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
907 " exit(EXIT_FAILURE);\n"
908 " }\n"
909 "\\&\n"
910 " if (lstat(argv[1], &sb) == -1) {\n"
911 " perror(\"lstat\");\n"
912 " exit(EXIT_FAILURE);\n"
913 " }\n"
914 "\\&\n"
915 " /* Add one to the link size, so that we can determine whether\n"
916 " the buffer returned by readlink() was truncated. */\n"
917 "\\&\n"
918 " bufsiz = sb.st_size + 1;\n"
919 "\\&\n"
920 " /* Some magic symlinks under (for example) /proc and /sys\n"
921 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
922 " a \"good enough\" estimate. */\n"
923 "\\&\n"
924 " if (sb.st_size == 0)\n"
925 " bufsiz = PATH_MAX;\n"
926 "\\&\n"
927 " buf = malloc(bufsiz);\n"
928 " if (buf == NULL) {\n"
929 " perror(\"malloc\");\n"
930 " exit(EXIT_FAILURE);\n"
931 " }\n"
932 "\\&\n"
933 " nbytes = readlink(argv[1], buf, bufsiz);\n"
934 " if (nbytes == -1) {\n"
935 " perror(\"readlink\");\n"
936 " exit(EXIT_FAILURE);\n"
937 " }\n"
938 "\\&\n"
939 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
940 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
941 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
942 "\\&\n"
943 " /* If the return value was equal to the buffer size, then\n"
944 " the link target was larger than expected (perhaps because the\n"
945 " target was changed between the call to lstat() and the call to\n"
946 " readlink()). Warn the user that the returned target may have\n"
947 " been truncated. */\n"
948 "\\&\n"
949 " if (nbytes == bufsiz)\n"
950 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
951 "\\&\n"
952 " free(buf);\n"
953 " exit(EXIT_SUCCESS);\n"
954 "}\n"
955 msgstr ""
956 "#include E<lt>limits.hE<gt>\n"
957 "#include E<lt>stdio.hE<gt>\n"
958 "#include E<lt>stdlib.hE<gt>\n"
959 "#include E<lt>sys/stat.hE<gt>\n"
960 "#include E<lt>sys/types.hE<gt>\n"
961 "#include E<lt>unistd.hE<gt>\n"
962 "\\&\n"
963 "int\n"
964 "main(int argc, char *argv[])\n"
965 "{\n"
966 " char *buf;\n"
967 " ssize_t nbytes, bufsiz;\n"
968 " struct stat sb;\n"
969 "\\&\n"
970 " if (argc != 2) {\n"
971 " fprintf(stderr, \"Aufruf: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
972 " exit(EXIT_FAILURE);\n"
973 " }\n"
974 "\\&\n"
975 " if (lstat(argv[1], &sb) == -1) {\n"
976 " perror(\"lstat\");\n"
977 " exit(EXIT_FAILURE);\n"
978 " }\n"
979 "\\&\n"
980 " /* Einen zur Linkgröße hinzufügen, so dass bestimmt werden\n"
981 " kann, ob der von readlink() zurückgelieferte Puffer\n"
982 " abgeschnitten wurde. */\n"
983 "\\&\n"
984 " bufsiz = sb.st_size + 1;\n"
985 "\\&\n"
986 " /* Einige magische Symlinks unter (beispielsweise) /proc und /sys\n"
987 " geben »st_size« als Null zurück. In diesem Fall wird PATH_MAX als\n"
988 " eine »genügend gute« Schätzung angenommen. */\n"
989 "\\&\n"
990 " if (sb.st_size == 0)\n"
991 " bufsiz = PATH_MAX;\n"
992 "\\&\n"
993 " buf = malloc(bufsiz);\n"
994 " if (buf == NULL) {\n"
995 " perror(\"malloc\");\n"
996 " exit(EXIT_FAILURE);\n"
997 " }\n"
998 "\\&\n"
999 " nbytes = readlink(argv[1], buf, bufsiz);\n"
1000 " if (nbytes == -1) {\n"
1001 " perror(\"readlink\");\n"
1002 " exit(EXIT_FAILURE);\n"
1003 " }\n"
1004 "\\&\n"
1005 " /* Gibt nur »nbyte« von »buf« aus, da es kein abschließenes\n"
1006 " Nullbyte (»\\[rs]0«) enthält. */\n"
1007 " printf(\"»%s« zeigt auf »%.*s«\\[rs]n\", argv[1], (int) nbytes, buf);\n"
1008 "\\&\n"
1009 " /* Falls der Rückgabewert der Puffergröße entsprach, dann war das\n"
1010 " Link-Ziel größer als erwartet (vielleicht weil das Ziel zwischen\n"
1011 " dem Aufruf von lstat() und dem Aufruf von readlink() geändert\n"
1012 " wurde). Den Benutzer warnen, dass das zurückgelieferte Ziel\n"
1013 " abgeschnitten worden sein kann. */\n"
1014 "\\&\n"
1015 " if (nbytes == bufsiz)\n"
1016 " printf(\"(Zurückgelieferter Puffer könnte abgeschnitten worden sein)\\[rs]n\");\n"
1017 "\\&\n"
1018 " free(buf);\n"
1019 " exit(EXIT_SUCCESS);\n"
1020 "}\n"
1021
1022 #. type: TH
1023 #: fedora-44 fedora-rawhide
1024 #, no-wrap
1025 msgid "2024-11-28"
1026 msgstr "28. November 2024"
1027
1028 #. type: TH
1029 #: fedora-44 fedora-rawhide
1030 #, no-wrap
1031 msgid "Linux man-pages 6.13"
1032 msgstr "Linux man-pages 6.13"
1033
1034 #. type: Plain text
1035 #: fedora-44 fedora-rawhide
1036 #, no-wrap
1037 msgid ""
1038 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
1039 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1040 msgstr ""
1041 "B<ssize_t readlink(const char *restrict >I<Pfadname>B<,>\n"
1042 "B< char >I<Puffer>B<[restrict .>I<Puffergröße>B<], size_t >I<Puffergröße>B<);>\n"
1043
1044 #. type: Plain text
1045 #: fedora-44 fedora-rawhide
1046 #, no-wrap
1047 msgid ""
1048 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1049 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1050 msgstr ""
1051 "B<ssize_t readlinkat(int >I<Verzdd>B<, const char *restrict >I<Pfadname>B<,>\n"
1052 "B< char >I<Puffer>B<[restrict .>I<Puffergröße>B<], size_t >I<Puffergröße>B<);>\n"
1053
1054 #. type: TH
1055 #: mageia-cauldron
1056 #, no-wrap
1057 msgid "Linux man-pages 6.17"
1058 msgstr "Linux man-pages 6.17"
1059
1060 #. type: TH
1061 #: opensuse-leap-16-1 opensuse-tumbleweed
1062 #, no-wrap
1063 msgid "Linux man-pages (unreleased)"
1064 msgstr "Linux man-pages (unveröffentlicht)"