mirror of https://github.com/mkerrisk/man-pages
Fixed description of EACCES error.
Added sentence defining "curret working directory". Other minor wording changes.
This commit is contained in:
parent
78f3e2423f
commit
ee62201f94
11
man2/chdir.2
11
man2/chdir.2
|
@ -30,7 +30,7 @@
|
|||
.\" Modified 1997-08-21 by Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
.\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net>
|
||||
.\"
|
||||
.TH CHDIR 2 2004-06-23 "Linux" "Linux Programmer's Manual"
|
||||
.TH CHDIR 2 2007-06-18 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
chdir, fchdir \- change working directory
|
||||
.SH SYNOPSIS
|
||||
|
@ -41,7 +41,8 @@ chdir, fchdir \- change working directory
|
|||
.BI "int fchdir(int " fd );
|
||||
.SH DESCRIPTION
|
||||
.BR chdir ()
|
||||
changes the current working directory to that specified in
|
||||
changes the current working directory pf the calling process to the
|
||||
directory specified in
|
||||
.IR path .
|
||||
.PP
|
||||
.BR fchdir ()
|
||||
|
@ -62,8 +63,7 @@ general errors for
|
|||
are listed below:
|
||||
.TP
|
||||
.B EACCES
|
||||
Search permission is denied for one of the directories
|
||||
in the path prefix of
|
||||
Search permission is denied for one of the components of
|
||||
.IR path .
|
||||
(See also
|
||||
.BR path_resolution (7).)
|
||||
|
@ -108,6 +108,9 @@ is not a valid file descriptor.
|
|||
.SH "CONFORMING TO"
|
||||
SVr4, 4.4BSD, POSIX.1-2001.
|
||||
.SH NOTES
|
||||
The current working directory is the starting point for interpreting
|
||||
relative pathnames (those not starting with '/').
|
||||
|
||||
A child process created via
|
||||
.BR fork (2)
|
||||
inherits its parent's current working directory.
|
||||
|
|
Loading…
Reference in New Issue