SYS_getcwd is different from getcwd in that the return value is < 0
on failure otherwise it is the length of the string. The proxy kernel
was treating 0 as success and all other values as error. As a result,
we would never return a valid value for getcwd.
The following program now executes properly with the Proxy Kernel:
SYS_getcwd
is different fromgetcwd
in that the return value is < 0 on failure otherwise it is the length of the string. The proxy kernel was treating 0 as success and all other values as error. As a result, we would never return a valid value forgetcwd
.The following program now executes properly with the Proxy Kernel: