.\" -*- 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. srpna 2019" Linux "Linux \- příručka programátora" .SH JMÉNO chdir, fchdir \- změna pracovního adresáře .SH POUŽITÍ \fB#include \fP .PP \fBint chdir(const char *\fP\fIpath\fP\fB);\fP .br \fBint fchdir(int \fP\fIfd\fP\fB);\fP .PP .RS -4 Požaduje množinu testovacích maker pro glibc (viz \fBfeature_test_macros\fP(7)): .RE .PP \fBfchdir\fP(): .PD 0 .ad l .RS 4 .\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED _XOPEN_SOURCE\ >=\ 500 || /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L || /* Glibc up to and including 2.19: */ _BSD_SOURCE .RE .ad .PD .SH POPIS \fBchdir\fP () změní současný adresář na adresář specifikovaný v \fIpath\fP. .PP \fBfchdir\fP () má tutéž funkci jako \fBchdir\fP (), pouze s tím rozdílem, že adresář je zadán jako otevřený deskriptor souboru. .SH "NÁVRATOVÉ HODNOTY" Je\-li volání úspěšné, vrací se 0, jinak \-1 a je nastavena proměnná \fIerrno\fP. .SH "CHYBOVÉ STAVY" V závislosti na druhu souborového systému mohou být vráceny i jiné chyby. Nejobvyklejší chyby pro \fBchdir\fP jsou vypsány zde: .TP \fBEACCES\fP Search permission is denied for one of the components of \fIpath\fP. (See also \fBpath_resolution\fP(7).) .TP \fBEFAULT\fP \fIpath\fP ukazuje mimo vám přístupný adresový prostor. .TP \fBEIO\fP Objevila se vstup/výstupní chyba. .TP \fBELOOP\fP \fIpath\fP obsahuje cyklické odkazy (např. přes symbolický odkaz) .TP \fBENAMETOOLONG\fP \fIpath\fP je příliš dlouhá. .TP \fBENOENT\fP The directory specified in \fIpath\fP does not exist. .TP \fBENOMEM\fP Nedostatek paměti pro kernel. .TP \fBENOTDIR\fP Některá část cesty není adresář. .PP Obvyklé chyby \fBfchdir\fP jsou zde: .TP \fBEACCES\fP Prohledání adresáře specifikovaného \fIfd\fP bylo odmítnuto kvůli nedostatečným právům. .TP \fBEBADF\fP Deskriptor souboru \fIfd\fP není platný. .TP \fBENOTDIR\fP \fIfd\fP does not refer to a directory. .SH "SPLŇUJE STANDARDY" POSIX.1\-2001, POSIX.1\-2008, SVr4, 4.4BSD. .SH POZNÁMKY Aktuální pracovní adresář je výchozím bodem pro interpretaci relativních cest (začínají \(aq/\(aq). .PP Synovský proces vytvořený pomocí \fBfork\fP(2) zdědí aktuální pracovní adresář svého rodiče. Pracovní adresář je ponechán beze změny při užití \fBexecve\fP(2). .SH "DALŠÍ INFORMACE" \fBchroot\fP(2), \fBgetcwd\fP(3), \fBpath_resolution\fP(7) .SH TIRÁŽ Tato stránka je součástí projektu Linux \fIman\-pages\fP v5.10. Popis projektu a informace o hlášení chyb najdete na \%https://www.kernel.org/doc/man\-pages/. .PP .SH PŘEKLAD Překlad této příručky do španělštiny vytvořili Pavel Heimlich . .PP Tento překlad je bezplatná dokumentace; Přečtěte si .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE nebo novější ohledně podmínek autorských práv. Neexistuje ŽÁDNÁ ODPOVĚDNOST. .PP Pokud narazíte na nějaké chyby v překladu této příručky, pošlete e-mail na adresu .MT translation-team-cs@lists.sourceforge.net .ME .