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 1997-08-21 by Joseph S. Myers <jsm28@cam.ac.uk>
|
||||||
.\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net>
|
.\" 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
|
.SH NAME
|
||||||
chdir, fchdir \- change working directory
|
chdir, fchdir \- change working directory
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -41,7 +41,8 @@ chdir, fchdir \- change working directory
|
||||||
.BI "int fchdir(int " fd );
|
.BI "int fchdir(int " fd );
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.BR chdir ()
|
.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 .
|
.IR path .
|
||||||
.PP
|
.PP
|
||||||
.BR fchdir ()
|
.BR fchdir ()
|
||||||
|
@ -62,8 +63,7 @@ general errors for
|
||||||
are listed below:
|
are listed below:
|
||||||
.TP
|
.TP
|
||||||
.B EACCES
|
.B EACCES
|
||||||
Search permission is denied for one of the directories
|
Search permission is denied for one of the components of
|
||||||
in the path prefix of
|
|
||||||
.IR path .
|
.IR path .
|
||||||
(See also
|
(See also
|
||||||
.BR path_resolution (7).)
|
.BR path_resolution (7).)
|
||||||
|
@ -108,6 +108,9 @@ is not a valid file descriptor.
|
||||||
.SH "CONFORMING TO"
|
.SH "CONFORMING TO"
|
||||||
SVr4, 4.4BSD, POSIX.1-2001.
|
SVr4, 4.4BSD, POSIX.1-2001.
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
|
The current working directory is the starting point for interpreting
|
||||||
|
relative pathnames (those not starting with '/').
|
||||||
|
|
||||||
A child process created via
|
A child process created via
|
||||||
.BR fork (2)
|
.BR fork (2)
|
||||||
inherits its parent's current working directory.
|
inherits its parent's current working directory.
|
||||||
|
|
Loading…
Reference in New Issue