sys_fchdir  [fs/open.c]


Changes working directory. This system call is identical to sys_chdir except that the directory is specified by a file descriptor.

Arguments

eax 133
ebx File descriptor (can be obtained with sys_open).

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 (depending on the file systems other error values may be returned):

-EBADF ebx is not a valid, open, file descriptor.

Remarks

n/a

Compatibility

n/a