summaryrefslogtreecommitdiff
path: root/lib/libc/sys/chdir.2
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-18 05:12:14 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-18 05:12:14 +0000
commitf29d8bd9c9c901b81d8fadc341786c43528e63c1 (patch)
treea5fc4e4696d058bee8f5a8c5498044c06a963bda /lib/libc/sys/chdir.2
parent906e3d9014b754421b64647e705b3cca2e9a7c01 (diff)
Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.
Diffstat (limited to 'lib/libc/sys/chdir.2')
-rw-r--r--lib/libc/sys/chdir.228
1 files changed, 11 insertions, 17 deletions
diff --git a/lib/libc/sys/chdir.2 b/lib/libc/sys/chdir.2
index 7fc397c01f9..173c0bbfd5b 100644
--- a/lib/libc/sys/chdir.2
+++ b/lib/libc/sys/chdir.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: chdir.2,v 1.5 1999/06/29 14:09:51 aaron Exp $
+.\" $OpenBSD: chdir.2,v 1.6 2000/10/18 05:12:08 aaron Exp $
.\" $NetBSD: chdir.2,v 1.7 1995/02/27 12:32:00 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -53,22 +53,19 @@ The
argument points to the pathname of a directory.
The
.Fn chdir
-function
-causes the named directory
-to become the current working directory, that is,
-the starting point for path searches of pathnames not beginning with
-a slash,
-.Ql / .
+function causes the named directory to become the current working directory,
+that is, the starting point for path searches of pathnames not beginning with
+a slash
+.Pq Ql / .
.Pp
The
.Fn fchdir
-function
-causes the directory referenced by
+function causes the directory referenced by
.Fa fd
to become the current working directory,
the starting point for path searches of pathnames not beginning with
-a slash,
-.Ql / .
+a slash
+.Pq Ql / .
.Pp
In order for a directory to become the current directory,
a process must have execute (search) access to the directory.
@@ -76,8 +73,7 @@ a process must have execute (search) access to the directory.
Upon successful completion, a value of 0 is returned.
Otherwise, a value of \-1 is returned and
.Va errno
-is set to indicate
-the error.
+is set to indicate the error.
.Sh ERRORS
.Fn chdir
will fail and the current working directory will be unchanged if
@@ -96,8 +92,7 @@ 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.
+Search permission is denied for any component of the pathname.
.It Bq Er EFAULT
.Fa path
points outside the process's allocated address space.
@@ -129,6 +124,5 @@ is expected to conform to
.Sh HISTORY
The
.Fn fchdir
-function call
-appeared in
+function call appeared in
.Bx 4.2 .