posix/fs/dvfs/chdir.c
int chdir(const char *path) {
	struct lookup l;
	dvfs_lookup(path, &l);
	if (l.item != NULL) {
		task_fs()->pwd = l.item;
		return 0;
	} else
		return SET_ERRNO(ENOENT);
}
/**
 * @brief POSIX-compatible function changing process working directory
 *
 * @param path Path to new working directory
 *
 * @return On success, 0 returned, otherwise -1 returned and ERRNO is set
 *         appropriately.
 */
@brief POSIX-compatible function changing process working directory
@param path Path to new working directory

@return On success, 0 returned, otherwise -1 returned and ERRNO is set
appropriately.
@brief POSIX - compatible function changing process working directory @param path Path to new working directory @return On success 0 returned otherwise - 1 returned and ERRNO is set appropriately .
int chdir(const char *path) {
	struct lookup l;
	dvfs_lookup(path, &l);
	if (l.item != NULL) {
		task_fs()->pwd = l.item;
		return 0;
	} else
		return SET_ERRNO(ENOENT);
}
int chdir ( const char * path ) { struct lookup l ; dvfs_lookup ( path , & l ) ; if ( l . item != NULL ) { task_fs ( ) -> pwd = l . item ; return 0 ; } else return SET_ERRNO ( ENOENT ) ; }
@brief POSIX-compatible function changing process working directory
 @param path Path to new working directory
@brief POSIX - compatible function changing process working directory @param path Path to new working directory