CHDIR(2) DOMAIN/IX Reference Manual (SYS5) CHDIR(2)
NAME
chdir - change working directory
USAGE
int chdir (path)
char *path;
DESCRIPTION
Path points to the pathname of a directory. Chdir makes
that directory the current working directory, the starting
point for searches for pathnames that don't begin with the
root (/).
RETURN VALUE
Upon successful completion, chdir returns zero. Otherwise,
it returns a value of -1 and sets errno to indicate the
error.
ERRORS
Chdir will fail and the current working directory will not
change if one or more of the following is true:
[ENOTDIR] A component of the pathname is not a direc-
tory.
[ENOENT] The directory named does not exist.
[EACCES] Search permission is denied for any component
of the pathname.
[EFAULT] Path points outside the allocated address
space of the process.
Printed 5/10/85 CHDIR-1