Re: syscall: td_retval and zero return value

2004-11-11 Thread Andrey Simonenko
On Wed, Nov 10, 2004 at 03:05:45PM +0200, Andriy Gapon wrote: I have very little assembler/x86 knowledge. Could anyone please help me understand what it means to assign a non-zero value to td_retval in a system call when return value of the call is zero/success? If a syscall returns some

Re: syscall: td_retval and zero return value

2004-11-11 Thread Andriy Gapon
on 10.11.2004 16:00 [EMAIL PROTECTED] said the following: The way the handler advice you about syscalls failing is setting (and not clearing as you were saying) the carry bit in eflags register (about ia32). A sort of errno (if you see in a C-coder view) value is set in eax (or,

syscall: td_retval and zero return value

2004-11-10 Thread Andriy Gapon
I have very little assembler/x86 knowledge. Could anyone please help me understand what it means to assign a non-zero value to td_retval in a system call when return value of the call is zero/success? I see in syscall() in src/sys/i386/i386/trap.c (btw is this the right place?) that in such

RE: syscall: td_retval and zero return value

2004-11-10 Thread gerarra
I have very little assembler/x86 knowledge. Could anyone please help me understand what it means to assign a non-zero value to td_retval in a system call when return value of the call is zero/success? I see in syscall() in src/sys/i386/i386/trap.c (btw is this the right place?) that in such