Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chroot(S)



     CHDIR(S)                 XENIX System V                  CHDIR(S)



     Name
          chdir - Changes the working directory.

     Syntax
          int chdir (path)
          char *path;

     Description
          path points to the pathname of a directory.  chdir causes
          the named directory to become the current working directory,
          the starting point for path searches for pathnames not
          beginning with /.

          chdir will fail and the current working directory will be
          unchanged if one or more of the following are true:

               A component of the pathname is not a directory.
               [ENOTDIR]

               The named directory does not exist.  [ENOENT]

               Search permission is denied for any component of the
               pathname.  [EACCES]

               path points outside the process' allocated address
               space.  [EFAULT]

     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
          chroot(S)





















     Page 1                                           (printed 8/7/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026