NAME
chdir - change working satellite directory
SYNOPSIS
int chdir(path)
char *path;
DESCRIPTION
path
points to the path name of a directory.
chdir
causes the named directory to become the current working directory.
It is not possible for the root directory of the satellite file system
to be your working directory.
chdir
will fail and the current working directory will be unchanged if one
or more of the following are true:
-
The path name does not specify a directory. [ENOTDIR]
-
The named directory does not exist. [ENOENT]
-
The path name points to a directory on the host. [EACCES]
RETURN VALUE
On successful completion, a value of 0 is returned. Otherwise, a
value of -1 is returned and
errno
is set to indicate the error.