sys_chdir [fs/open.c]


Changes working directory.

Arguments

eax 12
ebx Pointer to a null-terminated string that specifies the name of the new working directory.

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EACCES Search permission is denied for one of the directories in the path prefix.
-EFAULT ebx points outside your accessible address space.
-EIO An I/O error occurred.
-ELOOP Too many symbolic links were encountered in resolving path.
-ENAMETOOLONG Path is too long.
-ENOENT The file does not exist.
-ENOMEM Insufficient kernel memory was available.
-ENOTDIR A component of path is not a directory.

Remarks

n/a

Compatibility

n/a