chdir(2)

DESCRIPTION

change the caller's working directory.

SYNOPSIS

long chdir(const char *path);

ERRORS

  • -EFAULT
    • The path pointer is inaccessible.
  • -ENOTDIR
    • The path does not identify a directory.
  • -ENOENT
    • The directory does not exist.
  • -ESRCH
    • There is no current process.