.\" -*- 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 sierpnia 2019 r." Linux "Podręcznik programisty Linuksa" .SH NAZWA chdir, fchdir \- zmiana katalogu roboczego .SH SKŁADNIA \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 Wymagane ustawienia makr biblioteki glibc (patrz \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 OPIS \fBchdir\fP() changes the current working directory of the calling process to the directory specified in \fIpath\fP. .PP \fBfchdir\fP() jest identyczne jak \fBchdir\fP(), lecz katalog jest podawany jako deskryptor otwartego pliku. .SH "WARTOŚĆ ZWRACANA" Po pomyślnym zakończeniu zwracane jest zero. Po błędzie zwracane jest \-1 i odpowiednio ustawiane jest \fIerrno\fP. .SH BŁĘDY Dla niektórych systemów plików mogą być zwracane inne błędy niż opisane poniżej. Najogólniejsze błędy \fBchdir\fP() to: .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 wskazuje poza dostępną dla użytkownika przestrzeń adresową. .TP \fBEIO\fP Wystąpił błąd wejścia/wyjścia. .TP \fBELOOP\fP Podczas rozwiązywania \fIpath\fP napotkano zbyt wiele dowiązań symbolicznych. .TP \fBENAMETOOLONG\fP \fIpath\fP jest zbyt długie. .TP \fBENOENT\fP The directory specified in \fIpath\fP does not exist. .TP \fBENOMEM\fP Brak pamięci jądra. .TP \fBENOTDIR\fP Składowa ścieżki \fIpath\fP nie jest katalogiem. .PP Ogólne błędy \fBfchdir\fP() to: .TP \fBEACCES\fP Brak praw do przeszukiwania katalogu otwartego przez deskryptor \fIfd\fP. .TP \fBEBADF\fP \fIfd\fP nie jest prawidłowym deskryptorem pliku. .TP \fBENOTDIR\fP \fIfd\fP does not refer to a directory. .SH "ZGODNE Z" POSIX.1\-2001, POSIX.1\-2008, SVr4, 4.4BSD. .SH UWAGI The current working directory is the starting point for interpreting relative pathnames (those not starting with \(aq/\(aq). .PP A child process created via \fBfork\fP(2) inherits its parent's current working directory. The current working directory is left unchanged by \fBexecve\fP(2). .SH "ZOBACZ TAKŻE" \fBchroot\fP(2), \fBgetcwd\fP(3), \fBpath_resolution\fP(7) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 5.10 projektu Linux \fIman\-pages\fP. Opis projektu, informacje dotyczące zgłaszania błędów oraz najnowszą wersję oryginału można znaleźć pod adresem \%https://www.kernel.org/doc/man\-pages/. .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Andrzej Krzysztofowicz . Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach licencji można uzyskać zapoznając się z .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License w wersji 3 .UE lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI. Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres .MT manpages-pl-list@lists.sourceforge.net .ME .