summaryrefslogtreecommitdiff
path: root/usr/src/man/man2/chroot.2
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man2/chroot.2')
-rw-r--r--usr/src/man/man2/chroot.226
1 files changed, 1 insertions, 25 deletions
diff --git a/usr/src/man/man2/chroot.2 b/usr/src/man/man2/chroot.2
index 566e732f03..2c81f34038 100644
--- a/usr/src/man/man2/chroot.2
+++ b/usr/src/man/man2/chroot.2
@@ -3,7 +3,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH chroot 2 "20 Jan 2003" "SunOS 5.11" "System Calls"
+.TH CHROOT 2 "Jan 20, 2003"
.SH NAME
chroot, fchroot \- change root directory
.SH SYNOPSIS
@@ -56,12 +56,10 @@ indicate the error.
The \fBchroot()\fR function will fail if:
.sp
.ne 2
-.mk
.na
\fB\fBEACCES\fR\fR
.ad
.RS 16n
-.rt
Search permission is denied for a component of the path prefix of
\fIdirname\fR, or search permission is denied for the directory referred to by
\fIdirname\fR.
@@ -69,79 +67,65 @@ Search permission is denied for a component of the path prefix of
.sp
.ne 2
-.mk
.na
\fB\fBEBADF\fR\fR
.ad
.RS 16n
-.rt
The descriptor is not valid.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEFAULT\fR\fR
.ad
.RS 16n
-.rt
The \fIpath\fR argument points to an illegal address.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEINVAL\fR\fR
.ad
.RS 16n
-.rt
The \fBfchroot()\fR function attempted to change to a directory the is not the
system root and external circumstances do not allow this.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEINTR\fR\fR
.ad
.RS 16n
-.rt
A signal was caught during the execution of the \fBchroot()\fR function.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEIO\fR\fR
.ad
.RS 16n
-.rt
An I/O error occurred while reading from or writing to the file system.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBELOOP\fR\fR
.ad
.RS 16n
-.rt
Too many symbolic links were encountered in translating \fIpath\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENAMETOOLONG\fR\fR
.ad
.RS 16n
-.rt
The length of the \fIpath\fR argument exceeds \fBPATH_MAX\fR, or the length of
a \fIpath\fR component exceeds \fB\fR\fBNAME_MAX\fR while \fB_POSIX_NO_TRUNC\fR
is in effect.
@@ -149,46 +133,38 @@ is in effect.
.sp
.ne 2
-.mk
.na
\fB\fBENOENT\fR\fR
.ad
.RS 16n
-.rt
The named directory does not exist or is a null pathname.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOLINK\fR\fR
.ad
.RS 16n
-.rt
The \fIpath\fR argument points to a remote machine and the link to that machine
is no longer active.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENOTDIR\fR\fR
.ad
.RS 16n
-.rt
Any component of the path name is not a directory.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEPERM\fR\fR
.ad
.RS 16n
-.rt
The {\fBPRIV_PROC_CHROOT\fR} privilege is not asserted in the effective set of
the calling process.
.RE