Xref getcwd(3).

Sort errors.
Bump date.
This commit is contained in:
wiz 2013-02-05 13:36:59 +00:00
parent dc76929a7a
commit 8e0e98065f
1 changed files with 18 additions and 17 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: chdir.2,v 1.21 2010/05/31 12:16:20 njoly Exp $
.\" $NetBSD: chdir.2,v 1.22 2013/02/05 13:36:59 wiz Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\"
.\" @(#)chdir.2 8.2 (Berkeley) 12/11/93
.\"
.Dd December 11, 1993
.Dd February 5, 2013
.Dt CHDIR 2
.Os
.Sh NAME
@ -80,18 +80,6 @@ the error.
will fail and the current working directory will be unchanged if
one or more of the following are true:
.Bl -tag -width Er
.It Bq Er ENOTDIR
A component of the path prefix is not a directory.
.It Bq Er ENAMETOOLONG
A component of a pathname exceeded
.Brq Dv NAME_MAX
characters, or an entire path name exceeded
.Brq Dv PATH_MAX
characters.
.It Bq Er ENOENT
The named directory does not exist.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
.It Bq Er EACCES
Search permission is denied for any component of
the path name.
@ -100,6 +88,18 @@ the path name.
points outside the process's allocated address space.
.It Bq Er EIO
An I/O error occurred while reading from or writing to the file system.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
.It Bq Er ENAMETOOLONG
A component of a pathname exceeded
.Brq Dv NAME_MAX
characters, or an entire path name exceeded
.Brq Dv PATH_MAX
characters.
.It Bq Er ENOENT
The named directory does not exist.
.It Bq Er ENOTDIR
A component of the path prefix is not a directory.
.El
.Pp
.Fn fchdir
@ -109,12 +109,12 @@ one or more of the following are true:
.It Bq Er EACCES
Search permission is denied for the directory referenced by the
file descriptor.
.It Bq Er ENOTDIR
The file descriptor does not reference a directory.
.It Bq Er EBADF
The argument
.Fa fd
is not a valid file descriptor.
.It Bq Er ENOTDIR
The file descriptor does not reference a directory.
.It Bq Er EPERM
The argument
.Fa fd
@ -122,7 +122,8 @@ references a directory which is not at or below the current process's
root directory.
.El
.Sh SEE ALSO
.Xr chroot 2
.Xr chroot 2 ,
.Xr getcwd 3
.Sh STANDARDS
The
.Fn chdir