sys_getcwd  [fs/dcache.c]


Gets current working directory.

Arguments

eax 183
ebx Pointer to a buffer that will hold the working directory path.
ecx Size of the buffer pointed by ebx. If the size is smaller than required, the system call will return -ERANGE.

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:

-ENOMEM User memory couldn't be mapped.
-ENOENT Directory doesn't exist.
-ERANGE Not enough space available for storing the path.
-EFAULT Memory access violation occurred while copying.

Remarks

n/a

Compatibility

n/a