rem: rc = vfs_get_cwd(path, SYS_MAX_PATH_LEN-1, false); if(rc < 0) return rc;
add: status = vfs_get_cwd(path, sizeof(path), false); if (status < 0) return status;
context: user_getcwd(char *buf, size_t size){	char path[SYS_MAX_PATH_LEN];	int rc, rc2;	PRINT(("user_getcwd: buf %p, %ld\n", buf, size));	// Check if userspace address is inside "shared" kernel space	if((addr)buf >= KERNEL_BASE && (addr)buf <= KERNEL_TOP)		return NULL; //ERR_VM_BAD_USER_MEMORY;	// Call vfs to get current working directory	rc = vfs_get_cwd(path, SYS_MAX_PATH_LEN-1, false);	if(rc < 0)		return rc;	// Copy back the result	rc2 = user_strncpy(buf, path, size);	if(rc2 < 0)		return rc2;	return rc;}