Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Xref getcwd(3).
details: https://anonhg.NetBSD.org/src/rev/c73f11175251
branches: trunk
changeset: 784671:c73f11175251
user: wiz <wiz%NetBSD.org@localhost>
date: Tue Feb 05 13:36:59 2013 +0000
description:
Xref getcwd(3).
Sort errors.
Bump date.
diffstat:
lib/libc/sys/chdir.2 | 35 ++++++++++++++++++-----------------
1 files changed, 18 insertions(+), 17 deletions(-)
diffs (81 lines):
diff -r f9c0f885af4f -r c73f11175251 lib/libc/sys/chdir.2
--- a/lib/libc/sys/chdir.2 Tue Feb 05 13:02:33 2013 +0000
+++ b/lib/libc/sys/chdir.2 Tue Feb 05 13:36:59 2013 +0000
@@ -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,8 +80,16 @@
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 EACCES
+Search permission is denied for any component of
+the path name.
+.It Bq Er EFAULT
+.Fa path
+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
@@ -90,16 +98,8 @@
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.
-.It Bq Er EFAULT
-.Fa path
-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 ENOTDIR
+A component of the path prefix is not a directory.
.El
.Pp
.Fn fchdir
@@ -109,12 +109,12 @@
.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 @@
root directory.
.El
.Sh SEE ALSO
-.Xr chroot 2
+.Xr chroot 2 ,
+.Xr getcwd 3
.Sh STANDARDS
The
.Fn chdir
Home |
Main Index |
Thread Index |
Old Index