.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1992 Drew Eckhardt (drew@cs.colorado.edu), March 28, 1992 .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Modified by Michael Haardt .\" Modified 1993-07-21 by Rik Faith .\" Modified 1995-04-15 by Michael Chastain : .\" Added 'fchdir'. Fixed bugs in error section. .\" Modified 1996-10-21 by Eric S. Raymond .\" Modified 1997-08-21 by Joseph S. Myers .\" Modified 2004-06-23 by Michael Kerrisk .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH CHDIR 2 "2. August 2019" Linux Linux\-Programmierhandbuch .SH BEZEICHNUNG chdir, fchdir \- aktuelles Arbeitsverzeichnis wechseln .SH ÜBERSICHT \fB#include \fP .PP \fBint chdir(const char *\fP\fIPfad\fP\fB);\fP .br \fBint fchdir(int \fP\fIdd\fP\fB);\fP .PP .in -4n Mit Glibc erforderliche Makros (siehe \fBfeature_test_macros\fP(7)): .in .PP \fBfchdir\fP(): .PD 0 .ad l .RS 4 .\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED _XOPEN_SOURCE\ >=\ 500 || /* Seit Glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L || /* Glibc bis zu einschließlich 2.19: */ _BSD_SOURCE .RE .ad .PD .SH BESCHREIBUNG \fBchdir\fP() ändert das aktuelle Verzeichnis in das durch \fIPfad\fP angegebene Verzeichnis. .PP \fBfchdir\fP() ist identisch mit \fBchdir\fP(), jedoch wird das Verzeichnis als geöffneter Dateideskriptor übergeben. .SH RÜCKGABEWERT Bei Erfolg wird Null zurückgegeben. Bei einem Fehler wird \-1 zurückgegeben und \fIerrno\fP entsprechend gesetzt. .SH FEHLER Abhängig vom Dateisystem können andere Fehler auftreten und zurückgegeben werden. Die folgende Auflistung nennt lediglich die allgemeineren Fehler von \fBchdir\fP(): .TP \fBEACCES\fP Dem Prozess ist nicht erlaubt, eine Komponente von \fIPfad\fP zu durchsuchen. (siehe auch \fBpath_resolution\fP(8)) .TP \fBEFAULT\fP \fIPfad\fP zeigt aus dem für Sie zugänglichen Adressraum heraus. .TP \fBEIO\fP Es ist ein E/A\-Fehler (engl. I/O) aufgetreten. .TP \fBELOOP\fP Bei der Auflösung von \fIPfad\fP wurden zu viele symbolische Links gefunden. .TP \fBENAMETOOLONG\fP \fIPfad\fP ist zu lang. .TP \fBENOENT\fP Das in \fIPfad\fP angegebene Verzeichnis existiert nicht. .TP \fBENOMEM\fP Es war nicht genügend Kernelspeicher verfügbar. .TP \fBENOTDIR\fP Eine Komponente von \fIPfad\fP ist kein Verzeichnis. .PP Die folgende Auflistung nennt allgemeine Fehler von \fBfchdir\fP(): .TP \fBEACCES\fP Es ist nicht erlaubt, das durch \fIdd\fP angegebene Verzeichnis zu durchsuchen. .TP \fBEBADF\fP \fIdd\fP ist kein zulässiger Dateideskriptor. .TP \fBENOTDIR\fP \fIdd\fP bezieht sich nicht auf ein Verzeichnis. .SH "KONFORM ZU" POSIX.1\-2001, POSIX.1\-2008, SVr4, 4.4BSD. .SH ANMERKUNGEN Das aktuelle Verzeichnis ist der Ausgangspunkt für die Auswertung relativer Pfadnamen. Diese beginnen nicht mit »/«. .PP Ein mit \fBfork\fP(2) erzeugter Kindprozess erbt das aktuelle Verzeichnis seines Elternprozesses. Das aktuelle Verzeichnis wird von \fBexecve\fP(2) nicht verändert. .SH "SIEHE AUCH" \fBchroot\fP(2), \fBgetcwd\fP(3), \fBpath_resolution\fP(7) .SH KOLOPHON Diese Seite ist Teil der Veröffentlichung 5.04 des Projekts Linux\-\fIman\-pages\fP. Eine Beschreibung des Projekts, Informationen, wie Fehler gemeldet werden können sowie die aktuelle Version dieser Seite finden sich unter \%https://www.kernel.org/doc/man\-pages/. .SH ÜBERSETZUNG Die deutsche Übersetzung dieser Handbuchseite wurde von Daniel Kobras , Martin Eberhard Schauer und Mario Blättermann erstellt. Diese Übersetzung ist Freie Dokumentation; lesen Sie die .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE oder neuer bezüglich der Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen. Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden, schicken Sie bitte eine E-Mail an die .MT debian-l10n-german@\:lists.\:debian.\:org Mailingliste der Übersetzer .ME .