Poul-Henning Kamp wrote:
> In message <[EMAIL PROTECTED]>, John Baldwin writes:
> >+       frame = td->td_frame;
> >+       frame->tf_eax = retval;         /* Child returns zero */
> >+       frame->tf_edx = aux;            /* I dunno */
> >
> >You could always ask about that instead of having a I dunno comment. :)
> >I think that we no longer use 2 return values from syscalls for FreeBSD
> >syscalls (I know we did for fork1() at one point, possibly still do
> >so that 4.x libc works ok on 5.x kernel).  Linux does depend on edx being
> >preserved across a syscall though IIRC.
> We do for 64bit returns like lseek(2)

And also pipe(2) has a dual return from the syscall itself.  libc massages
this into something that C programs like.

"All of this is for nothing if we don't go to the stars" - JMS/B5

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to