From owner-freebsd-current Wed May 29 10:53:27 2002 Delivered-To: freebsd-current@freebsd.org Received: from evilpete.dyndns.org (12-232-26-46.client.attbi.com [12.232.26.46]) by hub.freebsd.org (Postfix) with ESMTP id 9F7E437B494; Wed, 29 May 2002 10:53:18 -0700 (PDT) Received: from overcee.wemm.org ([10.0.0.3]) by evilpete.dyndns.org (8.11.6/8.11.6) with ESMTP id g4THrG164999; Wed, 29 May 2002 10:53:18 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 1BC1438CC; Wed, 29 May 2002 10:53:16 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Poul-Henning Kamp Cc: John Baldwin , Julian Elischer , FreeBSD current users Subject: Re: Seeking OK to commit KSE MIII In-Reply-To: <430.1022694008@critter.freebsd.dk> Date: Wed, 29 May 2002 10:53:16 -0700 From: Peter Wemm Message-Id: <20020529175316.1BC1438CC@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > In message , 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. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message