Messages in this thread | | | Date | Wed, 20 Oct 2004 21:23:14 +0400 | From | Stas Sergeev <> | Subject | Re: X does not start. vm86old returns ENOSYS?? |
| |
Hi.
Denis Vlasenko wrote: > How can vm86old from X return ENOSYS?? I think you can't trust what vm86()/vm86old() returns, concerning strace. These 2 syscalls returns different non-zero values on *success*, which, I think, strace just doesn't get right. Of course it can also return the reasonable errors, like EFAULT as in your test program - its just that copy_from_user() failed when you specified NULL. I am not sure where exactly the ENOSYS comes from. My wild guess is that strace expects 0 on success and the negative value on error, but any positive value is an indication that the syscall is not implemented. At least I've always seen ENOSYS in an strace logs for vm86() - this is normal.
> I have no more ideas how to proceed from here. Sorry for not being able to help much.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |