Annotation of cci/usr/src/man/man2/chroot.2, revision 1.1

1.1     ! root        1: .TH CHROOT 2 "2 July 1983"
        !             2: .UC 4
        !             3: .SH NAME
        !             4: chroot \- change root directory
        !             5: .SH SYNOPSIS
        !             6: .nf
        !             7: .ft B
        !             8: chroot(dirname)
        !             9: char *dirname;
        !            10: .ft R
        !            11: .fi
        !            12: .SH DESCRIPTION
        !            13: .I Dirname
        !            14: is the address of the pathname of a directory, terminated by a null byte.
        !            15: .I Chroot
        !            16: causes this directory
        !            17: to become the root directory,
        !            18: the starting point for path names beginning with ``/''.
        !            19: .PP
        !            20: In order for a directory to become the root directory
        !            21: a process must have execute (search) access to the directory.
        !            22: .PP
        !            23: This call is restricted to the super-user.
        !            24: .SH "RETURN VALUE
        !            25: Upon successful completion, a value of 0 is returned.  Otherwise,
        !            26: a value of \-1 is returned and \fIerrno\fP is set to indicate an error.
        !            27: .SH ERRORS
        !            28: .I Chroot
        !            29: will fail and the root directory will be unchanged if
        !            30: one or more of the following are true:
        !            31: .TP 15
        !            32: [ENOTDIR]
        !            33: A component of the path name is not a directory.
        !            34: .TP 15
        !            35: [ENOENT]
        !            36: The pathname was too long.
        !            37: .TP 15
        !            38: [EPERM]
        !            39: The argument contains a byte with the high-order bit set.
        !            40: .TP 15
        !            41: [ENOENT]
        !            42: The named directory does not exist.
        !            43: .TP 15
        !            44: [EACCES]
        !            45: Search permission is denied for any component of
        !            46: the path name.
        !            47: .TP 15
        !            48: [EFAULT]
        !            49: .I Path
        !            50: points outside the process's allocated address space.
        !            51: .TP 15
        !            52: [ELOOP]
        !            53: Too many symbolic links were encountered in translating
        !            54: the pathname.
        !            55: .SH "SEE ALSO"
        !            56: chdir(2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.