Module Name:    src
Committed By:   wiz
Date:           Tue Feb  5 13:37:00 UTC 2013

Modified Files:
        src/lib/libc/sys: chdir.2

Log Message:
Xref getcwd(3).
Sort errors.
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/sys/chdir.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/sys/chdir.2
diff -u src/lib/libc/sys/chdir.2:1.21 src/lib/libc/sys/chdir.2:1.22
--- src/lib/libc/sys/chdir.2:1.21	Mon May 31 12:16:20 2010
+++ src/lib/libc/sys/chdir.2	Tue Feb  5 13:36:59 2013
@@ -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 o
 root directory.
 .El
 .Sh SEE ALSO
-.Xr chroot 2
+.Xr chroot 2 ,
+.Xr getcwd 3
 .Sh STANDARDS
 The
 .Fn chdir

Reply via email to