CHROOT(2) HP Integral PC CHROOT(2) CHROOT(2) HP Integral PC CHROOT(2) CHROOT(2) HP Integral PC CHROOT(2) CHROOT(2) HP Integral PC CHROOT(2) NAME NAME NAME NAME chroot - change root directory SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS int chroot (path) char *path; DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION Path points to a path name naming a directory. Chroot causes the named directory to become the root directory, the starting point for path searches for path names beginning with / . The entry in the root directory is interpreted to mean the root directory itself. Thus, can not be used to access files outside the subtree rooted at the root directory. Chroot will fail and the root directory will remain unchanged if one or more of the following are true: Any component of the path name is not a directory. [ENOTDIR] The named directory does not exist. [ENOENT] Path points outside the process's allocated address space. [EFAULT] RETURN VALUE RETURN VALUE RETURN VALUE RETURN VALUE Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO SEE ALSO SEE ALSO SEE ALSO chdir(2). Hewlett-Packard - 1 - (printed 12/12/84)