changes the current working directory of the calling process to the directory specified in p, returning true or false, error