From owner-freebsd-current Sun Feb 9 12:41: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8093A37B405 for ; Sun, 9 Feb 2003 12:41:07 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D69943F93 for ; Sun, 9 Feb 2003 12:41:06 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b159.otenet.gr [212.205.244.167]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h19Kf3RX011037; Sun, 9 Feb 2003 22:41:04 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h19KeZGZ030355; Sun, 9 Feb 2003 22:41:02 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h19Ggm9J055296; Sun, 9 Feb 2003 18:42:48 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 9 Feb 2003 18:42:48 +0200 From: Giorgos Keramidas To: David Leimbach Cc: Auge Mike , current@FreeBSD.org Subject: Re: printf....! Message-ID: <20030209164248.GA30623@gothmog.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On 2003-02-08 16:23, David Leimbach wrote: > Dave > On Saturday, February 8, 2003, at 04:12 PM, Auge Mike wrote: > >Hi all, > > > >I was trying to know how "printf" works in FreeBSD... I hvae > >reached to this point : > > > >#define _write(fd, s, n) \ > > __syscall(SYS_write, (int)(fd), (const void *)(s), (size_t)(n)) > > Isn't it ultimately interrupt 08 on the PC with an index in the EAX > register for the write "subroutine"? Interrupt 0x80. > I am pretty sure that's correct. I might have the interrupt value > wrong though. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message